Global UI Scripts on Next Experience
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2023 01:58 PM
Good afternoon,
We're having some inconsistent results in the Next Experience UI with Client Scripts that call Global UI Scripts. Specifically, some out of the box client scripts on the alm_license table that call a Global script 'CalculateTotalCost' when the unit_cost or purchased_rights value changes. It appears that the Next Experience doesn't load the global client scripts? The global script is still present and active (/sys_ui_script.do?sys_id=e23df8f5e70b0300ab270558d2f6a93b) but when the onChange client script runs, we get an error like:
onChange script error: TypeError: Cannot read properties of undefined (reading 'getTotalcost')
with 'getTotalCost' a function of the global UI script.
Is there already a known error (and workaround) for global UI scripts? I see in the 'Considerations for activating Next Experience' that there's a note:
-------
If you're an existing customer who has made any of the following modifications to your instance, you might need assistance from the modification authors, or an established partner, to ensure a seamless activation:
Existing customer modifications.
- Customized your user interface. For example, if you created hard-coded styles or implemented UI scripts.
-------
But in this case, it's an out of the box UI script that appears to be the issue. Anyone familiar with that? Are we supposed to manually migrate these to Script Includes?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2023 02:15 PM
If it's an OOB script that has the issue I would open a support case.