just want to ask on how to insert multiple data in a certain column when it is checked in the check boxes. thanks below is the script code in the save button. thanks in advance everyone
Code: Select all
on mouseUp
## this script is for radio buttons
put the hilitedbutton of grp "ChargerType" into tselected
put the label of btn tselected of grp "ChargerType" into tselectedName
put fld "DateField" & TAB & fld "UserNameField" & TAB & fld "AssetTagField" & TAB & tselectedName into tNewInputData
## Check if datagrid already has content:
put the dgtext of grp "LaptopDataGrid"of cd "AssetCard" of stack "ITWC" into tOldData
## New and first entry:
if tOldData = EMPTY then
put tNewInputData into tOldData
else
## We ADD the data
put CR & tNewInputData after tOldData
end if
## Now set the new data:
set the dgtext of grp "LaptopDataGrid" of cd "AssetCard" of stack "ITWC" to tOldData
end mouseUp