AnsweredAssumed Answered

Sort fails on FMS14

Question asked by PaulSeabright on Jul 5, 2016
Latest reply on Jul 5, 2016 by PaulSeabright

A simple question, hopefully with a simple answer

 

I have a layout that I am trying to speed up the sort of by running the sort as a 'Perform on Server' script.

 

The script is

 

If [get (scriptparameter) = "searchparts"

     re-login [Account Name: "XXXXXX"; Password: xxxxxxx; With dialog:Off]   // tests to see if this "if" statement is entered - it is.

     Go to Layout ["SelectParts_Orders" (Parts)]   // explicitly navigates to the layout to sort

     sort records [Restore; With dialog:off]   // checked to see that the sort parameters are correct - they are.

     Exit Script

End if

 

When run as a local process, the sort works as expected, though veeery slowly.

 

When called by another script to run on the server, it doesn't

e.g.

Perform Script on Server [Wait for completion; 'SortOnLayoutLoad_Svr"; Parameter: "searchparts"]

 

FMS is ver 14.0.4.413

The scripts are written using FMPA 15.0.0.119.

 

Please could anyone point out the silly mistake I am making?

 

Cheers,

Paul

Outcomes