Mike,
Not sure
what you mean scope of the changes. This method runs at the end of a
WOLongResponsePage. At this point virtually all changeable data in the database
has been changed and committed in the Oracle sps. Here I just want to save a
timestamp and give control back to the user(s) with all data updated.
Thanks for your help.
public WOComponent
pageForResult(Object result) {
Boolean
myResult = (Boolean) result;
boolean success =
myResult.booleanValue();
if (success) {
ec.refreshAllObjects();
dates.setDownloadDate(new NSTimestamp());
dates.setDownloadQtr(qtr);
dates.setDownloadFiscalYr(Integer.toString(yr));
((Session)
session()).setQuarter(qtr);
((Session)
session()).setYear(new Integer(yr));
ec.saveChanges();
return pageWithName("FBrowse");
}
else
return pageWithName("MyShamePage");
}
or if you know the scope of the changes, it would be better
to refetch them with refreshOnRefetch set to true ... less invasive than
"all" ... definitely avoid invalidate if you can.
ms
On May 28, 2009, at 1:12 PM, Wooddall-Gainey, David wrote:
Hi,
I have several stored procedures executed using EOUtilities as follows:
EOUtilities.executeStoredProcedureNamed(ec,"sf07UpdArData", args);
These
procedures update most rows in most tables.
I assumed
I had to either invalidateAllObjects in the ec or refreshAllObjects after the
procedures run, then saveChanges to make the updates known in the ec.
Is this
correct?
Thank you.
David Wooddall-Gainey
AHNR-IT
540-231-5730
email@hidden
David
Wooddall-Gainey
AHNR-IT
540-231-5730
email@hidden