Changing the Title Headings of a tableview form at run time

Questions and answers for designing and implementing forms in Servoy

Changing the Title Headings of a tableview form at run time

Postby sarar » Thu Sep 11, 2014 1:02 am

Is there any way to change the text of the heading labels in a table view form? The labels are not available when using elements.allnames. I have tried using solutionmodel to get the field without luck. I have tried setting the label field's dataprovider. I need to change the headings based on data in the selected record. I don't want to lose all the sort and column movement functionality of the table view headings.

Thanks
sarar
 
Posts: 14
Joined: Wed Nov 14, 2012 5:01 pm

Re: Changing the Title Headings of a tableview form at run t

Postby mboegem » Thu Sep 11, 2014 1:30 am

you could create 2 columns with different labels, then hide one or the other...
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1752
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Changing the Title Headings of a tableview form at run t

Postby sarar » Thu Sep 11, 2014 2:14 am

Thanks. Unfortunately that is not a tenable solution. Each column is linked to a field and I have up to 16 column titles that need to change based on a variety of record values - normally up to about 20 different values over thousands of records. In this scenario I would have to make 320 fields and vary the column visibility at each record change.
sarar
 
Posts: 14
Joined: Wed Nov 14, 2012 5:01 pm


Return to Forms

Who is online

Users browsing this forum: Bing [Bot] and 17 guests