cancel
Showing results for 
Search instead for 
Did you mean: 

Clear context in Web Dynpro View

Former Member
0 Kudos

Hi,

I have created a table based on search crieteria.

The scenario is first time e.g user has given some selection, it will return 5 records. These 5 records will be displayed in the table.

Now, if user enter some selection, which does not return any record, in that case i'm displaying the error message.

For displaying the message, i'm using get_element_count method, if it's > 0, then it displays the table else display the error message. But the problem is even in second time, if there is no record return, get_element_count mehtod return 5 records of the first search.

How to clear the context, or how to proceed. I can change my condition for a temp solution, but pls let me know what is the best way to do this.

Thanks,

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

USE INVALIDATE() OF IF_WD_CONTEXT_NODE

Former Member
0 Kudos

Hi

you can use the method invalidate method of interface if_wd_context_node to clear all the elements of a node.

Regards

Naresh