Order guide variable value in reference qualifier item under it

BharathChintala
Mega Sage

@Allen Andreas @Ankur Bawiskar @Basheer @Chuck Tomasi @SatyakiBose @Community Alums 

 

Hi All,

 

I came across a scenario which I never seen and not sure how to achieve this. If you have any idea please share you thoughts

 

I have a order guide with 2 variables requested for reference to user table and other single line text variable.

I have 5 rule bases as 5 cat items

 

in cat item 1 I have multiple variables in that one is Location variable

 

Now based on user selected in order guide requested for I want to filter location field records.

 

Any thoughts how I can get order guide requested_for to location reference qualifier?

 

I have script include ready which is working just need to pass selected user.

 

I have tried javascript: new userDetailsUtil().getDetails(current.variable.requested_for);

 

If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala
3 ACCEPTED SOLUTIONS

Allen Andreas
Administrator
Administrator

Hi,

Would you have a user reference field on the catalog item (not the guide)? If so, you'd pass the value, via the ruleset to that catalog item taking the value from the order guide. From there, you'd have the user and can then look at their location, etc.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

-O-
Kilo Patron
Kilo Patron

As far as I know, the only way you can do this is by resorting to variable cascading.

This means the same variables will be defined on both the order guide and the catalog items included.

The values entered on the order guide will be copied to the variables in each Catalog Item.

You can hide or show the variables to which the copying is done on the Catalog Items as needed using UI Policies.

Of course than on each Catalog Item you can build the reference qualifier as usual using only local variables.

View solution in original post

@-O-  @Allen Andreas  thanks for those ideas with your ideas I have created new variable in cat item and using item variable assignments in rule base. I have passed the value to item from order guide.

BharathChintala_0-1676604728299.png

 

Thank you once again for that idea.

 

My thinking was onchange client script on order guide and call script include and trigger event

 

in item reference qualifier call script include check event parameter to pull id. But with your idea I am able achieve this with extra variable.

If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala

View solution in original post

6 REPLIES 6

BharathChintala
Mega Sage

@-O- 

@jaheerhattiwale  

@Tony Chatfield1 

@Shubham_Shinde 

@Mike_R 

@Sebas Di Loreto 

@Laszlo Balla 

@Saurabh Gupta 

If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala

Allen Andreas
Administrator
Administrator

Hi,

Would you have a user reference field on the catalog item (not the guide)? If so, you'd pass the value, via the ruleset to that catalog item taking the value from the order guide. From there, you'd have the user and can then look at their location, etc.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

@-O-  @Allen Andreas  thanks for those ideas with your ideas I have created new variable in cat item and using item variable assignments in rule base. I have passed the value to item from order guide.

BharathChintala_0-1676604728299.png

 

Thank you once again for that idea.

 

My thinking was onchange client script on order guide and call script include and trigger event

 

in item reference qualifier call script include check event parameter to pull id. But with your idea I am able achieve this with extra variable.

If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala

Hi,

That's great!

 

Just to cover this for yourself and future readers, for the below response by -O-, you don't have to use variable cascading to make that work (you aren't limited to that). Variable cascading is merely an extra tool/feature that you can use to automatically map order guide variables to same named catalog item variables. What I mentioned above, doesn't require you to enable/use cascading and was more so positioned at using the setting in the rule set for that catalog item to point variable a (from order guide) to variable b (on catalog item).

Take care!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!