SOW Workspace – Related List Declarative Action Client Script Not Executing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
Hi Everyone,
I am trying to create a Related List Action in Service Operations Workspace (SOW) using a Declarative Action / Related List Action.
My requirement is very simple for now: I just want to create a Related List button and execute a client-side script when the button is clicked. As a first step, I am trying to display a simple alert message to confirm that the client script is being executed.
What I have done
- Created a Related List Action / Declarative Action.
- Selected the appropriate table used by the related list.
- Set Implemented As = Client Script.
- Added the action to the SOW related list.
- The button is successfully visible in the SOW related list.
However, when I click the button, nothing happens.
For testing, I tried a simple script such as:
function onClick() {
alert("Hello");
}But the alert is not displayed.
I have also tried using:
function onClick(g_form) {
alert("Hello");
}but I am still not getting any response when clicking the button.
My question
What is the correct way to configure a Related List Declarative Action in Service Operations Workspace (SOW) so that a Client Script executes when the related-list button is clicked?
Could someone please provide a minimal working example where clicking the Related List Action displays:
alert("Hello");I would also like to understand:
- Should Implemented As be set to Client Script?
- Is there any additional configuration required for the Client Script?
- Do I need an Action Payload Definition when using Client Script?
- What should the correct client script function/signature be?
- Is there any additional configuration required specifically for SOW?
- If Client Script is not the correct approach, what is the recommended way to execute client-side logic from a Related List Action in SOW?
Once I can get a simple alert() working, my next step will be to replace it with my actual client-side logic.
Any step-by-step guidance or a minimal working configuration would be greatly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
australia version
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
i want a declarative action implemented as client script not the simple client script in ui action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
@NeethuB ,
Yes , i have tried with an declarative action implemented as client script only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
can you share me the steps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
@NeethuB ,
1.From the all navigator, search for Related List Actions and open that module.
2.Click on create new, select the table name and do the following as mentioned in the attached image
3.Finally, on the related list add the action configuration as SOW Actions
If you have followed the same process, still you didn't get the alert message share the configurations what you have done so far.
Thanks,
Dinesh