Alpha DevCon 2018
Results 1 to 5 of 5

Thread: New row at specific location in repeating section

  1. #1
    Member
    Real Name
    Jaime Ben David
    Join Date
    Jan 2011
    Location
    Karkur, Israel
    Posts
    951

    Default New row at specific location in repeating section

    Hi
    Is there some easy way to position the new row in the repeating section ( when clicking the + sign add row ) after the currently selected row? Now when i click no matter where i am it goes to the bottom of the repeating section

    Thanks
    Jaime

  2. #2
    Member
    Real Name
    ferry kurniawan
    Join Date
    Apr 2015
    Location
    Jakarta
    Posts
    96

    Default Re: New row at specific location in repeating section

    Quote Originally Posted by WindForce View Post
    Hi
    Is there some easy way to position the new row in the repeating section ( when clicking the + sign add row ) after the currently selected row? Now when i click no matter where i am it goes to the bottom of the repeating section

    Thanks
    Jaime
    On addrepeatingsectionrow event, get repeating section active row, then value + 1, set the active repeating section row to the new value?

  3. #3
    Member
    Real Name
    Jaime Ben David
    Join Date
    Jan 2011
    Location
    Karkur, Israel
    Posts
    951

    Default Re: New row at specific location in repeating section

    I'm afraid to touch that event, since i also add rows programatically in some other parts of the code.
    Do you know by any chance what function is run when clicking the button itself? Is there some way to "overload" that function? Since i don't see the button itself, don't know how to tackle it's onClick method

  4. #4
    "Certified" Alphaholic
    Real Name
    Govindan Gandhi
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    4,294

    Default Re: New row at specific location in repeating section

    Do you know by any chance what function is run when clicking the button itself?
    {dialog.Object}.addRepeatingSectionRow('CONTAINER_NAME');
    the button is in the repeating section property as "has add row button" check mark as well as remove row.
    the parameter does not specify where the new row is inserted, so I am imagining that at the end of logical row. so it is the last one all the time.
    so this might need some manipulation on your part.
    I don't know what steps are needed but one line of thinking is
    1> get the active row - logical number
    2> the new row will be the highest number
    3> subtract 1 from 2 and move up the repeating section row, that many times.
    thanks for reading

    gandhi

    version 11 3381 - 4096
    mysql backend
    http://www.alphawebprogramming.blogspot.com
    ggandhi344@gmail.com
    Skype:ggandhi344@gmail.com
    1 914 924 5171

  5. #5
    Member
    Real Name
    Jaime Ben David
    Join Date
    Jan 2011
    Location
    Karkur, Israel
    Posts
    951

    Default Re: New row at specific location in repeating section

    That's really weird there is no "position" parameter in that function.
    Do you know of a way to order the repeating section by a specific field?

    Otherwise, what i am trying now, is to add an "Up" and "Down" arrows in the side of the repeating section. Selecting a row and clicking the Up button should move it up one row, etc...Any insights ?

Similar Threads

  1. Getting the last row in a repeating section
    By mikeallenbrown in forum Mobile & Browser Applications
    Replies: 1
    Last Post: 03-21-2016, 04:18 PM
  2. Flex Layout in a Repeating Section; set repeating section label width?
    By TheSmitchell in forum Mobile & Browser Applications
    Replies: 2
    Last Post: 03-09-2015, 01:08 PM
  3. Oh repeating section, how I loathe thee! Hide the initial blank row for repeating section
    By pettechservices in forum Mobile & Browser Applications
    Replies: 6
    Last Post: 09-03-2014, 12:33 PM
  4. Browse opening in specific location and failing to save data
    By MikeData in forum Alpha Five Version 11 - Desktop Applications
    Replies: 7
    Last Post: 09-27-2013, 02:08 PM
  5. Specific location in chm search results
    By jmatienza in forum Archived Wishlist
    Replies: 0
    Last Post: 04-17-2007, 07:33 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •