1 Reply Latest reply on Jun 2, 2016 12:48 PM by TSGal

    hasFocus not working for popover


      help says

      1 if objectName has focus; otherwise, returns 0. Objects that can have the focus are fields, portals, tab panels, slide panels, buttons, popover buttons, popevers, charts, and groups. Also returns 1 for a portal when a portal row is selected.


      Filemaker 14 and 15

      OSX 10.11



      Create a popover button, and name the popover

      Go to it either by clicking the button or a scripted go to object

      In the dataViewer the calculation getlayoutobjectattribute ( "your object name" ; "hasFocus" ) should now show 1

      If you place a field on the popover, then click into it when the popover is open, then the calc getlayoutobjectattribute ( "your object name" ; "containsFocus" ) shows 1 as expected, but the has focus does not, as expected as the field now has the focus

      Now click on the popover to select it and not the field, the 'contains focus' shows 0 but so does the 'has focus'. Which is incorrect




        • 1. Re: hasFocus not working for popover



          Thank you for your post.


          A popover button is actually two components; the "popover button" and the "popover".  When you click on a popover button, you are opening a popover; not opening a popover button.  The Help is correct that "hasFocus" is respected by popover buttons.  However, a popover cannot contain focus, so this is incorrect in the Help.  I have sent this information to the manager of our product documentation so that it can be updated.



          FileMaker, Inc.