Need to compare 2 reference values (From 2 different tables) and set the flag 'True' or 'False'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2024 07:40 AM
Hi All,
On Risk(sn_risk_risk) form, I have 2 dot walked fields 'Inherent Assessment' and 'Qualitative Apetite'. I have to fetch these 2 values and compare them.
Condition is : If Inherent Assessment > Qualitative Apetite, We need to set the flag true.
Inherent Assessment field is from Table - sn_risk_advanced_risk_assessment_instance
Qualitative Apetite filed is from Table - sn_risk_advanced_risk_appetite_scale
Please guide how this can be achieved ? Complete Solution will be very helpful.
Thanks in advance.
Reference Fields -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2024 03:29 AM
getting the same problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2024 03:40 AM - edited 11-27-2024 03:47 AM
Hi,
Depending on the process:
- onChange client script would handle it immediately the value is changed,
- business rule would handle it right after it is saved for example,
- scheduled job could do it periodically (every 30 min, hourly, weekly, ...)
I do not have this module active so cannot show you directly, but create a business rule on the [sn_risk_risk] table make it onBefore on insert and update (mark Advanced true), and use script something like this (it must be played with, this is very drafty I just shot untested):
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */