Basic Customization > User Interface Customization > Customizing HTML Clients Using the Windchill JSP Framework > Customizing Generic Aspects of JSP Pages > Customizing the UI with Ajax > Solution > Refresh a row in a table
  
Refresh a row in a table
In the class <your>formProcessor.java, return some dynamic refresh Info in the FormResult:
DynamicRefreshInfo di = new DynamicRefreshInfo (newOid,oid,NmCommandBean.DYNAMIC_UPD) ;
result.addDynamicRefreshInfo(di);
return result;
Note that rows can be added and removed from the table by switching the flag on the refreshInfo to be NmCommandBean.DYNAMIC_ADD or DYNAMIC_DELETE respectively.
Special Tree Refresh Instructions
The second OID or context object passed to the tree refreshInfo is specified to be the parent row. So in the case of adding a row to a tree, it is necessary to specify which parent folder to show the new item under.