- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2022 12:00 AM
As shown in above pic, user should not be able to certify empty elements as marked in yellow. There should be some error when user tries to certify these empty elements.
Please help
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2022 03:24 AM
Business Rule which you need to set up will look like below:
BR Details;
Table: Certification Element:
Condition: State Changes to Certified
Script :
(function executeRule(current, previous /*null when async*/) {
// Add your code here
if(current.certified_value == ''){
gs.addErrorMessage('Empty Field Values cannot be certified');
current.setAbortAction(true);
}
})(current, previous);
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2022 04:14 AM
Thanks , I am able to achieve my requirement but on certifying empty elements error message is not getting popup. can you help?
Also can we achieve the same requirement using client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2022 04:49 AM
Displaying message will be tricky here, reason being when a user tries to certify the element there is a separate table "cert_element" as mentioned before also which is capturing all the info but the form from where you are trying to certify is a different table i.e. Certification task.
What you may try here is there is a Global UI Script named "CertificationTaskScript" which calls a Script Include named "CertificationAjax" . You need to play round here to get the message displayed. If it is really necessary then do invest time else your requirement is done not allowing users to certify when it is empty.
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2022 05:32 AM
Shloke, thanks for your reply. I guess i need to play aroung with that UI script. But In case if you are able to find some solution for the same, please let me know here. Displaying message is imp. please help if possible
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2022 01:10 AM
Hi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2022 03:06 AM
I have responded there in your post. Please have a look and let me know if you have a query.
Regards,
Shloke
Regards,
Shloke