Setting the title dynamically in detail view

This sub-forum is for discussing all topics related to AppGini Helper JavaScript Library, provided by bizzworxx as a third-party AppGini plugin.
Post Reply
User avatar
pilandros
Veteran Member
Posts: 65
Joined: 2014-02-13 18:19

Setting the title dynamically in detail view

Post by pilandros » 2019-12-03 03:59

In the "../documentation/detail-view/set-title-detail-view/" there is a Tip message at the bottom of that page that reads:
"You can change the title dynamically at runtime, for example whenever a field changes, update the title."
How can I do that?

In the documentation it reads:
// file: hooks/patients-dv.js
// create your custom title
var title = "<b>PAN-TAO</b>, <u>Petra-Christine</u> Catharina";
var dv = new AppGiniDetailView();
dv.setTitleHtml(title);

I need to set the "JS title variable" to have the contents from the mysql name field.
Can I have an example?

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

Re: Setting the title dynamically in detail view

Post by onoehring » 2019-12-03 06:23

Hi pilandros,

probably Jan will answer this much better than I can: You could create an ajax call to some php file which returns your content only...

Olaf

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

Re: Setting the title dynamically in detail view

Post by jsetzer » 2019-12-05 06:25

pilandros wrote:
2019-12-03 03:59
I need to set the "JS title variable" to have the contents from the mysql name field.
Can I have an example?
Hi,

do you really need a value from MySQL which is NOT part of your form? Or does your form already contain that value?

Best,
Jan

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

Re: Setting the title dynamically in detail view

Post by jsetzer » 2019-12-15 12:49

@pilandros, is this issue still open?

Post Reply