KM Document Iview Source Code

Hello all,
The standard KM Document Iview needs to fill manually value for property "Path to Document". I would like to make it dynamic by getting that Path value from a backend system. Is there any way to get the source code of KM Document Iview?
Thanks,
villalain

Hi Villalain,
the easiest way to achieve this is to write something we call "proxy iview", that is a component (AbstractPortalComponent, implementing doOnNodeReady), which calculates the path (in your case: gets it from a backend system) and after that just calls the document component (by using the URL generator), passing the path dynamically (by calling redirect on the request object).
For further details, just type "proxy iview AND detlev" into the SDN search.
Hope it helps
Detlev
PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

Similar Messages

  • Downloading iView Source Code

    Hello,
    I'm trying to download the source code for the Record Working Time iView.  None of the ESS-related tracks in NWDI have the code I'm looking for.  I've created a new track and put the EA-HR Software Component in it, but when I imported the configuration for the remote DC, there was no code in it to turn into an NWDS project.
    I went to the SAP Marketplace and downloaded the installation package, thinking the code would be in there, but there were no .sca files in there when I unpacked it - just a .pat file with no .att file. 
    My questions are:
         - Would the source code be in the maintenace packages?  If not, where would I find it?
         - I have the EA-HR maintenance packages (EA-HR 605: 0001-0015) in my Approval List awaiting download regardless of whether or not the code I need would be in one of them, who approves this?  Would it be someone in my company, or do we need to contact SAP for approval?
    Thank you very much,
    Jamie

    Hi Marcin,
    In addition to specialized iView Editors that are available for certain iView types (for example, URL iView Editor and XML iView Editor), you edit other iView properties in the Property Editor.
    You must be granted the appropriate permission to edit the iView.
    In the Property Editor, you can:
    ·Customize property values
    ·Modify metadata attributes of each property
    check the below link for any issues.
    http://help.sap.com/saphelp_nw04/helpdata/en/13/81a66d100011d7b84b00047582c9f7/content.htm
    Regards,
    Ponneswari.

  • Iview source code

    Hello Experts,
    I have to change iview/page properties  and hide vertical scrollbar of iview and page. Is this possible to change some source code of iview? If is it that how can I do that?
    I ve tried this one but I don't know where I can pass my change of code.
    removing horizontal scrollbar
    Best regards
    Martin

    Hi Marcin,
    In addition to specialized iView Editors that are available for certain iView types (for example, URL iView Editor and XML iView Editor), you edit other iView properties in the Property Editor.
    You must be granted the appropriate permission to edit the iView.
    In the Property Editor, you can:
    ·Customize property values
    ·Modify metadata attributes of each property
    check the below link for any issues.
    http://help.sap.com/saphelp_nw04/helpdata/en/13/81a66d100011d7b84b00047582c9f7/content.htm
    Regards,
    Ponneswari.

  • How to document ABAP Source Code like doxygen

    Hi, all.
    Is there any way or tool to generate HTML from ABAP source code? Like doxygen?
    What i want to do is like the following.
    - Retrieve all the ABAP source code of a specified package.
    - Generate HTML(coloring of keywords or so) from the ABAP source code.
    Best Regards.
    Sejoon Ahn

    You dont need to check the source code to find whether program is moved to PRD.
    Just check the version management of program in development itself.
    Click on transport log of request to find it.

  • How to print source code

    Hi
    I know will sound a stupid question but i do not know how to do it
    i need to add to a Word document the source code of a university project
    i want to maintain the different colors of the code as in a IDE
    any advice?
    thanks in advance

    If you have NetBeans, there's a menu selection File --> Print to HTML... which allows you to save your code, with formatting, as an HTML file.
    The HTML file can be opened in MS Word and saved as .doc.
    db

  • How to format programming source-code in a Framemaker document?

    I have to write up a technical document in Framemaker that explains various programming source-code.
    So my document consists of a bunch of text, followed by a bunch of source code (Java, XML) and then followed by more text, etc.
    What I'm confused about is how to format source code as part of my document. Has anyone done this for a technical document and come across any instructions or tips? So far my Googling hasn't produced anything relevant to what I need to do.

    If you haven't created a paragraph format that uses a fixed-width font, such as Courier or a console font, you need to do that.
    If you want to preserve line breaks in the code, and if it has fairly long lines, you're likely to need to specify a font size of 7 pt. or so. For really long lines, you may need to go to a landscape page format or incorporate a way of telling your readers that the lines wrap.
    Those are the basics. If you want to get fancier, I usually set up a table so I can apply a contrasting background tone, and format each line of code as a cell (it's a one-column table). You can also add a second column to hold line numbers, if you want.
    Art

  • Any source code analyzing documents about ifolder?

    Hi,guys
    these days we want to do some work on ifolder.So,the first step is to analyze the source code,but I just found : simias: Class List
    do you have any related documents? prefer the overall architecture of ifolder.
    if you have,please share me one copy,thank you very much!

    Try the free Metalogix Content Matrix tool. It is good for up to 25GB.
    http://www.metalogix.com/Products/Content-Matrix/Compare.aspx
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Using .xsl in javascript for portal .html (document iview)

    Hi,
    I prepared .html document has javascript code in it.
    Javascript code uses activex object to process .xsl for xml operation.
    I used html document in document iview but problem occured.
    I think activex object cause the problem or i gave wrong address  for xsl document.
    If i place xsl document in same folder with html document, how can it be addressed (xsl path)?
    Is there sample html document using javascript code that uses xsl and activex object in it?
    And is it tested as document iview with no problem?
    Thanks.

    I just completed designing a website for my restaurant using Dreamweaver 8. I included my menu as part of the website and now wanted to print it for customer use in the restaurant. The document is in html format.
    You can only print your source code from Dreamweaver. I don't have DW8 installed anymore, but i think it's: File > Print (or Print Code).
    If you want to print how it looks with the HTML rendered, then print it from a browser.
    HTH,
    Randy

  • Link in KM Document Iview

    Hi,
       I have created KM Document iview.In that Document i have given a link,but that link is displaying in new window.I want that link to be displayed in same area instead of seperate window,replacing the original document iview.Plz help to sort out this problem.
    Thanking you
    santosh saraf

    Hi Detlev / All,
    I am trying to do something similar: I have a Document iView that points to a HTML file. In this HTML, i need to provide a link that will trigger a navigation event. So i did as usual: created the html and put the code:
    <a href="#" onClick="return EPCM.doNavigate('NavTarget'); void(0);">Link</a>
    However, when i run the iview it gives me a JavaScript Error, saying EPCM is undefined. Why can't I call EPCM from the KM Document iView?
    I have tried to put it directly on the HREF portion of the link, like this:
    <a href="<my URL>/irj/portal/index.htm?NavigationTarget=NavTarget">Link</a>
    And it works, except for one detail: if i point the link to _blank, it opens a new window. If i point to _self or nothing, it opens a new portal inside the iView. But i need another behaviour: I need to swap the source page with the target page and adjust the TLN, just as doNavigate() does. Is there any "easy" way of doing it?
    Thanks in Advance!
    Thiago

  • Ask again:  Where can I find source code for CPRM algorithm?

    Hi, everyone.
    Where can I find reference implementation or some sample codes for CPRM(content protection for recordable media) algorithm? Can anyone help?
    Information about CPRM can be find here,
    http://www.4centity.com/
    JAVA version is preferred and C/C++ implementation is also OK.
    Thanks in advance,
    Geo

    Thanks, edsonw buddy!
    I only found C2 cipher source code and some other documents dealing with CPRM algorithm. And what I want is total CPRM implementation reference source code (C2 is only a basic module of CPRM algorithm).
    So can you provide me some useful information dealing with how to get total CPRM implementation reference source code? Both JAVA and C/C++ will be OK.
    Have a wonderful weekend,
    George

  • On file open: "This document contains JavaScript code for a widget that no longer exists."

    I had an existing, functional datepicker in a web page.
    Recently I downloaded the UI Datepicker in the Widget Browser and installed it in DW CS5. Now every time I load the file that calls the datepicker that I added myself, a warning opens with the following text:
    This document contains JavaScript code for a widget that no longer exists. If you don't remove the code, the browser might display JavaScript errors when loading the page. Would you like Dreamweaver to find all instances of this code for you?
    Widget: $("#reservDateBegin").datepicker();
    Widget: $("#reservDateEnd").datepicker();
    Clicking "Yes" opens the file and shows the search box at the bottom of the window with [current document] in File and $("#reservDateEnd").datepicker(); in Matched Text. Clicking "No" just opens the file.
    The error is wrong, since installing the widget is what caused the error in the first place!
    How can I get DW to stop showing this message?
    Thanks for any help.

    I do understand you're trying to be helpful. I was just hoping providing the relevant code snippets would be sufficient so I didn't have to take the time to provide a "cleaned" version of the files and upload those to a public-safe location.
    Zabeth69 wrote: If you don't understand what 'code at the bottom of the page' means, you have not used one of those systems. I don't know what causes the error code to come up (besides removing a Spry widget, I mean). So if it doesn't apply to you, ignore it.
    This is exactly my point: I haven't used any of the DW "systems". I've always manually coded in DW, so I can't have removed a Spry widget in the first place. It wasn't until I installed the Widget using the Widget Browser that I started getting the error (I don't mean adding the datepicker widget to the code using the DW Insert menu - I mean installing the Widget into DW itself). Ignoring such an erroneous/incorrect error seems kind of silly, since every time I open the file I get the error message.
    Anyway, as requested, the following are links to the contactUsCleaned.php page, and the php included headerCleaned.php file. Since these use php includes to complete the rendered HTML, they won't look right in the browser, but as you know viewing the source will show the relevant html, javascript, and jquery code. I didn't see any way to upload the files in this forum, which, due to the php code, would be preferable to see exactly what my code looks like...
    http://www.eventidewebdesign.com/public/contactUsCleaned.php
    http://www.eventidewebdesign.com/public/headerCleaned.php
    The footer.php file the contactUs page includes is simply a set of HTML links to the pages on the site, copyright info, and the Google Analytics script. There is no other code in the footer.php file.

  • Debugger stopped on uncompilable source code.

    Dear Friends,
    I got the Error as like
    Debugger stopped on uncompilable source code.
    The code is down!!!
    I could not figure out the reason, why it comes. !!! I read data from a txt file and generate an XML file.
    please any 1 help me to solve this
    Priya
    package java.Associations;
    import java.io.*;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Scanner;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.Text;
    import com.sun.org.apache.xml.internal.serialize.OutputFormat;
    import com.sun.org.apache.xml.internal.serialize.XMLSerializer;
    public class XMLCreatorExample {
    //No generics
    List myData;
    Document dom;
    public XMLCreatorExample() {
    //create a list to hold the data
    myData = new ArrayList();
    //initialize the list
    loadData();
    //Get a DOM object
    createDocument();
    public void runExample(){
    System.out.println("Started .. ");
    createDOMTree();
    printToFile();
    System.out.println("Generated file successfully.");
    * Add a list of books to the list
    * In a production system you might populate the list from a DB
    private void loadData(){
    Scanner inputFile = null;
    try {
    inputFile = new Scanner(new File("C:\\coding\\weka\\1.txt"));
    while(inputFile.hasNext()) {
    myData.add(inputFile.next());
    catch(FileNotFoundException fNFE) {
    System.out.println("The file was not found");
    finally {
    inputFile.close();
    //myData.add(new Book("Head First Java", "Kathy Sierra .. etc","Java 1.5"));
    //myData.add(new Book("Head First Design Patterns", "Kathy Sierra .. etc","Java Architect"));
    * Using JAXP in implementation independent manner create a document object
    * using which we create a xml tree in memory
    private void createDocument() {
    //get an instance of factory
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    try {
    //get an instance of builder
    DocumentBuilder db = dbf.newDocumentBuilder();
    //create an instance of DOM
    dom = db.newDocument();
    }catch(ParserConfigurationException pce) {
    //dump it
    System.out.println("Error while trying to instantiate DocumentBuilder " + pce);
    System.exit(1);
    * The real workhorse which creates the XML structure
    private void createDOMTree(){
    //create the root element <Books>
    Element rootEle = dom.createElement("Books");
    dom.appendChild(rootEle);
    //No enhanced for
    Iterator it  = myData.iterator();
    while(it.hasNext()) {
    Book b = (Book)it.next();
    //For each Book object  create <Book> element and attach it to root
    Element bookEle = createBookElement(b);
    rootEle.appendChild(bookEle);
    * Helper method which creates a XML element <Book>
    * @param b The book for which we need to create an xml representation
    * @return XML element snippet representing a book
    private Element createBookElement(Book b){
    Element bookEle = dom.createElement("Book");
    bookEle.setAttribute("Subject", b.getSubject());
    //create author element and author text node and attach it to bookElement
    Element authEle = dom.createElement("Author");
    Text authText = dom.createTextNode(b.getAuthor());
    authEle.appendChild(authText);
    bookEle.appendChild(authEle);
    //create title element and title text node and attach it to bookElement
    Element titleEle = dom.createElement("Title");
    Text titleText = dom.createTextNode(b.getTitle());
    titleEle.appendChild(titleText);
    bookEle.appendChild(titleEle);
    return bookEle;
    * This method uses Xerces specific classes
    * prints the XML document to file.
    private void printToFile(){
    try
    //print
    OutputFormat format = new OutputFormat(dom);
    format.setIndenting(true);
    //to generate output to console use this serializer
    //XMLSerializer serializer = new XMLSerializer(System.out, format);
    //to generate a file output use fileoutputstream instead of system.out
    XMLSerializer serializer = new XMLSerializer(
    new FileOutputStream(new File("C:\\coding\\book.xml")), format);
    serializer.serialize(dom);
    } catch(IOException ie) {
    ie.printStackTrace();
    public static void main(String args[]) {
    //create an instance
    XMLCreatorExample xce = new XMLCreatorExample();
    //run the example
    xce.runExample();/**/
    package java.Associations;
    public class Book {
    private String title;
    private String author;
    private String subject;
    public Book(String subject) {
    this.subject = subject;
    public Book() {
    public Book(String title, String author, String subject) {
    this.title = title;
    this.author = author;
    this.subject = subject;
    public String getAuthor() {
    return author;
    public void setAuthor(String author) {
    this.author = author;
    public String getTitle() {
    return title;
    public void setTitle(String title) {
    this.title = title;
    public String getSubject() {
    return subject;
    public void setSubject(String subject) {
    this.subject = subject;
    public String toString() {
    StringBuffer sb = new StringBuffer();
    sb.append(" { Book Details --");
    sb.append("Title:" + getTitle());
    sb.append(", ");
    sb.append("Author:" + getAuthor());
    sb.append(", ");
    sb.append("Subject:" + getSubject());
    sb.append(". } \n");
    return sb.toString();
    }

    One of your .java files doesn't compile (has compilation errors.). Make sure there are no compilation errors before you attempt to run/debug the program.
    P.S Why are you posting this across multiple forums?

  • Where to get the source code of the owa_cookie.send procedure?

    I want to know where you get the source code of the owa_cookie.send procedure? I can only get the header of this package from ...\RDBMS\ADMIN\pubcook.sql. Could you paste the whole source code here and then I can modify it to set the 'httponly' attribute? I also have a problem that after changing the package, how to use the package I changed? Does it still a system package here? Or it has been changed to an user-defined package in database and I need to execute the package on the database for the web server?
    Thank you!

    Hi Arun,
    I am unable to see the pcui_gp components in the DTR ,I require this in order to get the source code of one of its component.
    Can you please tell me the step by step procedure getting those pcui_gp components from J2ee engine to the  dtr or  NWDI.
    If there are any documents on pcui_gp components exclusively please do forward to my mail id [email protected]
    Thansk and Regards,
    Anand.

  • How to get the source code of a PRT application in the portal

    Hi!
    Does anybody know how to get the source code of a PRT application in the portal?
    Thanks in advance,
    Celso

    Celso,
    If its Java-based code have a look at the properties of an iView that belongs to the application in question and copy the value of the Code Link parameter e.g. 'com.sap.pct.hcm.rc_vacancyrequestov.default'.
    Search the Portal installation directory under /j233/cluster/server/ for a .par.bak file of the same name, removing .default from the codelink parameter
    e.g. com.sap.pct.hcm.rc_vacancyrequestov.par.bak
    Copt this locally and import into Netweaver Developer Studio. You will have to decompilte the class files with a decompiler such as DJ Decompiler or Cavaj (search with Google).
    Cheers,
    Steve

  • Where to  find the pcui_gp  components ,How to get the source code of those

    Hi All,
    Can anybody tell the exact location wher the pcui_gp components will be stored if they are  not appearing.
    And another question is how to get the source code of the pcui_gp for customization.
    anybody working on these compoents please help me.
    answers will be rewarded.
    thanks and regards,
    anand

    Hi Arun,
    I am unable to see the pcui_gp components in the DTR ,I require this in order to get the source code of one of its component.
    Can you please tell me the step by step procedure getting those pcui_gp components from J2ee engine to the  dtr or  NWDI.
    If there are any documents on pcui_gp components exclusively please do forward to my mail id [email protected]
    Thansk and Regards,
    Anand.

Maybe you are looking for