Results 1 to 3 of 3

Thread: QueryPicker on section

  1. #1
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,882

    QueryPicker on section

    Hi all
    happy new year..

    I'm try to use a function based on showQueryPicker for search reord on allmy section.

    On my library I've a row like this:

    Lianja.showQueryPicker("Search" + m_table, "MySectionTablePickerCallBack()", m_databasename, m_tableName, m_par, 800)

    m_var are created at runtime based on a section properties
    and work fine..

    then, I've a callBack function:
    function MySectionTablePickerCallBack(key, value)
    messagebox("Value " + key + " = " + etos(value))
    fielda = lianja.get("myField")
    fielda.setattr("defaultSearchFieldOrder", true)
    Lianja.showDocument("section:sectionListe?action=s earch&text=" + etos(value))
    endfunc


    So, for this line:
    fielda = lianja.get("myField")
    Lianja.showDocument("section:sectionListe?action=s earch&text=" + etos(value))


    How can I parametrize "myField" and "sectionListe"?

    thanks
    Fabio

  2. #2
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,882
    My first idea is to create a public variable.. but I don't like this idea...

  3. #3
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,801
    The QueryPicker does all that anyway. It applies a search filter. It operates across desktop, web and mobile apps, not specific to desktop apps.

    It knows nothing about what section it is associated with, iy operates on database tables and columns.
    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

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