cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing views of same application through different roles

Former Member
0 Kudos

Hi All,

I have a WD application with 3 views. Out of them, the default view will be calling the 2nd view when some action occurs.

But, the 3rd view should only display some messages(coming from the 1st view) and has to appear in portal under a different Role. Is this possible?

How can i create a separate iview and assign it to a separate role in Portal for the 3rd view?

Any help will be truly appreciated.

Thanks,

Becky.

Accepted Solutions (0)

Answers (1)

Answers (1)

srinivas_sistu
Active Contributor
0 Kudos

Hi,

di dyou try with interface views?

like create a DC1 with the View3 and another DC2 with View1 and View2. and make the View3 in DC1 available for DC2 so that you can use the same view in both the DCs and now create two iViews based on these DCs and assign them to roles as required.

Check this link

http://help.sap.com/saphelp_nw04/helpdata/en/0d/b11640dc88e769e10000000a155106/frameset.htm

Regards,

SrinivaS

Former Member
0 Kudos

Hi Srinivas,

I have not yet tried that. Can you give me little more idea about how to do it?

Thanks,

Becky.

Former Member
0 Kudos

Hi Becky,

You can try this,

Create two iViews for two roles. While creating iviews give parameters fromRole=role1 in first iview and fromRole =role2 in second iview.

Now in your code for view1 in wdDOInit() (or in appropriate method)

String role_name = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("fromRole");

if(role_name.equalsIgnoreCase("role1"))

{

// other required code

....

FirePlug to view2

} else if(role_name.equalsIgnoreCase("role2"))

{

//other required code..

FirePlug to view3

}

Hope this helps...

- Dileep