Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

InventSum Mulitselect

8 views
Skip to first unread message

bissame

unread,
Jul 18, 2010, 8:36:27 PM7/18/10
to
Hello,
I have a probleme with multiselect of a inventSum grid, i have make a
command button to do some actions according to the selected lines of a
inventSum grid :

for (inventSumSelected = InventSum_ds.getFirst(true) ?
InventSum_ds.getFirst(true) :InventSum_ds.cursor(); inventSumSelected;
inventSumSelected = InventSum_ds.getnext())
{

...

}

and the probleme is that i get only one line traitment even ig the user had
selected multiple lines in the grid.
Thank you.

Klaas Deforche

unread,
Jul 20, 2010, 4:04:30 AM7/20/10
to
Hi bissame,

You code seems correct, it works for me when I test it like this:


for (inventSumSelected = InventSum_ds.getFirst(true) ?
InventSum_ds.getFirst(true) :InventSum_ds.cursor(); inventSumSelected;
inventSumSelected = InventSum_ds.getnext())
{

info("record");
}

If I select 4 records, I get 4 times "record" in the infolog.

Maybe you are doing code in the for loop that causes loosing the selection
Try info-ing something like me te see if it works for your.
If something causes loosing the selection, you could create a set with
recid's in your for loop, and then loop this set and do you logic.

Hope this helps,
Best regards,
Klaas Deforche.
----------------
http://www.artofcreation.be

0 new messages