Clearing the values of bind variables associated with the view criteria
This recipe shows you how to clear the values associated with bind variables used as operands in view criteria items for a specific view object. It implements a method called clearCriteriaVariableValues()
in the view object framework extension class, which becomes available for all view objects to call. Bind variables are associated as operands for criteria items during the process of creating the view object's view criteria in the Create View Criteria dialog. Also, as we have seen in the Creating view criteria programmatically recipe, bind variables are generated automatically by the framework when programmatically creating view criteria. You can use this technique when you want to clear the search criteria on a search form based on some user action. A use case might be, for instance, that you want to immediately clear the search criteria after the search button is pressed.
Getting ready
You will need to have access...