- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2019 10:59 AM
Important note: I am able to submit the record producer (RP) in native with the mutli-row variable set (MRVS) with expected results. I have a RP that was working fine on the HR portal without the MRVS, but as soon as I added the MRVS when I click the submit button from the portal the submit button stays stuck on "Submitting" and never actually submits. The error I receive in my browser console says "(g_form) [NOACTION] Could not find UI Action: submit".
When I looked this up in the community I came across a thread that said they had to change the widget instance from these OOB widgets "SC Catalog Item Deprecated" to "SC Catalog Item" and it worked. I did this in my PDI and it works fine. When I did the same in the client's instance I received 3 distinct errors:
- Failing widget: 'SC Catalog Item Cloned' (this was my cloned SC Catalog Item widget)
- js_includes_sp.jsx?v=09-20-2018_1514&lp=Thu_Dec_20_07_39_08_PST_2018&c=27_389:67257 Server JavaScript error Cannot call property size in object com.glide.script.fencing.ScopedChoiceList@10347c6. It is not a function, it is "number".
- Line number 74 (this is in reference to the server script line 74 which ties into #2)
Line 74 of the server script for that widget is a part of this block of code:
71 var clGenerator = new GlideChoiceList();
72 var choiceListQuantity = clGenerator.getChoiceList("sc_cart_item", "quantity");
73 var choicelistQuantityData = [];
74 for (var i = 0; i < choiceListQuantity.size(); i++) {
75 var choice = choiceListQuantity.get(i);
76 if (!isNaN(choice.getValue()))
77 choicelistQuantityData.push({value : parseInt(choice.getValue()), label : choice.getLabel()});
78 }
Any help is greatly appreciated.
Solved! Go to Solution.
- Labels:
-
Employee Service Center
- 3,355 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2019 08:53 AM
SN answered back saying to use the widget "SC Catalog Item" which I already knew (and is posted in the original question). As I stated before it does work once you use that widget, but once you clone and customize it it no longer works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2019 12:58 PM
Hi
Clearly it is not able to understand the size() method inside the for loop.
Try to replace choiceListQuantity.size(); with choiceListQuantity.legth;
I am not able to find much documentation on GlideChoiceList() so may be you would like to check with hi , if it is not supported in the portal side anymore?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2019 02:11 PM
I have seen the happen after cloning the SC Catalog Item into a scoped application. Cloning it in the global scope works fine for me, although should be noted I am not using MRVS.