Is it posibile to create a 'dynamic' (with UI) predefined search

Is it posibile to create a 'dynamic' (with UI) predefined search

Jack TingJack Ting Posts: 14Questions: 3Answers: 0

To do a server-side processes,
is it posibile to launch the SearchBuilder UI to create a dynamic 'predefined' search 'before' the first data loading from server?
Or is there any way to skip the 1st data loading from server when switching pages?

This question has accepted answers - jump to:

Answers

  • allanallan Posts: 63,368Questions: 1Answers: 10,449 Site admin
    Answer ✓

    You can use searchBuilder.preDefined to set an initial filtering state. Is that what you mean?

    Allan

  • Jack TingJack Ting Posts: 14Questions: 3Answers: 0
    edited October 2023

    Yes,
    And what should I fill in the searchBuilder.preDefined ?
    Leave it blank ?

  • allanallan Posts: 63,368Questions: 1Answers: 10,449 Site admin
    Answer ✓

    Leave it blank if you don't want an initial filter. If you do, there are examples in the documentation showing how it can be used.

    Allan

  • Jack TingJack Ting Posts: 14Questions: 3Answers: 0

    Sorry for miss clicking.
    My question is I want a 'dynamic' searchBuilder.preDefined.

    Not like this:
    1. Show the page with full data
    2. Launch the searchBuilder UI, then user defines his filter.
    3. Show HTML page with filtered data.

    What I want is:
    1. Launch the searchBuilder UI, then user defines his filter.
    2. Server send only the filtered data.
    3. Show HTML page with filtered data.
    4. After that, User can choose to

    • redefine the server-side filter
    • define a client-side filter on the loaded pre-filtered data.
  • allanallan Posts: 63,368Questions: 1Answers: 10,449 Site admin

    Thank you for the clarification. At the moment that isn't possible I'm afraid. There is no get / set API for SearchBuilder at the moment. It is something I plan to add in future.

    Allan

Sign In or Register to comment.