cancel
Showing results for 
Search instead for 
Did you mean: 

reset the context node

Former Member
0 Kudos

to describe my situation

i want to reset my context node that have value to blank

Context node

PRNode -share across several views.

-prno

-material

-material_grp

-short_text

-quantity

i use this statement ...cannot reset........

wdContext.getContext().reset(true);

main.view

input pr no : xxxxxxxxx

[show detail]

detail view

show the table

material | material group | short text | quantity |checkbox

xxx xxx xx xx approve

xxx xxx xx xx reject

[back] [approve] [reject]

first time when i click the show detail it shows the content...after that when i want to navigate back to main and enter different pr no...

it still showing the previous detail....

Accepted Solutions (0)

Answers (3)

Answers (3)

monalisa_biswal
Contributor
0 Kudos

Check whether u have invalidated output node or not after execute statement.

Former Member
0 Kudos

hi,

You are using view A nad navigating to view B.

created outbound plug for A and inbound plug t o B. in View A -->wdFire(inboundplugfromA) method {

wdContext.getContext().reset(true);

}

that will clear the context.

regards,

Former Member
0 Kudos

Hi Yzme,

Try this method:

public void EmptyNode( com.sap.tc.webdynpro.progmodel.api.IWDNode node )

{

//@@begin EmptyNode()

while (!node.isEmpty())

node.removeElement(node.getElementAt(0));

//@@end

}

to reset your node.

Regards,

Gianluca Barile