I have two different data sources on my page. I am trying to obtain the id key of the object I am adding to the db after my first update operation on the page. My code looks something like this:
<code>
isc.IButton.create({
ID: "saveButton",
title: "Save",
layoutAlign: "right",
wrap: true,
click: function () {
iptForm.saveData();
wstWbsTree.saveAllEdits();
}
});
</code>
<code>
public PrgIptTO add(PrgIptTO ipt, DSRequest dsRequest) {
//save ipt
return ipt;
}
</code>
Now before I invoke wstWbsTree.saveAllEdits();, I would like to have iptForm.saveData() pass back the id that has just been generated for the new record and pass it into wstWbsTree.saveAllEdits();. How would I be able to do so?
<code>
isc.IButton.create({
ID: "saveButton",
title: "Save",
layoutAlign: "right",
wrap: true,
click: function () {
iptForm.saveData();
wstWbsTree.saveAllEdits();
}
});
</code>
<code>
public PrgIptTO add(PrgIptTO ipt, DSRequest dsRequest) {
//save ipt
return ipt;
}
</code>
Now before I invoke wstWbsTree.saveAllEdits();, I would like to have iptForm.saveData() pass back the id that has just been generated for the new record and pass it into wstWbsTree.saveAllEdits();. How would I be able to do so?
Comment