I want to show a link on one of the fields (first_name) on the list view. Clicking on this link should call a method which shows the detail page.
I also want the mouse cursor to change as it does for the normal links in the browser.
I placed a label and in the text I typed the following code
<html>
%%first_name%%
> ```
>
>
>
> The first name is displayed with the underline but no method was fired and the cursor also did not change. Is there a way to accomplish this?
This worked after I created a calculation field and dropped the following code in the calculation. I then placed this field on the form and changed the display type to html_area. Now the method attached is called.
HTML = "<html><head></head>" ;
HTML += "<body><a href='javascript:globals.nav_gotoListOrDetail()'>" ;
HTML += "<font face=arial size=3>" + first_name + "</font></a></body></html>"
return HTML;
But do I need to create a calculation field for this? Can I just use a lable/button and put the html code in the text for the label?
Also one more issue is: The mouse cursor changes to link only if you click on a record and mouse over on the field. But without clicking on a record if you simply move your mouse up and down in the list the cursor does not change. I’m just thinking this is not a normal behaviour for html links
you can do this with a global variable a bit easier as with a calculation
Are you in a listview when you don’t see the onmouse over?
This is correct. Cursor changes aren’t supported in listviews when you are not ‘in edit mode’
In record view you see that the cursor is always changing.