Asynchronous GlideAjax call causing issues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2025 09:09 AM
Hi Community,
As this is asynchronus call, the array value is getting calculated after JSON object and JSONArray initiation which causes array value to be empty and hence 'monthly_fixed_price_to_be_invoiced' is always empty. I thought to use getXMLWait() but that is depreciated in Xanadu version. Is there any alternative to achieve this so that function test should execute first and then code below calling that function should execute?
Please see the below code:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2025 10:19 AM - edited 05-31-2025 12:09 PM
getXMLWait() is still documented: GlideAjaxAPI getXMLWait yokohama. Is 64 OOB client scripts still using that in my yokohama PDI. query: sys_class_name=sys_script_client^scriptLIKEgetXMLWait(
So I think it is still safe to use. Maybe the script include method 'getFixPrice' needs some work to speed it up.