Is it possible to get the Portal user object type after logon? - Forum - Rollbase - Progress Community

Is it possible to get the Portal user object type after logon?

 Forum

Is it possible to get the Portal user object type after logon?

This question is not answered

Hi

I would like to reuse a HTML-report for 2 portal sites. Is there a way to get the object type of the loged in portal user?

Both users log in in a seperate portal and are of a different object type. 

Jurgen

All Replies
  • Hi Jurgen,

    Could you please elaborate your use case?

    Thanks

    Vasantha

  • Hi Vasantha

    I have 2 objects that have the ability to log on via a portal.

    When that user logs on, I would like to check what object they are.

    Agent VS Inspector

  • No one with a clue?

  • You can write an object script trigger with "On Login" timing option. This "On Login" is available for Portal user attribute enabled objects.

    Not sure it works for you. Just a thought.

    Thanks

    Srinivas

  • I will try this

    thx

  • I think Srivinas approach is correct, in addition:

    - Object script trigger 'On login'

    - In the object trigger use the API 'setSessionData'

    - Register the information need in the session data (i.e. "key" is objecttype and "value" = Agent)

    - Retrieve the sessionData at any time either via the server-side API or the client-side API

  • thx