How to use a 'reference' field as an item selector in an Order Guide ?

Jeff60
Kilo Expert

Hello everyone.

My question is about Script on an Order Guide.

I would like to use a variable (type: Reference) linked to the table "sc_cat_item" on the first step to add the item selected on the second step "Choose Options".

For example, as you can see on the screenshot, if i enter a catalog item on theses two variables, after i have click on NEXT, i can fill this two items on the step "Choose Options".

Thanks for your help !

22 REPLIES 22

Hello @Ammad Satti,

Yes, hardcoding works.

Like :

// Add item with Sysid of the catalog item
guide.add('84dabf301bd1689097ce31e5464bcbc2');

But this is not my goal unfortunately.

Maybe @Aman Kumar or @Ankur Bawiskar, you have an idea, solution ?

Thanks for your return.

Ammad Satti
Kilo Guru

Hi 

can you try hardcoding SysID of ID in guide.add and see if its working.

Thanks.

Aman Kumar S
Kilo Patron

Hey Jeff,

The screenshot that you have added is not visible, I can only see the icon.

Best Regards
Aman Kumar

Hello @Aman Kumar,

The screenshot below:

This is my "Order Guide" with a focus on my 2 reference type fields linked to the "sc_cat_item" table.
And a zoom on "Choose Options" to explain that I would like the items defined in these fields to then appear in the next step named "Choose Options".

Thanks for your help.

find_real_file.png

Thanks for sharing,

You are looking for cascade variables which would propagate info from one item to another in catalog item

To enable cascading, select the Cascade variables check box when creating the order guide. Then, create variables on the catalog items that match the names of the corresponding variables in the order guide

Best Regards
Aman Kumar