Missing 'static'/fixed fields in a DataGrid ?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Traxgeek
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Wed Jan 09, 2013 10:11 am

Missing 'static'/fixed fields in a DataGrid ?

Post by Traxgeek » Tue Sep 17, 2013 10:27 pm

Hi, (still struggling with DGs :( - though, it is getting better :) !!)

This one's been annoying me for over a week. I keep putting it down and going back to it but to no avail...

I have a DataGrid (in fact I have about a dozen of the things) and can generally / populate them with no issues :)

However, on two of the DGs my fixed / static / header fields refuse to display as they would normally do / do in all other DGs...
Explanation : I have a fixed content "Date : " label which simply displays the info / title / header of the data that follows and then I have the actual date "DD/MM/YYYY" label which is populated at runtime.

Date : 01/09/2013 --The colours are here just to emphasise that my DG comprises two fields - one with a field title / identifier / header (Date : ) and the other with the actual data (01/09/2013)

The data gets displayed every time :) but the header does not :( . I can see header text in the IDE but it simply gets removed in the DG at runtime.
If I put 'set the text of the field "lblHeader" to "Date : "' in the DG 'FillInData' Behaviour Script, then the Header data is displayed but if I leave this line out the Header field 'loses' its preset 'Contents' info (which, like I say is 'Date :' )

Not sure if this is 'just me' (some little feature (in script) I'm including by mistake ! ), something that happens from time-to-time because I've been copying and pasting fields between DGs, or whether I've simply missed something basic (again :oops: ) in the help files...

Any and all pointers will be gratefully received.
I'm 'getting there'... just far too slowly !
Mac (Siera) and PC (Win7)
LiveCode 8.1.2 / 7.1.1

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 937
Joined: Fri Aug 15, 2008 7:15 am

Re: Missing 'static'/fixed fields in a DataGrid ?

Post by bangkok » Wed Sep 18, 2013 6:41 am

Do you change -by script- something in your datagrid.... before to be on / to go to the card containing the datagrid ?

Me too, i was losing the header texts (label and / or column names) on one DG... I was setting some properties in openstack before to go/open the card containing the DG.

It's not possible.

Post Reply