February 12, 200322 yr Hi All! Situation: I have a web database that I have prgramed to create all HTML & JavaScript Coding. This database is currently setup for the USER to select the "Database", Select the "Layout", then select the "Field(s)" they want to make available on the web. Once they have done that, they hit a button that say's "Send to WEB" and BAM! it's a done deal. Problem: I had to hard code the names of the Layout Names in a script that will export the field with all of the WEB language in it. It's not that bad, but I would like to make it more dynamic by taking the "Selected Layout" and using THAT as the file name of the exported file. I haven't found a way to do this... Can anyone offer up any suggestions? Heck I'll even try a plug-in! lol Thanks a Bunch! ~Addam~
February 12, 200322 yr Check on something like: Status(CurrentLayout) to return the name. This only a guess! Good Luck. Garry
February 13, 200322 yr Author I'm able to get the name, but it's getting FMP to set the name of the Exported file. do I need to do some type of VB Scripting?
February 13, 200322 yr You may have to use some sort of OLE/ADO stuff. I have done something similar with Applescript for people exporting archives. All the best. Garry
February 14, 200322 yr Addam, I use the Troi File plug-in to set the name of an exported file to whatever I want (including variables like the Current Layout name) it can also move files from place to place and delete files. VERY POWERFUL. And with great power comes GREAT RESPONSIBILITY! Check it out. Thay have a downloadable demo.
Create an account or sign in to comment