Static Lookup Text in DV

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
cedris
Posts: 1
Joined: 2014-06-04 17:03

Static Lookup Text in DV

Post by cedris » 2014-06-04 17:24

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

User avatar
a.gneady
Site Admin
Posts: 1281
Joined: 2012-09-27 14:46
Contact:

Re: Static Lookup Text in DV

Post by a.gneady » 2014-06-05 09:03

Try using <%%COMBOTEXT(fieldname)%%> in the template, replacing "fieldname" with the actual field name.
:idea: 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.

Post Reply