cancel
Showing results for 
Search instead for 
Did you mean: 

How to reset application

Former Member
0 Kudos

As a new comer to WebDynpro technology,

I created an application which accepts user input and write them into a R/3 backend using RFC calls. After successfully writing the values to the backend, I want to clear all the input fields which are bound to RFC models. How can I do that?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If the input fields are bound to attribute of a node

use

You can use wdContext.node<name>.invalidate();

If you want to clear the whole context use

wdContext.invalidate();

If u want to clear only a few attribtes in a particular node you have manually set the values to "null" or some appropriate value.

Former Member
0 Kudos

Thanks for the reply.

I think it has solved my problem.

I created a method in component controller to do

wdContext.invalidate();
wdDoInit();

, and call it from the view controller.

Is this the common way to do it?

Former Member
0 Kudos

Hi,

You should not call wdDoInit like this .Its a life cycle method. So if you want to perform an operation every time.. create a seperate method and call that instead of writing the code in wdDoInit and doing it.

Regards

Bharathwaj

Answers (0)