[SOLVED] Data grid help - data only populating 1st row
Posted: Sun Oct 11, 2020 4:18 pm
Hi all,
i'm sure this is something i'm not doing right, but can't seem to get past this...
I have data grid as a form. I generate a numerically based array and set the dgData to this. I can confirm the array is correct when inspecting the dgCache of the data grid. To help design the form, i put some boilerplate text in the labels which is mean to be replaced by the dgData fields.
There are a couple of labels that are meant to take data from the dgData array to display.
For both of these, in the fillInData handler, i have the the following code:
the weird thing is, that 'field1' populates all rows correctly.
But 'field2' only populates the 1st row (correctly), the rest are the boilerplate text i added in design.
Racking my brain -- any suggestions?
i'm sure this is something i'm not doing right, but can't seem to get past this...
I have data grid as a form. I generate a numerically based array and set the dgData to this. I can confirm the array is correct when inspecting the dgCache of the data grid. To help design the form, i put some boilerplate text in the labels which is mean to be replaced by the dgData fields.
There are a couple of labels that are meant to take data from the dgData array to display.
For both of these, in the fillInData handler, i have the the following code:
Code: Select all
set the text of field "field1" of me to pDataArray["field1"]
set the text of field "field2" to pDataArray["field2"]
But 'field2' only populates the 1st row (correctly), the rest are the boilerplate text i added in design.
Racking my brain -- any suggestions?