I'm trying, in the same card, to display a datagrid, and when the user select a line, a simple form is display with a "Ok" button. This button update another card and switch to it.
Here is my mouseUp handler in the Behavior Script of the datagrid, and it's working
Code: Select all
on mouseUp pMouseBtnNum
local theDataA
put the dgDataOfLine[the dgLine of me] of the dgControl of me into theDataA
put theDataA["aliment"] into field labelalimentselected
put empty into field "vnb"
hide group "tablo"
show group "groupQuantite" with visual effect scroll down
pass mouseUp
end mouseUp
Problem is in the Ok button script of the groupQuantite: the dgHilitedLines of my datagrid is empty, and i'm unable to retrieve the data stored in the row selected by user
Code: Select all
put the dgHilitedLines of group "tablo" into theLine
put the dgDataOfLine[theLine] of group "tablo" into theDataA