Solved

Determining a field's repetition when clicking on it

Posted on 2011-03-11
6
661 Views
Last Modified: 2012-05-11
I have a calculated repeating field which has a button/script attached to it. When the user clicks on it, I want to determine which repetition is being clicked on to inform the scripted action that follows. Nothing I've tried so far has worked. Get( ActiveRepetitionNumber ) produces only a zero because the cursor never enters the field and it's not possible to give an Object Name to each repetition of a field.

( Why am I using repeating fields at all? They have their uses, especially if you want the visual equivalent of a horizontal portal, which you can do using a calculated repeating field.)
0
Comment
Question by:Will Loving
  • 3
6 Comments
 
LVL 24

Author Comment

by:Will Loving
Comment Utility
Never mind. I sort of wrote the key to the answer in my initial question when I wrote "because the cursor never enters the field". The trick is to allow the cursor to enter the field and then use an "On Enter" Script Trigger to grab the Repetition number using SetVariable to Get( ActiveRepetitionNumber ) ; followed by a Commit Records step to exit the field and then run the rest of the script.
0
 
LVL 4

Expert Comment

by:challengeday
Comment Utility
Hi willmcn,

I think you could have separate buttons over the repetitions and pass a parameter to the script depending on which buttons is clicked.
0
 
LVL 24

Author Comment

by:Will Loving
Comment Utility
It would work, but unfortunately that would mean 18 buttons. I just tested my script trigger solution which took at two minutes to setup and it works perfectly. Being in the field also allows to grab other related values at the same time before exiting. As far as the user is concerned, they never now the difference.
0
 
LVL 24

Accepted Solution

by:
Will Loving earned 0 total points
Comment Utility
As noted above, I found a way to determine the repetition of the repeating by entering the field and running a script trigger to determine the repetition and then exit the field. However, if anyone has a simple method to determine the field repetition "on click" without actually entering the field, I'm interested.
0
 
LVL 8

Expert Comment

by:Tocacar
Comment Utility
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now