cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic programming user interface question...

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

http://www.NetWeaverTeam.com

Answers (1)

Answers (1)

thomas_szcs
Active Contributor
0 Kudos

Hi Josue,

You can use a RadiobutonGroupByKey nonetheless and dynamically specify a value set for the node attribute in question.

Best regards,

Thomas