6 Replies Latest reply on Jun 6, 2014 6:35 AM by philmodjunk

    Portal not updating on Layout

    RickRobbins

      Title

      Portal not updating on Layout

      Post

           I have a layout with two portals.  I use a button that brings them to a modal window to add a new record.  When they close the window the original layout comes in focus but the new record is not shown in the portal.  This happens with both portals on the layout.  Is there a way to correct this?

        • 1. Re: Portal not updating on Layout
          philmodjunk

               Are you sure that your script is correctly creating a new record that is linked to the current record on your layout with two portals?

               You may want to post your actual script so that others can check it over for issues.

               Are these filtered or unfiltered portals?

               To post a script to the forum:

                 
          1.           You can upload a screen shot of your script by using the Upload an Image controls located just below Post a New Answer.
          2.      
          3.           You can print a script to a PDF, open the PDF and then select and copy the script as text from the opened PDF to your clipboard for pasting here. (with this approach, you can get multiple script steps on the same line, please edit the pasted text by inserting some returns to separate those steps.)
          4.      
          5.           If You have FileMaker Advanced, you can generate a database design report and copy the script as text from there.
          6.      
          7.           If you paste a text form of the script, you can use the Script Pretty box in the Known Bugs List database to paste a version that is single spaced and indented for a more professional and easier to read format.
          • 2. Re: Portal not updating on Layout
            RickRobbins

                 The first script - opens a modal window to add a new record.

            • 3. Re: Portal not updating on Layout
              RickRobbins

                   The second script is from the modal window to save the record

              • 4. Re: Portal not updating on Layout
                philmodjunk

                     Is the portal on the original layout filtered or unfiltered?

                     If, after adding the new record, you click a blank area of the layout in your original window, does the portal then update?

                     If you enter layout mode and then return to browse mode, does it update to show the new record?

                • 5. Re: Portal not updating on Layout
                  RickRobbins

                       The portal is unfiltered and it will update when clicking on a blank area in the original window.

                  • 6. Re: Portal not updating on Layout
                    philmodjunk

                         Clicking the blank area commits records in that window.

                         Modify the last part of your second script to be:

                           Close Window
                           Commit Records
                         End IF