8 Replies Latest reply on Feb 17, 2014 11:59 PM by intex

    Bug in FM 13: Popovers not showing with sort script command

    intex

      Is this a bug or a feature?

       

      I wanted to place a diagram in a popover. In order that the diagram is shown up correctly, I added a simple sort script which is fired by a script trigger for the popover (On object enter).

       

      But the popover then is only shortly flickering and disappearing immediately. Obviously the sorting of the data automatically is closing the popover.

       

      I can´t get the popover to stay with a second script step "Goto Object", because then I produce an infinite loop.

       

      Workaround might be a button above the popover button which sorts the records and then goes to the object in the popover to open the popover. But that is quite akward, isn´t it?

        • 1. Re: Bug in FM 13: Popovers not showing with sort script command
          mark_b

          I confirmed your problem.  I created a Popover that displayed a portal.  When I created an "OnObjectEnter" script trigger that sorted the records in the portal, the Popover displayed briefly then disappeared when the script trigger activated.  I don't know if this will work for you, but I put a sort on the portal and not as a script trigger, it displayed properly.  Would it be possible for you to sort your TO used to create your diagram and avoid using script triggers?

          Cheers, Mark

          • 2. Re: Bug in FM 13: Popovers not showing with sort script command
            intex

            I currently use the workaround of a button above the popover button for sorting and showing an object in the popover - which displays the popover. But I doubt that it is meant like that.

            • 3. Re: Bug in FM 13: Popovers not showing with sort script command
              mardikennedy

              My understanding is that popovers always close when you change records.  Therefore, you need to do your record shuffling prior to opening a popover. (or close and re-open)

               

              HTH, Mardi

              • 4. Re: Bug in FM 13: Popovers not showing with sort script command
                intex

                mardikennedy schrieb:

                 

                My understanding is that popovers always close when you change records. 

                 

                Obviously. But is that documented anywhere? Is that "expected" behaviour in the eyes of the user? (When I stumbled across this, I first thought of everything as the reason, but not the little sorting) Why doesn´t FileMaker itself first check if the background is to be updated and then show the popover instead of just shortly blinking ?

                 

                So I think it´s a bug and I reported it to FM Inc.

                • 5. Re: Bug in FM 13: Popovers not showing with sort script command
                  jbante

                  Keep the Go To Object in your OnObjectEnter script, but programmatically supress script triggers before you do that. FileMakerStandards.org has a page describing one way to accomplish this.

                  • 6. Re: Bug in FM 13: Popovers not showing with sort script command
                    mardikennedy

                    I actually agree with you that having to reopen a popover each time you go to a new record can be disruptive from the user's pov. (Assuming that a whole lot of extra scripting hasn't been added to try and 'guess' whether the user wants the popover open or not.)

                     

                    Thus, I have submitted a feature request to this effect.  (You might like to, as well!)

                     

                    For example, I have a layout with a tab control and on one of the panels, there's a portal.  Currently, it's very useful for the user to be able to drill down to that tab with the portal and then click through a found set of records, eyeballing 'useful detail'.  Having to reopen a popover each time would be relatively disruptive.

                     

                    I would like to switch the whole layout to a more popover-oriented approach (for general design consistency) but the current popover behaviour diminishes the user's experience in this context.  Thus, I have to choose between the various layout options and/ or, add in coding complexity.  (Maybe that sense of 'coding complexity' is illusory and it's just a new habit to learn. :-) )

                     

                    That said, I would prefer that the popover did not automatically close when switching between records.

                     

                    Do others prefer that the popover automatically closes?  It might be an interesting straw poll, with fresh perspectives.

                     

                    All the best,

                    Mardi

                    • 7. Re: Bug in FM 13: Popovers not showing with sort script command
                      manjit

                      Hi Intex,

                       

                      You need to take care of 1 thing that as you are running the trigger script your script trigger should not have navigation step like "Goto Object", "Goto record", "Goto Layout" etc. Secondly as per Filemaker concern you cannot open a Popover from a Popover which you are doing on your script unknowingly. And unfortunately you are trying to open the same Popover object by your script trigger due to which its going into an infinite loop.

                       

                      - 2nd I advice you to do the sort before you open the Popover content or you can just use refresh object and provide the name of Popover object to refresh so you can able to see the Popover contents in sorted form.

                      If you need further help you can describe what exactly you are looking for your functionality so we are free to help you.

                       

                      Thanks,

                      Manjit

                      Software Developer, Mindfire Solutions, India

                      http://www.mindfiresolutions.com

                      FileMaker11 & 12 Certified Developer

                      • 8. Re: Bug in FM 13: Popovers not showing with sort script command
                        intex

                        thanks for all the good minded help.

                         

                        I already have a workaround with a second button for sorting and then opening the popover via goto object - but that is a work around.

                         

                        Sorting in my eyes shouldn´t close a popover - it is unexpected behaviour. And you can´t show the most diagrams without sorting the data before.