I've searched for this but don't seem to find exactly what I need. I have a BO 'UnitTable' that contains 'UnitCode' as an attribute. I have another BO 'NSCPers' that also contains 'UnitCode' as an attribute. I need to test that any entry of 'UnitCode' in 'NSCPers' exists in 'UnitTable'. I tried:
If NOT(EXISTS UnitTable WHERE(UnitTable.UnitCode = THIS NSCPers.UnitCode)) THEN REPORT ERROR '....'
It didn't seem to like 'THIS NSCPers' as 'not found' object. Can someone show me the correct syntax for what I tried to do? I need to document the correct way to make the validation for a proposal.
Thanks
Using If NOT
I can empathise with the procedural outlook too
If you set the items in your dropdown list to 'Fetch records dynamically as user types' in the presentation of your referenced attribute on your form, the list won't be 300 long to choose from, but instead will display and fill the form field with only valid options as the user types.
For example, if the user types first letter C, only the codes commencing with C will be presented as options and a simple click can then complete the field entry. It's quite user friendly too compared with having to type in a complete code each time.
Might be worth looking at .....
If you set the items in your dropdown list to 'Fetch records dynamically as user types' in the presentation of your referenced attribute on your form, the list won't be 300 long to choose from, but instead will display and fill the form field with only valid options as the user types.
For example, if the user types first letter C, only the codes commencing with C will be presented as options and a simple click can then complete the field entry. It's quite user friendly too compared with having to type in a complete code each time.
Might be worth looking at .....