data grid error - Error description: Chunk: can't find background
bobs at twft.com
Wed Jun 27 12:45:24 CDT 2012
First make sure that the actual column names are the same as the key names in the array. There is a display name, as well as the column name and they can be different. I tripped up on this at first myself.
On Jun 27, 2012, at 10:32 AM, James Hale wrote:
> I have finally got around to using the DataGrid.
> I have an array that I want to display in a datagrid
> I have dragged one on to the current card, named it "datagrid1" and set the column names.
> as an example:
> put "fred" into theRecordsB[name]
> put "fred file" into theRecordsB[filename]
> put "a page" into theRecordsB[display_page]
> put "yes" into theRecordsB[current_book]
> put "1234" into theRecordsB[id]
> set the dgData of group "DataGrid1" to theRecordsB
> When I run this I get the following error:
> Message execution error:
> Error description: Chunk: can't find background
> What does this mean?
> What background?
> Apart from setting the column names in the Datagrid object, is there something else I should have done?
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode