on 06-12-2007 10:37 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>();
}
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...
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
this u give this code,all the previous element be deleted
onActionButton();
wdcontext.<ur node name>.invalidate();
wdThis.WDfireplugtofirstpage();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.