• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Set Filter without allowing changes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Set Filter without allowing changes

    Is there a way to set up a filter for a grid, but not let people change that filter?
    I have a grid displaying all orders for the current month using the filter 'Between' with initial value of current date first of month to current date last of month and I need to make sure people can't view orders outside of the current month

  • #2
    We do not have a way to make the filters read-only. However, instead of having the filter directly on the widget, you could simply apply that filter to your data source

    Example:
    Code:
    SELECT
      myColOne,
      myColTwo,
      myDateCol
    FROM
      myTable
    WHERE
      month(myDateCol) = month(current_date) and year(myDateCol) = year(current_date)
    Another option would be to have a filter program, 'EXNABFLT,' check the dates before applying the filter

    Comment


    • #3
      Perfect, that will work.
      Thank you!

      Comment

      Working...
      X