- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2017 05:31 PM
Hey there,
Just a quick question - I have a catalog client script that I would like to use over multiple catalog items. They reference variables in a variable set, so the script will be the same across the three catalog items. In the client script, you need to reference a catalog item.
Is it possible to apply to multiple catalog items?
Cheers,
Brendan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2017 05:36 PM
Hi Brendan,
Its possible if your variables are within a variable set. That way you can associate your Catalog Client Script to a variable set.
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2017 05:36 PM
Hi Brendan,
Its possible if your variables are within a variable set. That way you can associate your Catalog Client Script to a variable set.
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2017 05:42 PM
Ah ha, you are correct Bernie, was staring right in front of me.
I have another dilemma - the variable name that I am basing the script off actually is in a different variable set than the fields that I want to reference it.
So Variable Name is in variable set A
The variables that are affected by the client script are in variable set B.
Can this be done?
Cheers,
Brendan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2017 05:49 PM
Great question Brendan!
Lets first think about the intent of variable sets and client script in association to a variable set...
The key reason why this is possible is for a design reason. It allows you to encapsulate common logic the one you can later reuse in other catalogs.
Having said that... would you agree with me that affecting a variable from another variable set sounds odd from a design perspective?
Perhaps you need to rethink how your variable sets are defined today or rethink the logic you're employing
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2017 05:50 PM
By the way... feel free to share here the specifics of the variables you're dealing with. I'm sure the community can provide you great inputs. We're here to help
Thanks,
Berny