Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
9Activity
0 of .
Results for:
No results containing your search query
P. 1
Initial WorkSet Map for SAP Enterprise Portal

Initial WorkSet Map for SAP Enterprise Portal

Ratings: (0)|Views: 1,757|Likes:
The Workset Map Iview serves as entry page for a role in SAP Enterprise Portal, but there isn´t a Initial Workset Map Iview that shows a initial portal page with information of user roles . This is the reason to me for develop a general Initial Workset Map Iview.
The Workset Map Iview serves as entry page for a role in SAP Enterprise Portal, but there isn´t a Initial Workset Map Iview that shows a initial portal page with information of user roles . This is the reason to me for develop a general Initial Workset Map Iview.

More info:

Published by: fabricadoenmexico137 on Jul 09, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

04/02/2013

pdf

text

original

 
Josué Cruz.
SAP Portal, SAP KM, SAP Java Developer, SAP ESS/MSS, SAP Internet Sales, ABAPcertified, Adobe Forms (fabricadoenmexico@gmail.com)
Initial WorkSet Map for SAP Enterprise Portal
Josué Cruz
Important Note
Is important for readers t
 
hat knows that this development is based in the original
Workset Map Iview 
.
Objetive
The
Workset Map Iview 
serves as entry page for a role in SAP Enterprise Portal, but thereisn´t a
Initial Workset Map Iview
that shows a initial portal page with information of userroles . This is the reason to me for develop a general
Initial Workset Map Iview
.My
Initial Workset Map
or
Welcome Page
looks like the image below, showing the roleswhich contains the user logged into the portal. Each image is the pictogram property of eachrole, and their respective role description.
Steps for making your own Initial WorkSet Map
1.
 
Open the SAP Netweaver Developer Studio.
 
Josué Cruz.
SAP Portal, SAP KM, SAP Java Developer, SAP ESS/MSS, SAP Internet Sales, ABAPcertified, Adobe Forms (fabricadoenmexico@gmail.com)2.
 
Create a New Project
,
File > New > Project 
. In the wizard screen select
Portal  Application > Create a Portal Application Project 
and click on the
Next Button
. Finallyenter the
Project Name
,
com.fabricadoenmexico.worksetmap.initialpage
and click onthe
Finish Button
.3.
 
Create a Portal ApplicationObject
,
File >New > Other 
. In the wizard screen select
Create a new Portal Application Object 
and click on the
Next Button
. Select the nameof the project created in the previous step
com.fabricadoenmexico.worksetmap.initialpage
andclick on the
Next Button
. Select
Portal Component > AbstractPortalComponent 
andclick on the
Next Button
. Enter the
Name
and
Package Name
property and click on the
Finish Button
.4.
 
Setting your classpath project.
You need some JAR FILES for the project classpath.Enter to your server and go to the path C:\USR\SAP\XXX\JXXX or /usr/sap/JXXX(dependence of the OS). Copy the next files to some place in your local file system.Some files can be located on the NWDS Plugins but for educational purposes i preferthis way.Path
../j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/WEB- INF/portal/portalapps/
Files
com.sap.portal.htmlb/lib/
htmlb.jar
com.sap.portal.navigation.api_service/lib/
com.sap.portal.navigation.api_service_api.jar
com.sap.portal.navigation.helperservice/lib/
com.sap.portal.navigation.helperservice_api.jar
com.sap.portal.navigation..api_mimeservice/lib/
com.sap.portal.navigation.api_mimeservice_api.jar
Path
../j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/WEB- INF/portal/
 Files
lib/
prtapi.jar
To complete this step go to NWDS. Right Click on the name project
Properties>JavaBuild Path > Libaries Tab
. Click on
 Add External JARs Button
and in the new file selectionwindow select all the jar files that you copy to your file system in this step.5.
 
Open the AbstractPortalComponent
. Go to open the java file
com.fabricadoenmexico.worksetmap.initialpage > src.core > InitialWorkSetMap.java
 
Copy the next code to this file
 
Josué Cruz.
SAP Portal, SAP KM, SAP Java Developer, SAP ESS/MSS, SAP Internet Sales, ABAPcertified, Adobe Forms (fabricadoenmexico@gmail.com)
 package
com.fabricadoenmexico;
import
java.util.Hashtable;
import
java.util.Properties;
import
com.sapportals.htmlb.FormLayout;
import
com.sapportals.htmlb.FormLayoutCell;
import
com.sapportals.htmlb.Image;
import
com.sapportals.htmlb.Link;
import
com.sapportals.htmlb.TextView;
import
com.sapportals.htmlb.enum.CellHAlign;
import
com.sapportals.htmlb.enum.CellVAlign;
import
com.sapportals.htmlb.enum.LinkDesign;
import
com.sapportals.htmlb.rendering.IPageContext;
import
com.sapportals.htmlb.rendering.PageContextFactory;
import
com.sapportals.portal.navigation.INavigationMimeRepositoryService;
import
com.sapportals.portal.navigation.INavigationNamingHandler;
import
com.sapportals.portal.navigation.INavigationNode;
import
com.sapportals.portal.navigation.INavigationService;
import
com.sapportals.portal.navigation.NavigationEventsHelper;
import
com.sapportals.portal.navigation.NavigationEventsHelperService;
import
com.sapportals.portal.navigation.NavigationNodes;
import
com.sapportals.portal.prt.component.AbstractPortalComponent;
import
com.sapportals.portal.prt.component.IPortalComponentContext;
import
com.sapportals.portal.prt.component.IPortalComponentRequest;
import
com.sapportals.portal.prt.component.IPortalComponentResponse;
import
com.sapportals.portal.prt.event.IPortalRequestEventData;
import
com.sapportals.portal.prt.pom.INode;
import
com.sapportals.portal.prt.runtime.PortalRuntime;
import
com.sapportals.portal.prt.service.IService;
 public
 
class
InitialWorkSetMap
extends
AbstractPortalComponent{
 private
NavigationNodes initialNodes =
null
;
 public
 
 void 
doContent(IPortalComponentRequest request, IPortalComponentResponseresponse){IPortalRequestEventData data = request.createRequestEventData();//THIS METHOD LOAD THE USER NAVIGATION NODESdoLoadUser( request);
int
numOfNodes =
this
.initialNodes.size();INavigationNode navigationNode =
null
;StringBuffer scriptTarget =
null
;NavigationNodes nodes =
null
;NavigationEventsHelperService service =(NavigationEventsHelperService)PortalRuntime.getRuntimeResources().getService("com.sap.portal.navigation.helperservice.navigation_events_helper");INavigationNamingHandler navService =(INavigationNamingHandler)PortalRuntime.getRuntimeResources().getService("com.sap.portal.navigation.service.navigation");NavigationEventsHelper helper = service.getNavigationEventsHelperInstance();INavigationMimeRepositoryService mimeRepositoryService =(INavigationMimeRepositoryService)PortalRuntime.getRuntimeResources().getService("com.sap.portal.navigation.mimeservice.navigation_mime_repository");String mimeServiceCompName =((IService)mimeRepositoryService).getContext().getApplicationName();String webResource = request.getWebResourcePath(mimeServiceCompName);IPortalComponentContext componentContext = request.getComponentContext();

Activity (9)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
askgopi123 liked this
BUGMEBUGME liked this
BUGMEBUGME liked this
r@odah liked this
zfani liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->