How can I display value of variable in the header title?

How can I display a value of a variable in the header title of a generated application? (<title>window title</title>).

A [global] doesn’t seem to be accepted (just prints the global name)
A {field_value} doen’t seem to be accepted (just prints the field name)

based on my experiences so far I get the feeling that the title is composed:

  • BEFORE OnLoad event
  • BEFORE OnInite event
  • BEFORE data is loaded in the fields

Who can help me? Thanks a lot!

Re: How can I display value of variable in the header title?

These work for me

Layout/Header, set to Value
: [global_var] : {field_name}

Regards,
Scott.

Re: How can I display value of variable in the header title?

Thanks scott, but your suggestion works only when you put it in the Header variables. Not when you put in in the Update title field…(or Inclusion Title field).

(I want to manipulate the text between the <title></title> tag).

Any suggestions?

Re: How can I display value of variable in the header title?

I guess their function does not resolve the macro in the title field.

You can also just add it PHP style, as their marcos simply resolve to $this->var or $_SESSION()

{lang_othr_frmu_titl} - VALUE - “.$this->fieldname.”
or
{lang_othr_frmu_titl} - VALUE - “.$_SESSION([‘myvar’]).”

Regards,
Scott.

Re: How can I display value of variable in the header title?

Sorry Scott, I don’t get it.

What exact text should I put in the Update Title field when I would like to have the value of my column/field named “OrderId” to show in the header?

Thanks

Re: How can I display value of variable in the header title?

If your default was:

{lang_othr_frmu_titl} - Order ID - {OrderId}

make it:

{lang_othr_frmu_titl} - Order ID - “.$this->OrderId.”

In the title field.

Regards,
Scott.

Re: How can I display value of variable in the header title?

Your suggestions didn’t work, but this did:

onload event:
[globalpar] = 'Booking '.{book_id};

Header Inclusion/Update titles: $_SESSION[globalpar] (without quotes!)

drawback: this title is not dynamically updated when you change the value of field {book_id} or navigate through the records!

regards.