Preselection of not existing elements

Preselection of not existing elements

Alexander_NitzAlexander_Nitz Posts: 2Questions: 1Answers: 0

Hello together,

Is it possible to preselect elements in the SearchPanes that don't exist and then displaying an empty table?

My use case is, a "My Elements" function. This should preselect the elements of the user. Unfortunately it doesn't work, when the user has no elements. It leads to the issue, that all elements are displayed since the preselection is not working. Instead an empty table should be shown.

I use server side processing.

Thank you for your help,
Alex

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,143Questions: 1Answers: 2,586
    Answer ✓

    I don't believe that's possible. SearchPanes constructs its panes based on the data in the table, so you can't insert a value that doesn't have a matching record. You can create values that don't have a corresponding record if you're using orthogonal data, as shown here, but it still needs that connection to the records in the table.

    Colin

  • Alexander_NitzAlexander_Nitz Posts: 2Questions: 1Answers: 0

    Thank you for your support colin.

    I also thought about adding a value to the XHR header somehow before the query, so that no result comes back on the server site. But I don't know exactly how this works.

    Best regards,
    Alex

This discussion has been closed.