cancel
Showing results for 
Search instead for 
Did you mean: 

DropDownByIndex and Populating Table

Former Member
0 Kudos

Hi All,

I've an application in which on pressing enter a button, DropDown Box gets filled with Data from R/3 server. And on select of value from the DropDown Box another table gets populated.

On selecting the value from dropdown(for first time), the table gets populated. On reselecting fresh data gets populated under the older data. And this continues.

The problem i think is that node form which table getting populated is not removing the cache.

Can some help me out of this problem?

Thanks and Regards

Srikant

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Are you invalidating the table node before populating again?

wdContext.node<your node>.invalidate()

This will empty the contents of the node.

Regards

Olivier

Former Member
0 Kudos

Hi Olivier

I'm invalidating the table node before populating again.

Infact I'm doing the following in the Execute method of BAPI.

wdContext.node<Table_Output_Node>.invalidate();

wdContext.node<Table_Node>.current<Table_Node>element().modelObject().execute()

wdContext.node<Table_Output_Node>.invalidate();

I'm invalidating the node twice but it doesn't offer me a solution. Can there any other way to find a solution to the problem?

Thanks and Regards

Srikant

Yashpal
Active Contributor
0 Kudos

Hi,

after selecting from first drpdwlistbox are u again executing the RFC call.......if not then

1)fetch all the data required to be populated irrespective of any selection criteria.

2)bind the first dropdown which is used for selection criteria.

3)create value node elements for other dropdowns

4)write a method for select event of first dropdown

in which

1.first invalidate the valuemodel node

2.write a loop less then the model node element size for that dropdown.

3. check if it contains a element according to slection critereia

4.if it is then create a valuenodeelement for that dropdown

5.copy the modelnode element attributes which u want to the value node elemnt

6.and add it to the context.

do this procedure for all dropdowns

bind the dropdowns to the valuenodeelements

it will solve ur problem.

Regards,

yashpal

Message was edited by: Yashpal Gupta

Answers (0)