on 04-05-2007 2:31 PM
Hello all,
i want to show different views in my WDA as per the parameter value passed to url of WD. please let me know step-by-step to achieve the same.
for eg, if value = 'Material', show MAT_VIEW
if value = 'Equipment', show EQUIP_VIEW etc...
Regards,
Chandra
Thanks all for the help, i had solved the problem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you should embed your views in viewcontainers (the alternatives in the same one)
and give each of them to an inbound plug, mae an outboundplug for each one too
and bind these to the different inbound plugs when you then enter your application
you can eg put a case structure in it and for each possible value of a parameter
you can fire the outboundplug/inboundplug combination.
WDT_QUIZ is a good example for it
grtz
Koen
Message was edited by:
Koen Labie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Koen,
i have taken "view_call" as parameter (string type) in the WINDOW's HANDELDEFAULT method.
now dependong on value passed i want to show different view embeded in single window.
in the HANDELDEFAULT method, depending on the value of 'view_call' i am using fire method to call outbound plug. and same plug name i am taking in view as inbound.
but i am getting short dump as 'Assert condition violated'.
please let me know if i am going in correct way or not?
regards,
Chandra
Hi,
You should do it like this: if you have only one view at the time:
define for each view an outboundplug in your main view, in there you have a
viewcontainer. embed all your views in the container (in the window pane)
in each of the detail views define an inboundplug that you bind to the outboundplug
grtz
Koen
Hi Chandrashekhar ,
What you have to do is embed both views to your window and make empty view as default view and to a default plug for inbound plug for window add the parameter . Now on handledefault you check the parameter and based on it fire one of the two different outbound plug. Of course you need to creat inbound plugs for view and create navigational links in window structure,
This will work 100%.
Thanks
Anuj
Hello All,
any view on above question. i really got stuck...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.