Hi,
From my reading I think I understand the interactions and the server user vs the client UI.
Here is how my script(s) are setup.
Go to Layout [ "Active SD95 Staff" (tbl_StaffInfo) ] (onLayoutEnter if performs a find on a employee status field)
Set Variable [ $lbfilename ; Value: "/LunchBox/LB-SD95Staff.csv" ]
Set Variable [ $lbfileloc ; Value: "Get ( DocumentsPath ) & $lbfilename ]
Export Records [ No dialog ; "$lbfileloc" ; Unicode (UTF-8) ] (this exports 8 fields from tbl_StaffInfo, no related fields)
It appears to me that the Export Records function does not use the current layout context and just exports the raw table. I should have 179 records, but the file on the server has 386 records.
Using the same script steps in the client, I get a file with 179 records.
Is my code or thinking wrong? Other scripts that generate passwords, change status field, or import records all work as expected. I am experiencing this with all my scripts using the Export Records on the server. This is our first attempt to use Filemaker with automated exporting, so maybe I am missing something.
MikeM.