Developing UI Scripts Compatible with Both UI16 and Workspace
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi, all.
I'd like to create a UI script that works in both UI16 and Workspace.
I understand that for UI16, "ScriptLoader.getScripts" is used to call UI scripts, and for Workspace, "g_ui_scripts.getUIScript" is used.
What is the best way to create a UI script that is compatible with both environments? Specifically, I'm looking for best practices on how to reuse the script's logic across both environments while ensuring it is called appropriately in each.
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @RyoyaFukuda
Check this: https://sn-nerd.com/2023/11/28/how-to-convert-ui-scripts-to-run-in-configurable-workspaces/
Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti