Portal Properties in webdynpro

Hai
I am developing a portal application in webdynpro.
i would like to make some properties which can be changed in the iview properties. with normal portal applications this is possible through the portalapp.xml
is this possible in webdynpro to, and how should i define these properties. (not like application properties)
Regards
Naga Raju

Hi,
Do you want the proeprties to be set through portal.
We can create a property file in src/configuration/Applications/< application name> and set values of the property file in Visual Admin. Is this workaround ok ?
Regards
Bharathwaj

Similar Messages

  • How to acces portal services in webdynpro

    Hi I want to access portal services from webdynpro,  i red that for that we have to  provide sharing reference in webdynpro application. which will be
    PORTAL :< Vendor name>/<Full qualified name of the portal service>
    my question is how to find out vendor name and Full qualified name of the portal service from par

    Hi,
    Web Dynpro applications can access portal services in one of the following ways:
    ●      Directly: The application can get an instance of the service on the machine on which the Web Dynpro application is running.
    ●      Via the Service Factory: The application can request an instance of the service from the service factory. The service factory provides a conduit to portal services to ensure that the proper service is called, even in cases when the Web Dynpro application and the portal are running on different machines.
    Only services written in a remote-safe manner are available via the service factory. These services include the following portal services:
    Page Service
    Tray Service
    Page Service
    The page service provides information about the page in which the application is running, and enables you to perform the following tasks:
    ●      Getting a list of the atomic names of the visible iViews in the page.
    You may want to use this method to avoid updating the user interface of an iView when it is not visible.
    IWDPageService pageService = (IWDPageService)
        WDPortalUtils.getService(WDPortalServiceType.PAGE_SERVICE);
    // String array receives iView names
    String[] iViews = pageService.getVisibleIViews();
    ●      Hiding/showing iViews in the page
    IWDPageService pageService = (IWDPageService)
        WDPortalUtils.getService(WDPortalServiceType.PAGE_SERVICE);
    // display iView Search
    pageService.showIView("Search");
    // hide iView Details
    pageService.hideIView("Details");
    Changes to the visibility of iViews are not saved. When a user refreshes the page, the original settings are restored.
    Tray Service
    The tray service enables you to add a menu item to an iView or page tray, and to specify a Web Dynpro action to execute when the menu item is selected.
    The following is an example of adding an iView and page menu item:
    IWDTrayService trayService = (IWDTrayService)
        WDPortalUtils.getService(WDPortalServiceType.TRAY_SERVICE);
    if (trayService != null) {
        // Add iView tray menu item
        trayService.addIViewItem("addItemComment", "Add Comment",
        wdThis.wdGetAddItemCommentAction(), null);
        // Add page tray menu item
        trayService.addPageItem("addItemComment", "Add Comment",
        wdThis.wdGetAddItemCommentAction(), null);
    Generally, tray menu items are added in the wdDoModifyView() method. Make sure to add the menu item once; otherwise, duplicate menu items are displayed.
    Procedure
    This section describes how to call a portal service.
    For services whose interfaces are provided by Web Dynpro (such as IWDPageService and IWDTrayService), you do not need to perform Steps 1 and 2.
           1.      Make a sharing reference to the service, by doing the following:
                                a.      Right-click the Web Dynpro development component or Web Dynpro project, and select Properties.
    The Properties dialog box opens.
                                b.      From the left pane, select Web Dynpro References.
                                c.      In the Sharing references tab, add a reference to the portal service with the following format:
    PORTAL:<Vendor name>/<Fully qualified name of the portal service application>
    For example, the following shows a reference to the navigation service:
    This graphic is explained in the accompanying text
           2.      To build the project, add the JAR file containing the service to the classpath of the project in the IDE.
    Do not store the JAR file of the service in the libfolder of your development component or Eclipse project. This causes classloader problems at runtime.
           3.      Get an instance of the service.
    To call a portal service directly, without the service factory, call WDPortalUtils.getServiceReference() with the key for the service, as in the following example:
    IUserObjectBasedNavigation obnService = (IUserObjectBasedNavigation)
        WDPortalUtils.getServiceReference(IUserObjectBasedNavigation.KEY);
    To call a portal service via the service factory, call WDPortalUtils.getService() with the WDPortalServiceType constant for the service, as in the following example:
    INavigationService navService = (INavigationService)
        WDPortalUtils.getService(WDPortalServiceType.NAVIGATION)
    If more than one Web Dynpro controller needs to use the same portal service, you can store the portal service reference in a controller context node. All other controllers that need to use the service must define a context node and map it to the context node with the service reference.
    A portal service can be called only when the portal platform and the Web Dynpro application are running on the same machine.
    It is recommended not to use your Web Dynpro-based portal content in a global or federated portal scenario.
    Refer This Link for More Information:
    [http://help.sap.com/saphelp_nw04s/helpdata/en/d2/0357425e060d53e10000000a155106/frameset.htm]
    I Hope This Information Might Be Helpful For you.
    Regards,
    Sharma.

  • How to get password of a logged in portal user in webdynpro.

    hi,
    i want to get the password of the logged in portal user through webdynpro. i already know how to get the user id and other information through webdynpro (using WDClientUser), but i want to get the password as well.
    this is an urgent requirement. Immediate help will be highly appreciated and points will be awarded for helpful answer.
    thanks in advance.

    Hi
    User Management APIs don't give the liberity to obtain the password, instead you can verify a password. Please check if your requrirement can be modified to check for password.
    Please use code mentioned below and the one suggested before.
    loggedInUser = WDClientUser.getCurrentUser();
    user = loggedInUser.getSAPUser();
    if (user != null)
    IUserAccount[] acct = user.getUserAccounts();
    if(acct[0] != null)
    b = acct[0].checkPassword(password);
    Thanks
    Srikant

  • Portal Theme in Webdynpro ABAP

    Hi Experts,
         I want my portal theme to get applied to the webdynpro abap application.But WDA application is not adapting the portal theme.
    This is the version of the theme's style sheet in portal=7.1.3.0.1;ur=7.1.3.0.1;7.1.3.0.0(Major version.minor version.SP.patch.generation run)
    The version of Webdynpro abap theme is 7.11.3.2.0.
    Portal Version is NetWeaver 7.0 Ehp1
    and SAP Basis Version is 701 and level 5.
    Is there  version incompatibility?
    How can I solve this.
    Thanks and Regards
    M.Karthiheyan.

    Hi M.Karthiheyan,
    Please follow below steps to apply Portal theme in Webdynpro ABAP.
    1. Go to transaction SE80 and navigate to the MIME Repository
    2. Create a folder in the MIME repository that will contain all the custom theme files. Make sure the folder is created in following directory /SAP/PUBLIC/BC/UR/<theme_name>
    3. Go to the Repository browser in SE80 and select u201CProgramsu201D from the drop down list.
    4. Enter BSP_UPDATE_MIMEREPOS in the input field and hit Enter
    5. Execute the program and enter the MIME repository path to the folder that is to contain the custom theme. Our custom theme is located in MIME path /SAP/PUBLIC/BC/UR/<Theme Name>
    6. Execute the program and select root folder that contains all the custom theme files.  The custom theme can be directly pulled down from the file server on portal or can be exported from Portal Theme Editor and imported into Eclipse Theme Editor in order to generate the necessary css files. We only need the root folder that contains the actual css files and images. The upload process might take a while depending on the size.
    7. Once the upload is complete, go back to the MIME Repository and check if the files were uploaded.
    8. To specify a theme at the global level you can execute WebDynpro component WD_GLOBAL_SETTING. Maintain parameter u2018Stylesheet URIu2019 with the MIME Repository path of the custom theme (i.e. /SAP/PUBLIC/BC/UR/<custom_theme>).
    9. Enter the path under "Stylesheet URI:" and select the check box which says "Force use of External Stylesheet".
    Thanks.
    Sushil S Aher

  • Access Portal groups in webdynpro ABAP component

    Hi Experts,
    I have a requirement to access portal group in web dynpro ABAP application and based on whether user is assigned to particular group or not further processing for application will be done.
    Are there any UME API or some other API's available to access portal groups in Webdynpro ABAP component?
    Thanks in Advance..!!
    Regards,
    Shruti Shah

    This might be a question better suited to the portal forum. The WDA Portal APIs do not have such functionality.  You might be able to take the Java Portal APIs and wrap them in a web service so that they are callable from ABAP.

  • Accessing portal roles in webdynpro for java

    Hi,
    Please let me know how to access portal roles in webdynpro for java.
    Rgds,
    Patana

    Hi ,
    Please use this API to access the portal roles:
    IRoleFactory fact=UMFactory.getRoleFactory();
    Also see this code to get more information of role using code:
    IRoleFactory rolef=UMFactory.getRoleFactory();
    IRoleSearchFilter searchfilterrole= rolef.getRoleSearchFilter();
    ISearchResult searchResult = rolef.searchRoles(searchfilterrole);
    while(searchResult.hasNext())
    String unq=(String) searchResult.next();
    IRole role1=rolef.getRole(unq);
    String roleName = role1.getDisplayName();
    String roleID = role1.getUniqueID();
    // Once you get the informationof role you can use it in your application as per your requirement.
    Also please note that:
    You should add "com.sap.security.api.jar" to your project`s java build path for getting the Portal Security API's.
    I hope this solves the problem. Please revert back incase you need any further informationon this.
    Thanks and Regards,
    Pravesh

  • To get the Roles, Worksets, iviews assigned to portal user using webdynpro

    Hi..
    I need to display the roles, worksets, pages and iviews that are assigned to a particular portal user using WebDynpro.
    I tried to search in SDN and found a few blogs on this... but all are for DynPages. I could not find any inputs on how to achieve this in Webdynpro.
    I am listing down the blogs for your reference :
    1) /people/prakash.singh4/blog/2005/07/28/browse-roles-folders-pages-iviews-assigned-to-a-user-ep6-sp9-and-higher
    2) /people/prakash.singh4/blog/2005/09/06/create-a-sitemap-for-your-portal
    Please provide me your suggestions on how to display the roles, worksets, pages and iviews that are assigned to a particular portal user using WebDynpro.
    Thanks and Regards,
    Sayan Ghosh

    Please use following code to get all roles assigned to user:
         IWDClientUser wdUser = WDClientUser.forceLoggedInClientUser();
         IUser user = wdUser.getSAPUser();
         String strRoleID = "", strRoleDesc = "";
         IRoleFactory iRoleFactory;
         iRoleFactory = UMFactory.getRoleFactory();
         // Get All the Roles of the User
         Iterator iteratorRoles = user.getRoles(true);//prtRequest.getUser().getRoles(true);
         // Loop through all the Roles
         while(iteratorRoles.hasNext())
              strRoleID = iteratorRoles.next().toString();
              try
                   strRoleDesc = iRoleFactory.getRole(strRoleID).getDescription();
                   wdComponentAPI.getMessageManager().reportSuccess("Role: "+strRoleDesc);
              catch(Exception e)
                   wdComponentAPI.getMessageManager().reportException("Exception e: "+e, false);

  • How to find who is login Portal by using webdynpro with java

    Hi Friend
    One Supplier( Abc) Login into the portal . How to find it "ABC"  user login into portal by using webdynpro with java
    My requirement is
    One Supplier login in to the portal that supper having one Vendor number ( it is fixed)
    Exp: Portal user vijay login his vendor number 12345 like
            Suppose u r login into the portal u have one vendor number like this
    i have to desine one screen that is find PO'Status Screen, In that Screen, Meterial Group,line number,PO Status and Vendor number is avaliable.
    Supplier login in to that portal he is finding some items.
    this my Requirement. i m creating this screen ..How to fined user name from portal .once i have to find this user name by using webdybpro with java. I have to assine vendor number
    Regards
    Vijay

    Hello Vijay,
    You can wirte the following code to get the logged in user's ID
    try {
              IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
              IUser sapUser = wdClientUser.getSAPUser();
              IUserAccount[] acct = sapUser.getUserAccounts();
              String str = acct[0].getDisplayName();
              wdComponentAPI.getMessageManager().reportSuccess("user "+ str);
         } catch (WDUMException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         } catch (UMException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
    You need security api for using it make sure that is present.
    Thanks,
    Hope this will help
    Sarbjeet

  • Portal.properties file

    Hi! Is there any published documentation on the parameters of the portal.properties file for ALBPM WE 5.7? I'm specifically interested in the definition of fuego.portal.debug=false.
    Thanks,
    Christine Spretnjak

    the following properties:
    # Port to launch Portal HTTP debugger.
    fuego.portal.debug=false
    fuego.portal.debuggerPort=9007are used to enable an internal web server that shows debug information of the workspace application. it is similar to the option available for the engine.
    MAriano Benitez
    Join us at BEAParticipate, May 6-9 2007 | Atlanta, Georgia

  • Can I get the portal rol thought webdynpro abap?

    I am working webdynpro abap and I need to get the rol portal.
    Can I get the portal rol thought webdynpro abap?
    Tkanks and best regards.
    Maria Elena

    I am working webdynpro abap and I need to get the rol portal.
    Can I get the portal rol thought webdynpro abap?
    Tkanks and best regards.
    Maria Elena

  • Urgent :Fetch Portal URL in WebDynpro code

    Hi techgurus,
    I want to fetch portal URL/ Portal system ID in my webdynpro code?
    Please help!
    Regards,
    Abhishek

    This is an approach we have implemented:
    Login to Visual Administrator.
    Go to Services –> Destinations
    Create HTTP Destinations for the URLs to be accessed.
    Write a method containing the below code to access the same URL:
         InitialContext ctx;
         Object obj;
         DestinationService dstService;
         Destination destination;
         HTTPDestination httpDestination ;
         HttpURLConnection httpurlconnection = null;
         Properties destprop = null;
         String username = "";
         String password = "";
         try
              ctx = new InitialContext();
              obj = ctx.lookup(DestinationService.JNDI_KEY);
              dstService = (DestinationService) obj;
              List destinationList = new ArrayList();
              destinationList = dstService.getDestinationTypes();
              destination = dstService.getDestination("HTTP",<name of the HTTP url>);
              destprop = destination.getDestinationProperties();
              httpDestination = (HTTPDestination) destination;
              url = httpDestination.getUrl();
         catch(Exception ex)
              wdComponentAPI.getMessageManager().reportException("Unable to get the Webservice URL "+ex.getMessage(),true);
              ex.printStackTrace();
    Hope this solves your problem.

  • Portal integration in webdynpro for ABAP

    Hi experts ,
    my application is calling a transction fb03 from webdynpro ,
    so i created  WDA for my application and i created an iview (iv1) in portal,
    and i created one more transctional iview (iv2)for fb03.
    so now i want to call my transctinal iview from iv1 .
    so pl gimme a solution for this.

    Hi setu,
    Its Possible by <b>portal Eventing</b>.Refer this,
    http://help.sap.com/saphelp_nw70/helpdata/en/79/3857422d095542e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/0c/8eee31e383cd408bcb07e80b887463/frameset.htm
    Regards
    Nandha.

  • Portal integration of Webdynpro for ABAP application

    Hi all,
    Can anyone provide me with the steps for <b>integrating a Webdynpro for ABAP application with portal?</b>
    Regards,
    Bino

    Hi Bino
    Check out the following link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/portal integration of web dynpro applications.pdf
    Regards
    Rajeev.
    Do award points for helpful answers in SDN.

  • Calling a portal page in webdynpro iview.

    Hi Portalites,
    I have developed an webdynpro iview, where it will call other uwl page inside the code.
    This iview is placed in home role(like welcome page).
    in wddoinit method, i have written the code,
    where portal users locale is set to English.and then it will navigate to UWL using WDPortalNavigation method.
    WDPortalNavigation.navigateAbsolute("ROLES://uwl_page",
    WDPortalNavigationMode.SHOW_INPLACE,
    (String)null,
    (String)null, WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
    "UWL",
    (String)null,
    (String)null);
    Iam able to view the UWL in Home page, but after that if i  click on any user admin, or content admin roles, and agian clicking on home page again or refreshing the page it is showing previous navigation path in top level navigation but in content area it is dispaying uwl.
    Let us clearly expalain, first i have opened portal, home page opened with UWL page in content area.after that i clicked on sytem admin> sytem configuration, after that when i cliked on home role again in TLN, in the TLN it is highlighting system admin>system config but displaying UWL in content area.
    In the detailed navigation, it showing all iviews what home page has.
    Please advice.
    Thanks
    Sony.

    Try setting its contextURL property in WDPortalNavigation(...).
    For info :
    [http://help.sap.com/saphelp_nw70/helpdata/EN/c3/235a428a1e9041e10000000a1550b0/frameset.htm]
    -Abhijeet

  • Calling a portal page from WebDynPro ABAp application

    Hi,
    I would like to call a portal page (any type) from a WebdynPro ABAP application. I have the PCD location of the page.
    Which call shall I make :
    Absolute Navigation
    Relative Navigation or
    OBN.
    Also, can anyone send me short code snippet on the following.
    The package SWDP test examples are not working.
    Best Regards
    Sid

    Hi Siddharth,
    Well, to start with you can go for ABSOLUTE NAVIGATION.
    Secondly, you can find the snippet here
      DATA LO_API_COMPONENT  TYPE REF TO IF_WD_COMPONENT.
      DATA LO_PORTAL_MANAGER TYPE REF TO IF_WD_PORTAL_INTEGRATION.
      DATA L_NAVIGATION_TARGET TYPE STRING.
      LO_API_COMPONENT = WD_COMP_CONTROLLER->WD_GET_API( ).
      LO_PORTAL_MANAGER = LO_API_COMPONENT->GET_PORTAL_MANAGER( ).
      MOVE 'pcd://portal_content/com.xxxx.zpof_f_XXXXportalcontent/com.xxxx.test/com.xxxx.folders.MaintenanceBusinessPackage/com.xxxx.test.mt.pages.Pages/com.xxxx.pages.MaintenanceTasks'
        to l_navigation_target.
      CALL METHOD lo_portal_manager->NAVIGATE_ABSOLUTE
        EXPORTING
          NAVIGATION_TARGET   = L_NAVIGATION_TARGET
    *      NAVIGATION_MODE     = IF_WD_PORTAL_INTEGRATION=>CO_SHOW_INPLACE
    *      WINDOW_FEATURES     =
    *      WINDOW_NAME         =
    *      HISTORY_MODE        = IF_WD_PORTAL_INTEGRATION=>CO_NO_DUPLICATES
    *      TARGET_TITLE        =
    *      CONTEXT_URL         =
    *      POST_PARAMETERS     = ABAP_FALSE
    *      USE_SAP_LAUNCHER    = ABAP_TRUE
    *      BUSINESS_PARAMETERS =
    *      LAUNCHER_PARAMETERS =
    Above it, the examples of SWDP will not work if you test them from SE80-ABAP WAS...I suggest you to create a WDA IView in Portal and test it in Portal itself.
    Hope this should solve your problem.
    Regards
    <i><b>Raja sekhar</b></i>

Maybe you are looking for