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.
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
Perform Script on Server [Wait for completion; 'SortOnLayoutLoad_Svr"; Parameter: "searchparts"]
FMS is ver 126.96.36.1993
The scripts are written using FMPA 188.8.131.52.
Please could anyone point out the silly mistake I am making?