Welcome, Guest. Please Login.
05/17/24 at 23:58:40
News:
Home Help Search Login


Pages: 1
Send Topic Print
Change Grid Lookup Sorting default (Read 2129 times)
MikeT
Member
**




Posts: 58
Gender: male
Change Grid Lookup Sorting default
03/21/14 at 06:35:58
 
We would like to change the Default sorting field for the INV_HIST_LINE grid lookup to sort by actual ship date when we open it. I thought that I could do this by modifying the grid lookup via SU-A, but can't seem to get it to do what I want. What am I missing?
Back to top
 
 

Michael Tingle
G.R. Manufacturing, Inc.
Trussville, AL
Windows Server 2008 R2 w/ Pervasive v11
50 Users
WWW   IP Logged
David Waldmann
Active Member
*****


Live to work, or
work to live?

Posts: 1924
Gender: male
Re: Change Grid Lookup Sorting default
Reply #1 - 03/21/14 at 09:41:32
 
Ditto for INV_HIST_HDR and probably some others. I'm pretty sure they used to default to a logical sort, but believe it got broken in the July update.
 
Not sure why the default sort is by CUSTOMER when you're only looking at shipments for A customer...
Back to top
 
 

David N Waldmann
President
Vermont Hardwoods
Chester, VT

Evo-ERP, 5 user
IST Build: 3/4/19, patched 04/30/19
Pervasive v11.31
Server 2012 / Win10 x64
Crystal Reports v11
Email WWW   IP Logged
MikeT
Member
**




Posts: 58
Gender: male
Re: Change Grid Lookup Sorting default
Reply #2 - 03/21/14 at 11:18:24
 
It's possible these grids are used elsewhere where the default sorting makes sense... Would be great to know how to change the default though.
Back to top
 
 

Michael Tingle
G.R. Manufacturing, Inc.
Trussville, AL
Windows Server 2008 R2 w/ Pervasive v11
50 Users
WWW   IP Logged
Lynn_Pantic
Administrator
*****


evolution (n) -
gradual change to a
different form

Posts: 5681
Re: Change Grid Lookup Sorting default
Reply #3 - 03/21/14 at 14:30:34
 
When you are calling a grid from a program (such as AR-A calling the Invoice Headers) we have to use the primary sort as Customer because we need to quickly index on only the invoices belonging to that customer.  Similarly, IN-A has to use Item Number as the primary sort.  If there is not a compound (secondary) index used then the records will then be in natural order which is normally chronological order.  However, when update has to rebuild a file, the natural order gets scrambled and the entries appear random.  From the FAQ page on the website:
 
When files get out of order by updating or reindexing, we used to be able to use the Pervasive Rebuild and specify the appropriate key and rebuild them in the desired order. However, with the newer releases of Pervasive, it does not work. This is because of certain parameters embedded in the GUI interface for the Rebuild program that you are not able to change. There is, however a command line version of the rebuild that will allow the parameters to be specified.
 
At a command prompt (and the program is located in the PVSW\BIN folder which is in the environment path so you do not need to specify the path to the RBLDCLI.EXE)
 
RBLDCLI -m0 -k0 D:\DBAMFG\DEFAULT\BKARHINV.B
 
The first parameter is always -m0 and the second is -k{Key Number}
 
D:\DBAMFG\DEFAULT\BKARHINV.B is the path and file to be rebuilt. You can use wild cards in the filename to rebuild multiple files.
 
Thanks to Bill at Goldstar Software
 
Some common files and key numbers are:
 
Data that is out of order          File              Key
 
Shipments in AR-A or CM-A   BKARHINV         0
Open Sales Orders in AR-A    BKARINV           1
Shipments in IN-A                BKARHIVL          0
Open Sales Orders in IN-A    BKARINVL          0
PO Receipts in IN-A              BKAPHPOL          6
Open PO in IN-A                  BKAPPOL            0
Work Orders in IN-A            WORKORD          1
Transactions in IN-A             INVTXN              3
Back to top
 
 

Lynn Pantic
IS Tech Support
lynn@istechsupport.com
Email   IP Logged
David Waldmann
Active Member
*****


Live to work, or
work to live?

Posts: 1924
Gender: male
Re: Change Grid Lookup Sorting default
Reply #4 - 03/27/14 at 08:42:49
 
That worked great - Thanks!
 
Maybe that could be added to the update instructions?
Back to top
 
 

David N Waldmann
President
Vermont Hardwoods
Chester, VT

Evo-ERP, 5 user
IST Build: 3/4/19, patched 04/30/19
Pervasive v11.31
Server 2012 / Win10 x64
Crystal Reports v11
Email WWW   IP Logged
MikeT
Member
**




Posts: 58
Gender: male
Re: Change Grid Lookup Sorting default
Reply #5 - 04/08/14 at 06:25:54
 
Before running the rebuild command, we should backup those files and get everyone out of the system, right?
Back to top
 
 

Michael Tingle
G.R. Manufacturing, Inc.
Trussville, AL
Windows Server 2008 R2 w/ Pervasive v11
50 Users
WWW   IP Logged
David Waldmann
Active Member
*****


Live to work, or
work to live?

Posts: 1924
Gender: male
Re: Change Grid Lookup Sorting default
Reply #6 - 04/08/14 at 06:55:32
 
Yes.
 
FYI, it took about 15 minutes on our system/data. Could vary widely but that's a general idea.
Back to top
 
 

David N Waldmann
President
Vermont Hardwoods
Chester, VT

Evo-ERP, 5 user
IST Build: 3/4/19, patched 04/30/19
Pervasive v11.31
Server 2012 / Win10 x64
Crystal Reports v11
Email WWW   IP Logged
MikeT
Member
**




Posts: 58
Gender: male
Re: Change Grid Lookup Sorting default
Reply #7 - 05/08/14 at 08:57:49
 
I'm not sure if this is related or not, but we are seeing some significant delays when looking up inventory items, then clicking the SO icon to view Sales orders. If we rebuild the files per above, will it help this respond quicker?
Back to top
 
 

Michael Tingle
G.R. Manufacturing, Inc.
Trussville, AL
Windows Server 2008 R2 w/ Pervasive v11
50 Users
WWW   IP Logged
Pages: 1
Send Topic Print