Hello All, I have a use case I am trying to figure out how to solve. I am using the Departments table from HR schema for demonstration.
I have an af:query component on the UI page(using All Queriable Attributes) in the first facet of a Panel Splitter. In the second facet of the Panel Splitter, I have an af:form component with all these fields listed as form fields. I have navigational buttons(First/Last/Next/Previous), Commit/Rollback buttons below form fields. Whenever, there is no data for mandatory fields(Dept ID, Department Name) and click on any of these buttons except Rollback(as Immediate is set to True), it gives an error and it makes sense as they are Mandatory fields and the fields expect values to be there even for any action to be performed.
However, when I try to hit Search or Reset of af:query component, it is still validating when there is no data for these mandatory fields on the UI. I tried executing the rollback operation by overriding the QueryListener and QueryOperationListener(for Search & Reset respectively) but it won't even come to the method execution as these are mandatory fields on the UI and are being validated before even coming to the overridden methods as these buttons are Command components. I want to know how do I override this behavior to Reset these fields or ignore the validations for these fields and Reset the form. Are there any articles or documentation pointing to solving this problem? Any insights are appreciated. Thank you.
JDev Version: 12.2.1.3.0, DB: Oracle XE, HR Schema
Thanks,
Mahesh