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
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 360
Joined: 2019-05-21 22:42
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: 295
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

onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 360
Joined: 2019-05-21 22:42
Contact:

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

Post by onoehring » 2019-07-30 14:47

Hi Jan,

thank you. I will check it out .... and try my best with jquery

Olaf

Post Reply