How: Change Label on the fly (filling in result from database)?

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1156
Joined: 2019-05-21 22:42
Location: Germany
Contact:

How: Change Label on the fly (filling in result from database)?

Post by onoehring » 2019-07-30 13:58

Hi,

Let's assume this situation. We collect some alpha-numeric code in different part, think of it similar to an IP address: ab.cde.e5f.yx7
The dividers are userdefined: The user may choose / as first, - as second and . as last divider, saving is like ab/cde-e5f.yx7

I want to change the header of the field in the tableview (and detailview) to show these dividers instead of the stuff I used when designing the app in Appgini.

Any idea where I can intercept the creation and change the header in the way I want to?

Olaf

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: How: Change Label on the fly (filling in result from database)?

Post by jsetzer » 2019-07-30 14:27

Un table view you can use hooks/TN-tv.js to change .text(...) or .html(...) of any $j("th.FN").

For detail view in TN-dv.js you can also find the relevant labels using JQuery and replace innerHtml by whatever you need.

Regards,
Jan
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools


Post Reply