View Datatable only if there is registration

Asked

Viewed 40 times

-1

I have several datatables in a panel, each one displays a value of an object and a button, and as the data is received, some are filled and others are not, the problem is that those who have no record it still appears the button, have to make it not appear, or just stay one "unregistered",

  • How is it not clear ? Not all doubt has to have code! I’m looking for a component I don’t know!

1 answer

0


You could for example set the "Visible" button right after "fill" the Tables. If the rowCount of 0 then set the Visible button to false.

Or if you want just change the name of the button to "No Registration" (as was one of your ideas) through the setTitle property of the button.

  • It worked, I made boolean variables, and in the disabled command button I make the condition on top of those variables

Browser other questions tagged

You are not signed in. Login or sign up in order to post.