NetTalk Central

Author Topic: Dynamically changing the Heading of a Form  (Read 5380 times)

Devan

  • Full Member
  • ***
  • Posts: 230
    • View Profile
    • Email
Dynamically changing the Heading of a Form
« on: December 13, 2011, 03:37:26 PM »
I guess I have a similar question to what John Fligg asked here: http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=2996.0

My situation is that I have a Student update form which is HUGE - it has around 7 tabs on it, with the first tab containing the student name details.

My client has asked me to put the student name in the header of the form, so that when an operator moves to the other tabs, they still have a visual cue as to which student record they are working on.

In the form header, I have entered:

'Update Student - ' & Clip(STU:FirstName) & ' ' & Clip(STU:LastName)

and this works perfectly if they go to edit an existing record, except, if they CHANGE the student first or last name, the heading still displays the original name.

Similarly, when ADDING a new student, I would love it as soon as they complete the field or the first tab even, the heading updated itself so when they moved to the subsequent tabs they could still see the student name, instead of just 'Update Student - <blank>' as they do now.

Any way of dynamically changing the heading, which is not a field?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Dynamically changing the Heading of a Form
« Reply #1 on: December 14, 2011, 12:15:35 AM »
yes it can be done, but there's no trivial answer to this question yet.

cheers
Bruce

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Dynamically changing the Heading of a Form
« Reply #2 on: December 14, 2011, 01:01:38 AM »
In 6.10 you can "refresh" the header by doing a

do FormHeader

when a field is completed, or tab is changed, or whatever.

cheers
Bruce

Devan

  • Full Member
  • ***
  • Posts: 230
    • View Profile
    • Email
Re: Dynamically changing the Heading of a Form
« Reply #3 on: December 14, 2011, 01:27:37 PM »
Thanks for this Bruce!  I'll grab 6.10 immediately!  :)

NT just keeps getting incrementally better...