adding umbNestedProperty to build up a json path for a targeted nested property type.

This commit is contained in:
Shannon
2020-06-24 11:51:48 +10:00
parent 29aaabcc6e
commit b99c170f86
11 changed files with 188 additions and 47 deletions

View File

@@ -586,8 +586,14 @@
for (var p = 0; p < tab.properties.length; p++) {
var prop = tab.properties[p];
// store the original alias before we change below, see notes
prop.propertyAlias = prop.alias;
// NOTE: This is super ugly, the reason it is like this is because it controls the label/html id in the umb-property component at a higher level.
// not pretty :/ but we can't change this now since it would require a bunch of plumbing to be able to change the id's higher up.
prop.alias = model.alias + "___" + prop.alias;
// TODO: Do we need to deal with this separately?
// Force validation to occur server side as this is the
// only way we can have consistency between mandatory and
// regex validation messages. Not ideal, but it works.