check box selection in data grid and on a separate card
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: check box selection in data grid and on a separate card
Yes! It is wrong.
What would be the itemDel?
What would be the itemDel?
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: check box selection in data grid and on a separate card
itemDel would be tab
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit
Re: check box selection in data grid and on a separate card
So you mean in order for it to work properly I have to remove leading 0 from the gMySelectedLineNrs ?
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit
Re: check box selection in data grid and on a separate card
2 = 002 --Yes
2 is among the items of 002 003 004 --No
002 is among the items of 002 003 004 --Yes
Think about that for a bit.
Think up a repeat loop were you can use "="
2 is among the items of 002 003 004 --No
002 is among the items of 002 003 004 --Yes
Think about that for a bit.
No, but you cannot use "is among the items of"So you mean in order for it to work properly I have to remove leading 0 from the gMySelectedLineNrs ?
Think up a repeat loop were you can use "="
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: check box selection in data grid and on a separate card
Thanks Simon,
I'll look at it later today and come back if necessary,
keram

I'll look at it later today and come back if necessary,
keram
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit
Re: check box selection in data grid and on a separate card
Hi Simon,
----------------------
I tried another solution:
Removed the leading 0 from the main data table from which all the other variables in the stack derive their values. It's simpler and quicker and in this way I will avoid possible problems with items.
Now the checkboxes in the "All Lines" and "My Selection"view get proper hilites when the checkbox on the "oneline" card is toggled.
To get it working the other way I had to add this to the cd "oneline":
----------------------
Now I will be more alert on items...
Thanks again for all your help
keram
Something like this?Simon wrote:Think up a repeat loop were you can use "="
Code: Select all
repeat for each item i in gMySelectedLineNrs
if gCurentIndex = i then
set the hilite of btn "Check" to "true"
else
set the hilite of btn "Check" to "false"
end if
end repeat
I tried another solution:
Removed the leading 0 from the main data table from which all the other variables in the stack derive their values. It's simpler and quicker and in this way I will avoid possible problems with items.
Now the checkboxes in the "All Lines" and "My Selection"view get proper hilites when the checkbox on the "oneline" card is toggled.
To get it working the other way I had to add this to the cd "oneline":
Code: Select all
put empty into gMySelectedLineNrs
repeat for each line i in gMySelection
if item 2 of i is "true" then
put item 1 of i & tab after gMySelectedLineNrs
end if
end repeat
Now I will be more alert on items...
Thanks again for all your help

keram
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit