March 4, 200916 yr 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.
March 4, 200916 yr I am not having a problem using Go To Object, then doing Export Field Contents, with [ ] Specify field unchecked. Did you name the object?
March 4, 200916 yr Author 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.
March 4, 200916 yr Author Thank you Fenton! I'm sorry I took up your valuable time. You're a FM (and AppleScript) genius, I always admire your answers.
March 4, 200916 yr 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 :-]
Create an account or sign in to comment