on 12-18-2006 9:32 AM
Hello, I'm starting to use Webdynpro for Java and I need some help in the following situation please:
I need that a view is called by 2 another differens views, and when this windows is called, pushing a single button like 'Back', the navigation goes to a window or another.
E.g:
View ContactPerson ---> ContactDetails
View Organisation ---> ContactDetails
How can I know pushing a back button in ContactDetails, the View that I need to go? ContactPerson or Organisation.
Thanks in advance.
1.Create valueAttribute "sourceView" of type String.
2. Map the above valueattribute to all the views ContactPerson ,Organisation and
ContactDetails.
3. In COntactperson view while firing the plug to contactDetails set the valueattribute.
E ex: wdContext.currentcontextElement().setSourceView("ContactPerson");
4.Similarly in Organisation also
E ex: wdContext.currentcontextElement().setSourceView("Organisation");
5. In CintactDetails "OnBack" button click check the value
if (wdContext.currentcontextElement().getSourceView().equals("ContactPerson")
wdThis.wdfirePlugtoContactPerson();
else
wdThis.wdfiretoOrag();
Regards, ANilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you be a bit more specific please?
Thanks for your reply.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Create a common contextattribute and set the value.
Depending upon the value fire the required outbound plug.
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
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.