tag:blogger.com,1999:blog-5450143020274358692.post8443666601085934465..comments2024-03-01T22:22:02.762-06:00Comments on Oracle ADF Notebook: Making the 'Reset' button in af:query component clear the existing results from the result table.jeevanhttp://www.blogger.com/profile/02428650706804521519noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-5450143020274358692.post-49325814043623257922013-06-05T14:04:27.430-05:002013-06-05T14:04:27.430-05:00Vinod,
The blog post is designed show how to clear...Vinod,<br />The blog post is designed show how to clear the results also when hitting the reset button. The default behavior is to reset the search criteria and leave the previous results as is. If that is what you need, you need not so anything: thats how the af:query behaves out-of-the-box.<br /><br />If you do need to clear the results, then read on :<br />About the Nullpointer, have you checked where the null pointer is coming from ? The example code above does not do any null checks. But you should be able to see what is null and implement a null check based on it.<br />Hope that clears it up...jeevanhttps://www.blogger.com/profile/02428650706804521519noreply@blogger.comtag:blogger.com,1999:blog-5450143020274358692.post-86042788643686638642013-06-05T13:31:20.887-05:002013-06-05T13:31:20.887-05:00After coding as above, Reset also resets the Resul...After coding as above, Reset also resets the Results. <br /><br />Following scenario is not working after this.<br /><br />Navigate to Advanced Search by clicking Advanced button in Query Panel.<br /><br />Click Add Fields button and add a filed to Query Panel.<br /><br />Click on Basic or Reset, it is throwing NULL POINTER EXCEPTION.<br /><br />After removing the code for Reset mentioned in this blog, Advanced Search, Basic, Reset are working as expected.Anonymoushttps://www.blogger.com/profile/16110336752376506559noreply@blogger.com