This discussion is archived
5 Replies Latest reply: Dec 4, 2012 5:54 AM by 963385 RSS

How to refresh the current row after data modification

963385 Newbie
Currently Being Moderated
Hi

I have a ADF table in the UI whih has 4 columns.

One of my column has a select one choice.
Depending upon the value selected i need to calculate something and show it in the value of the last two columns of the row where the user is changing the value.

My table is a been created from a updatable viewobject of a database.

Below is my code by which i am able to track the selected row.

BindingContext bctx = BindingContext.getCurrent();
DCBindingContainer bc =
(DCBindingContainer)bctx.getCurrentBindingsEntry();


JUIteratorBinding iterRAF =
(JUIteratorBinding)bc.findIteratorBinding("RAF_Assesment_VO1Iterator");

AppModuleImpl appModuleImplRAF =
(AppModuleImpl)iterRAF.getApplicationModule();
ViewObjectImpl viewRAF = appModuleImplRAF.getRAF_Assesment_VO1();
VariableValueManager vmRAF = viewRAF.ensureVariableManager();

RowSetIterator rowSetIterator = iterRAF.getRowSetIterator();
Row rowSelected = rowSetIterator.getCurrentRow();

rowSelected.setAttribute("CustomerImpact", "L");
// int refreshed=rowSelected.REFRESH_CONTAINEES;
soa_logger.log(Level.INFO,
"Current RiskDescription value" + rowSelected.getAttribute("RiskDescription").toString());
soa_logger.log(Level.INFO, "Current RiskDescription value");


but how should i set value in the last 2 column and show it to the user?or rather set the value and refresh the row?

Thanks in advance for your replies.
Souvik

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points