on 08-04-2011 9:51 AM
Dear Experts,
My project has many components and there are reused and navigation together. I have Back and Forward button in Main Component for working history of user. I don't know how to implement it . Please give me ideas.
Thanks,
They must be navigation outbound plug and inbound plug...
have look at below :
http://help.sap.com/saphelp_sm40/helpdata/en/42/bb8c6cc7131d67e10000000a1553f6/content.htm
http://help.sap.com/saphelp_dm40/helpdata/en/c2/1779947803e046a89c5f0d4b14f43c/content.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think you can save the history in a list and find the target view name from this history list when user clicks back and forward button. Use the found view name to determine which navigation target should fire.
Regards,
Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear all,
Thanks for your help.
I got a lot of ideas from all you, as Andy Zhao opinion i need a list for saving history and find target view name from it. In project it has many components( more 10) and each component has many action, but Back and Forward button is only one in Main comp. How the best way to manage all action ? I mean when user clicks a action in another component which is not reused direct from Main comp, how to say action to history list at Main comp.
Thanks.
Hiii vineet vikram and everyone ,
My components are separated as MainComp -> CompA -> SubCompA... and some thing like that (SubCompA is not reused directly by MainComp) . I have only back button in MainComp. I am standing at a view in SubCompA and want to come back a view in CompA or MainComp when back button is clicked. How to get it ?
Thanks.
Hi Soledad
The navigation from one view to the next is performed using an outbound and an inbound plug which are connected by a navigation link. You can thus define the sequence in which the views of a Web Dynpro application are called. The Navigation Modeler, a graphical Web Dynpro tool.
1.For an Inbound plug, a method called onPlug<plug_name> is generated by default. This method is executed when the inbound plug is called using the outbound plug of the preceding view and a navigation link. Instead of this method, you can also call an existing method or have no event handling performed.
2.For an Outbound plug, a method called wdFirePlug<plug_name> is generated by default. You can call this method in the implementation at exactly the place where you want to navigate to the next view
For Example you have 2 Views in WDJ Application
1st View having Forward Button Click on Forward Button 1st View Moves to 2nd View. and 2nd View Having Back Button. Click on Back Button 2nd View Moves to 1st View.
Go to first View. Create on Button for Forward Button. Under Forward Button u can write this code
public void onActionforward(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionBack(ServerEvent)
wdThis.wdFirePlugTo2ndView();
//@@end
}
Go to 2nd View. Create on Button for Back. Under Back Button u can write this code
public void onActionBack(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionBack(ServerEvent)
wdThis.wdFirePlugTo1stView();
//@@end
}
How to Develop the WDJ Application:
[ Creating Your First Web Dynpro Application|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f64e7a90-0201-0010-e0b4-ec1f849ecd4e]
[View Structure and Design and Navigation Between Views|http://help.sap.com/saphelp_smehp1/helpdata/en/42/930334a5051d6be10000000a1553f6/content.htm]
I hope this is help full for you,
Regards
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.