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.
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