Jump to content

getting a field repetition's value by clicking


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

Recommended Posts

I'm trying to get a field repetition value (actually setting another field based on that value) when a user clicks on a line (repetition) of a field, but have not figured this one out. It seems when I make a (repeating) field a button, there is no way to determine what line (repetition) the user clicked on. Am I missing anything? Thanks.

Ken

Link to comment
Share on other sites

Danielle,

Thanks, that is just what I needed! I had never made multiple instances of a repeating field before, very useful. And I agree about using repeating fields only as a tool.

ciao,

Ken

p.s. Thanks also to Idealdata for the post.

btw, what I'm doing (in OS X) is creating a file that shows all the open (and visible) files, using AppleScript, so I can click on the filename and go there. I know, only marginally better than using the Window menu directly. I haven't done all the fine touches yet (checking for errors; dealing with different #'s of menu items before the file names, etc.), but here is the script I'm using so far:

tell application "FileMaker Pro Advanced"

activate

-- Hopefully the first FM file menu item

set h to name of menu item 11 of menu "Window"

set repetition 1 of field "g_visible_windows" to h

repeat with i from 12 to (the number of menu items of menu "Window")

-- Get list of names of all visible FM files

set repetition (i - 10) of field "g_visible_windows" to name of menu item (i) of menu "Window"

end repeat

end tell

Link to comment
Share on other sites

This topic is 5678 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
 Share

×
×
  • Create New...

Important Information

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