Filemaker run script on the server

0

Good morning,

I am trying to improve the speed of my database and I have seen that the "run script on the server" function can be the solution. The database goes well from WebDirect but if you connect through Filemaker Pro it is very slow in some presentations.

The point is that I have made a very simple function to prove that it works but nothing ...

Script "test":

  

run script on the server ["PSoS test"]

Script "PSoS test":

  

set variable [Global :: test; Global :: test & "You are running PSoS test"]
  go to the presentation ["proof"]

Script "OnFirstWindowOpen":

  

If [LeftWords (Get (ApplicationVersion); 1)="Server")]
establecer variable[Global::prueba ; Global::prueba & "Esta ejecutando prueba OnFirstWindowOpen"]
salir del guion[];
  end If

In the "test" field of the "Global" table the result is="This is running test OnFirstWindowOpen This is running PSoS test".

The problem is that it does not execute the function "go to the presentation [" test "]" and stays in the same presentation

I have my filemaker file hosted on FMPhost.com on a server in the cloud filemaker 14.

    
asked by mai87 13.06.2017 в 12:33
source

1 answer

0

I do not have how to test your script but I think that the OnFirstWindowOpen is inside the quotes so FMP understands it as a text string. Try placing the order outside the quotes.

    
answered by 16.12.2017 в 13:57