on 02-14-2006 4:10 PM
Hi forum:
I´m creating radiobuttons dinamically, i saw the next reference, and it´s good but that´s examples suppose that i have a simple type charged with some data enumerated, and also my data are dinamyc beacuse i get it from a XML file.
http://help.sap.com/saphelp_erp2005/helpdata/en/07/73a840bd6d3c13e10000000a155106/frameset.htm
I mean, when i have to create a node dinamically i have to describe de datatype, but this data type for a RadiobuttonGroupByKey in the examples comes from a simple type previously filled, and my data is dinamically...
Some body can help me, please?
Thnks
Josue Cruz
Message was edited by: Josue Cruz
Josue,
1. For radio buttons & radion buttons group by key:
final IWDAttributeInfo attr = <node>.getNodeInfo().getAttribute("<attr-name>");
final ISimpleType type = attr.getSimpleType();
final ISimpleValueServices svSrv = type.getSVServices();
final ISimpleValueSet svSet = svSrv.getValues();
svSet.put("ke1", "val1");
svSet.put("ke2", "val2");
svSet.put("ke3", "val3");
2. Why not to simply use RadioButtonGroupByIndex? This way you may skip all dynamic UI programming and simply populate necessary node with your data.
Valery Silaev
EPAM Systems
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Josue,
You can use a RadiobutonGroupByKey nonetheless and dynamically specify a value set for the node attribute in question.
Best regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
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.