on 04-28-2022 8:53 PM
I'm referencing Change Value Set of a Combo Box but the script is getting error "Cannot read properties of null (reading 'removeAll'). May I know what I am doing wrong here.
The objective is to only list Bonded, and Non-Bonded in the drop down list for Bond Status field (This field is from Sales Document Header - Additional Data A - Additional Data for Pricing or VBKD-KDKG2). Here's the script:
var oCombo = session.findById("wnd[0]/usr/tabsTAXI_TABSTRIP_HEAD/tabpT\\13/ssubSUBSCREEN_BODY:SAPMV45A:4309/cmbVBKD-KDKG2");
var oEntries = oCombo.entries;
oEntries.removeAll();
var oEntry1 = oEntries.createComboBoxEntry("BN", "Bonded");
oEntries.add(oEntry1);
var oEntry2 = oEntries.createComboBoxEntry("NB", "Non-Bonded");
oEntries.add(oEntry2);
oCombo.entries = oEntries;
System Status
Only 2 notes which we have not implemented.
Appreciate any help/guidance I can get.
Thanks,
Elaine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.