I have a performUpdate issue that seems to have stopped working…
On a sales order form with line items, I used the following method to fill a showFormInDialog with selected line items triggered from a onDataChange date_shipped field:
var idate_shipped = date_shipped;
var icsono = csono; //“%” + utils.stringTrim(csono) + “%”;
var iinabcalc = inabcalc;forms.onShipStageDateChange.controller.find();
forms.onShipStageDateChange.csono = ‘%’ + icsono + ‘%’;
forms.onShipStageDateChange.inabcalc = iinabcalc;
var count = forms.onShipStageDateChange.controller.search();if (count > 1) {
application.showFormInDialog( forms.onShipStageDateChange, -1, -1, 950, 400, ‘SO LINE ITEM SHIP DATE CHANGES’, true, false, true)
}
I set the date_shipped, csono, and inabcalc to variable because it just never worked properly without them…
On the onShipStageDateChange form I have an Execute button that allows the user to view the foundset before filling all of the found line items with the same date_shipped…
if (foundset.getSize() > 0) {
var idate_shipped = forms.production_facility_detail_tab2.foundset.date_shipped;
idate_shipped = utils.dateFormat (idate_shipped, ‘MM/dd/yyyy’);
var fsUpdater = databaseManager.getFoundSetUpdater(foundset);
fsUpdater.setColumn(‘date_shipped’, idate_shipped);
fsUpdater.performUpdate();controller.saveData();
application.closeFormDialog(true);
} else {
return;
}
controller.saveData();databasemanager.refreshRecordFromDatabase(foundset,-1)
I not sure if the following picture of what is happening to the fsUpdater is what is supposed to happen…
Can someone enlighten me?