Adding a hyperlink to field-data

Moderators: Phil Winkler, Graham Smith, Pete Tabord

Adding a hyperlink to field-data

Postby Inman Development » Mon May 12, 2008 9:11 pm

Web Publisher, Web Elements advice

in reviewing the main.asp, xml, xsl, and includes seems there are several ways to manipulate the script.

Example: say i make a datafield called "WEBSITE" in the customer table. Can you help me insert code to make the "WEBSITE" "field data"
hyperlink to the input value. Or make a "image_field" hyperlink to a data-entry value on doubleclick

Thanks
Inman Development
 
Posts: 3
Joined: Mon May 12, 2008 5:30 pm
Has thanked: 0 time
Been thanked: 0 time
 

Re: Adding a hyperlink to field-data

Postby Adrian Jones » Tue May 13, 2008 10:15 am

I'd try the following:

1. Create a new aspect over the form, and use this aspect as your source for your web page.
2. Add a virtual derived something like:

concat ( "<a href=" , convert ( "n34" ) , websiteURL , convert ( "n34" ) , ">", websiteDesc , "</a>" )

The convert function is used to put a quote sign around your website url; you could also use a single quote as part of the resultant string.
User avatar
Adrian Jones
 
Posts: 2000
Joined: Tue Sep 11, 2007 2:38 pm
Location: Cornwall, UK
Has thanked: 5 times
Been thanked: 4 times
 

Re: Adding a hyperlink to field-data

Postby Trina Tabord » Tue May 13, 2008 12:26 pm

Hello there,

Currently there isn't a way to do this in either WebPublisher or WebElements.

If you put html type code into field data it will get stripped as WebElements assumes that you wish to see the characters and not send html code to the browser .

There is a plan to add this functionality ( possibly as a field option setting ) in a later version of WebElements


Trina
Trina Tabord
Database City Limited
trinat@ffenics.com
http://www.ffenics.com
Trina Tabord
 
Posts: 150
Joined: Fri Sep 07, 2007 6:59 am
Location: Caernarfon, North Wales
Has thanked: 0 time
Been thanked: 0 time
 

Re: Adding a hyperlink to field-data

Postby Inman Development » Tue May 13, 2008 3:11 pm

Thanks for your replies

I have edited the xml and added several hyperlinks within forms. But the hyperlinks are static to the form which works great for navigation. Trying to add hyperlink to input data on the fly seems to be a bit more involved. Most web developers say adding an active ancore within an input can't be done. I am not sure if this applies.
That would be great if WebElement updates include this funtion. What does someone do in the meantime to show their constant changing data with links on the web.

I tried the concat within a derived vertial field. The XML posted like this:

<FIELDNAME>
- <![CDATA[ FIELDLINK ]]>
</FIELDNAME>
- <DERIVFORMULA>
- <![CDATA[ concat ( "<a href=" , "www.",n34 ,".com" ,">"," GOTO","</a>" )
]]>
</DERIVFORMULA>

data result looks like this: <a href=www.ebay.com> GOTO</a>

Iit should look like this GOTO

just as trina said - the code is omitted by html and shows up as text

I still think this can be done by editing the XML or XSL code - Any suggestions?
Inman Development
 
Posts: 3
Joined: Mon May 12, 2008 5:30 pm
Has thanked: 0 time
Been thanked: 0 time
 

Re: Adding a hyperlink to field-data

Postby Inman Development » Tue May 13, 2008 3:21 pm

Adrian Jones wrote:I'd try the following:

1. Create a new aspect over the form, and use this aspect as your source for your web page.
2. Add a virtual derived something like:

concat ( "<a href=" , convert ( "n34" ) , websiteURL , convert ( "n34" ) , ">", websiteDesc , "</a>" )

The convert function is used to put a quote sign around your website url; you could also use a single quote as part of the resultant string.


Has this worked for you, or am i doing something wrong? see my reply, thanks
Inman Development
 
Posts: 3
Joined: Mon May 12, 2008 5:30 pm
Has thanked: 0 time
Been thanked: 0 time
 

Re: Adding a hyperlink to field-data

Postby Adrian Jones » Thu May 15, 2008 8:00 am

No, I'm sorry: was just guessing.

I do like a challenge, though, and I'm sure this is doable. Somehow... the answer is out there!
User avatar
Adrian Jones
 
Posts: 2000
Joined: Tue Sep 11, 2007 2:38 pm
Location: Cornwall, UK
Has thanked: 5 times
Been thanked: 4 times
 

Re: Adding a hyperlink to field-data

Postby Graham Smith » Fri Oct 28, 2011 4:37 pm

FWIW, I've been going through various XML and HTML references to see if there is a way to edit the XML file to include a static email link and have found a method that works if anyone is interested

I'm going to continue to look at this some more to see what else can be done but the mix of HTML, XML, ASP, and EIEIO along with a healthy dose of JavaScript makes it very difficult to track things down. Add to that, part of the HTML was done using some older conventions and some done with the newer conventions, and it's all mixed in together. It's enough to give me a headache.
Graham Smith
DataSmith, Delaware
"For every expert there is an equal and opposite expert.", Arthur C. Clarke (1917 - 2008)
"X-Clacks-Overhead: GNU Terry Pratchett"
User avatar
Graham Smith
 
Posts: 2501
Joined: Fri Sep 07, 2007 11:31 am
Location: Delaware, USA
Has thanked: 0 time
Been thanked: 1 time
 
 

Return to Ffenics WebElements

Who is online

Users browsing this forum: No registered users and 1 guest

cron