Howdy
I'm attempting to save a file automatically. The save file option pops up and asks for a filename and location.
I pull the date and create a filename
GetDate>dt
StringReplace>dt,/,,nwdt
Wait>.5
Let>fn = I:\Report\AReports\ClientAR%nwdt%
Wait>.5
My variable shows up just fine in the Watch List.
Then I attempt to send the %fn% variable to the object.
UIClick>{"Export Report"},{"File name:"}
UISetValue>Export Report,File name:,%fn%
This pastes in %fn% literally. If I just put in %nwdt% it will put in the variable value. I'm still a bit unsure as to how to get this working.
Sending variables
Moderators: Dorian (MJT support), JRL
- Dorian (MJT support)
- Automation Wizard
- Posts: 1384
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: Sending variables
It's the spaces. Try this :
Code: Select all
Let>fn=I:\Report\AReports\ClientAR%nwdt%
Yes, we have a Custom Scripting Service. Message me or go here
-
- Newbie
- Posts: 2
- Joined: Tue Nov 19, 2024 4:52 pm
Re: Sending variables
That appears to have done it.
Thank you very much.
Thank you very much.
- Dorian (MJT support)
- Automation Wizard
- Posts: 1384
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: Sending variables
Always happy to help.
Yes, we have a Custom Scripting Service. Message me or go here