Server side script does not Execute: what am I missing?

Discussion created by Oliver_Reid on Mar 19, 2014
Latest reply on Mar 21, 2014 by Oliver_Reid

Script Test1



Perform Script on Server [ “Test2” ]

[ Wait for completion ]
Show Custom Dialog [ Message: "done"; Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ] Refresh Window


Script Test2


Go to Layout [ “Site Entry” (Sites) ]

Show All Records

Go to Record/Request/Page

[ First ]

Set Error Capture [ On ]

Set Field [ Sites::test; Get ( DocumentsPathListing ) ]

Set Field [ Sites::test2; Get(lasterror) ]

Set Field [ Sites::test3; "hello" ]

Commit Records/Requests

[ No dialog ]


Test2 works with FMP but of course lists the filepaths to items in the user's documents folder


When I run Test1 the "Done" dialog pops up immediately but nothing is entered in the destination fields


I am assuming a server script runs with th FMserver system account -- that has r/w priviges to the Documents folder even if not to all its contents.


Anyway the "hello" argument should be written.

What am I missing?