of_setstyle


pfcdwsrv.pbl   >   pfc_n_cst_dwsrv_linkage   >   of_setstyle   

Full name pfc_n_cst_dwsrv_linkage.of_setstyle
Access public
Extend of integer
Return value integer
Prototype public function integer of_setstyle(integer)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_setstyle (integer ai_style);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  	of_SetStyle
//
//	Access:    	Public
//
//	Arguments:
//   ai_use:	An integer describing how detail datawindows will be refreshed
//					Valid values are: 
//						1 = Use column links to build a filter and filter. 
//									    the subordinate datawindow
//						2 = Use column links as arguments to a datawindow retrival.
//								(*This is mostly intended for Browsing Capabilities.  If the
//								 user will be updating rows as well as using this option,
//								 the modified rows need to be updated thru other means. 
//									(i.e., on pfc_master one could call the pfc_save event
//									 prior to allowing this service to discard the updates.)
//								(*Note: column links must be established in proper order)
//								(*Note: The service does not perform any updates unless
//											instructed so by the developer.)
//						3 = Use column links to cause details to scroll to proper row.
//
//	Returns:   	Integer
// 			  	1 if it succeeds and -1 if an error occurs.
//
//	Description:  Used to establish how detail datawindows will be refreshed
//
//	   *Note: This function should only be called from subordinate datawindows.
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	6.0   Initial version - Replaces obsoleted function of_setUseColLinks(...)
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

// Validate passed arguments.
CHOOSE CASE ai_style
	CASE  FILTER, RETRIEVE, SCROLL
		// Good style.
	CASE ELSE
		Return -1
END CHOOSE

// Set the attribute.
ii_collinkuse = ai_style

Return 1
end function

     
Name Owner
pfc_n_cst_dwsrv_linkage.of_setusecollinks pfc_n_cst_dwsrv_linkage
u_proftab.dw_master.constructor dw_master
u_persotab.dw_master.constructor dw_master
w_sheet_sales_order.dw_master.constructor dw_master
w_sheet_sales_order.dw_detail.constructor dw_detail
w_sheet_employee.dw_master.constructor dw_master

     
Name Owner
No Data

     
Full name
No Data

     
Name Scope
No Data