using data grid form
Posted: Sat Sep 20, 2014 9:11 pm
I would appreciate some help understanding the basic instructions on how to use a data grid form.
http://lessons.runrev.com/m/datagrid/l/ ... -of-people
steps in the people example
1) create the form
2) mess around with controls on the row template
3) edit the fillInData message to map elements of pDataArray to the controls on the row template
4) mess around with laying out the controls when they display
5) the command uiPopulatePeople creates theDataA which then sets dgData (in the card script)
6) call the uiPopulatePeople command to display the data in the form
http://lessons.runrev.com/m/datagrid/l/ ... -with-data
"There are a couple of ways to assign data to a data grid"
1) paste text into the contents section of the property inspector
2) set the dgText property (this seems to be an intermediate step that converts your text into an array)
3) set the dgData property (this seems to be the actual array used to populate the form)
Q: Is dgData the actual default location the DataGrid stack will look for information to display in the data grid control?
Q: I need to edit fillInData because the template doesn't know what controls I created, but what array gets passed in as pDataArray?
Q: Does dgData become pDataArray inside fillInData?
Q: The example implies that just filling dgData (using the command uiPopulatePeople) displays the data in the control. If that's the case when does anything talk to fillInData to find out how to display the array?
Q: fillInData is where I tell the engine which array elements go in which controls for display. Is dgData where I tell the engine which array elements from my project go in which array elements in the data grid's expected format?
Q: The data grid expects a two-dimensional array. If my data is in a three/four/five/etc-dimensional array, do I have to flatten it into two dimensions?
http://lessons.runrev.com/m/datagrid/l/ ... -of-people
steps in the people example
1) create the form
2) mess around with controls on the row template
3) edit the fillInData message to map elements of pDataArray to the controls on the row template
4) mess around with laying out the controls when they display
5) the command uiPopulatePeople creates theDataA which then sets dgData (in the card script)
6) call the uiPopulatePeople command to display the data in the form
http://lessons.runrev.com/m/datagrid/l/ ... -with-data
"There are a couple of ways to assign data to a data grid"
1) paste text into the contents section of the property inspector
2) set the dgText property (this seems to be an intermediate step that converts your text into an array)
3) set the dgData property (this seems to be the actual array used to populate the form)
Q: Is dgData the actual default location the DataGrid stack will look for information to display in the data grid control?
Q: I need to edit fillInData because the template doesn't know what controls I created, but what array gets passed in as pDataArray?
Q: Does dgData become pDataArray inside fillInData?
Q: The example implies that just filling dgData (using the command uiPopulatePeople) displays the data in the control. If that's the case when does anything talk to fillInData to find out how to display the array?
Q: fillInData is where I tell the engine which array elements go in which controls for display. Is dgData where I tell the engine which array elements from my project go in which array elements in the data grid's expected format?
Q: The data grid expects a two-dimensional array. If my data is in a three/four/five/etc-dimensional array, do I have to flatten it into two dimensions?