4 Replies Latest reply on Jun 8, 2016 3:08 PM by 1802562120

    Get (OmitRequestState) not refreshing

    1802562120

      Product and version: FileMaker 15 Adv (Mac)

      Hardware : iMac 27 2013, OSX 10.11.4

       

      Description

      The Get (OmitRequestState) is used to get the state the 'Omit' button in Find mode (0/1 ). Whilst results are evaluated correctly with the Data Viewer the results do not appear to being passed up to the layout layer.

       

      How to replicate

      Add a text object 'This is an Omit Request' to a layout with an object visibility calc to hide if the Omit state = 0. e.g.: Get (OmitRequestState) = 0. Now toggle the Include or "Omit" buttons in the Status bar – the Text object does nor refresh but the data viewer is correct.

       

      Workaround (if any)

      Give the Text object a name and use the Refresh Object on a layout Omit button. (This workaround is only really useful if you completely hide the Status Bar so the object can alway be refreshed manually.)

        • 1. Re: Get (OmitRequestState) not refreshing
          GaryTate

          You could also tie the refresh to a custom menu omit item to trigger it as well as omitting the record. This should be trigger from the menu and I expect the status bar (but I may be wrong on that second point).

          • 2. Re: Get (OmitRequestState) not refreshing
            TSGal

            1802562120:

             

            Thank you for your post.

             

            FileMaker Pro does not refresh the layout on all actions.  Going to Find mode does refresh the layout, but when you click "Omit", FileMaker does not need to refresh the layout, so the conditional formula does not re-evaluate.  Therefore, if you switch to a different Find request and back to the original request, the layout will be refreshed and the condition is activated.  Or, as you discovered, Refresh Object or a script with a Refresh Window will work.

             

            TSGal

            FileMaker, Inc.

            • 3. Re: Get (OmitRequestState) not refreshing
              1802562120

              Hi Gary, tx for that idea although we're not using custom menus in this solution. Tx Nick.

              • 4. Re: Get (OmitRequestState) not refreshing
                1802562120

                Hi. Tx for your reply and apols for the tardy response. The workarounds are not ideal and having FileMaker refresh the layout for the Omit/Include button, conditional formatting and the visibility calc would be welcomed in a future releasee. I have ended up hiding the status bar completely so the user has to toggle a scripted 'Omit" button which then displays the 'This is a Omit request' message. Tx again for getting back to me. Nick T.