Hi All.
I'm hoping someone has tried to do something like this before. I'm open to other options as well, but this is the way I assumed would work best.
I have a single sql query that populates a grid with project information and a where clause with a variable for 'status'. I want to create two buttons in the tabbed UI that will show the user status 'Pending' projects if they click the first button or status 'WIP' projects if they click the second button. I'm thinking there are two ways to do this, one is to run query that takes an argument for the status and then have that value change from PEND or WIP depending on a button the click on the tabbed UI . Since I'm using a Tabbed UI I thought it would be better to try to work with session variables rather than page variables to change the argument in my grid. The reason I'm not just using two queries is that this will be easier to maintain and there may be a need for similar functionality on other screens and I don't want the number of queries to get out of hand.
I also thought another way would be to remove the status filter from the sql query and then setup a filter in the grid with a default selection and some radio buttons or something like that to change the status type. The thing is we also do not want to show every status type just Pending and Work in progress, so I need a way to specify just those values.
Any ideas? Thanks!
I'm hoping someone has tried to do something like this before. I'm open to other options as well, but this is the way I assumed would work best.
I have a single sql query that populates a grid with project information and a where clause with a variable for 'status'. I want to create two buttons in the tabbed UI that will show the user status 'Pending' projects if they click the first button or status 'WIP' projects if they click the second button. I'm thinking there are two ways to do this, one is to run query that takes an argument for the status and then have that value change from PEND or WIP depending on a button the click on the tabbed UI . Since I'm using a Tabbed UI I thought it would be better to try to work with session variables rather than page variables to change the argument in my grid. The reason I'm not just using two queries is that this will be easier to maintain and there may be a need for similar functionality on other screens and I don't want the number of queries to get out of hand.
I also thought another way would be to remove the status filter from the sql query and then setup a filter in the grid with a default selection and some radio buttons or something like that to change the status type. The thing is we also do not want to show every status type just Pending and Work in progress, so I need a way to specify just those values.
Any ideas? Thanks!
Comment