https://antibiotiqueaugmentin.com/surdosage-augmentin-bebe/
× Welcome to the ToolsJX forum!


Do not display records on startup

  • jdowns1
  • jdowns1's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 10 months ago #548

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.

More
13 years 10 months ago #550

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.

  • jdowns1
  • jdowns1's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 10 months ago #551

Thanks for your suggestions. I'll give it a try.

Please Log in or Create an account to join the conversation.

Moderators: tomaz
Time to create page: 0.172 seconds

Contact Us

Contact us on Discord

Contact us on Facebook