Read Portal IViews

Hi,
I am new to using portal.I have been trying to use JNDI lookup to read portal iviews using
standalone java with relevant jars but i get javax.naming.NoInitialContextException: Cannot
instantiate class: java.naming.factory.initial.Please anyone help me out with jndi name and
the ways i have to implement.Here is the code..
env.put(Context.INITIAL_CONTEXT_FACTORY,
          "com.sapportals.portal.pcd.gl.PcdInitialContextFactory");
//"java.naming.factory.initial"
          env.put(Context.PROVIDER_URL,                                    
"localhost:53000");
          env.put(Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);          
env.put(Context.SECURITY_PRINCIPAL,                     "administrator");
javax.naming.InitialContext ctx;
ctx = new InitialContext(env);
Thanks,
Sucharitha

Hi Kiran,
You have been using this link as URL.
http://<host>:<port>/irj/portal?NavigationTarget=
ROLES://portal_content/com.sap.pct/
platform_add_ons/com.sap.caf.eu.gp.folders.gp/com.sap.caf.eu.gp.roles.runtime/
com.sap.caf.eu.gp.worksets.runtime/com.sap.caf.eu.gp.pages.procinstance&DynamicParameter=
processId%3704process.template.id=704B8100BCC111DEC2C300096B6E4F29&param1=CPD&NUMBER=
4500001186&UserId=138458&&taskId=
Now just try replacing following characters between occurence of "ROLES" and "&DynamicParameter" as follows:
:  --> %3A
/  --> %2F
Also, after "&DynamicParameter" replace
= --> %3D
& --> %26
to define passed Parameter Names and Values.
It will look something like this:-
"http://<host>:<port>/irj/portal?NavigationTarget=
+ "ROLES%3A%2F%2Fportal_content%2FXYZContent%2FBHBSS%2FXYZPages%2FXYZMaintenance" +
%2FpgXYZ&DynamicParameter="
+ "RF02D-VKORG"+"%3D" + "1040"
+ "%26" + "RF02D-KUNNR" + "%3D" + 40
+ "&CurrentWindowId=WID1232176120474&NavMode=3"
I have show the URL in the form of strings appended, you need to show them in a flow removing the double quotes and plus symbol.
Let me know if you still have problem accessing through the link.
Regards,
Tushar Sinha

