Grüezi gliichfalls Chlaus.
uus äm hööche Norde fascht so hööch obe wo dä Samichlaus här chunt.
Hm I am not sure to post more than code snippet. But I f you feel need look to the project as hole I can send you the stack with all data needed by mail. Just send me your email by PN or post it here.
But some more infos here: data to populate are singel line data from a big datagrid shown as a detail view. Saved in array. one element contains an other array that contains a list of data.
cleartext: Big data table shows many courses, one part of the detail view shows course information the other one a list with course members and some data of them.
Now I put the row corresponding data chosen to the detail views. the course infos in a data grid form works well all data are shown well. Also to the data grid list with member information works well and shows all data I send to. Now I want integrate a option button to one column to choose/enter course credits. And just this data never arrives the option buttons Column behavior:
Code: Select all
on FillInData pData
answer pData
put pData
set the label of button "CourseCredits" of me to pData
end FillInData
Code: Select all
on selectionChanged pHilitedIndex, pPrevHilitedIndex
put the long name of me into theLongNameOfMe
## save changed data fom previous row back to the main table and save it too to file
## from Details (yet no changes elaowd
## from Credits only the credits can been changed
##############################################
## get the data of new selected row by index and add the Index
put GetDataOfIndex (pHilitedIndex) into theDataOfIndex[1]
put pHilitedIndex into theDataOfIndex[1][MainDG_Index]
## prepare the Table for enter the Students course credits
## for easy I convert to a tab text to populate by dgText[] statement
put theDataOfIndex[1]["StudentsCourseCredits"] into theCreditsDGpreparation
put theCreditsDGpreparation
replace comma with return in theCreditsDGpreparation
replace slash with tab in theCreditsDGpreparation
## to look variable content I set a breackepoint here
-- put theCreditsDGpreparation
## create the names for the Credits and Details DataGrids
set the ItemDelimiter to quote
put pLongNameOfDataGrid into theLongNameOfDataGridCredits
put item 2 of pLongNameOfDataGrid & "_Credits" into item 2 of theLongNameOfDataGridCredits
## populate data to the member list
## this shows all data in the list as expected
## also the credits are shown as long I do not use column template ...
set the dgText[false] of theLongNameOfDataGridCredits to theCreditsDGpreparation
## and now where and how I get the data to the option button in the column template of
## "theLongNameOfDataGridCredits"? to the "FillInData pData" of the
## Column behavior "button "StudentsCourseCredits Behavior" of
## stack "Data Grid Templates 1234567"
end selectionChanged
I hope this helps to understand what I mean.
thanks for all advise and help