Results 1 to 4 of 4

Thread: Display result of Custom Query Builder in browse/grid or in which cursor is the resul

  1. #1
    Senior Member
    Join Date
    Oct 2019
    Posts
    496

    Display result of Custom Query Builder in browse/grid or in which cursor is the resul

    When I enter a filter via Custom Query Builder, I can then use the actionbar to scroll through the filtered records. However, I would now like to see the result of the filtered datasets displayed in a browse/grid. If I call up the customers table, I see all of them. Hence my question, is the result reported in a different table. How can I get the filtered data? Greetings Olaf

    Display result of Custom Query Builder in browse/grid or in which cursor is the result of Query Builder?

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

    A section can have any of the following that are used to filter the data being displayed.

    - Search field
    - Search bar
    - Search panel
    - query builder filter
    - filter
    - row filter

    These are all concatenated and the filter used to refresh the data

    There is no temporary table as Lianja uses Rushmore index optimizations on desktop and odata calls to the server in web and mobile apps.

    In your desktop app if you want to browse a section in a popup window (see Lianja.showDialogForm() in web/mobile) you can have a section menu item that causes the following code to be executed.

    Code:
    local m_selected = select()
    local m_tmpname = tmpnam()
    select yourtable
    copy to &m_tmpname
    browse 
    select &m_selected
    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
    Senior Member
    Join Date
    Oct 2019
    Posts
    496
    Thanks Barry If I understand correctly, there is no way to further use the result of the query builder. I imagine that I want to output the displayed result in a CSV file. Or is there a way to query the set filter? Greetings Olaf

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

    All you need to do is

    copy to … type csv

    That data will be automatically filtered based on the active querybuilder filter.

    If you require JSON, EXCEL, etc use the SQL SELECT command after the COPY.
    https://www.lianja.com/doc/index.php/SQL_SELECT
    Last edited by barrymavin; 2023-06-12 at 00:20.
    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