Re: Missing keys in datagrid?

2019-12-18 Thread Klaus major-k via use-livecode
Hi Trevor, > Am 18.12.2019 um 13:51 schrieb Trevor DeVore via use-livecode > : > On Wed, Dec 18, 2019 at 6:40 AM Klaus major-k via use-livecode < > use-livecode@lists.runrev.com> wrote: >>> ... >>> So my guess is that you are populating the DataGrid with data that only >> has >>> 10 columns.

Re: Missing keys in datagrid?

2019-12-18 Thread Trevor DeVore via use-livecode
On Wed, Dec 18, 2019 at 6:40 AM Klaus major-k via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Trevor, > > thanks for chiming in! > > > Am 18.12.2019 um 13:28 schrieb Trevor DeVore via use-livecode < > use-livecode@lists.runrev.com>: > > > > On Wed, Dec 18, 2019 at 2:38 AM Klaus

Re: Missing keys in datagrid?

2019-12-18 Thread Klaus major-k via use-livecode
Hi Trevor, thanks for chiming in! > Am 18.12.2019 um 13:28 schrieb Trevor DeVore via use-livecode > : > > On Wed, Dec 18, 2019 at 2:38 AM Klaus major-k via use-livecode < > use-livecode@lists.runrev.com> wrote: > ... > So my guess is that you are populating the DataGrid with data that only has

Re: Missing keys in datagrid?

2019-12-18 Thread Trevor DeVore via use-livecode
On Wed, Dec 18, 2019 at 2:38 AM Klaus major-k via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Bob, > > > Am 18.12.2019 um 01:13 schrieb Bob Sneidar via use-livecode < > use-livecode@lists.runrev.com>: > > > > If I recall a long time ago speaking with Trevor, printkeys() does not >

Re: Missing keys in datagrid?

2019-12-18 Thread Klaus major-k via use-livecode
Hi Bob, > Am 18.12.2019 um 01:13 schrieb Bob Sneidar via use-livecode > : > > If I recall a long time ago speaking with Trevor, printkeys() does not > necessarily return ALL keys. AHA! OK, that explains something, but not all. Empty or not, this SHOULD list all keys, but doesn't? ... put

Re: Missing keys in datagrid?

2019-12-17 Thread Pi Digital via use-livecode
Hey Klaus The first thing that grabs my attention is that the two missing keys, statusstatus and abruffehler, are very similar to two other keys, status and abruffehlermeldung. I wonder if this similarity is where printKeys is pulling incomplete results. It would certainly be my initial route

Re: Missing keys in datagrid?

2019-12-17 Thread Richard Gaskin via use-livecode
The easiest way to view arrays in LC these days is with the tree widget. 1. Drop a tree widget on your card 2. Set the widget's arrayStyle to true 3. Set the widget's arrayData to your array. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and

Re: Missing keys in datagrid?

2019-12-17 Thread Bob Sneidar via use-livecode
If I recall a long time ago speaking with Trevor, printkeys() does not necessarily return ALL keys. Your array does not look that large though. I have an array function that may prove more helpful. I designed it so that you could "search" or filter an array for a key and/or a value. It will

Re: Missing keys in datagrid?

2019-12-17 Thread JJS via use-livecode
indeed, maybe this helps too for a selected line Data of a selected line: *if the dgHilitedLine of group "DataGrid 1" is not empty then put the dgHilitedLine of group "DataGrid 1" into theLine * *put the dgDataOfLine[theLine] of group "DataGrid 1" into tEdit** * *put tEdit["Nummer"] into

Re: Missing keys in datagrid?

2019-12-17 Thread Klaus major-k via use-livecode
Hi Jerry, > Am 17.12.2019 um 20:42 schrieb JJS via use-livecode > : > > Ein schöne guten abend Klaus, > i don't know exactly what your trying to accomplish, I need to do lots of: repeat for each key tKey in... And now I am a bit irritated that some key may be missing in my loop!? > but maybe

Re: Missing keys in datagrid?

2019-12-17 Thread JJS via use-livecode
Ein schöne guten abend Klaus, i don't know exactly what your trying to accomplish, but maybe this helps, or give a further idea. I use this to export column names and data: put the dgProp[ "columns" ] of group "DataGrid 1" into tColumnTitles replace return with comma in tColumnTitles   

Re: Missing keys in datagrid?

2019-12-17 Thread Klaus major-k via use-livecode
Hi Paul, > Am 17.12.2019 um 21:36 schrieb Paul Dupuis via use-livecode > : > > I am not 100% sure about the datagrid, but in regular arrays, if your d not > set a key, it will not be present. > > So, if you never put a value into tt[1][statusstatus] then the key > [statusstatus] will not be

Re: Missing keys in datagrid?

2019-12-17 Thread Paul Dupuis via use-livecode
I am not 100% sure about the datagrid, but in regular arrays, if your d not set a key, it will not be present. So, if you never put a value into tt[1][statusstatus] then the key [statusstatus] will not be in the list of keys for tt[1]. If you want all keys to be present for each row, then you

Missing keys in datagrid?

2019-12-17 Thread Klaus major-k via use-livecode
Hi friends, I have a datagrid "produkte" of type Table with these 12 columns: 1. lfd_nummer 2.Titel 3.sid 4.währung 5.Kupon 6.barriere 7. Verfallsdatum 8.Basiswerte 9. status 10. statusstatus 11. abruffehler 12. abruffehlermeldung But when I fire this in the messagebox: send "printkeys" to grp