on 2022 Sep 01 12:54 AM
Dear Community,
Last month I implement two dependent dropdpwnlist according to this article:
Dropdown scripts using onSelect event return incorrect key | SAP Community
Now it seems that newKey is not working. Any information about this? How can i solve this issue?
Thanks in advance
Thank you very much Brian and Cristin! What I have realized is that you are right, there´s nothing wrong with your scripts but when I make some tab merging and modifications in the miro app, the newKey seems that it does´t work proporly.
I´ll keep cheking!
Thanks very much for your help!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Silvia.
I'm using newKey to switch flavors (onSelect event) based on a dropdown list I defined and it's working. This is my code (I changed the "changeFlavor" to an alert for demo purposes):
// ChangeFlavor
var flavorKey = session.findById("wnd[0]/usr/cmbPersonas_166142884042230").key;
var flavorKey = newKey;
//session.utils.changeFlavor(flavorKey);
session.utils.alert(flavorKey);
Kindly,
Cristin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Silvia,
I have not tried the "newKey" before. I currently put my script in the "onAfterRefresh" event.
zDropdownBoxKey = session.findById("wnd[0]/usr/cmbPersonas_157003793955797").key;
zDropdownBoxText = session.findById("wnd[0]/usr/cmbPersonas_157003793955797").text;
This will contain the currently selected key and text.
Hope this helps.
Thanks,
Brian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.