But I am having problem on transfering the user choice out of the DG.
I am using this code in the DG script
Code: Select all
on hiliteChanged
put the short name of the target into tTarget
put GetDataOfLine(the dgHilitedLines of me, "UUID") into tUUID
if tTarget = "BTcolor" then --value of BTcolor widget can be 1 or 2
put the hilitedItems of the target into tValue --1= black 2 = white
if tValue is not empty then
setDataOfLine the dgLine of me, "BTcolor", the hilitedItems of the target
F_ButtonSet tUUID, "color", tValue --this is my command in the main stack
end if
end if
end hiliteChanged
Is there something that I am missing?
It will be used in desktop and mobile. I am using LC 9.6.0
Thanks