pfc_mruprocess


pfcmain.pbl   >   pfc_w_master   >   pfc_mruprocess   

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

Name Datatype
No Data

Name Datatype
No Data

event pfc_mruprocess;//////////////////////////////////////////////////////////////////////////////
// 
//	Event:		pfc_mruprocess
//
//	Arguments:
//	ai_row	row in datastore containing our clicked menu item
//
//	Returns:		integer
//	SUCCESS = 1
//	ERROR = -1
//
//	Description:
//	Perform the process needed when a user clicks on an MRU item in the menu.  
// The developer will have to extend this event to do the necessary opens for 
// the type of application being used (MDI or SDI)
//
//////////////////////////////////////////////////////////////////////////////
//	
//	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.
//
//////////////////////////////////////////////////////////////////////////////
//window	lw_frame, lw_window
//n_cst_menu	lnv_menu	
//n_cst_mruattrib	lnv_mruattrib
//
//// check parameters
//if isnull(ai_row) or (ai_row < 1) then
//	return -1
//end if
//
//if not isvalid(gnv_app.inv_mru) or IsNull(gnv_app.inv_mru) then
//	return -1
//end if
//
//// retrieve row from datastore and do some work with it
//gnv_app.inv_mru.of_getitem(ai_row, lnv_mruattrib)
//
//// get the mdi frame if necessary
//lnv_menu.of_getmdiframe(this.menuid, lw_frame)
//
////example opens
//// SDI Process
//// open(lw_window, lnv_mruattrib.is_classname)
//// openwithparm(lw_window, lnv_mruattrib.is_menuitemkey, lnv_mruattrib.is_classname)
//// MDI Process
//// opensheet(lw_window, lnv_mruattrib.is_classname, lw_frame)
//// opensheet(lw_window, lnv_mruattrib.is_classname, lw_frame, 0, original!)
// opensheetwithparm(lw_window, lnv_mruattrib.is_menuitemkey, lnv_mruattrib.is_classname, lw_frame, 0, original! )
//
return -1

end event

     
Name Owner
w_frame_mdi.pfc_mruprocess w_frame_mdi
w_sheet_sales_order.pfc_mruprocess w_sheet_sales_order
w_sheet_employee.pfc_mruprocess w_sheet_employee
pfc_w_master.pfc_mruclicked pfc_w_master
w_frame_mdi.pfc_mruprocess w_frame_mdi

     
Name Owner
No Data

     
Full name
No Data

     
Name Scope
No Data