How to call a field name dynamically in business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2022 04:41 AM
Hi,
My requirement is to make a field unique and populate a message in business rule dynamically.
Currently I have written the uniqueness check script in script include and calling that script in business rule.
For example: There is a field "name" and "serial number". For both uniqueness check is done in script include and if incase in a table i give existing value to name then it should populate "name is already exist" and similarly for serial number as well.
But in BR i need to populate the field names dynamically but not directly.
Can anyone please help me here.
Thank you,
Priyanka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2022 04:52 AM
Hi Priyanka,
For making the fields unique you can check the Unique checkbox in dictionary level then no code is required.
What do you mean by populating fields dynamically?
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2022 05:00 AM
Thanks for your response Murthy.
For uniqueness check its not through only UI but records will be created from backend also that's why i have created a script.
For making field name dynamic means: In a form it should show "name is already exist" and for that i should not use the field name directly in the script it should be like: (fieldname+ 'already exist').