4 Replies Latest reply on Aug 5, 2014 12:48 PM by Mike_Mitchell

    Slide control

    kasenofonte

      I have a child portal that would work better in a slide control. What is the best way to move the data associated to the parent to slide panel, so now each portal row is in it's own slide panel?

       

      Thanks

       

      Kathy

        • 1. Re: Slide control
          Mike_Mitchell

          Kathy -

           

          If I understand your question correctly, you have a multi-row portal, and you want each row of the portal to appear in its own slide panel (presumably in the same slide control)?

           

          So you would have:

           

          -------------------------------------------------------------------------

          |  Portal row 1                                                                        |

          -------------------------------------------------------------------------

          |  Portal row 2                                                                        |

          -------------------------------------------------------------------------

          |  Portal row 3                                                                        |

          -------------------------------------------------------------------------

           

          become

           

          -------------------------------------------------------------------------

          |  Slide panel 1                                                                      |    <<

          -------------------------------------------------------------------------

           

          -------------------------------------------------------------------------

          |  Slide panel 2                                                                      |    <<

          -------------------------------------------------------------------------

           

          -------------------------------------------------------------------------

          |  Slide panel 3                                                                      |

          -------------------------------------------------------------------------

           

          If that's right, then you'll probably need to put a single-row portal on each slide panel. Start each one on the correct row using the Initial Row setting of the Poral Setup dialog:

           

          dialog.png

           

          First slide panel is row 1, second is row 2, and so forth.

           

          Of course, this does cause a bit of a problem if you have more rows than you have slide panels. So use with caution.

           

          HTH

           

          Mike

          • 2. Re: Slide control
            kasenofonte

            Yes, that is what I need, thank you.  New database so no more than 2 portal rows for each parent record.....

            • 3. Re: Slide control
              mikebeargie

              There's also a technique for making "perpetual" slide controls that you might be interested in:

              http://www.anvildataworks.com/?p=1341/

               

              This could be adapted for your needs to offer you to display all child records. Your method of using a portal limits you to a hard static limit, which may work for you now, but could cause issues later.

               

              You could modify your portal filter to take the place of the "initial" row of your portal. eg a filter calc of:

              ChildTable::PrimaryID = GetValue ( List ( ChildTable::PrimaryID ) ; $$DisplayRow )

               

              where $$DisplayRow is a position number you are scrolling from/to in the list.

              • 4. Re: Slide control
                Mike_Mitchell

                Cute! Thanks for sharing.