pfc_mrusave


pfcmain.pbl   >   pfc_w_master   >   pfc_mrusave   

Full name pfc_w_master.pfc_mrusave
Access public
Extend of integer
Return value integer
Prototype event integer pfc_mrusave()

Name Datatype
No Data

Name Datatype
lnv_mruattrib n_cst_mruattrib

event pfc_mrusave;//////////////////////////////////////////////////////////////////////////////
//
//	Event:		pfc_mrusave
//
//	Arguments:	none
//
//	Returns:		integer
//	SUCCESS = 1
//	ERROR = -1
//
//	Description:
// 	Save the MRU key information to the service
//
//////////////////////////////////////////////////////////////////////////////
//	
//	Revision History
//
//	Version
//	6.0   Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
//	Copyright © 1996-1997 Sybase, Inc. and its subsidiaries.  All rights reserved.
//	Any distribution of the PowerBuilder Foundation Classes (PFC)
//	source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
n_cst_mruattrib	lnv_mruattrib

// add information to mru nvo service
If IsValid(gnv_app.inv_mru) Then

	// execute user defined save logic
	this.event pfc_premrusave( lnv_mruattrib )
	
	// id must be registered with mru service first 
	if gnv_app.inv_mru.of_IsRegistered(lnv_mruattrib.is_id) then
		Return gnv_app.inv_mru.of_additem(lnv_mruattrib)
	else
		Return -1
	end if
	
end if

return -1

end event

     
Name Owner
w_sheet_sales_order.pfc_preopen w_sheet_sales_order
w_sheet_employee.pfc_preopen w_sheet_employee

     
Name Owner
systemfunctions.isvalid systemfunctions
pfc_n_cst_mru.of_isregistered pfc_n_cst_mru
pfc_n_cst_mru.of_additem pfc_n_cst_mru
pfc_w_master.pfc_premrusave pfc_w_master

     
Full name
demopfc

     
Name Scope
No Data