I have the typical data grid with 2 columns. One of the columns is named "stpCol" and has a column behavior. This column should have an option button for every record in the grid. That option menu button is called "stpBtn". The "stpBtn" should be generated with a list of info that is generated on openStack of the main stack.
All of this works just fine - but for only the first row of the data grid. That option button in the first row has the right info in it. All subsequent rows' option buttons simply have "stpBtn" as the sole choice.
I've banged my head on this for about 12 hours. I have tried:
- in the column behaviour : setting the text of the "templateButton". This had no effect
In the openstack : setting the text of the "templateButton". This had no effect
numerous ways to change when and how to generate the list that needs to go in the option menus.
Simply setting the text of the btn in FillInData (what i'm currently using).
Code: Select all
## Behavior script generated by the DataGrid Helper's Script Builder
on FillInData pData
global gStpOptions
lock messages
set the text of btn "stpBtn" to gStpOptions
set the menuHistory of button "stpBtn" of me to lineoffset(pData,gStpOptions)
RefreshList
unlock messages
end FillInData