The above works fine but is there a better way to assign a value to the variable selectedCategory ?
The list of options is quite large (reduced here for brevity) and therefore somewhat cumbersome to manage on an ongoing basis if there are changes to the possible call category options.
This is a perfect contender for a pattern I use a lot: I create a "proxy" XML variable with the values needed, create an XPath-navigable variable from it (using the node-set() function) and then select into that variable:
Retrieve variable based on QueryString variable
Hi there
I have the following code:
The above works fine but is there a better way to assign a value to the variable selectedCategory ?
The list of options is quite large (reduced here for brevity) and therefore somewhat cumbersome to manage on an ongoing basis if there are changes to the possible call category options.
I look forward to peoples responses.
Thanks
Nigel
Hi Nigel,
This is a perfect contender for a pattern I use a lot: I create a "proxy" XML variable with the values needed, create an XPath-navigable variable from it (using the node-set() function) and then select into that variable:
/Chriztian
Hi Chriztian
That is wicked - thank you for taking the time to detail this.
Upward and onward...
Kind regards
Nigel
is working on a reply...