Table DataGrid AddData Bug or documentation error?
Robert Sneidar
slylabs13 at me.com
Wed Nov 14 17:08:35 EST 2012
Couple of things. Did you refresh the datagrid after addData? Not sure if you need to, just throwing that out there. Also, did you make sure the addData array keys matched the column names (NOT the display names but the actual column names)?
Bob
On Nov 9, 2012, at 12:53 AM, Klaus on-rev wrote:
> Hi friends,
>
> I have a problem with one of my datagrids.
>
> 1. It is a TABLE with a custom column behavior.
> 2. When I populate it with an ARRAY (set the DGDATA of ...), everything is fine.
> 3. When I want to add data I use:
> ...
> dispatch "AddData" to grp "dg" with tArray
> ...
> to add the new data at the end.
>
> But nothing gets displayed?
>
> Debugging the custom behavior "on filliData tData" in that case showed me
> that tData was empty when using "AddData" with an array.
>
> "Printkeys" finally showd me that the new data is added as an ARRAY? although the docs
> let me think this should work with a TABLE datagrid:
> .....................................................
> AddData
>
> - AddData pDataArray, pLine
> - Use this command to add data to the data grid after you have already populated it by setting the dgData or
> DGTEXT.
> ..........................................................
> DGTEXT lets me think it should work with a table, too!
> So is this a bug or wrong documentation and I need to use "AddLine" with TAB delimited text?
>
> Thanks for any pointers!
>
>
> Best
>
> Klaus
>
> --
> Klaus Major
> http://www.major-k.de
> klaus at major.on-rev.com
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list