Findset in sales order list

AitorEG
Member Posts: 342
Hi everyone,
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 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
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:
//1890107-01 CurrPage.SETSELECTIONFILTER(SalesOrder); CurrPage.SETSELECTIONFILTER(lSalesOrder2); //lSalesOrder2.COPYFILTERS(SalesOrder); IF SalesOrder.FINDSET THEN BEGIN CLEAR(BillToCust); BillToCust.GET(SalesOrder."Bill-to Customer No."); CLEAR(BatchPostReport); BatchPostReport.SETTABLEVIEW(SalesOrder); BatchPostReport.InitializeRequest(TRUE,FALSE,WORKDATE,TRUE,TRUE,TRUE); BatchPostReport.RUNMODAL(); CLEAR(BatchPostReport); COMMIT; END; //imprimir //CurrPage.SETSELECTIONFILTER(SalesOrder); IF lSalesOrder2.FINDSET THEN REPEAT //lSalesOrder2.CALCFIELDS(Shipped); //IF Shipped THEN SalesPostPrint.Print(lSalesOrder2); 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
0
Comments
-
1. Check customizations
2. Which part returns empty rowset?
3. Posting can move orders to archive and second part can not find previous selection (should be same from all clients)
4. Try to post and print in one transaction by modifying BatchPostReport.0 -
Thanks for your answer,
I've jsut talk to our customer. The issue is that he's not runningdireclty from the page, it's running from a view he has created with different filter, just to show a few rders. Probably is an issue with those filters.....0 -
Does your customer select the records he wants to print? Just setting the filters is not enough given the code used.0
-
Yes, he's selecting the orders that must be registererd and printed.
As I've said in my previous message, it was a problem of the view, it wasn't executing in the page. I think I've solved deleting in the code the filters from that view.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions