Re: Having Trouble with Setting Variable and/or Get(DesktopPath) Script Step
- From: Grip <grip@xxxxxxxxxxxxx>
- Date: Mon, 9 Jun 2008 18:19:00 -0700 (PDT)
On Jun 9, 3:19 pm, Grip <g...@xxxxxxxxxxxxx> wrote:
On Jun 9, 2:53 pm, jahn <jahnbigbo...@xxxxxxxxx> wrote:
Hello -
I'm working in FM9 Advanced on a Mac developing a file to be shared
via FM Server to a mixed-platform environment. I have several scripts
that save PDF, text and Excel files to the desktop that work just fine
on OSX, but when someone with a Windows computer runs them, the
database won't write the files to their disk -- perhaps because of
trouble with the desktop path variable. The relevant portion of one
of the troubled scripts is as follows...
Set Variable [$path; Value: Get(DesktopPath)]
Commit Records [Skip data entry validation; No dialog]
Save Records as Excel [Restore; No dialog; “Transportation.xls”;
Records being browsed]
...where the output file path is: $path/Transportation.xls
I thought this would cover all bases, but it appears not to be working
on any of several Windows machines even when the database is located
on the client computer and not being shared. This further raises the
question whether I'll need a different syntax once the database is
being served on FM Server. Has anyone experienced this issue and have
wisdom to share on the topic? Any help would be greatly appreciated.
Best,
-J.
You can't mix a variable with a text constant in the Save
As...dialog.
Try
Set Variable[$path; Get(DesktopPath) & "/Transportation.xls"]
then use $path by itself.
Note to self: Test before posting. It appears you can use the syntax
you're trying. I would still wrap it all in a single variable
though. Seems cleaner to me that way.
.
- References:
- Prev by Date: Re: Logical Calculation Problem
- Next by Date: Re: Logical Calculation Problem
- Previous by thread: Re: Having Trouble with Setting Variable and/or Get(DesktopPath) Script Step
- Next by thread: Re: Having Trouble with Setting Variable and/or Get(DesktopPath) Script Step
- Index(es):
Relevant Pages
|
Loading