Results 1 to 4 of 4

Thread: New Grid Sort delegate

  1. #1

    New Grid Sort delegate

    Hi,


    I am trying to understand the best way to use the new grid sort delegate.

    proc page1_section1_sort(nColumn, nDirection)

    nColumn starts at 1
    nDirection is 1 for ascending and -1 for descending.
    My thought was that this would be called by clicking on a header column in the grid itself, but that does not seem to be exposed at the moment.

    The obvious choice is to put the code in a menu, but I think it would be more intuitive if a header click was available.

    Thanks.

    Herb

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,157
    Blog Entries
    22
    Hi Herb,

    It works exactly as you describe -- or at least it should be. If its not please submit a ticket.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #3
    Hi,

    I am trying to get this to work, but want to make sure I am doing this properly before opening a ticket.

    In my app inspector, the following works.

    ogrid = lianja.get("page1.section3").grid
    ogrid.sort(5,1)
    In my Section code I have the following


    proc page1_section3_sort(nColumn,nDirection)
    wait window "click test"
    ogrid = lianja.get("page1.section3").grid
    ogrid.sort(nColumn,nDirection)
    endproc
    When I click on the column header, I can see the arrow change direction, but I don't see the code in the proc fired off.
    Am I doing this correctly?

    Thanks.

    Herb

  4. #4
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,840
    Hi Herb,

    Please log a ticket. It looks to me like the section.sort isn't firing.

    Thanks,

    Yvonne

Bookmarks

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
  •  
Journey into the Cloud
Join us