I have a page item with display type of checkbox with the following STATIC LOV
STATIC2:Display val;Y
and a Source value of Y (only when value in session state is null).
A report region on the page uses this page item as
where (:P1_ITEM is null or .....)
So, when the page is rendered for the first time, I would like the box checked and the default value of Y to be used. This part works fine.
But now when I uncheck the box and submit the page, the session state value is blanked out and the Source value kicks in and again assigns the value Y thus checking the box again!
In other words, I am unable to uncheck the box, ever! How can I distinguish between the 2 "reasons" the checkbox value is blank a) because the page is rendered for the first time or b) I intentionally unchecked the box.
Am I missing something, what is a good way to do this? Should I change my UI pattern?
Thanks