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
Static Lookup Text in DV
Re: Static Lookup Text in DV
Try using <%%COMBOTEXT(fieldname)%%> in the template, replacing "fieldname" with the actual field name.
AppGini plugins to add more power to your apps:
- DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
- Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
- Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.