- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2023 02:23 AM
Hello All,
I have a ui action, that opens up a dialog window to assign roles to the user.
My requirement is that on the main user form, if few details are filled or changed and then the ui action is clicked to open the dialog window and assign roles, after clicking on 'ok' in the dialog window, it should also save the details from the main form into the user record along with the roles.
But as per the below configuration, the roles are added, but if the main user form details are modified, it is snot getting saved.
1. UI action
2. UI Page
3.After clicking on OK, it gives this alert and the main user form details are not saved.
Please help.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2023 02:32 AM
Hello @Hardik Panchal
In your client script you need to save the form and it should be return true instead of value and remove the line of GlobalDialogWindow, it is destroying the page.
Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2023 02:32 AM
Hello @Hardik Panchal
In your client script you need to save the form and it should be return true instead of value and remove the line of GlobalDialogWindow, it is destroying the page.
Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2023 02:44 AM
Hey Samaksh,
Thanks for your reply.
I made the following change to the code, now the main form is saving but I'm still getting this alert as shown in the below 2nd screenshot.
I want to eliminate the alert and save both the dialog form as well as the main form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2023 03:02 AM
Hello @Hardik Panchal
Remove that line
reloadWindow(self);
Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2023 03:10 AM
It worked Samaksh.
Thank u so much for your help.