Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

  • Newbies
Posted

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.

Posted

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.

Posted

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
Posted

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.

Posted

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

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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