SmartClient Version: v11.1p_2019-03-09/Enterprise Deployment (built 2019-03-09)
Hello, I've just noticed that when the dependentFields attribute contains more than one field name, like this:
in the DMI validator the record variable contains an attribute with name = 'DATA_INIZIO,DATA_FINE,STATUS', see screenshot from Intellij debugger:
so it seems that the value of the dependentFields attribute is not split.
the alternative syntax is working:
Hello, I've just noticed that when the dependentFields attribute contains more than one field name, like this:
Code:
<field name="ID_LUOGO_SITO_FK" type="integer" foreignKey="ANAG_SITI_LUOGHI.ID_REC" required="true"> <validators> <validator type="serverCustom" dependentFields="DATA_INIZIO,DATA_FINE,STATUS" errorMessage="Impossibile prenotare la sala, risulta già occupata."> <serverObject lookupStyle="new" className="com.juve.jtc.PrenotazioniSaleDMI"/> </validator> </validators> </field>
so it seems that the value of the dependentFields attribute is not split.
the alternative syntax is working:
Code:
<field name="ID_LUOGO_SITO_FK" type="integer" foreignKey="ANAG_SITI_LUOGHI.ID_REC" required="true"> <validators> <validator type="serverCustom"> <dependentFields> <dependentField>DATA_INIZIO</dependentField> <dependentField>DATA_FINE</dependentField> <dependentField>STATUS</dependentField> </dependentFields> <errorMessage>Impossibile prenotare la sala, risulta già occupata.</errorMessage> <serverObject lookupStyle="new" className="com.juve.jtc.PrenotazioniSaleDMI"/> </validator> </validators> </field>
Comment