Hi
At the moment I am taking 2 steps forward and 1 step back - (I think better than a few days ago when it was 1 forward and 2 back !)
I have a field (Name) which I want to ensure does not exist in a secondary data source (SName) (multiple records). I do not know the case of either of the Name fields, so I need to use the translate function to get each of them in the same case.
Initially I am ignoring the case problem and just trying to validate Name against SName.
I have gone into validate and have selected Name is equal to SName - I have then previewed the form and I can enter ANY value in Name and validation does not kick in. ie Fred exists in SName and entering Fred in Name does not cause a validation error.
I have gone into RULES and have selected Name is equal to SName - I have then previewed the form and I can enter ANY value in Name and validation does not kick in. ie Fred exists in SName and entering Fred in Name does not the rule to be triggered.
I have gone into validate and have used the expression . = xdXDocument:GetDOM("NameList")/dfs:myFields/dfs:dataFields/d:NameList/@SName I have then previewed the form and I can enter ANY value in Name and validation does not kick in. ie Fred exists in SName and entering Fred in Name does not cause a validation error.
I have gone into validate and have used the expression . = xdXDocument:GetDOM("NameList")/dfs:myFields/dfs:dataFields/d:NameList//@SName I have then previewed the form and I can enter ANY value in Name and validation does not kick in. ie Fred exists in SName and entering Fred in Name does not cause a validation error.
I have created another field with a default value of @SName[. = Name] - and this does not show a value when it should
I was hoping that once I hat got the initial validation working I could insert the translate later.... I am not having much luck here with the simpler option- am I going on the right track ?
Catharine