Adding a button to Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2023 10:25 AM
I am working within the Vulnerability Manager Workspace (VMW), trying to duplicate a custom UI Action button from the older UI structure. The SecOps forum, on a previous question, suggested I post to this forum for questions related to the workspace. Our UI Action opens a modal pop-up window, formats some JSON data into a scrollable breakout of data, and offers a Close (X) clickable way to remove the pop-up and get back to the form. It is using server-side scripting logic and things like GlideRecord. I attempted what i thought might be an easy addition to the VMW by creating a UX Form Action, pointed it to the UI Action, checked the workspace box on the UI Action, and copied the script down into the workspace script section on the UI Action. That obviously didn't work since the client-side scripting can't use some of the server-side methods, like GlideRecord. We have been attempting to get things to work and have managed to get everything working except an important piece of being able to grab the CI sys_id of the particular Vulnerable Item displayed on the details page of that workspace, to then pass into the JSON data structure to bring out its set of data on the pop-up. That is using g_form.
Should this work fine to add a button to the workspace, or should it have been built as a Declarative Action?
Any advice from anybody on what the steps are to take a working Classic UI server-side script duplicated as a form button in a workspace (something more specific cookbook styled list of actions to take that we have not yet been able to find in any documentation or searches for help?
The attached shows the UI Action button script and the Workspace settings made to it - again, the only thing not working for us at the moment using this process as our first attempt into Workspace configurations is that g_form at line 3 where we are not getting the correct Sys_ID to then go get the JSON data for the correct device.
Thanks, in advance, for any assistance and pointers anybody might be able to provide,
Joe