cancel
Showing results for 
Search instead for 
Did you mean: 

display Messaage in portal after user authenticated

Former Member
0 Kudos
284

Hi

We have an situation to display portal message to all the successful login users, The Portal message should not conatain any navigational links and should have buttons to agree or disagree, the agree shall take them to the default framework with all the business roles, For Which we are following the document

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40842f83-3a95-2c10-bc81-a60fcae11...

I have tried to edit the msathead.par file with html code provided, but not sure how and where to place, Should i delete the standard headeriview.jsp and create a new with only html code, or shall i keep the standard headeriview.jsp and copy the same in new headeriview with the html code in the last.

Is my understnading right? Can i acheieve my requirement through the document provided in the link?

Apprecitae time and help.

Regards,

Prabhakar

View Entire Topic
Former Member
0 Kudos

Prabhakar,

Check this!

Planning for an article too, would be helpful for others!

Thanks,

MS

Former Member
0 Kudos

Hi Naga,

Thanks for following up and appreciate, The Video exactly shows what we intended to do. I am not sure how you achieved this, But we had intermediate solution for the requirement, This is how we did:

1)     Created an component in NWDS with HTML Code with "I Agree" redirects to irj/portal and "DisAgree" to Logout in header.jsp

2)     upload the same to the portal and navigation looks likes http://portalhost:port/irj/servlet/prt/portal/prtrooot/MessagePostLogon.default

3)     The same navigation is redirected via SAP Web Dispatcher placed in DMZ

icm/HTTP/redirect_0 = PREFIX=/, PROT=https, TO=/irj/servlet/prt/portal/prtrooot/MessagePostLogon.default, HOST=www.ZZZZ.com

As and when user clicks on the link it is by default redirects to the component page and after hitting the I Agree button it will directs again to /irj/portal.

Could you as well elaborate the video link how to achieve the same, Eager to know the alternate solution without having the WebDispatcehr redirect.

It's an great idea to have an article on the same.

Regards

Prabhakar

Former Member
0 Kudos

Hi Prabhakar,

Redirecting using Web Dispatcher is too another alternative solution with Agree to /irj/portal and DisAgree to Logout ... this approach was the last ones I was planing for... but anyways good work!

And your guess is correct, my solution is without using the dispatcher. Here it goes:

Configurtaion:

1. Create an iView with the deployed HTML (PAR) page

2. Create a new Desktop and assign only this html-iview to it

3. Make the below assignments in your master rule collection

REC Circle: you've to ensure the logging users/group assigned a defaultDesktop or projectSpecificDesktop, b'coz this desktop has all the framework elements needed to work with.

BLACK Circle: this will redirect the users/group to the one created in step.2

4. Now coming to the code of onAction even of your Submit button in the html:

"/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2fframeworkpage?sap-config-mode=true"

Implementation:

5. Now the user login to EP using /irj/portal itself... there is no change in it.

6. Based on the rule collection.. the portal framework will redirect him to PLMHD (post logon) desktop by default. And this is a place we will show our terms & condistions stuff for users to click on either Agree or DisAgree.

7. And the magic-logic here is ... when the user clicks on Agree button it will redirect to the deafultDesktop or projectDesktop which you need the users to work on as per the code specified in point.4!

8. Now you are on your regular framework as-usual!

Logic: The user logged into customDesktop first using /irj/portal and then redirected to required defaultDesktop after the post-logon-custom-message page displayed.

If this logic wouldn't have worked for me, even I would've gone for dispatcher approach!

Hoping that you've got the solutions needed!

Thanks,

MS

Former Member
0 Kudos

Hi Naga and Prabhakar,

These are both nice solutions. I have to say that I think Prabhakars is more flexible since after the user accepts the agreement they are redirected to the normal /irj/portal which then allows for the standard logic to assign the right desktop. I think using Naga's solution the standard rules are bypassed and you would have to build in the logic to redirect to the right desktop yourself.

Anyway great work and thanks for sharing.

Simon

Former Member
0 Kudos

Hi Naga,

I have read your artical it is very good and self explanatory.

Wondering if you could help us on the Dektop rules in portal, I have tried creatin couple of frameworks and Desktops, However i find diffulty in settinup the desktop rules to work.

As you mentioned earlier i have done all the configuration, But the desktop rules were not getting in place for the users mentioned, i could only see the default desktop to the all the users.

Would you able to help me in pointing to the comprehensive document for creating desktop rules.

Regards

Prabhakar

nicolasarielsou
Explorer
0 Kudos

Hi Naga and Prabhakar,

    Thanks for all the information that post here, I have a question for both. In both solution I understand that the user had to agree "Terms and Condition" on every login. Have you thought any solution to store a flag or value on user profile to avoid this issue?

   I am working on that but I am not sure how can I get the user profile values. Any advice?

Regards,

Nicolás

Former Member
0 Kudos

Hi Nicolás,

I've no idea what are the options you are working on... but i would say that you can just maintain a small table in Portal DB to check the flag against the user and have your own condition to bypass the T&C view.

Thanks,

MS