cancel
Showing results for 
Search instead for 
Did you mean: 

Generating Dynamic UI from XML structure

Former Member
0 Kudos

Hi All,

I have a requirement in which I need to select an entry in the first view and based on this, the second view would come come. But there are 30 different values that can be selected and each of them will have a different set of UI elements in the second screen. So if I go for normal static UI creation, then I need to create 30 odd views which is something we do not want.

The second option is to dynamically generate the UI elements in wdDoModify() method. But for 30 different conditions to check all the time will lead to performance issue.

So we are thinking if there is a way for webdynpro to dynamically read an XML structure that defines attributes and generates a layout for us dynamically.

Please provide your inputs on this. Also kindly suggest any other better ways for the solution.

Thanks and Regards,

Sayan Ghosh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I don't think that checking 30 different cases (which means 15 in average, maybe you can also arrange the checks in order of probability) leads to a performance problem.

Armin

Former Member
0 Kudos

Hello!

I think you should go with second one. But I don't know any "ready to use" solutions, so you have to

- Create your own XML structure, something like

<section type="yourCondition">
<input name="somePropertyName" type="text"/>
<!-- and so on -->
</section>

- Parse this XML into Java Model (on application startup for example)

- On user selection choose requred UI Model from memory and pass it to view

- In wdDoModify() build UI(elements, context attributes, mappings etc.) according to this model

It will be rather complicated for huge UI, but possible.

Thanks, Mikhail