
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2019 01:57 AM
Hey,
SO strange. I need help here!
I have a scoped variable set up as a lookup select box and link to a custom table that contains similar entries like sys_choice ... to be used for the lookup.
I'm using a ref qual condition that works fine when choosing valid entries from the table within a catalog item ... All fine!
No I need for certain cases (depending on a change mad in an other variable) to ADD an OPTION that is NOT part of the table I'm using for my choices.
SO a have a catalog client script on change, that sets the ADDITIONAL option (not matching the ref qualifier) in case required (and I also found an way to remove it again in case the other value changes again ... ).
All works fine ... just the first time the option is to be set, it disappears again! Looks link there would be some other setting redoing what was just done in the catalg client script. I added an alert at the end of the client script and when it pops up the correct value is still there. Just overwritten with blank afterwards.
I 5 times checked ALL client scripts ... none of them can be responsible for overwriting.
And anyhow .. when changing the variable causing it .. back and force it works .. allways ... its JUST the first time this does not work ... anyone with an idea? Look more like a bug to me ...
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2019 06:10 AM
Table?! We are still talking about variables ..
BUT I found it myself. Its the reference qualifier I'm using to define what kind of values are valid on the lookup select box. This technically is most probably nothing else than a client script. As the values initially are set via the change on an other variable - this will be "loaded" afterwards. So I need to remove the ref qualifyer there and buid in the logic manually within a client script.
Anyhow ! Thnx for your effort!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2019 02:17 AM
Try creating an onLoad Catalog Client Script adding the option.
Do check if there are any UI policies on the field as well
Hope this helps!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2019 04:29 AM
I did ;-(
They could only interfere in case i would use clear value ... and this is not the case.
But what i found out ... its obvious, that the default (none) is set after the correct value from the client script has been set and will override the value ;-( ... just I need to set the default value to none ...
In case I would not - it works. Just in all other cases the bank is not set ...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2019 11:48 PM
Still need your support on THIS!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2019 12:03 AM
Sorry, i missed the response.
So, the issue is when the page is loaded or refreshed, the additional option disappears?
What is desired is even on refreshing the page, the selected option is to be displayed and dropdown to have additional option as well? is this correct?
We might have to look at client script and the dictionary entry of the field. Do share these if you can