I've included a button into the sales order list, to ship all the selected ordes, and send them to a printer. The code is this one:
IF SalesOrder.FINDSET THEN BEGIN
BillToCust.GET(SalesOrder."Bill-to Customer No.");
IF lSalesOrder2.FINDSET THEN REPEAT
//IF Shipped THEN
UNTIL lSalesOrder2.NEXT =0;
If I run it from the server, works correclty. But the problem comes when we run it from a client´s laptop. If we just select one order, the findset for printing works correctly. But if we select more than 1 order, the findset isn't "finding anything".
I'm really suspreised because the behavior is different if I run the develepment in the server or in a laptop....
Any hint? Thank you very much
/CurrPage.SETSELECTIONFILTER(SalesOrder);IF lSalesOrder2.FINDSET THEN REPEAT //lSalesOrder2.CALCFIELDS(Shipped);
Why FINDSET with lSalesOrder2??
Well there is so much wrong with that code, that you should not worry about it :)
Well, All the variables and lSalesOrder2 where created after hours of trying to work the development, there are really no needed. They were used for different tests, thinking about that maybe the filters where cleared in process or something... Because I was getting mad, and at the end was that the customer was using a view with filters instead of the page itself...
Of course, the code is more simple than this, it's very different