I am working project of printing Id Card for students. Here are the following lists I have to do:
-Load students from CSV into datagrid (I did it)
-Display checkbox with default status is true (in case for user want to uncheck students. I dit it)
-Printing job will automatically run and each students ID card is printed successfully, data of checkbox will be set false to announce that record has been done
and I can make it change value in datagrid from true into false.However, in visibility the checkbox still checked although data has been changed in datagrid
So Here my code
Code: Select all
on mouseUp
//send "printKeys" to group "DataGrid 1"
put the dgNumberOfRecords of grp "DataGrid 1" into tStudentCount
if tStudentCount > 0 then
put the dgData of grp "DataGrid 1" into ListData
put the dgIndexes of grp "DataGrid 1" into theLines
repeat for each item tline in theLines
put ListData[tline]["StudentID"] into tStudentId
put ListData[tline]["StudentCard"] into tStudentCard
put ListData[tline]["Status"] into tStatus
//do print card ......
// do register card to database .......
--Here I want to update status after printing successfully
--turn tStatus mode true into false to announce users the progressing
put not tStatus into theCheckedValue
dispatch "SetDataOfLine" to group "DataGrid 1" with tline, "Status", theCheckedValue -- it works fine how ever checkbox still checked
end repeat
end if
end mouseUp
I am so appreciated
Regards,
Quang