How do you run the client side AND the server side in UI Action page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2024 04:58 PM
Hi all,
I’m currently working on a UI Action where I need to execute both server-side and client-side logic when the user submits a record. Specifically on the Client side, I want to make the record "read-only" once it has been selected and submitted from the table.
However, I’m encountering an issue with the 'Client = true' configuration. It’s throwing errors, and I’m unsure if there’s something I need to adjust in the OnClick field or the Workspace Client Script.
I tried renaming the field to match the client script and the OnClick field, but that led to additional issues. Could anyone please advise on the best approach to resolve this and ensure both server-side and client-side code run correctly?
Thank you for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2024 03:04 PM - edited 12-10-2024 03:13 PM
I cannot replicate this on my PDI. The form behaves as expected with the UI Action.
Edit:
Something just clicked into place. You have List banner button and List bottom button selected and the name of your function is setRowReadOnly. Are you trying to use g_form in List view?
If so, this is not something that can be done. When you manipulate a record in List View, there's very little UI to look at. UI Policies and Client Scripts also do not work in List View.
The workaround would be to create Data Policies or Security Rules to make the record Read Only.
Is this what you are trying to do?