| Home | Previous Lesson: Retrieving Data via Jaguar CTS Component Next Lesson: Jaguar and COM/MTS code validation |
Here, we are taking the DataWindow changes by calling GetChanges() function and calling of_Update() at the Jaguar component.
Object: w_product_master
Event: ue_retrieve
BLOB lblob_changes
long ll_rc
int lUserAnswer, lUpdateStatus
lUserAnswer = MessageBox( "Update", &
"Apply Changes ?", Question!,YesNo!,2)
if lUserAnswer = 1 then
SetPointer( HourGlass! )
dw_product.getChanges(lblob_changes)
ll_rc = incst_product_master.of_Update( lblob_changes )
if ll_rc = 1 then
dw_product.ResetUpdate()
else
SetPointer( Arrow! )
MessageBox( "Update", "Error while " + &
"applying changes to the database" )
return 0
end if
end if
SetPointer( Arrow! )
| Home | Previous Lesson: Retrieving Data via Jaguar CTS Component Next Lesson: Jaguar and COM/MTS code validation |