Skip to Content
author's profile photo Former Member
Former Member

After log into SAP Portal, Terms&Conditions Window should open

Hi Team,

As per one of the requirement in my project, i have to develop below applicaiton.

Requirement: Once user logged into portal & trying to access his role first time in a year, Terms & condtions window should open, once user accepted the terms& condtions, user can access his role. if user entered into portal second time in a year, direclty can access his roles.

For this: i have created webdynpro-java application with empty view & portal abstract portal component with terms & conditions text, then i have created portal Iviews for both webdynpro-java application and abstract portal comonent, then i am calling abstract portal component Iview into webdynpro-java component controller wdDoinit() method via WDPortalNavigation.navigateAbsolute() method.

Finally, i have assingned webdypro-java ivew to Test Role: once click on role it is calling Terms&Conditions pop window.

Questions:

1. how can i use same Iview in user actual role, i mean, once user click on his role first time terms & codition window should open? after accepting terms & condtions only his role can access...

2. how can i navigate from terms & condtions to his role?

3. if user didn't accept terms&conditions, he can't access his roles, how can i handle this?

4. how can i check, if it is user first login into portal or not in a year ? where i have to store this user data? what are the parameters i have to use?

can you please help me on this?

Thanks

Sandeep.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 30, 2012 at 03:02 PM

    > 1. how can i use same Iview in user actual role, i mean, once user click on his role first time terms & codition window should open? after accepting terms & condtions only his role can access...

    > 2. how can i navigate from terms & condtions to his role?

    > 3. if user didn't accept terms&conditions, he can't access his roles, how can i handle this?

    > 4. how can i check, if it is user first login into portal or not in a year ? where i have to store this user data? what are the parameters i have to use?

    I would redefine com.sap.portal.navigation.portallauncher.default component for your purpose

    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/44/42c08f81ce2152e10000000a114a6b/content.htm

    so WDJ is not really an option here.

    To store whether display T&C screen you can use custom attribute on user profile

    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/44/0316d50bbe025ce10000000a1553f7/content.htm

    public class MyPortalLauncher extends PortalLauncher
    {
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
        {
    		INodeList nodeList = request.getNode().getChildNodes();
    		if(nodeList != null && nodeList.item(0) != null)
    		{
    //Check value in user profile whether he accepted T&C this year
    //if no - navigate to T&C page
    			IResource jspResource = request.getResource("jsp", "jsp/termsAndConditions.jsp");
    			response.include(request, jspResource);
    //else - process as usuall
    			response.include(request, nodeList.item(0));
    		} 
    		else
    		{
    			IResource jspResource = request.getResource("jsp", "jsp/noRoles.jsp");
    			response.include(request, jspResource);
    		}
        }
    //implement 
    public void onAcceptClick() throws PageException
    {
    //set user attribute value if accepted, logoff is rejected 
    }
    }
    

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.