oracle adf - Common Reset button for both form and table -


i have page form , table created using same view object, possible have single reset/clear button reset form table?

i tried this:

public string clear_action() {     bindingcontainer bindings = genericutility.getbindings();     operationbinding operationbinding = bindings.getoperationbinding("createinsert");      object result = operationbinding.execute();     if (!operationbinding.geterrors().isempty()) {         return null;     }      dcbindingcontainer dcbindings = genericutility.getdcbinding();      dciteratorbinding searchiter;     searchiter = dcbindings.finditeratorbinding("regionmasterviewcrieria1iterator");     searchiter.clearforrecreate();     richinputtext dd =         (richinputtext)facescontext.getcurrentinstance().getviewroot().findcomponent("regpt1:regit1");     dd.setdisabled(false);     return null; } 

but problem if click on row (say 2nd row) in table, corresponding values updated in form. if try reset both form , table, not able select same row (2nd) again.

i have select row , come 2nd row.

i included line of code in clear()

      richtable table = (richtable)facescontext.getcurrentinstance().getviewroot().findcomponent("pt1:t1");           if(null!=table.getselectedrowkeys()) 

table.getselectedrowkeys().clear();

hope helps 1 down line...


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -