cancel
Showing results for 
Search instead for 
Did you mean: 

How to populate a context node on the basis of the values in another node?

manish_sethi
Participant
0 Kudos

Hi,

I have a Webdynpro application which has to run on Portal as well as BlackBerry.

In this application I have a scenario where I need to have a sub node inside a node but as Blackberry doesn't support sub nodes with Singleton value false, I have to use another node for storing the values which earlier wre present in the sub node.

The actual scenario here is that we have two tables A & B. For each row of table A we have a no of rows in table B. This can be easily accomplished for Web Browser but we need to do this for Blackberry.

My question here is that how can i populate the data in table B at runtime using the concept of onLeadSelect. I am not able to fully undersans this concept.

According to my approach I have two a while loop which generates data for table A and inside this while loop I have another while which generates data for table B corresponding to each iteration of the outer while loop. I create the node elements for the rows of the table B and store them in a list and then store this list in a HashMap corresponding to a key formed by combining the values of all the elements of the row of table A.

Now I am not able to understand how can I display this data into table on user slecting a particular row.

Please guide ASAP.

It wille quite useful if you can provide me with some code snippets for the same.

Thanks in advance!

Manish

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

To populate a child node you can use supply functions.

Regards

Ayyapparaj

ReenaWadhwa
Advisor
Advisor
0 Kudos

Hi Manish,

In WebDynpro u can use the onLeadSelect event of table A and do all the processing in that method.Like u can use this method to fill ur context node,which will be the source node for table B. So this way u need not to use any hash map.Fill the source node of table B with data corresponding to ur selected data of table A.

I hope this solution wud help u in solving ur problem.

Reena

manish_sethi
Participant
0 Kudos

Hi Reena,

Thanks for your reply!

I got your point but it will be really helpful if you can provide some code snippets or documents related to this scenario and the advanced features of WebDynpro especially the onLeadSelect and the Supplu functions.

Manish

Former Member
0 Kudos

What does that mean "as Blackberry doesn't support sub nodes with Singleton value false"?

Armin