use default criteria value and make it invisible

This example shows how to make an invisible criteria with specified initial value. The benefit of the invisible criteria is that this criteria is always in the search and user can't see it and modify it.

Pick a Theme:

Product CategoryProduct
Order Date  ~  
  

Click Search button and see the criteria Values:


  Design   Source  
  1. Open DataForm.NET Manager. In DataForm.NET List page, choose Invoices by clicking the link.
  2. In the DataForm.NET Designer on the right hand side, switch to Criteria tab.
  3. Click CustomerID link to bring up the Criteria Field Designer window.
  4. Check off Visible checkbox.
  5. Switch to Default Value tab. Pick Constant from Default Type dropdown list and enter a default CustomerID, VINET. So only those records thats contain VINET will be returned.
  6. There are several options in the Default Type dropdown list that can be used to populate different default values, such as session.
  • Click HERE to open up a READ ONLY DataForm.NET Manager.
  • Click HERE to try for yourself.