Displaying KM content using Webdynpro Tree Application

Hi,
I want to create a webdynpro tree structure application which pulls out the KM Content into the tree Structure. How can i do that? Where can i give the KM path and make the KM documents reflect in the tree?
Does any body have code samples related to this? Can anybody help me out in fixing this issue.
Regards,
Leon

Hi
Try these
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f02b492c-7d76-2a10-86aa-e11e8388fde8
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/3095f14c-29c5-2b10-f69e-edcb6f0f1367
Best Regards
Satish Kumar

Similar Messages

  • Accessing KM Content using Webdynpro Tree Application

    Hi,
    I want to create a webdynpro tree structure application which pulls out the KM Content into the tree Structure. How can i do that? Where can i give the KM path and make the KM documents reflect in the tree?
    Does any body have code samples related to this? Can anybody help me out in fixing this issue.
    Regards,
    Divya

    Hello,
    Here you have a sample to configure the environment, get access to KM and how to upload a file.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a099a3bd-17ef-2b10-e6ac-9c1ea42af0e9?quicklink=index&overridelayout=true
    Here, you have a sample code, where you instance a resource (a folder or file into KM repository) and you can do with it whatever you want.
    final IResourceFactory aResourceFactory = ResourceFactory.getInstance();
    RID rid = new RID(strRid); --> path where your are looking for your folders. "/documents", for instance.
    ResourceContext resourceContext = new ResourceContext(WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service"));
    IResource r = aResourceFactory.getResource(rid, resourceContext);
    Try and catch are missing, but that is the code to have an instance of a KM resource.
    Regards,
    David.

  • Display Table contents using HTMLB...Urgent Help Plz...

    Hello All,
    Im working on EP SP14 and SQL Server 2000.
    I have successfully established database connection.
    I want to know <b>how can I display Table contents using TableViewModel in HTMLB</b>.
    Please help.
    Its urgent.
    Awaiting Reply.
    Thanks in advance,
    Uday<b></b>

    See /thread/80270 [original link is broken]
    (please stop crossposting every question into two forums; thanks in advance)

  • Develop MDM Heirarchy table using Webdynpro Tree

    Hi
    Can anyone let me know how i can build a MDM Heirarchy table using webdynpro tree.
    Thanks

    Can you be more specific? Is your problem with MDM or Web Dynpro? And what do you mean by "build an MDM Hierarchy Table"?
    Walter

  • In struts Can't display dynamic content using "include"?

    Hi everyone:
    I am using struts1.1. I have a index.jsp and it have a hyperlink "<html:link forward="show">Show All forum</html:link>". In my struts-config.xml there is a element:"
    <global-forwards>
    <forward name="show" path="/jsp/allarticle.jsp"/>
    <forward name="oneforum" path="/article.jsp"/>
              <action path="/article" type="lyo.hotmail.bbs.lovearticle.Savelovearticle" input="/jsp/error.jsp">
              <forward name="success" path="/jsp/loveforum.jsp"/>
    </action>
    I want that the index.jsp will redirect to allarticle.jsp when user click the hyperlink "Show All forum".
    In the allarticle there is a hyperlink "<html:link forward="oneforum">one forum</html:link>"
    The Savelovearticle is an Action class and it disply all the data from database.I using "if(list!=null){
              session.setAttribute("listtable",list);
         }".I display all the content using "<logic:iterate id="love" name="listtable">
    " tag in allarticle.jsp.
    But the Tomcat report error "can't find listtable in any scope"?
    The problem is if I change the struts-config.xml to:
    ////////////////////////after change///////////////////////////////////////////
    <global-forwards>
    <forward name="show" path="/article"/>
    <forward name="oneforum" path="/article.jsp"/>
              <action path="/article" type="lyo.hotmail.bbs.lovearticle.Savelovearticle" input="/jsp/error.jsp">
              <forward name="success" path="/jsp/loveforum.jsp"/>
    </action>
    It will display all the content successfully.Why?
    Whether because that the Action is a servlet so it must retrieve a request directly.My first code don't send the request to the servlet other than send the request to a jsp page.The jsp page can't send the same request to the servlet so the error happened.right?
    How do I fix it?Thks :(

    You want to be using <html:link forward="YOUR_FORWARD"> only when you want to forward to static elements and not elements that require actions. So in index.jsp, since you just want to forward to a static jsp page (allarticle.jsp), you can use
    <html:link forward="show">Show All forum</html:link>But since you want your "one forum" link to populate a session attribute BEFORE loading /jsp/loveforum.jsp, you need
    <html:link action="article">one forum</html:link>The reason it's not working now is because you're accessing a session attribute that isn't populated becuase you link to the page statically and it never gets the value of "list" actually stored in the session.
    The reason it works when you change your forward element is because it calls the action that saves "list" into your session.

  • Display pdf file using webdynpro abap

    Hi Friends,
    My requirement is to display pdf file in the second page with the input  text  entered in the fisrt page when clicked on action
    button( in the first page) using webdynpro abap.
    Can anybody explain the step by step procedure as I am new to this area.
    Thanks in advance.
    Reagrds,
    Nagaraju

    Hi,
    Check this.,
    Creating a PDF file in webdynpro abap.
    Web Dynpro ABAP display pdf
    hope this helps u.,
    Thanks & Regards
    Kiran

  • Displaying UWL tasks in Webdynpro java application

    Dear Experts,
    I am developing a WebDynpro Java application to access uwl tasks,
    Have added the following code in try catch block with external jars
    1. prtapi.jar
    2. bc.uwl.service.api.jar
    IUWLService uwlService = null;
    IWDClientUser user1 = WDClientUser.getLoggedInClientUser();
    IUser epUser =user1.getSAPUser();
    IPortalRuntimeResources runtimeResources = PortalRuntime.getRuntimeResources();
    if( runtimeResources == null)
       wdComponentAPI.getMessageManager().reportSuccess("Portal Runtime NULL");
    else
       uwlService = (IUWLService)runtimeResources.getService( IUWLService.ALIAS_KEY);
    UWLContext uwlContext = new UWLContext();
    IUser user = user1.getSAPUser();
    uwlContext.setUser(user);
    uwlService.beginSession(uwlContext, 20);
    IUWLItemManager itemManager = uwlService.getItemManager(uwlContext);
    QueryResult result = itemManager.getItems(uwlContext,null,null);
    int size = result.getTotalNumberOfItems();
    ItemCollection collection = result.getItems();
    java.util.List list = collection.list();
    Item item = null;
    Date date = null;
    String subject = null;
    for(int i = 0; i < 5; i++)
      if(!(i > (size -1)))
          item = collection.get(i);     
          date = item.getDueDate();     
          subject = item.getSubject();
         wdComponentAPI.getMessageManager().reportSuccess("item "+item);
         wdComponentAPI.getMessageManager().reportSuccess("date "+date);
         wdComponentAPI.getMessageManager().reportSuccess("subject "+subject);
      }//if
    }//for
    I have created this webdypro application with Authentication mode set as True.
    After deploying this application, i'm getting this error...
    "java.lang.NoClassDefFoundError: com/sap/netweaver/bc/uwl/IUWLService "
    can anybody tell me what is the problem???

    Hi
    see the following link it will be helpful for u.
    [UWL Tasks|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#12]
    Regards
    Hazrath
    Edited by: Hazrath on Mar 25, 2008 8:01 AM

  • RoboHelp 8: can't display TOC content using Chrome

    I just converted from X5 to RH 8. I can open a single Web page in Chrome, but when I click on any of the buttons (Contents, Index, Search, Glossary), they do not work and displaying nothing. I've scoured the boards and found Peter's 103 snippet (http://www.grainge.org/pages/snippets/snippets.htm) and applied it to no effect. What am I missing??? Thanks.

    Okay, I have a fix (thanks to Tulika at Adobe) for those of you who are interested.
    I understand you are using Chrome 5 to view RH 8 output. Chrome 5 has a strict security policy for html pages viewed locally (from disk and not from some web server) because of which iframes in RH 8 output fail to load. If you publish the same output to any web server and view it in Chrome from there, it will work just fine for you.
    To enable local viewing of your output, you will have to disable this extra security check in chrome. You can do that by launching Chrome.exe with "--allow-file-access-from-files" option. Kindly ensure that you close all open Chrome instances and then launch Chrome with this option.
    You can find more details about this security issue in Chrome at this link : http://blog.chromium.org/2008/12/security-in-depth-local-web-pages.html
    Here's what I did to implement this fix and locally (and correctly) view my help in Chrome:
    Create a NEW Chrome shortcut on the desktop and rename it to RH Chrome (or some such indicator).
    Right-click the new Chrome icon and choose Properties.
    Add the "--allow-file-access-from-files" text to the end of the path displaying in Target, as shown in the below image. Make sure you leave a space between the original string and the tag you are adding to the end of it.
    Click OK to save.
    If you have any Chrome instances open, close them.
    To test, launch an instance of Chrome using the shortcut you created.
    Go to your file system and right-click any .html file in your RoboHelp WebHelp directory and choose Open with and then Google Chrome. Please note that I had to add Chrome as an "Open with" option. Because you have your customized instance of Chrome already opened, Help will auto-launch using that instance. I'm sure there's a better way to auto-launch this from RoboHelp itself, but this was a quick and dirty test just to make sure it was working.

  • Webdynpro abap application for HCM

    Dear all,
    In enterprise portal->Content Administration->PortalContent->Content provided by SAP->line_manager->Manager Self-Service->iviews->HCM-> there is a PCR application by name "personnel change request". this is a webdynpro java application.
    I have installed latest business package of ESS/MSS. so there should be both dynpro java and dynpro abap application. kindly tell me that for the personnel change request PCR application in which package can i find the wendynpro abap application.
    Regards,
    Bharath

    Dear Bharath,
    I am no expert on the topic but i can definitely answer your last question.
    Yes, Webdynpro ABAP applications are available in the latest versions.I have seen this in ECC Enhancement Package 3 (ECC 603).
    I can't really tell you much abt PCRs but the Requisition forms(SRQ3) in 603 are based on WDA application.If interested you can check the Recruitment work center in MSS.
    Also, please ensure that the relevant Business Function/Services are activated when using the enhancement packages to see the relevant functionalities.
    I think you need to activate the HCM administrative services BF available as of 602 . This definitely uses webdynpro ABAP applications in the portal.
    Regards,
    Sowmya
    Edited by: Sowmya Kadambi on Dec 23, 2008 3:23 PM

  • Printing Web contents using Java Fx.

    Hi,
    How to Print Web contents using Java Fx application? ie, displaying a web page as it is on the application..........
    Thanks......

    You might want to try to SwingComponentize third-party Java web browser (JDic, NativeSwing).
    Another recommended alternative is to wait for the JWebPane because it is designed to work with JavaFX (http://weblogs.java.net/blog/alex2d/archive/2008/12/jwebpane_projec_1.html). No date is given to JWebPane's release though. JWebPane will be my Christmas's wish.

  • How to display html content in flex hero..

    i need to display html content using flex hero for balckberry playbook..i could not find a component for it..i have tried with spark text area by setting its html text property via MobileTextField. bt i need a webview to load html content to execute javascript and all....Is there any component for it???? Please help....

    Hello,
    The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
    Here this is the iFrame approach:
    http://code.google.com/p/flex-iframe/
    If the swc do not work in Flex4 just use its ource code which works...
    ...it is basically based on this:
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
    see also and vote, please:
    http://bugs.adobe.com/jira/browse/SDK-12291
    http://bugs.adobe.com/jira/browse/SDK-13740
    Regards
    Marc

  • Webdynpro ABAP application for specific Country

    Hello Consultants
    We have developed a custom Webdynpro ABAP application and the service is working alright.
    The probelm is that this service is to be enabled only for one Country i.e. India and this should not be visible for other country users.
    I have created resource, service and country-specific service for this application and linked the country-specific service to India. Even after doing this am not able to stop  the availability of  this service other countries.
    Shall be thankful for an immediate response.
    S. Chandrasekaran

    Dear Bharath,
    I am no expert on the topic but i can definitely answer your last question.
    Yes, Webdynpro ABAP applications are available in the latest versions.I have seen this in ECC Enhancement Package 3 (ECC 603).
    I can't really tell you much abt PCRs but the Requisition forms(SRQ3) in 603 are based on WDA application.If interested you can check the Recruitment work center in MSS.
    Also, please ensure that the relevant Business Function/Services are activated when using the enhancement packages to see the relevant functionalities.
    I think you need to activate the HCM administrative services BF available as of 602 . This definitely uses webdynpro ABAP applications in the portal.
    Regards,
    Sowmya
    Edited by: Sowmya Kadambi on Dec 23, 2008 3:23 PM

  • User Roles & Authorization to run 'WebDynpro ABAP Application scenarios'

    Hi All,
    I am developer and my user ID is having developer roles, so when i am testing
    'WebDynpro ABAP Application scenarios' it is working fine.
    Problem is when I am executing with enduser portal WWID's (i.e. WWID's are also defined as sap
    user), 'WebDynpro ABAP Application scenarios' giving me dump in screen & in ST22.
    Pls guide me what roles or authorization we need to assign to user ID's
    who can use 'WebDynpro ABAP Application scenarios'.
    URL for Webdynpro application is like : https://xxxx.yyyy.zzzz:/sap/bc/webdynpro/sap/ZPA_EXTENSION_U?ZDATA=10028705591320090406
    ST22 Error when testing with portal WWID's
    Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED_NO
    Exception              CX_SY_REF_IS_INITIAL
    Short text
        Access via 'NULL' object reference not possible.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "CL_WD_ADOBE_SERVICES==========CP" had to be
         terminated because it has
        come across a statement that unfortunately cannot be executed.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
         caught in
        procedure "PARSE_XML_SCHEMA" "(METHOD)", nor was it propagated by a RAISING
         clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        You attempted to use a 'NULL' object reference (points to 'nothing')
        access a component.
        An object reference must point to an object (an instance of a class)
        before it can be used to access components.
        Either the reference was never set or it was set to 'NULL' using the
        CLEAR statement.
    Explorer screen error
    Error when processing your request
    What has happened?
    The URL https://xxxx.yyyy.zzzz:/sap/bc/webdynpro/sap/ZPA_EXTENSION_U/ was
    not called due to an error.   
    Note
    The following error text was processed in the system QJ1 : Access via 'NULL' object reference not
    possible.
    The error occurred on the application server sapqj1ci_QJ1_78 and in the work process 21 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: PARSE_XML_SCHEMA of program CL_WD_ADOBE_SERVICES==========CP
    Method: GET_SCHEMA_VERSION of program CL_WD_ADOBE_SERVICES==========CP
    Method: CONSTRUCTOR of program CL_WD_ADOBE_SERVICES==========CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: CONV_VIEW_INTO_VE_ADAPTER_TREE of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: SET_CONTENT_BY_WINDOW of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Thx

    Please refer to thread [Authorization Error|WDA adobe error] where various solution to the problem specified by you are described.
    Regards
    Rohit Chowdhary
    Edited by: Rohit Chowdhary on Apr 7, 2009 9:41 PM

  • IE11 compatibility of application developed using webdynpro java in NWDS7.01.12

    Hi,
    I have a webdynpro java application developed using NWDS 7.01.12 with jdk1.4. This portal application is not working when accessed using IE11 browser. The action on buttons and selection from a drop down list in this application is not responding in IE11. Its working well with mozila fire fox vrs 31. On click of action the following error is encountered:
    SCRIPT438: Object doesn't support property or method 'attachEvent'
    File: sapUrMapi_ie6.js, Line: 683, Column: 7
    which points to the below piece of code:
    function sapUrMapi_initLinkStatus() {
      var oNodes = document.getElementsByTagName("A");
      for (var n=0;n<oNodes.length;n++) {
        if (oNodes[n].href.indexOf("javascript:void")>-1) {
          oNodes[n].attachEvent("onmouseover",sapUrMapi_resetStatus);
          oNodes[n].attachEvent("onfocus",sapUrMapi_resetStatus);
    Also on selection from the combo box the below error is displayed.
    SCRIPT438: Object doesn't support property or method 'createEventObject'
    File: sapUrMapi_ie6.js, Line: 2193, Column: 2
    Code:
    oComboBoxSCEvent = document.createEventObject( oEvt);
    The above mentioned errors are being pointed to sapUrMapi_ie6.js file.
    Is there any solution to over come these issues other than setting "user agent string" value in the browser?
    Can this be resolved with any changes in the application or is there any SAP provided solution?
    Please help me to resolve this issue.
    Similar issues are also pointed to popup_ie6.js files at "window.attachEvent("onload",sapPopup_init)" and
    "window.document.attachEvent("onmousemove",resetMouseOver)".
    Thankyou.

    Hi Karthika,
    It is mentioned in Ervin's famous doc, that NWDS version must match that of RunTime System.
    NWDI vs. NWDI content
    I thought the NWDS must be updated via update sites, but surprisingly I could find the patch in service market place.
    I do not know how to get the download link directly for you.
    Perhaps you can spare a few seconds and navigate to
    http://service.sap.com/swdc
    Support Packages and Patches
    A-Z Index
    N
    SAP NetWeaver
    EHP1 for NetWeaver 7.0
    Entry by Comopnent
    Developer Studio
    BR, Tom

  • Error in displaying PDF file in webdynpro application

    Hi Experts,
    I am trying to display one pdf file using webdynpro abap using MIME.
    While executing the application i am getting an error in the browser:
    " File doesnot begin with '%PDF-' "
    Please help me to proceed.
    Regards,
    Arun.

    Hi Arun,
    Please check this...
    File does not begin with %PDF
    File does not begin with %PDF
    Cheers,
    Kris.

Maybe you are looking for

  • Can I have one itunes account, but have two devices that used different email accounts?

    I have an iPad2 and want to buy an iPod Touch for my daughter.  I want it to use her email address, but use my itunes account.  Can that be done?

  • Tab bar has disappeared from view and from list of toolbars. How can I get it back?

    I was fooling around with the toolbar options, trying (unsuccessfully!) to return to the toolbar layout I had before Firefox was automatically upgraded (without my permission!). I was trying to move the tabs bar down below the other toolbars. Suddenl

  • IPhone went black? What happened?

    My iPhone 4 suddenly went black after trying to upload a video to facebook. It is unresponsive to anything including the charger and resetting. I didnt drop it and now I just dont know what to do. Help??

  • XSL and XSQL

    I am querying a database with XSQL and then returning the results in XML which is interpreted by an XML-stylesheet. The stylesheet is used to convert the xml to html. I have trouble however putting the output from my sql query into the value fields o

  • [Error] pidgin 2.4.1-1

    Purple's D-BUS server is not running for the reason listed below Failed to get connection: Failed to execute dbus-launch to autolaunch D-Bus session after update the pidgin 2.4.0 to 2.4.1 I get this Error message.