Newbies Joe Kennedy Posted July 2, 2003 Newbies Posted July 2, 2003 I am working on a FileMaker solution and have come upon a snag. I have a screen that consists of many fields from a related file. I want to be able to mouse click on a field, automatically select the contents of that field, and have those contents set into a separate field. I have made each of these fields a button, but have not found a way to accomplish this goal. FileMaker does not select the field that the button is associated with, so instead any implemented functions use whatever field the cursor is in. There are many fields so I do not want to have a separate script for each field. How can I select a field and have a button on it at the same time? Please advise. Thanks.
Fitch Posted July 2, 2003 Posted July 2, 2003 It sounds like you will need a separate script for each field. It's a weakness of FileMaker that it doesn't keep track of buttons that way.
Ugo DI LUCA Posted July 2, 2003 Posted July 2, 2003 I've never done this, but why not use the Status(CurrentFieldName) into a script. Set global (your field value) Goto Field (global) Perform your calc over the global... or some Get field functions may help here
Newbies Joe Kennedy Posted July 2, 2003 Author Newbies Posted July 2, 2003 I tried this, but since the field is also the button, FileMaker uses the last field I was on instead of selecting the new field. It seems that you can't select a field that is also a button.
BobWeaver Posted July 2, 2003 Posted July 2, 2003 Have a look at this: http://www.fmforums.com/threads/showflat.php?Cat=&Board=files&Number=73113&Main=73113#Post73113 It's not exactly what you want. But, you may be able to adapt it to your situation.
Ugo DI LUCA Posted July 2, 2003 Posted July 2, 2003 OK, So Bob posted a solution while I was looking for mine. I really doubt it couldn't adress your problem. Just in case it doesn't, here's a quick demo of what I would do. It involves relationship with a selfjoin On Record ID. The field is in a one row portal, with a button : Goto first row Set Field (global,status(CurrentFieldName)) This way you can capure the status(CurrentFieldName) I used the Get Field function afterwards, but you could use the global for your calc. Fieldbuttons.fp5.zip
Ugo DI LUCA Posted July 4, 2003 Posted July 4, 2003 Bob, I played a little on your files, then made some more tests on my suggestions. They are in fact 2 different approaches in my opinion...even if they both use "portal tricks". Would you mind giving an eye to the test I've posted and stricke its limitations. Thanks.
Newbies Joe Kennedy Posted July 9, 2003 Author Newbies Posted July 9, 2003 Thanks! I'll give it a shot.
Recommended Posts
This topic is 7812 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 accountSign in
Already have an account? Sign in here.
Sign In Now