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.
Similar Messages
-
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
RasimRasim,
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 -
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 form link not opening in scrolling news
Hi,
I have created news by using XML form in that I m passing links which is opening in 'Show' form.then I have used KM Document Iview and passing ivew link of that form in 'Marquee Tag' then create par file of that which works properly(news scroller is working).But when I click on link its not opening.
Please help asap. Its urgent...
Regards,
ShraddhaHello Raghavendra_RT,
Is that page on SharePoint, or is that on the internet?
If the second is the case I would just use a hyperlink which opens in a new tab via target blank attribute:
http://www.w3schools.com/tags/att_a_target.asp
And you can place it in a content editor web part.
Btw, with SharePoint 2013 you can use the Script Editor Web Part to embed a form from a source like Survey Monkey:
http://community.bamboosolutions.com/blogs/sharepoint-2013/archive/2013/05/20/how-to-use-script-editor-web-part-in-sharepoint-2013.aspx
- Dennis | Netherlands | Blog |
Twitter -
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
RamanaHi 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 -
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,
DKHi 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 -
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?
HenningThanks 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,
NunoHi 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
RasmusHi 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 whats wrong?
Thanks in advance
Best regards
Rasmus -
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!
PeterHello 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 -
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
MarkTrevor,
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 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,
VimolHi ,
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 -
Hi,
I have created a customized xml forms with Edit,RenderListItem and show forms. I created a Dataschema with Datatype "url" and added in the RenderListItem,Show.But when i execute, it always gives an error and most importantly i have changed the Javascript open_url function in the xsl file with url instead of tmpurl in the "window.open" .
The error comes only for the RenderListItem and for Show form, it works fine after changing the Javascript.
<b>Error Details:</b>
Item not found
/documents/http://www.aprilbiztec.com/
The item you are attempting to access is not available. Check that the name or link is correct. You might also check whether the associated repository is currently accessible.
Thanks,
VijayHi Marcelo,
Thanks for the reply.I made changes as you have mentioned.But now i get the url encoding error (http://hostname/irj/servlet/prt/portal/prtroot/http%3A//www.aprilbiztec.com/) , I have changed the xsl files(for javascript) after generating the project.
Thanks,
Vijay -
XML Forms: how to create download link
Hi,
can anybody tell me, how i can create a download link to a document rid
in an XML form?
I can create a link which will open the referenced document, but "right klick
link | save target as..." will produce an error, since the link is a javascript call.
Thanks for any help,
bye,
Markus SteinbergHi Markus Steinberg,
i need to create the Download attachement Option In XML Form..
U got the solution for that above thread..
If so please tell me how to create? and then how to create multiple Link ?
Regards
Thillai J -
Link to Who-is-who from XML Form item
How can I make a link from a user name to the user details of the who is who from a XML Form item? I see this functionality automatically in KM collection renderers but in the XML Form Builder I only see the option to link to the e-mail (Display name as E-mail link).
Thanks in advance.
Best regards,
EricEric,
adding a link to user details in a XMLForm item is not possible at the moment.
But this a reasonable request and maybe we can add this feature in one of the next SPs or release.
Regards, Roland
Maybe you are looking for
-
How to find out the user who locked the record
i can't delete a particular record from a table while executing the delete command its showing an error specifying that "ORA-02049: timeout: distributed transaction waiting for lock" syntax i used delete from <table_name> where <column_name>='<value>
-
Nano error message when trying to Sync
I have a new 2 G Nano, and tried to Sync to my Itunes library. I downloaded the latest version of Itunes and restarted my computer before plugging it in for the first time. Im running Windows XP Pro. An error message comes up. "Unable to sync. Requir
-
I have a trigger defined as follows: create or replace trigger TR_MY_TRIGGER after delete or update on member begin end; At the end of the trigger I have a SELECT on the member table, the table on which this trigger is based. I get a mutating error:
-
Urgent: Export data to pdf
Hi, If anyone can guide me that how we can export to pdf in wad 3.5. Thanks in advance in helping out. Thanks Michelle
-
Revision: 8732 Author: [email protected] Date: 2009-07-22 08:00:53 -0700 (Wed, 22 Jul 2009) Log Message: Do not need to invalidateDisplay list when setting either the horizontalScrollPosition or verticalScrollPostion since the ContainerControll