Hi ,
We r using pb 6.5 and oracle 8i for our application .
For 1 of the module the save event for which window function is written is dependent on the saving of 4 windows . I face a very stange prblm :-
For which the code is ...
---------------- code -----------------------
iw_parentwindow.SetMicrohelp ("Updating Purchase Document Header..."
DW_1.setitem(dw_1.getrow(),"last_upd_date",gd_sysdate)
dw_1.setitem(dw_1.getrow(),"pur_doc_hdr_user_id",gs_user_id) //
IF dw_1.Update( True, False) <> 1 THEN
Return False
dw_1.SetFocus()
END IF
//*2 Update the despatch detais window
iw_parentwindow.SetMicrohelp ("Updating Despatch Details..."
// only if despatch window open
if Isvalid (w_ver_supdocs_pb_desp_details ) then
// trigger save event in the Despatch Details window which will update the DW
w_ver_supdocs_pb_desp_details.TriggerEvent ("ue_save"
// check the MessageObject for Successful update
// messagebox ("Message.StringParm ",Message.StringParm )
if Message.StringParm <> "1" then
MessageBox ( this.title, "Error updating Despatch Details Window."
cb_despatch.PostEvent (Clicked!)
return false
end if
end if
----- end of code --------------------------
if there is any error or some data missing in the 2nd window "w_ver_supdocs_pb_desp_details" then in some pcs the data doesnt get updated in the ist window and prompts proper error where as in some pvs the data gets updated in the header file . The autocommit = false .
I am not able to understand why it gives diff .behavior on diff machines . Can anyone give a soltn to this ??????
We r using pb 6.5 and oracle 8i for our application .
For 1 of the module the save event for which window function is written is dependent on the saving of 4 windows . I face a very stange prblm :-
For which the code is ...
---------------- code -----------------------
iw_parentwindow.SetMicrohelp ("Updating Purchase Document Header..."
DW_1.setitem(dw_1.getrow(),"last_upd_date",gd_sysdate)
dw_1.setitem(dw_1.getrow(),"pur_doc_hdr_user_id",gs_user_id) //
IF dw_1.Update( True, False) <> 1 THEN
Return False
dw_1.SetFocus()
END IF
//*2 Update the despatch detais window
iw_parentwindow.SetMicrohelp ("Updating Despatch Details..."
// only if despatch window open
if Isvalid (w_ver_supdocs_pb_desp_details ) then
// trigger save event in the Despatch Details window which will update the DW
w_ver_supdocs_pb_desp_details.TriggerEvent ("ue_save"
// check the MessageObject for Successful update
// messagebox ("Message.StringParm ",Message.StringParm )
if Message.StringParm <> "1" then
MessageBox ( this.title, "Error updating Despatch Details Window."
cb_despatch.PostEvent (Clicked!)
return false
end if
end if
----- end of code --------------------------
if there is any error or some data missing in the 2nd window "w_ver_supdocs_pb_desp_details" then in some pcs the data doesnt get updated in the ist window and prompts proper error where as in some pvs the data gets updated in the header file . The autocommit = false .
I am not able to understand why it gives diff .behavior on diff machines . Can anyone give a soltn to this ??????