cancel
Showing results for 
Search instead for 
Did you mean: 

show different views depending on value passed to URL of WD application

ChandraMahajan
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

ChandraMahajan
Active Contributor
0 Kudos

Thanks all for the help, i had solved the problem

Former Member
0 Kudos

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

ChandraMahajan
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Chadrashekhar

i did the same way its working for me.

r u defining ur parameter 'view_call' in your applications parameter tab.

and pass the parameter in the URL too.

Best Regards

Naresh

former_member196517
Contributor
0 Kudos

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

ChandraMahajan
Active Contributor
0 Kudos

Hello All,

any view on above question. i really got stuck...