5 Replies Latest reply on Oct 22, 2012 12:39 PM by philmodjunk

    Must click selected field (or press tab) to be able to enter data

    smcfeeters

      Summary

      Must click selected field (or press tab) to be able to enter data

      Product

      FileMaker Pro

      Version

      Filemaker Adv Pro 12.02

      Operating system version

      Mac OS X 10.8.2

      Description of the issue

      On a layout, a user presses a button to create an input field.  The field is presented and is shown highlighted but the user is unable to enter data into the field until they physically click the field or press the tab button.

      Steps to reproduce the problem

      The database I'm working on has a layout with a portal on it.  The portal is a related table that needs to be populated with contract numbers.  The user presses the add button to create a new related record which appears in the portal and they are expected to enter the contract number in the portal.  The add script ends with a "go to Field" selecting the field just created.

      Expected result

      User is able to enter data into the field

      Actual result

      Hear a beep and no data entry is allowed

      Exact text of any error message(s) that appear

      No messages

      Configuration information

      Script included in graphic

      Workaround

      Click highlighted field or press tab before starting data entry

      filemaker.png

        • 1. Re: Must click selected field (or press tab) to be able to enter data
          philmodjunk

               Please note that you are posting to the Report an Issue part of the forum. It is intended for posting possible bug reports. Had you posted this to the FM Pro Forum section (see tab at top of screen), your post would have been seen by more people and probably gotten a quicker response.

               I see an issue in your script:

               Go To Field [Contractptr::_fkContract]

               appearst to put the focus on the wrong field. A foreign key field should not be editable directly by the user and is usually not visible in the portal. Change this step to reference the actual first field in the portal row and you will see the focus in the correct field, but you probably need a Go to Portal Row step here to put the focus in the correct portal row unless your newly created record automatically appears in the first portal row.

          • 2. Re: Must click selected field (or press tab) to be able to enter data
            smcfeeters

                 Yes I understand it is a foreign key, and by design the user is required to supply it (link this database with a processing system).  To verify the foreign key field was not the problem, I tried Go To Field [Documents::InvoiceNumber].  Again the field is highlighted but until I click inside it or press the tab key I cannot enter data.

                 I have an old Filemaker 9, migrated to 10 to 11 and to 12, which does not have this problem.  This database was develped from scratch in Filemake 12 and for some reason the ability to enter without manually setting the focus is problem.

            • 3. Re: Must click selected field (or press tab) to be able to enter data
              philmodjunk

                   Apologies for misreading your script. I mistakenly identified the field in your get field as the foreign key field updated by the script.

                   I cannot replicate this using a brand new file in FileMaker 12.02 on Windows XP.

                   When I run the script, the field highlights, I see the cursor in the fields specified in Go To Field and I can type data into the field.

                   I do note that you have mentioned two different occurrence names being used with your script: ContractPtr:: and Documents::

                   What is the table occurrence name specified for the portal? (It's shown in the lower left corner of the portal when you are in layout mode.)

                   Is there any chance that your get field step is referring to the correct field, but the wrong table occurrence for your layout?

                   Might there be any layout based script triggers that might be interferring with your script?

                   Your script might trip any of the following triggers:

                   OnLayoutEnter, OnLayoutExit, OnRecordLoad, OnObjectEnter, OnObjectExit, OnCommitRecords

                    

              • 4. Re: Must click selected field (or press tab) to be able to enter data
                smcfeeters

                     I have attached a stripped down sample of the database I'm having the problem with.  It has links to container fields and other databases, but I just want to demonstrate the Go To Field problem.

                     When the Add Contract # button is pressed, a line appears in the portal below the button and the focus is moved to this field.  It is not possible to enter data however without clicking or pressing the tab button.

                     I installed Filemaker Pro Adv 12.02 on an old XP system to try, and under XP it works as expected.

                      

                • 5. Re: Must click selected field (or press tab) to be able to enter data
                  philmodjunk

                       You cannot upload database files to this forum, only files of type jpeg, gif or png.

                       You can, however, upload the file to a file sharing site such as Drop Box and then you can post a download link here.