cancel
Showing results for 
Search instead for 
Did you mean: 

back button is not working

Former Member
0 Kudos

Hi Experts,

I developed one application using webdynpro application..

My first screen is date picker for previous month and current month...

second screen is showing some results depends upon the choosing the date..

when clicking the submit button in the first screen..the second screen should be displayed...the second screen have a back button..i click the back button to display the first screen .

But problem is after clicking the back button.....then choose the different date the same(first result) result will be showing...

result cannot be changed...

please anyone help me,

Thanks

Manivannan.P

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi Mani,

U have to clear the previous contents in the result view.

Use invalidate() function to clear the above contents....

write this query in the function of back button..

URs Gs

Former Member
0 Kudos

Hi

where will give the invalidate function

Former Member
0 Kudos

Hi,

First u map first and second view to component controller

Just u go to the SecondView, in that u create back button and also create action for that.....then go to implementation click onActionBack and write inside that as

onActionBack()

{

wdcontext.<ur Node Name>.invalidate();

wdthis.<ur outbound fireplug name>();

}

Former Member
0 Kudos

u have to give invalidate function in the action button...

like

onActionButton()

{

wdcontext.node.invalidate();

}

or else

declare a function name clearcontent(); in init method;

then

define tht function as follows:

Eg:

wdContext.nodeInputs().currentInputsElement().setName(null);

It will works;;

Urs GS...

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi

I got the same problem, & Solved it by using this code:

In Controller:

<u><i><b>Step1:</b></i></u>

WdDoInit()

{

__Arch__Arm_Project_Search_Input search = new __Arch__Arm_Project_Search_Input();

wdContext.node__Arch__Arm_Project_Search_Input().bind(search);

}

<u><i><b>Step 2:</b></i></u>Create a method in Custom Controller

public void DoSearch( )

{

//@@begin DoSearch()

try

{

wdContext.current__Arch__Arm_Project_Search_InputElement().modelObject().execute();

wdContext.nodeOutput().invalidate();

} catch(WDDynamicRFCExecuteException ex) {

wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(ex.toString());

ex.printStackTrace();

}

<u><i><b>Step 3:</b></i></u>

Create another Method:

public void PrepareSearch( )

{

//@@begin PrepareSearch()

__Arch__Arm_Project_Search_Input search = new __Arch__Arm_Project_Search_Input();

wdContext.node__Arch__Arm_Project_Search_Input().bind(search);

//@@end

}

<u><i><b>Step4:</b></i></u>

Call this method in Back Button.

wdThis.WdGetArchController().PrepareSearch();

it will clear all your previous data and shows fresh data.

This will solve your Problem.

Regards

Ravi

Former Member
0 Kudos

Hi all,

I got a solution

Regards,

P.Manivannan

Former Member
0 Kudos

Hi,

Once check the mapping between the first view ,second view and the component controller.Check if the mapping is done properly or not.

Regards,

SURYA

Former Member
0 Kudos

Hi,

this u give this code,all the previous element be deleted

onActionButton();

wdcontext.<ur node name>.invalidate();

wdThis.WDfireplugtofirstpage();

former_member186016
Active Contributor
0 Kudos

The context nodes and attributes binded to UI elements in your second page is not getting populated correctly.

Ensure that the context nodes and attributes binded to UI elements in the result view is refreshed based upon entries from first page.

Create supply methods for context nodes binded on seecond page.

Invalidate the nodes on navigation to the second page.

Regards,

Ashwani Kr Sharma