Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Universal (layout independent) Script for Field Exports


This topic is 5742 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I'm trying to write a universal script (layout independent) for basic container field management: insert file, remove file, and open the file.

Let's look at the Export of the file in the container field to open it. FileMaker wants me to "hard code" the container field, by selecting it in the dialog box. Is there a way around this??

I'm looking at all the tools available: object names, variables, but I just doesn't seem to add up. Even the new "Set Field by Name" function doesn't help: it takes me to the container field, but the export script step still returns error 102.

What am I missing? Or am I attempting something impossible? I would be a huge time saver to have a piece of code I could use for this type of functionality on ANY layout in ANY database.

Any tips greatly appreciated.

Posted

I am not having a problem using Go To Object, then doing Export Field Contents, with [ ] Specify field unchecked.

Did you name the object?

Posted

Gosh I feel like a dush... the reason a simple "go to object" (by object name) and then export while not specifying a field didn't work, is because I had specified the container field to be a button also. Go to Object therefore took me to the BUTTON, not the field.

Hopefully this will help someone who gets stuck in a similar situation.

Posted

Thank you Fenton!

I'm sorry I took up your valuable time. You're a FM (and AppleScript) genius, I always admire your answers.

Posted

Well, I recently advised someone on another post that Go To Object would not drop down a value list, which was completely wrong. Fortunately comment caught that error. I was trying something similarly wrong :-]

This topic is 5742 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.