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>

Similar Messages

  • 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

  • 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

  • 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 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

  • Read XML Form Builder Data

      Dear All,
    I want to read all the data from xml form builder file which is located in KM Folder.
    I want to pass all the related data to other third party tool .
    how can I pass that data to other tool from KM folder directly .
    please give me solution for the same.
    Thanks in advance .
    Thanks & Regards,
    Meghal Shah

    Hi Meghal,
    Please have a look at below help link and see if it helps:
    http://help.sap.com/saphelp_nw74/helpdata/en/4c/4e889a7ba25fb6e10000000a15822b/content.htm?frameset=/en/4c/4e889a7ba25fb6e10000000a15822b/frameset.htm&current_toc=/en/b3/72eb4fe26740aeb5d355c6c52e2639/plain.htm&node_id=266&show_children=true#jump266
    Regards,
    Herman
    SAP AGS

  • 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 FORM  -  How to save read-only controls with a default value

    Hello everybody,
    I have a 3 xml forms, each one to create one type of news. I need to use 3 because each of this forms has their own controls. But the control which indicates the type of news (asociated with a KM Predefined Property) must be common in the 3 forms, in order to use it on searches.
    The question is, how can I include in this forms a control:
      - Visible for the user
      - With a default value defined in the control properties (each form has a different value, corresponding with the type of news)
      - Read-only mode
      - The value showed in the control must be saved in the associated KM Predefined Property when the user clicks the Save button. 
    Anyone knows how to do this?
    What control can I use?
    I was thinking of trying with text boxes, but I don't find the way to make them unwritable (Read only mode).
    It is posible using labels?
    Thanks.
    Kind regards

    Hello Jose,
    I know you responded with a question... I see it in the email, but I don't see it here!  Very odd... but in response:
    The first thing I do when I open the Edit.xsl file is do a 'find' for the name of the text field that I want to be read-only (in my test case, it's 'location').  Repeat the find until you see something like:
    [code]<!--
    field location
    -->[/code]
    Below there is where I put the new code.  Mine looks like this:
    [code]- <xsl:choose>
    - <xsl:when test="location='' and ($editmode='create')">
    - <xsl:choose>
    - <xsl:when test="./xf:ValidationError/@tagname='location'">
    - <input name="location" size="30" type="text" class="urEdfiTxtEnbl" id="field_1157467268006">
    - <xsl:attribute name="tabindex">
    - <xsl:choose>
      <xsl:when test="$accessibilitymode='true'">21</xsl:when>
      <xsl:otherwise>3792</xsl:otherwise>
      </xsl:choose>
      </xsl:attribute>
    - <xsl:attribute name="value">
      <xsl:value-of select="''" />
      </xsl:attribute>
    - <xsl:attribute name="readonly">true</xsl:attribute>
      </input>
      </xsl:when>
    - <xsl:otherwise>
    - <input name="location" size="30" type="text" tabindex="3792" class="urEdfTxtEnbl" id="field_1157467268006">
    - <xsl:attribute name="value">
      <xsl:value-of select="''" />
      </xsl:attribute>
    - <xsl:attribute name="readonly">true</xsl:attribute>
      </input>
      </xsl:otherwise>
      </xsl:choose>[/code]
    I put the <xsl:attribute name="readonly"> in both places (when test, and when not test).  I'm not entirely sure if that's necessary, but that worked for me.
    Hope this helps,
    Fallon

  • How can I open XML form in the Adobe reader, but not through the browser extention

    I am saving the document as Adobe Dynamic XML Form (useing Adobe LiveCycle Designer), When I open the document I get this error and I do have a Adobe reader installer.
    Please wait...
    If this message is not eventually replaced by the proper contents of the document, your PDF
    viewer may not be able to display this type of document.
    You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by
    visiting http://www.adobe.com/go/reader_download.
    For more assistance with Adobe Reader visit http://www.adobe.com/go/acrreader.
    Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. Mac is a trademark
    of Apple Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the U.S. and other
    countries

    Open the form in Adobe Reader.

  • 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

  • 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 form field should be read only.

    Hi All,
    Can we have a field in a XML form which is read only and the number in field should be incremented every time a new form is created.
    Is this possible.If yes can someone please guide me how.
    Thanks,
    Nikhil Pai

    Hi Nikhil,
    Do u want this property to come in the Edit form also, or only on the show form?
    If its only on show form,
    1. Keep a text file in KM with a starting number say 1000.
    2. While creating the XML form, a KM Service listening to resource creation only in the folders,
    will update a property and also edit the text file and replace the number by 1001.
    So in the show form u will have a unique number for each XML form.
    Regards
    BP

  • 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

  • XML Forms Links

    Hi Friends!
    I have a form with two link fields:
    1.- Related links example http://www.google.com
    2.- Related archive example document.doc
    How can I set properties in the show and RenderListItem form and show me the links.
    If someone can help me.
    Thanks

    Hi Cesar,
        You can do that, there is not problem.
    In your form, you can attach a file (before doing that you must upload in KM). Also, you can define url field in order to enter your link.
        Don't forget to do this modification in your xsl files:
    First dowload from etc/xmlforms/<proyectname> the form you use to view the files (<proyectname>RenderListItem.xsl or <proyectname>Show.xsl)
    then edit the one you are using to show the files,
    you will something like this
    <!--
    read only field with reference to element Campo15(the name of the label you have asigned to your field, for the file browser)
    -->
    <p align="left">
    <xsl:if test="Link15=''">
    <xsl:value-of select="Campo15" disable-output-escaping="yes"/>
    </xsl:if>
    <xsl:if test="Link15!=''">
    <a class="a2">
    <xsl:attribute name="href">
    <xsl:choose>
    <xsl:when test="starts-with(Link15, 'imagepath/')">
    <xsl:value-of select="$imagepath"/>/<xsl:value-of select="substring-after(Link15, 'imagepath/')"/>
    </xsl:when>
    <xsl:when test="starts-with(Link15, '$imagepath/')">
    <xsl:value-of select="$imagepath"/>/<xsl:value-of select="substring-after(Link15, '$imagepath/')"/>
    </xsl:when>
    <xsl:when test="starts-with(Link15, '%imagepath%/')">/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/pip_libra/Documentacion/documentos/images/<xsl:value-of select="substring-after(Link15, '%imagepath%/')"/>
    </xsl:when>
    <xsl:when test="starts-with(Link15, '%projectimagepath%/')">/documents/Heineken/documentos/<xsl:value-of select="substring-after(Link15, '%projectimagepath%/')"/>
    </xsl:when>
    <xsl:when test="starts-with(Link15, 'http')">javascript:open_url_in_window('<xsl:value-of select="Link15"/>')
    </xsl:when>
    <xsl:otherwise>javascript:open_url_in_window('/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs
    (thats the line you have to add to diplay the document)
    <xsl:value-of select="Link15"/>')</xsl:otherwise>
    </xsl:choose>
    </xsl:attribute>
    <xsl:value-of select="Campo15" disable-output-escaping="yes"/>
    </a>
    </xsl:if>
    </p>
    </td>
    <xsl:choose/>
    </tr>
    </table>
    Patricio.

  • Read XML Form source

    Hello all,
    I'm trying to programaticaly read the contents of an XML Form. I get my resource, grab it's content, get an input stream and start reading. The problem is that instead of a simple XML file being read, what comes back is an entire HTML page with all the layout for the list viewer form, not the XML source.
    The code that I'm using is below, I know that it's bad but this is just a test program so it doesn't matter.
    StringBuffer sb = new StringBuffer();
    IResource res = ....;// Here I get my resource
    try{
      IContent con = res.getContent();
      try{
        InputStream is = con.getInputStream();
        int c;
        while((c = is.read())!=-1){
          sb.append((char)c);
        scrollingText = addToText(scrollingText, sb.toString()+"<br>");
      }catch(ContentException e){
      }catch(IOException e){
    }catch(ResourceException rE){
    So is it possible to access the XML source so that I can read values of specific elements? How?
    Regards,
    Patrick.

    Hi Patrick,
    Please check out my reply in this thread :
    Re: Access XML content of XMLForm input
    Basically you need to use getUnfilteredContent() instead of getContent(), so that the XML doesn't get formatted by the resource filter.

Maybe you are looking for

  • Quality and Media options don't appear in Print Dialogue Box

    I recently upgraded my OS and now when I try to print on either my Lexmark Z65 or my Epson R300 (both USB connections), I don't see the "Quality & Media" option in the print dialogue box. I need these settings to appear so I can choose Glossy Photo P

  • Which Printer Please...

    My HP 5650 died. So I need to get a new printer. Please, could anyone suggest an modestly priced inkjet that will work under 10.4.3 via an APBS? I really do not have any prefs as to brand...it's not my "main" printer...but I would like to get somethi

  • Permissions issues and more

    So I've replaced my system hard drive hoping it would fix issues I've been having. I had 250 GB drive and I changed it out for a 2TB drive. I recently upgraded to SL 10.6.3. Sometime when I start up my HD starts indexing and everything becomes incred

  • Table or conbination of tables having Fields BUKRS and EKORG

    Hi Can you please help me out in finding out a table in SRM having fields BUKRS ( company code) and EKORG (purchasing organization ) so that i can fetch the vendors with the above selection . It can be a combination of tables also .

  • Maintain outgoing EDI-connection data for partner

    Dear All, While creating the output type for a purchase order & selecting the medium EDI system flashes the error message whiah is as below., Maintain outgoing EDI-connection data for partner Kindly help for the same. Rahul