Skip to Content

application behave based on portal role

Hello Expert

How to design a app which Behave according to different role i.e

1.user= admin :-Then it display all content of application

2. user=x :- then it hide cetrtain functionality.

3. user =z :-then Contains should very specific to 'z' only.

[Reward Points even in Participating]

Thanks and Best regards

```Satish````

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 20, 2007 at 07:22 PM

    Hi,

    Actually in VC, there is something called "User Data" connector (look at the "Compose" task pane).This element can be used to retrieve all sorts of user specific data - anything provided by the portal runtime. This data can then be used in dynamic expressions.

    Please check the following:

    https://wiki.sdn.sap.com/wiki/display/VC/Usingrolestoinfluenceapplication

    https://wiki.sdn.sap.com/wiki/display/VC/Passingvaluesvia+URL

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ad182ac7-0a01-0010-4fb8-8a4d217b19c1

    Hope this helps.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 21, 2007 at 08:26 AM

    Hi Satish,

    Nilay is right. You can get some data by using the user data connector. You could make the visibility of an element depending on USER@uniquename for example.

    However, if you want to make it depending on the roles, you have to use a webservice to read the portal roles of a user. There's a blog about this webservice somewhere one SDN.

    Best Regards,

    Benni

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 20, 2007 at 01:58 PM

    Hi,

    Can u explain ur problem, i didnt get u. You can assign appropriate role for a perticular role.

    Senthil K.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Satish Jhariya

      Hi,

      You can develop ur appn based on 6 components and create 6 iviews based on ur components. Now u can assign iview to page, create role like role1 having all forms, role2 having 4 forms... and assign to appropriate user.

      Senthil k.

  • avatar image
    Former Member
    Jun 21, 2007 at 08:52 AM

    Hi Satish,

    do you mean portal roles or the user name?

    If you mean the user name then use the user data connector. Otherwise you have to use a webservice which returns all portal roles of your user. I ave written such a webservice, which I will publish with my next weblog, but at the moment I haven't the time for publishing it.

    Best Regards,

    Marcel

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 21, 2007 at 10:34 AM

    Hi

    I use user data container,and my problum is solved

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Satish,

      I am facing the same problem as in I need to get the user roles to make a button visible or hidden....

      But I do not see the role information the user data connector?...

      Please can you brief me on how you solved this problem?...

      Requesting you to get back at the earliest.

      Thanks in advance,

      Vaishali.