Similar Messages

  • Read Portal iViews with a webservice

    Hi,
    I need to get all the iViews related to all roles assigned to a requested user.
    My webservice now does the following:
    try{
         String[] roles =UMFactory.getRoleFactory().getRolesOfUser("USER.R3_DATASOURCE."+user,true);
    for(int i=0;i<roles.length;i++){     
         IRole role = UMFactory.getRoleFactory().getRole(roles<i>);
            Userroles<i>= new String(role.getUniqueName());
    }catch(Exception e1){
    I tried with  javax.naming.directory.DirContext but it don't seems to work. Is it possible to do so with a webservice?
    Many thanks
    Antoni Macià

    If you are looking for an example on web service using security, following link has one sample
    http://otn.oracle.com/sample_code/tech/java/web_services/content.html
    Chandar

  • Drag and Drop a Portal iView in WPC

    I would like to drag and drop a portal iView into a container in the Page Editor.
    In a container that allow resource type portal iview, I clicked on the "pencil logo" and click on Add. A "Web Content Browser" is invoked. It there, the portal iView is not found as these iViews are sitting in the Portal Content directory.
    Just wondering how do we go about in "drag & drop" a portal iview from this editor.
    Thanks

    Procedure
    3. In the Portal Content Directory (PCD), create a folder for iViews that Web content managers can use on Web pages.
    a. Choose Content Administration u2192 Portal Content and create a folder under Portal Content, for example WebPageiViews.
    b. Create permitted iViews in this PCD folder (for example, as delta links).
    c. Choose System Administration u2192 Permissions and navigate to the folder you created in step a.
    d. In this PCD folder, give the everyone group Read permission, for example, and activate the End User indicator.
    4. Show the PCD repository in the KM configuration.
    a. Choose System Administration u2192 System Configuration u2192 Knowledge Management u2192 Content Management.
    b. Choose Repository Managers u2192 Show Advanced Options u2192 PCD Repository.
    c. Deactivate the Hide in Root Folder checkbox.
    d. Restart the servlet engine.
    5. Create an entry point for the folder that you created in step 1d (for example, /wpccontent/iViews).
    See next instead of "Step 1d"...
    Procedure
    1. Choose System Administration u2192 System Configuration u2192 Knowledge Management u2192 Content Management u2192 User Interface u2192 Mapping u2192 Component.
    2. Edit the wpcDragExplorerEntryPoints configuration object.
    Use the following parameters:
    Web Content Browser Parameters
    Parameter                    Description
    displaymode                Specify select
    maxproviderprio            Highest priority number that standard entry points can have and still be displayed in the Web content browser
    entriesperrow               Number of entry points displayed in each row (default: 5)
    entrypointsprefix
    Prefix of the entry point repository If you specify a value for this parameter, standard KM entry points are also displayed in the Web content browser.  Default: /entrypoints      
    sharedcontent               Semicolon-separated list of paths to be displayed as global entry points for shared content
    Examples of parameter values:
    displaymode=select,maxproviderprio=30,entriesperrow=5,entrypointsprefix=/entrypoints,sharedcontent=/wpccontent/Cross-Site Content;/documents/MyFolder

  • How to find the ABAP Webdynpro Component Name in the Portal IView(WDA)

    Hi All
    I got one ABAP Webdynpro IView in portal , when i opened the Iview i got the Application name of ABAP Webdynpro in the properties of the Iview but i could not able to find the component name .
    Please let me know how to find the component name of WDA , as i already got the Application name of component  from Iview i.e WDA_ED_RDF ( this is applicaiton name found in the portal Iview for ABAP Webdynpro)
    Please get back to me on the same , it would be great help to me.
    Thanks,
    PortalUser100
    Edited by: PortalUser100 on Mar 24, 2011 11:51 PM

    Hi
    Right Click on any UI Element in Portal->Go to more field help->TEchical Information. You can see all the information about component, application, ui elements etc.
    Please check this... may helps more
    http://wiki.sdn.sap.com/wiki/display/WDABAP/GeneralTechnicalAspects
    Thanks,
    Venkat.

  • WebDynpro Abap table not rendered correctly inside portal iView

    Hi,
    I have a webDynpro Abap application with a table that contains radio buttons as table cell editors.
    When I run the application directly it looks fine, but when I run it inside a portal iView the radio button allignment changes to the top of the table cell.
    Please help.
    Kind Regards,
    Dirk Naude

    I found that this could be fixed by changing the portal theme using the theme editor, specifically changing the table cell padding property.

  • Portal iview xml files

    Hi,
    Mayby anybody here knows where do the portal iviews xml files are saved in the server?
    Thanks.
    Promise to award points...
    Ruthie.

    HI,
    u talking about Iview's property(.xml) files? Should be inside the corresponding iview folder itself. Go to server do a search with *.xml on the folder /usr.
    Regards,
    N.

  • Portal iviews xml files

    Hi,
    Mayby anybody here knows where do the portal iviews xml files are saved in the server?
    Thanks.
    Promise to award points...
    Ruthie.

    Dear Maksim,
    I have a problem here with sap transaction iview - I opened an Oss and I was asked to send them all xml files of the iviews. As for now - I asked them where can I find it.
    Thanks for your help.
    Ruthie.

  • Portal iView from Backend

    Hi,
    Can I lauch portal iView from backend screen? My query is related to PCR forms.
    Richard

    Thanks koushik RESOLVED.

  • Can we run portal iview out of portal environment?

    Can we run portal iview from the external environment(java , .net)?
    Can any one help?
    Thanks
    Rajendra.

    Hi Kiran,
    He means to say - How can we access/execute an existing Portal iView from outside/another environment?
    If possible, could you please guide us.
    Your quick response would be appreciated.
    Awaiting Reply.
    Warm Regards,
    Ritu R Hunjan
    (<i>Rajendra & I are colleagues...so answered on his behalf</i>)

  • IView read another iView's profile.

    I have two iViews derived from the same PortalComponent, but have been set different set values for the profiles.
    When I added both of the iViews to the same page, one iView reads another iView's profile. Most of the time both of them use the same value from one profile, but which profile it is used is undertermined. If I keep refreshing the page, I can see which profile the two iView choose to use is random.
    The expected behavior should be each iView only uses its own profile.
    My EP's version is:
    J2EE Engine 6.40 PatchLevel 87289.311
    Portal 6.0.9.0.0
    The same code works fine on
    J2EE Engine 6.30 PatchLevel 84868.311
    Portal 6.4.0.0.200406231750
    In my portalapp.xml my profile is define like this:
    <component-profile>
         <property name="My Profile Name" value="default">
    In my portalcomponent code.
    I read profile by :
    request.getComponentContext().getProfile().getProperty(paramName));
    Can somebody tell me why? Is it a known bug? Did I missed some patch?
    Please mail me to [email protected] too.
    Thank you for your help.
    Harry
    Message was edited by: Xiaochen Du

    Hi Harry,
    > saved in IPortalComponentRequest
    In the original message, you wrote about a problem concerning the profile, now it's the request!?
    > If this is a fixed issue, please let me know,
    > in which patch it is fixed.
    If your are lucky, you'll get an answer to such questions on SDN, but anyhow, no official ones. That's the reason why I have suggested to open an OSS message, that's the support channel which should be able to answer officially to this kind of question. Anyhow, you would have to describe the problem in detail, also if the profile or the request is concerned...
    > confused with the version numbers
    There is a note about what build version corresponds to what SP/Patch. Anyhow, "sneak preview EP version 6.4.0.0.200406231750" probably is quite old, it's from 23.06.2004...
    Hope it helps
    Detlev

  • Embedding Portal iview into some website (non sap)

    Hi
    Can you please tell me the possibilities of Embedding portal iview into website(non sap portal)?
    Thanks in advance.
    Regards
    Pranav
    Edited by: Pranav Goswami on Mar 25, 2009 12:14 PM
    Edited by: Pranav Goswami on Mar 25, 2009 12:16 PM

    Hi Pranav
    You need to give the URL for the application with pcd of iview.
    Please ask you portal or webdynpro consultant he might help you in that.

  • Error in creating Callable object of type Portal iView

    Hi People,
    I need to create a callable object of type Portal iView / Page,
    But whenever I try to create it gives me a RunTime Exception:
    <b>java.lang.ClassCastException
         at com.sap.caf.eu.gp.ui.co.portal.dt.VBrowse.appendChildren(VBrowse.java:523)</b>
    Please suggest some way out,
    Thanks in advance,
    Deepak

    Hi,
    How many actions  are there in your process?. Is it having only one action that is Web service?.
    I think, The process should at least contain one UI action.
    If your process is having multiple actions, there may problem with other actions. Test the web service action seperately to confirm this.
    Thanks

  • Link to SAP R/3 Logon from Portal IView

    Hi,
    How is the Link to SAP R/3 Logon from Portal IView?
    Thanks
    Raissa

    Hi Raissa,
    Check these links
    Configuring EP for connecting to SAP R/3
    Creating system object
    http://help.sap.com/bp_epv260/EP_EN/documentation/EP/N03_BB_InstallGuide_EN_US.doc
    Regards
    Arun

  • Event handling in Portal IView of JspDynpage

    Hi All,
    I have created the portal iview with jspdynpage.Can any body tell whether event handling can be performed from the portal iview which is created from the jspdynpage?
    Regards,
    V Karthi

    hi
    check this threads
      Event handling in portal through sap netweaver.
      From creation of JSP page to iView at Portal
    Thanks

  • Error in BI4 SP04 Olap Analysis Using Portal iview list template

    We are trying to host the BI Launch Pad BI4 SP04.1 in the SAP Enterprise Portal (7.3.1.Sp04) on AIX 6.1 using the SAP Business Objects Document List Template, but getting an error when trying to use Olap for Analysis.
    When previewng the iview from the portal, the bilaunch pad is opened and the main page is displayed
    Then we select the icon Analysis for Olap, select an Olap connection and receive error in
    message box titled 'Analysis Edition for Olap'
    Login Failed. Invalid, User Name or Password
    It seems to be problem with SSO token back to the SAP portal.
    We have SSO configured from BI4 SP04.0.1 to BW 7.3.1. SP04 and can login to the launch pad using SAP authentication with the same account.
    The security on the OLAP connection is everyone - view. 
    If we change the Olap connection authentication to pre-defined from SSO, Olap Analysis works correctly from the portal iview, but of course the permissions are not acceptable. Further, we set SSO to false  from the global.properties file and restarted tomcat.  We can then start the launchpad from the Iview in the portal and are prompted for manual logon, use SAP authentication and Olap for Analysis runs correctly as the same user we tried previously.
    However, our requirement is to use SAP authentication and SSO from the portal to BI4 and not logon on manually.
    I have entered an OSS message for this issue and making little progress there.  If you have made this work or have some ideas you can share, I would be very grateful!
    Lee Lewis

    Just want to update with more information-
    Again, from the enterprise portal through the ivew - BO Document List template,
    Connects through to BI Launch Pad without having to login-using the BW ABAP credentials
    Then we try to open a webi document with an olap connection that has sso authentication instead of pre-defined user, we do not get the same user login failed message, the page is just blank
    But if I login directly to bi launch pas with the same SAP authentication that was used with the enterprise portal, and bring up the same webi document, the report is displayed as expected.
    Anybody successfully use the BO document list ivew using Olap connections with SSO and not just a pre-defined user?
    Lee Lewis

Maybe you are looking for

  • To SONY management not Sony ericsson Management, please don't do the same mistakes.

    Please Don’t Make Same Sony-Ericsson Mistakes by USER-986393 » Thu Oct 27, 2011 3:40 pm Congratulations on your Erricsson's share acquire, I must say i have been Sony phone holder from the day SONY CDM-Z1 was created, forced my self to stick with SE.

  • Follow-up 3: Hmm! An issue ... u0093How to handle Forecasting when modeling

    Any comment on my Summary: My understanding is that, in dealing with forecasting during modeling a) One approach will be to create a new Cube, infobjects for Forecast data in addition to the cube for the actual data. That makes it 2 Cubes. Advantage:

  • Problem - new MacBook Air cannot see external HD

    Hi, I'm hoping someone can help, as I have seen similar questions in the forums, but not with an answer that helps me solve my problem. Ok, I have a new MacBook Air running Lion (bought last year), a MacBook Pro running Leopard which is approx 4 year

  • Set User Setting from OnAfterLogin

    Scenario: All gadgets/portlets will want to know which group a specific user is in. We are importing the users from a Windows NT domain. We know we can query the groups using the PRC in a portlet, but we'll also be using GDK gadgets, so we would need

  • Problem in update with DB Adapter

    Hi, I have a Table with one attribute(Primary key). I want to update that table by replacing the existing value(Overriding). Developed one BPEL process by configuring db adapter with operation as insert or update and I checked by executing the BPEL p