5 Replies Latest reply on May 12, 2015 10:06 AM by TSGal

    Portals Disappearing on WebDirect When Resizing Browser Window

    dstojak2

      Summary

      Portals Disappearing on WebDirect When Resizing Browser Window

      Product

      FileMaker Server

      Version

      FileMaker Server 13.0.2.295

      Operating system version

      Windows Server 2008 R2 Standard, Mac OSX 10.8.5

      Description of the issue

      Portals seem to disappear upon resizing my browser window when all of the following conditions are true: the portal shows no records, the portal has an object hiding calculation specified, and at least one object on the layout is anchored to the right or bottom of the layout (so as to stretch the layout to fit the browser window) using the autosizing feature in the Position tab on the inspector.

      Checking the "Allow creation of records" option on the relationship to the table the portal is based on prevents this issue from occurring.  The object hiding calculation I was using on the portal(s) was just checking if the value of a global field does not equal "Yes".  Changing this to a stored field instead of a global made no difference. 

      Running the Refresh Window script step via a button on the layout causes the portal to reappear.  However, assigning a refresh window script to the OnLayoutSizeChange script trigger did not cause the portal to reappear.  Navigating to different records or to a different layout and then back to the layout in question also cause the portal to reappear.

      I tested on Chrome Version 35.0.1916.153 and Safari Version 6.1.4 and saw the issue on both. Tested on both a Windows server and Mac server and it happened with both of them.  Also reproduced this with multiple FileMaker files, including a new one from scratch.

      Steps to reproduce the problem

      Create a database with 2 tables and a relationship between them.  Add a portal to one of the table's layouts.  Add an object hiding calculation to the portal object.  Add any other kind of object to the layout and select the right and bottom autosizing anchors.  Open in WebDirect and resize your browser window when viewing a record with no records in the portal.

      Expected result

      Layout redraws with portals still appearing.

      Actual result

      All portals meeting the above mentioned criteria disappear.

      Workaround

      My workaround right now is to put all portals and other objects that should be hidden on a 1 panel slide control and apply the hiding calculation to the slide control itself instead of the other objects.

        • 1. Re: Portals Disappearing on WebDirect When Resizing Browser Window
          TSGal

               dstojak:

               Thank you for your post.

               I am unable to replicate the issue.  Here are the steps I took:

               1. I created two tables ("A" and "Portal").  Both tables are linked together by the ID field.

               2. In Layout "A", I created a portal into table "Portal", and displayed one field (Phone).

               3. I selected Phone, and in the Inspector, I set "Hide object when" to:   Left (Portal::Phone ; 1) = "0"

               4. Below the portal, I inserted the "Name" field from "A", and set the anchors to left, right, top and bottom.

               5. I set the file for Network Sharing and WebDirect.

               6. I uploaded the file to FileMaker Server 13.0v2.

               7. I opened the file with FileMaker Pro to verify it is displaying.  Record 1 has information in the portal.  Record 2 does not have any information in the portal.

               8. I launched Safari 7.0.5 from Mac OS X 10.9.4 and accessed the file via WebDirect.  For both records, resizing the layout, the portal continues to appear.

               9. I launched Chrome 35 from Windows 7 and access the file via WebDirect.  For both records, resizing the layout, the portal continues to appear.

               Let me know what I'm doing differently than you, so I can try to replicate the issue.

               TSGal
               FileMaker, Inc.

          • 2. Re: Portals Disappearing on WebDirect When Resizing Browser Window
            dstojak2

                 If I'm understanding correctly, I think you put the hiding calculation on the Phone field.  This occurs when the hiding calculation is on the portal object itself.

            • 3. Re: Portals Disappearing on WebDirect When Resizing Browser Window
              TSGal

                   dstojak:

                   Thank you for the clarification.

                   I am now able to replicate the issue.  I have forwarded your post along with my findings to our Development and Testing departments for review.  When I receive any feedback, I will let you know.

                   TSGal
                   FileMaker, Inc.

              • 4. Re: Portals Disappearing on WebDirect When Resizing Browser Window
                philmodjunk
                An entry in the Known Bugs List has been linked to this Issue Report. Any Comments/Questions/Suggested Corrections should be posted here or in a new thread. Please do not post such comments to the Known Bugs List thread.
                • 5. Re: Portals Disappearing on WebDirect When Resizing Browser Window
                  TSGal

                  dstojak:

                  This issue has been fixed in FileMaker Server 14.0.1.

                  TSGal
                  FileMaker, Inc.