Form field containing a link

Hello,

I have created an editable grid. I would like to display an URL as one of my field. I have tried everything I can, the link is never “enabled”. It is just shown as text and the user can’t click on it. I tried to set up the field as URL or Text, but the result is the same.

Here is what I have tried in the event onLoadRecord


// First Try
{DownloadFile} = '<a href="http://google.fr">Test</a>';
// Second Try
sc_link ({DownloadFile}, "blank_test","var={ID}","Test","_self");

Thank you

Re: Form field containing a link

Hi,
you have to set up the field as type “URL” and make sure you have the “DISPLAY ICON” option set to “YES”. This gives you a button beside your field. It is not pretty but it works. The sc_link() macro is for grid only.
If you have different links you should store those in your table. In case it is the same link for all records just put it in the “onLoadRecord” event.

i.e.
{DownloadFile}=“www.google.com”;

Hope this helps
jsb