- Posts: 2
- Thank you received: 0
Hi. I'm wanting to use Table JX to allow my visitors to search records in a table. However, I don't want them to be able to freely view all the records. I would like to not display any records at all when the grid is loaded, and only show records based on the visitor's search criteria.
The reason for this is because there is other user's data in the table. I don't want to limit it to only the current visitor's data (which I know I can restrict based on their account as a registered user) because they may need to be able to search for a friend's info as well. But I don't want all the records to be put out there just for the heck of it. Basically, if they know what they are looking for, I want it to be displayed.
Is this possible?
Thanks!
Please Log in or Create an account to join the conversation.
Hi,
It is possible but you will have to change the code.
One simple hack would be to set search field to value that is for sure not in any database, some GUID or something, that cannot be found. This is very ugly but simple solution.
You will also have header displayed all the time and also label "No records found".
Another solution would be not to go on DB until search button is clicked. You will have to hide header and label "No records found". This solution takes more time to be accomplished.
Best regards,
Viljem
Please Log in or Create an account to join the conversation.
Thanks for your suggestions. I'll give it a try.
Please Log in or Create an account to join the conversation.