Hello. In my application I am trying to show the search result in dataTable. The difficulty is that the inputRowSelect should be disabled or hidden if InSelectedList column value equals 1. I tried to use render condition, but in this case I couldn't get the rows selected values. Maybe, you could suggest me any solution? Thanks in advance. Ina Bumstein
The easiest way is to not display ineligible data. The way you do that is to take into account that the GUI datamodel isn't necessarily the same things as the persistent datamodel and only include the rows from the persistent datamodel that you actually want displayed.
This is, of course, that you're talking about data coming back as row objects from a database, but the principle's the same regardless of the origin of your display data, so for simplicity's sake, I'll use that as an example.
The brute-force way is simply to create a new list object, and enumerate the original data, adding only the rows that are eligible for display. If you have lots of data, limit the display model to only the data for the current page display and handle data scrolling manually to reduce overhead.
Alternatively, for a DBMS ORM system, it might be easier in some cases to simply formulate a query that pre-filters the data and use the results of that instead.
Bjoke: A "Bully Joke". A Statement or action made with malicious intent - unless challenged. At which point it magically transforms into "I was just funnin'" or "What's the matter, can't take a joke?"
Unfortunately I couldn't understand you Bob. This is my sample code. What I should change here that rowSelect1 would be shown only if varsearchrez.c3=1? Just usage of the rendered tag for hx:inputRowSelect coses that the hx:inputRowSelect is not working properly.
Hello Bob, As I mentioned in the beginning I tried to do exactly the same as you suggested, but using this method I couldn't get the rows selected. The param1 value is empty. May be you know any other solution? Thanks. Ina