Page 1 of 1

Static Lookup Text in DV

Posted: 2014-06-04 17:24
by cedris
I am trying to have a read-only text field in Detail View from a lookup .

I set the field to 'read-only' in AppGini. Works fine in the Table View.
However, in DV there is an icon displayed. when you click the icon, it opens another window where you can edit the field.

I want the text for the lookup (not the id) displayed read-only.

I tried changing the code in tablename_template.html:
I changed %%combobox() to %%value() and removed the %%plink() part. Now I get a read-only field in DV, but it only displays the id code, not the text.

I appreciate any help you can provide.

Thanks
Chris

Re: Static Lookup Text in DV

Posted: 2014-06-05 09:03
by a.gneady
Try using <%%COMBOTEXT(fieldname)%%> in the template, replacing "fieldname" with the actual field name.