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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2022 09:31 AM
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 !
- 1,553 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2022 11:55 PM
Hello
Yes, hardcoding works.
Like :
// Add item with Sysid of the catalog item
guide.add('84dabf301bd1689097ce31e5464bcbc2');
But this is not my goal unfortunately.
Maybe
Thanks for your return.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2022 10:23 AM
Hi
can you try hardcoding SysID of ID in guide.add and see if its working.
Thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2022 06:59 AM
Hey Jeff,
The screenshot that you have added is not visible, I can only see the icon.
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2022 07:15 AM
Hello
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2022 07:24 AM
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
Aman Kumar