can we use the vlaue property value in same text Filed for validate same text Field,
eg:
a!integerField( value: , saveInto: , align: "LEFT", labelPosition: "ADJACENT", refreshAfter: "UNFOCUS", validations:
want high lighted value property value here to validate the field without storing the value in local variable or rule input . want to know it is possible or not. )
Discussion posts and replies are publicly visible
for Example:
if the integerField value is greater or less than the value of integerField then it should be validate.
Consider below example,
a!integerField(
value: 200 ,
saveInto: ,
align: "LEFT",
labelPosition: "ADJACENT",
refreshAfter: "UNFOCUS",
validations:
if(value=<100,{},"validation message")
)
What's your use case?
If the value of the field is hard-coded, the designer knows what it is, and there should be no need for a validation.
Assuming you use local variables defined in the interface load, you can then reference the save variable in the validation expression.
a!integerField( label: "Integer", labelPosition: "ABOVE", value: local!myInt, saveInto: local!myInt, refreshAfter: "UNFOCUS", validations: { if( not(isnull(local!myInt)), if( local!myInt<=100, "error", {} ), {} ) } )