getAnswer coming back as null from getXMLWait
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2017 08:29 AM
Hey guys,
I am trying this synchronous call example (picture attached below) on a catalog client onSubmission script, however the answer comes back as null. Am I missing something here? I want to use a synchronous call on my forms on the portal, however, I can't seem to get them to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2017 08:40 AM
Hi Raes,
- When creating the script include, you must select the Client callable check box.
Did you do it?
Hope this helps. Mark the answer as correct/helpful based on impact.
Thanks
Antin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2017 08:48 AM
Hey Antin,
I did. On further reading it seems that getXMLWait does not work on the portal. Do you know of any alternatives or workarounds?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2017 09:11 AM
Oh. I didn't know you were on Portal. Then, you might have to make a HTTP call to the REST API from the Client controller script. You may call the Table API if it has all the info you want, or you might need to create 'Scripted Web Service' and call.
Hope this helps. Mark the answer as correct/helpful based on impact.
Thanks
Antin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2017 09:31 AM