on 04-28-2017 2:02 PM
Hi Experts,
I would like to display a subset of codelist values in a UI-table, so that a user can select one or more values via checkbox. About like this:
Here, it is the standard data type DistributionChannelCode. I would like to have the same for the standard "Code"-data type PartyRoleCode.
For the example above, I derived the distinct values via ABSL from specific values assigned to a set of Products. But this seems unneccessary as the codelist is already "somehow" attached to the data type: You can display the list on the UI by binding the data field with that "Code"-data type to a dropdown:
My question:
How can I access the static value-list of a ByD-standard "Code"-Data Type in ABSL?
>> Like, for example, PartyRoleCode.GetValueList()
Thanks,
Pablo
Hi pablo.menth ,
If its a std. data type, you can read its list in the ABSL as follows.
This is based on an answer provided by Saurabh on this question . Hope this helps.
import ABSL;
import AP.PlatinumEngineering;
import AP.Common.GDT;
var DataType = "DivisionCode";
var AllowedCodes = Codelist.Get(DataType,"http://sap.com/xi/AP/Common/GDT");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any updates here?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Pablo,
This is currently not possible. 😞
Sorry,
. Horst
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Horst.
I think this functionality would be very useful in many contexts.
Could you please check if this could be implemented by SAP?
Best,
Pablo
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.