Gs.addInfoMessage is not displayed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2024 07:03 PM
I have UI action which makes a AJAX call to script include to reject the request, and on successful rejection info message is displayed using the below snippet.
This script it called for every record rejected, i.e if i bulk reject 10 records, the script is executed 10 times and log statement is getting printed but alert is not seen.
FYI : This is working fine if i just reject a single record , and failing for multi select
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2024 08:42 PM
Hi @Jyotshna_M ,
The given code is not complete for analysis, please share the full code of UI Action and Script Include which is used for AJAX call.
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2024 09:00 PM
When you run a UI action on a single record, the inbound object to the script is different to when you run it with multi select.
You need to detect this difference and when multi select is used you need to iterate through each row and perform the action on each row separately.
For example:
var checkedList = g_list.getChecked();
for(var i=0; i<checkedList.length; i++){
// Do something with checkedList[i]
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2024 10:35 PM
WFOApprovalUtils changes the state to rejected and calls other script include
ApprovalUserFeedback :
Tried printing the text from getinfomessage and that is logged correctly