July 2, 200322 yr Newbies 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.
July 2, 200322 yr 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.
July 2, 200322 yr 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
July 2, 200322 yr Author Newbies 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.
July 2, 200322 yr 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.
July 2, 200322 yr 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
July 4, 200322 yr 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.
Create an account or sign in to comment