|
pfc_prerestorerow
|
|
Full name
|
pfc_u_dw.pfc_prerestorerow
|
Access
|
public
|
Extend of
|
|
Return value
|
|
Prototype
|
event pfc_prerestorerow(ref n_cst_restorerowattrib)
|
Name
|
Datatype
|
lb_disablelinkage
|
boolean
|
event pfc_prerestorerow;//////////////////////////////////////////////////////////////////////////////
// Event: pfc_prerestorerow
// Arguments: anv_restorerowattrib: Restore object by reference
// Returns: None
// Description: Populate restore object attributes before the Restore window opens.
//////////////////////////////////////////////////////////////////////////////
// Rev. History Version
// 6.0 Initial version
// 7.0 Linkage service should not fire events when querymode is enabled
//////////////////////////////////////////////////////////////////////////////
// Copyright © 1996-1999 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.
//////////////////////////////////////////////////////////////////////////////
boolean lb_disablelinkage
// Is Querymode enabled?
if IsValid(inv_QueryMode) then lb_disablelinkage = inv_QueryMode.of_GetEnabled()
if not lb_disablelinkage then
if IsValid (inv_Linkage) then
if inv_Linkage.of_GetStyle() = inv_Linkage.FILTER then
// Only display the rows that belong to the current master row.
anv_restorerowattrib.is_filter = this.Object.DataWindow.Table.Filter
end if
end if
end if
// The sort to be applied prior to displaying the RestoreRow dialog.
anv_restorerowattrib.is_sort = this.Object.DataWindow.Table.Sort
end event