Hashes in subforms

Questions related to using nuBuilder Forte.

Hashes in subforms

Postby agnar » Mon Feb 19, 2018 11:43 pm

Say I have a subform containing web-addresses (from the "web_address" field in the relevant table), and I 'd like the subform to display an html element with a link to the web-address, hence, I'd expect the following HTML-value of my Web-address column to work:

Code: Select all
<a href="http://#web_address#">#web_address#</a>


But that only literally displays "#web_adress#" in my subform column.

What do I need to do?
agnar
 
Posts: 37
Joined: Mon Apr 22, 2013 6:28 am

Re: Hashes in subforms

Postby agnar » Tue Feb 20, 2018 1:05 am

Looks like hashes are not supported in the browse form (neither edit/browse forms or subforms), only the edit form.

So I tried to create a ordinary browse edit form with the following query:

Code: Select all
SELECT *, CONCAT( '<a href="http://', web_address, '">', web_address, '</a>) AS html_link FROM company


But that just ends up in an empty table, even if there are records.
agnar
 
Posts: 37
Joined: Mon Apr 22, 2013 6:28 am

Re: Hashes in subforms

Postby toms » Tue Feb 20, 2018 2:02 am

Agnar,

Hash Cookies are supported in Browse Forms, make sure to enclose the cookie with a #-character.
toms
 

Re: Hashes in subforms

Postby admin » Wed Feb 21, 2018 2:34 am

agnar,

I'm not sure I understand your question.

Steven
admin
Site Admin
 
Posts: 3292
Joined: Mon Jun 15, 2009 9:53 am


Return to General