Link to a folder in XML form

Hi Guys!
I was faced with a strange problem.
I want to add link to some folder to an XML form. Like with link to 'Read more' document in SAP's example.
But...
If I select folder in a moment of creation of XML form via standard browser controll, there is path to that folder ('/documents/Public documents' for example) in a field. On presentation time (in NewsExplorer iView) clicking on that link opens 'http://myportal.domain/irj/go/km/docs/documents/Public documents/' instead of 'http://myportal.domain/irj/go/km/navigation/documents/Public documents/'...
What can I do with that?
Thanks in advance!
Regards,
DK

Hi Denis Kleymenov,
If you do not set "Start In" property of the "Browser" control, by default it will show you "root>>documents>>"
root = "http://servername:10000/irj/go/km/docs/"
For example if you select an image which is resided under "root\documents\teamindia.jpg" it will show you below path.
"http://servername:10000/irj/go/km/docs/documents/teamindia.jpg"
not as you expected below
"http://servername:10000/irj/go/km/nagivation/documents/teamindia.jpg"
if you need any specific repository folder for the target selection. Please set "Start In" property of the "Browser" control like below
Ex:
/Your repository name/followed by folder structure/
/XTest/Home/Documents/Images/
Thanks,
Satyadev

Similar Messages

  • Issue in Java Scipt in XML form

    Hello Experts,
    I have one issue in our client portal, which is really giving me hard time to resolve.
    So I have come to you experts for helping me to resolve this issue.
    So below are the details of the issue.
    Actually it goes like that, we are using B.Texx in our Portal Environment and most of the work is done by the users in the portal, who has author rights. Please note that Authors have the right to Edit and save the content.
    Most of the things are made on XML forms, with the help of Java Scripts.
    Now there is one XML form(Add General Content), through which users add the general contents and there is one template provided to the user for that content. The XML forms are integrated here with the Tiny MCE editor.
    Now, there is one link (Insert/edit link) in the Tiny MCE editor, when we write some text in the body and select the text, the link in the editor gets activated and when we click on the link, a pop up comes up, in which there is a browse button, through which we select the Navigation Element Link , which takes us in the navigation of the portal content(the way it is viewed by user in the portal according to the roles ), showing us different content and we select an content and press finished. Now the selected text becomes as a link in the body of xml form, then we fill up the title and there is one preview button. When we click on the preview button, the link is displayed to us.But when we click on that link nothing happens.
    Please note that if we save that form, the links appears on portal and we are able to navigate through the link.
    For this I have checked the js file(xmlformpreview_redirect.js)  responsible.I am sharing the code of the js file below.
    // @author llaegner
    // Get current URL of XML Forms Preview
    // This Javascript should be included in the ShowForm Formular (old XSL Style)
    // in xml forms builder in a label-field in the attribute caption
    // this javascript file is then called by the Preview Button on an Edit Form, because the ShowForm is launched automatically always
    // @changes by ekaraca
    // Add a if-Control so a redirect will work by clicking the xml file as well
    var currentURL=top.location.href;
    var redirectURL="";
    var startOfParameters=currentURL.indexOf("?");
    if (startOfParameters < 0) startOfParameters=currentURL.indexOf("%3F");
    if (startOfParameters > 0) {
         // Provide all parameters for SAP original preview iview to our new iview
        redirectURL="/irj/servlet/prt/portal/prtroot/com.btexx.pct.easyWCM.customer.addons.xmlformpreview"+currentURL.substring(startOfParameters);
    if(currentURL.substring(currentURL.length-4)==".xml") {     
         var xmluri = currentURL.substring(currentURL.indexOf("/irj")+15, currentURL.length); /* /irj/go/km/docs <---- 15 letters */
         redirectURL="/irj/servlet/prt/portal/prtroot/com.btexx.pct.easyWCM.customer.addons.xmlformpreview?show/test="+xmluri;     
         top.location.href=redirectURL;
    else {
         // If we have found something to redirect
         if (redirectURL.length > 1) {
              // Change current location and switch immediately to new iview
              top.location.href=redirectURL;
    I would really appreciate if any of you experts help me resolve this issue.
    So I am eagerly waiting for the response from all of you.

    Experts...still waiting for your comments.

  • Issue in Preview through XML forms having TinyMCE editor

    Hello Experts,
    I have one issue in our client portal, which is really giving me hard time to resolve.
    So I have come to you experts for helping me to resolve this issue.
    So below are the details of the issue.
    Actually it goes like that, we are using B.Texx Framework in our Client Portal Environment and most of the work is done by the users in the portal, who has author rights. Please note that Authors have the right to Edit and save the content.
    Most of the things are made on XML forms, with the help of Java Scripts.
    Now there is one XML form(Add General Content), through which users add the general contents and there is one template provided to the user for that content. The XML forms are integrated here with the Tiny MCE editor.
    Now, there is one link (Insert/edit link) in the Tiny MCE editor, when we write some text in the body and select the text, the link in the editor gets activated and when we click on the link, a pop up comes up, in which there is a browse button, through which we select the Navigation Element Link , which takes us in the navigation of the portal content(the way it is viewed by user in the portal according to the roles ), showing us different content and we select an content and press finished. Now the selected text becomes as a link in the body of xml form, then we fill up the title and there is one preview button. When we click on the preview button, the link is displayed to us.But when we click on that link nothing happens.
    Please note that if we save that form, the links appears on portal and we are able to navigate through the link.
    For this I have checked the js file(xmlformpreview_redirect.js)  responsible.I am sharing the code of the js file below.
    // author llaegner
    // Get current URL of XML Forms Preview
    // This Javascript should be included in the ShowForm Formular (old XSL Style)
    // in xml forms builder in a label-field in the attribute caption
    // this javascript file is then called by the Preview Button on an Edit Form, because the ShowForm is launched automatically always
    // changes by ekaraca
    // Add a if-Control so a redirect will work by clicking the xml file as well
    var currentURL=top.location.href;
    var redirectURL="";
    var startOfParameters=currentURL.indexOf("?");
    if (startOfParameters < 0) startOfParameters=currentURL.indexOf("%3F");
    if (startOfParameters > 0) {
         // Provide all parameters for SAP original preview iview to our new iview
        redirectURL="/irj/servlet/prt/portal/prtroot/com.btexx.pct.easyWCM.customer.addons.xmlformpreview"+currentURL.substring(startOfParameters);
    if(currentURL.substring(currentURL.length-4)==".xml") {     
         var xmluri = currentURL.substring(currentURL.indexOf("/irj")+15, currentURL.length); /* /irj/go/km/docs <---- 15 letters */
         redirectURL="/irj/servlet/prt/portal/prtroot/com.btexx.pct.easyWCM.customer.addons.xmlformpreview?show/test="+xmluri;     
         top.location.href=redirectURL;
    else {
         // If we have found something to redirect
         if (redirectURL.length > 1) {
              // Change current location and switch immediately to new iview
              top.location.href=redirectURL;
    I would really appreciate if any of you experts help me resolve this issue.
    So I am eagerly waiting for the response from all of you experts present here.

    guys i m still waiting for some expert comments here...plz help me out.

  • Filter Predefined Properies, Feedback Search, XML Forms Show form issues

    Hi all,
    I have created XML forms with XML builder and I have some questions.
    1. When filtering by predefined properties I want to filter by two properties, which are the same. For example, if there is a publication with two authors and author is the predefined property, in the first field I write the name of the first author, in the second field I write the name of the second author, the result is all publications, which are by both authors and all publication, which are either by the one, or by the other.
    I don't have this problem when I filter by two different predefined properties. For example the author and the year. Than the result is all publication, which are by the author AND published in the requested year.
    How can I set this option to be able to filter by two same predefined properties and the relation between both properties to be AND?(only publications by both author)
    2. In the Show form I have created link to the feedback, using XML Forms BUilder, but I need to write first the feedback to be able to see already existing feedbacks,
    if there are any. In the ResourceRendering Form I have created link to the feedback by LayoutSet, where I can see first, if there are already existed feedbacks.
    If there is any possibility to set a LayoutSet for the Show Form or any other way in the Show form to display first the existing feedbacks and than to be able to write a new.
    And something else reffering to the Show form, is it possible to rate the item from Show form or at least to have link to the rating, not a link to the Details.
    I have tried to create a link to the /Properties/col:rating, but it doesn't work. The link dispays the value, if it has been already rated.
    3. Is it possible to search for any information in the feedbacks(to make the feedback searchable)?
    Thanks in advance for any help.
    Best regards,
    Zlatina

    Hi Zlatin,
    -> 1
    By Default identic properties queries are connected by an 'OR'.
    Please have a look into the documentation for further info.
    http://help.sap.com/saphelp_nw04/helpdata/en/85/80b3d4c9ef11d5993e00508b6b8b11/frameset.htm
    -> Search Options
    So far it's not possible to connect two identic proerties by an 'AND' within the standard.
    You can preset a search filter via the relevant Search Option Set.
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/765140c770cd01e10000000a155106/frameset.htm
    Regards Matthias Röbig-Landau

  • Cannot use XML Forms Builder - HTTP response: 500 - Internal Server Error

    Hi,
    I am trying to use XML Forms Builder, have added the corresponding role to my profile and when I create a new application or do anything I get the following error popup:
    HTTP response: 500 - Internal Server Error.
    What should I do ??
    Thank you for your help.
    Thibault Schalck

    Hi,
    Check the below link for environment checking of XML Form Builder
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9e/9c8f411467ac5fe10000000a1550b0/frameset.htm
    Raghu

  • XML forms app with link pointing to KM folder

    Hi guys!
    I need to create in XML forms an application for messages. A message should include a link, which will point into KM folder with documents or photos. This link can be for each message different.
    How to achieve this?
    Thanx!
    Peter

    Hello Peter,
    If you use a "Browser" Element in the XML Forms Builder, you can assign the type Object or Preview for images. The data Sheme should point to Rid or Image (depends what you want), this is a property of the data sheme element in the lower left corner.
    hope this helps,
    Axel
    Please consider rewarding points to helpful answers on SDN

  • How can we create the Readmore link in XML form to opened  the KM folder

    Hi!
    I 'm working on XML form. I have the readmore link in the form . Nomorrally readmore will link to open the file only . however, I need the readmore link to opend the list of document folder in KMconten -> documents. How can we do? Is it possible.
    Thanks and best regards,
    Vimol

    Hi ,
    On the tool bar you have an option "Browser" which is next to "HTML Editor" .
    You know that for using these elements wo have to map them with Data Schema.
    Step by step
    1. In data Model Under Data Schema Add a child and name it Read_More.
    2. In the left hand corner ,click on tab Type and from the drop down select "rid"
    3.Click on the "Browser" from the toolbar (as told earlier) and drag and drop it on the form.
    4. Drag the Data schema which u have made(Read_more) and drop it on the browser on form. On right hand side u will se the mapping done.
    5.Click on the "Browser" which is there in the form and on the right hand side of the form u will see the property window.
    6.In property window change the value of action property to "Item Entry point"
    7. Repeat step 3 and 4 in Render and show form but using "label" nad not browser.
    Do not forget to add Save button in Edit Form.
    This will solve your problem.
    PS:Rewards Point Please.
    Regards,
    Naveen Gupta

  • XML Forms & Read me link

    Can anybody help on this issue i'm having.
    I've created a XML form to display company news.  When the news is created I want the functionality to be able to include attachments, which i have done by including a browser control, type RID, style 'Report Link' on the 'show' form.
    However it could be that the user wants to attach >15 documents.  I tried to do this using the same concept linking to a KM folder opposed to a file, however when trying to display the contents of the KM folder i get the following message:
    <i><b>
    'The folder you are looking for has no displayable content.
    You can try one of the following:
    Access the folder using the Navigation user interface.
    Access the folder as a Web folder. Your operating system and browser dictate whether or not this will work. '</b></i>
    I would appreciate if anyone else has had the similar issues and how it was resolved.
    Thanks
    Mark

    Trevor,
    I've got a text control on the form of name 'RelatedLinks..'  At the bottom of this post is an extract of the 'show form'.  The section in bold is where was previously set to just
    <p>
    <b><xsl:value-of select="RelatedLink"/></b>
    <p>
    and was replaced by
    <p>
    <b><xsl:value-of select="'/irj/go/km/navigation/'"/>
    <xsl:value-of select="RelatedLink"/>
    <xsl:value-of select="'?rndLayoutSet=DisplayAttachments'"/></b>
    <p>
    Hope this makes sense.
    <p>
    Cheers
    Mark
    <p>
    PS.  Please note that if you make any amendments and republish the form you will have to change this form again.
    <p>
    <xsl:if test="RelatedLink!=''">
                      <a tabindex="12406" class="urLnkReport urTxtStd">
                        <xsl:attribute name="title">
                          <xsl:value-of select="$resources/TEXT[@AKEY='tol_LD_1186483059751']"/>
                        </xsl:attribute>
                        <xsl:if test="RelatedLink!=''">
                          <xsl:attribute name="href">
                            <xsl:variable select="translate(substring(RelatedLink,1, 11), $ucletters, $lcletters)" name="lcval"/>
                            <xsl:if test="not(starts-with(normalize-space($lcval), 'javascript:'))">javascript:open_url_customized('<xsl:choose>
                                <xsl:when test="starts-with(RelatedLink, 'imagepath/')">
                                  <xsl:value-of select="$imagepath"/>/<xsl:value-of select="substring-after(RelatedLink, 'imagepath/')"/>
                                </xsl:when>
                                <xsl:when test="starts-with(RelatedLink, '$imagepath/')">
                                  <xsl:value-of select="$imagepath"/>/<xsl:value-of select="substring-after(RelatedLink, '$imagepath/')"/>
                                </xsl:when>
                                <xsl:when test="starts-with(RelatedLink, '%projectroot%/')">
                                  <xsl:choose>
                                    <xsl:when test="$projectroot!=''">
                                      <xsl:value-of select="$projectroot"/>
                                    </xsl:when>
                                    <xsl:otherwise>/arco_content/products</xsl:otherwise>
                                  </xsl:choose>/<xsl:value-of select="substring-after(RelatedLink, '%projectroot%/')"/>
                                </xsl:when>
                                <xsl:when test="starts-with(RelatedLink, '%projectimagepath%/')">
                                  <xsl:choose>
                                    <xsl:when test="$projectroot!=''">
                                      <xsl:value-of select="$projectroot"/>
                                    </xsl:when>
                                    <xsl:otherwise>/arco_content/products</xsl:otherwise>
                                  </xsl:choose>/<xsl:value-of select="substring-after(RelatedLink, '%projectimagepath%/')"/>
                                </xsl:when>
                                <xsl:when test="starts-with(RelatedLink, '%xmlformsroot%/')">
                                  <xsl:value-of select="$imagepath"/>/<xsl:value-of select="substring-after(RelatedLink, '%xmlformsroot%/')"/>
                                </xsl:when>
                                <xsl:when test="starts-with(RelatedLink, '%imagepath%/')">
                                  <xsl:value-of select="$imagepath"/>/<xsl:value-of select="substring-after(RelatedLink, '%imagepath%/')"/>
                                </xsl:when>
                                <xsl:when test="starts-with(RelatedLink, '%contentaccess%/')">
                                  <xsl:value-of select="$contentaccess"/>/<xsl:value-of select="substring-after(RelatedLink, '%contentaccess%/')"/>
                                </xsl:when>
                                <xsl:otherwise>
                                         <b><xsl:value-of select="'/irj/go/km/navigation/'"/>
                                  <xsl:value-of select="RelatedLink"/>
                                  <xsl:value-of select="'?rndLayoutSet=DisplayAttachments'"/></b>                            </xsl:otherwise>
                              </xsl:choose>')</xsl:if>
                          </xsl:attribute>
                          <span style="font-family:Verdana;color:#000000;">
                            <u>
                              <xsl:value-of select="read_link_text"/>
                            </u>
                          </span>
                        </xsl:if>
                      </a>
                    </xsl:if>
                  </p>

  • How to change the Hyper links color in the XML form

    HI SDNs
    Do u have any idea how to change the hyperlink color in the xml form. My requirement is as follows.I have created xml form by using xml template and i displayed this xml form by using Km document iview.  I need tochange the hyper link color in the xml form content. I dont want to go for manual process by editing the xml form. because i have several hundreds of xml forms.
    Appreciate if you give suggestion.
    Thanks
    Ramana

    Hi Ramana,
    The most convenient way to change the hyper links is by using the Theme Editor. Go to System Administration --> Portal Display --> Select Theme --> Component-Specific Styles --> Links --> Function/Result Link.
    Hope this helps.
    Kind regards,
    Joost

  • XML Form - Link open in Portal Content Area

    I have created an XML form which displays a list of images as links to KM documents (eg a Read More... link).
    The problem I have run into is that any link that you click on opens up in a new window.
    Is there a setting somewhere that indicates that all links should be opened in the portal content area, rather than in a new window?
    Thanks in advance for any assistance.
    Kind Regards
    Rasim

    Rasim,
    You can try doing this.
    Logon to Portal.
    Click Personalize option on the top left corner and choose work protect mode.
    Choose "Discard unsaved data (open page in same window)"
    Save and Exit.
    Logoff and relogin and check.
    Hope this helps.
    Sandeep Tudumu

  • Link to a file folder in a form

    Hello,
    in my form i have to create an url which shows to a file folder such as
    C:\Documents and Settings\vondunu\001 (this is not a static text, the number will be created when the region is commited)
    How can i make this 'C:\Documents and Settings\vondunu\001' to a link in a field in my form and the customer can click this url and the file folder opens in another browser window?
    Thanks for your help
    Uta

    Hi Ben,
    Yes, there are definitely security implications. It works ok with IE and FF if you are opening local folders. It won't work if you're trying to access files/folders from remote servers - we tried to open folders from other servers on our domains and it wouldn't do it.
    You can, as you say, edit settings to get around this (and, yes please, I'd like to see what settings you're changing). You can also "log in" to the remote system using login/password parameters in the url - but, as you quickly realise, this is even less secure!
    In some instances, you can get around it by changing the url slightly:
    file://localhost\c:/etc
    This sometimes tricks the browser into thinking you're accessing files from the local machine. Another alternative, which we couldn't use, was to map a drive on your machine - again, this only worked sometimes.
    I could not find a solution that worked in all situations. Fortunately, for us, we got our users to login to our networks remotely using F5 and this allowed access to files.
    Regards
    Andy

  • Link in xml form article text to open another portal page?

    Like in all websites our intranet have pages with articles (xml forms) where it's logical for the text to include links to other articles in other areas of the portal.
    Since all iviews (km navigation in this case) are displayed as iframes, links within the text only lead to the target page being displayed within the iview/iframe. I need the complete portal page to change to also show where in the page hierachy/navigation structure the user has landed.
    I am aware of the related links iview, but this doesn't do the trick. I want the article text itself to include the links.
    A logical solution would be to find the page's navigation URL and use this as a text link, but then I would need to add a target=_top to change the whole page around. This is not possible within a xml form. (<a href="/irj/portal?NavigationTarget= navurl://cf1c773631c70d216fe3434ca4dc3a0e" target="_top")
    Ideas?
    Henning

    Thanks for answer. Points awarded.
    BUT: Still, a link to http://server/irj/portal/link added in the html editor window of an xml form only give the options of opening the link in new browser, or in the active window. The first option results in a massive amount of opened browsers, the second results in the target page being opened in the iframe (not nice!)
    Of course I could edit the xml directly adding a target=_top, but every new editing of this file would overwrite these changes.
    The best way would be to add a new option in the html editor allowing an option of "fill entire window" when adding a text link that adds target=_top in the xml.
    Ideas?
    Henning

  • XML Forms and URL links in RenderListItem Form

    Hello everyone,
    I'm new at XML Forms and trying to do my first forms. I have this scenario:
    - user fills several entry fields in "Edit" Form, 2 of them include URL Links.
    - Every new entry in "RenderListItem" Form lists fields "Title" and URL1 URL2.
    In RenderListItem Form, i would like to control the behaviour of these links. Link URL1 should open in a new window, but URL2 should stay in the same browser window.
    How can i achieve this ?
                                          Thank you in advance for any help,
                                                Nuno

    Hi Nuno,
    you can achieve this by changing the XSL file.
    Check out this thread for more infos: XML form display in same browser window
    Best regards,
    Robert

  • The portal url appears in external links in XML Forms

    Hi,
    I have created an XML Forms application that should contain a link to an external webpage.
    In the Edit view I have created 2 text fields.
    1 for the url and 1 urlname for the name of the link.
    In the Show view I have created a link (Lable)  with:
    Hyperlink property:        /DataSchema/DataModel/url
    Schema Reference:          /DataSchema/DataModel/urlName     
    Style :              Function Link
    When I run the application It renders the link as a link with the urlname as the name of the link.
    Great !! ;0)
    <b>...but</b> when clicking on the link it open up a new window with the <b><b><b>portal URL</b> + the specified url:</b></b>
    E.g.
    Test data:
    Name:     Google
    URL:     http://www.google.com
    Result:
    <b>http://<portalurl>:58000/irj/portal/http://www.google.com</b>
    Why does this happen? And what can I do in order to open up the new window with just the url that I have provided (http://www.google.com)
    Thanks for any help !
    Best regards
    Rasmus

    Hi All and thanks for all help
    But..
    The thing is that it has nothing to do with the application.
    E.g. I have tested the <b>SAP_APP_FAQs</b> forms application delivered by SAP.
    This forms application has an external link called <b>Read more… </b>When I test this forms application everything is OK. It opens up the target URL in a new window e.g. <b>http://www.google.com</b>
    This is exactly what I want so I make a copy (save as) of the project. I run the application and believe it or not I got the wrong result: <b>http://<portalurl>:58000/irj/portal/http://www.google.com</b>
    I have not made any changes of the application!!
    Can any tell me what’s wrong?
    Thanks in advance
    Best regards
    Rasmus

  • XML Forms link issue

    Hi guys,
    i created a news item in xml forms builder.
    In the Renderlistitem page i had used a external link in the hyperlink property.
    The link is working good but when i try to open the link it is opening in the same page.
    is there any way so that i could open the link in the new page.
    Thanks in advance
    Regards,
    Vijay.

    Hi Guys
    i created a news item. it has only two forms ( Edit  -- To enter data and Renderlist Form --- to display in the home page )
    structure of renderlist form is something like this
    name : xyz
    status :  xyz
    website  : www.xyz.com.
    for website i had created external link in the hyperlink property of renderlist form  to connect to our intranet site.
    the link works good.
    i could able to get what i wanted.
    but when user click this link website is opening in the same page of Home.
    i want that to open in the new page.
    guys this is very urgent requirement
    helpful answer will be rewarded
    reg
    vijay.
    Edited by: vijayakumar kanniah mohan on Apr 24, 2008 6:54 PM

Maybe you are looking for