Filter records using table.cells('selector')

Filter records using table.cells('selector')

rognalesrognales Posts: 8Questions: 3Answers: 1

Is it possible to do record filtering using table.cells() API?

Answers

  • colincolin Posts: 15,146Questions: 1Answers: 2,586

    Hi @rognales ,

    If you mean searching, use search() or column().search() / columns().search(). If that's not what you mean, could you give more information, please, or link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

    Cheers,

    Colin

  • rognalesrognales Posts: 8Questions: 3Answers: 1

    Yes. The signature for search() is only the text we are searching (along with smart search/regex mode). What i'm looking for is, to do search using table.cells() e.g. table.search(table.cells('.selected'))

  • colincolin Posts: 15,146Questions: 1Answers: 2,586

    Hi @rognales ,

    A search applies to the whole table, not anything selected. You can do your own filtering on the data with filter() that doesn't affect the display.

    Cheers,

    Colin

  • rognalesrognales Posts: 8Questions: 3Answers: 1

    But what if i want the filter to actually affect the display?

  • colincolin Posts: 15,146Questions: 1Answers: 2,586

    The you need to do a search() instead. It's probably worthwhile stepping back and say what you're trying to achieve - that might help find the best solution.

This discussion has been closed.