|
itemfocuschanged
|
|
Full name
|
pfc_u_dw.itemfocuschanged
|
Access
|
public
|
Extend of
|
|
Return value
|
|
Prototype
|
event itemfocuschanged()
|
Name
|
Datatype
|
lb_disablelinkage
|
boolean
|
lnv_string
|
n_cst_string
|
ls_microhelp
|
string
|
lw_parent
|
window
|
event itemfocuschanged;//////////////////////////////////////////////////////////////////////////////
// Event: itemfocuschanged
// Description: Send itemfocuschanged notification to DW services
// If appropriate, display the microhelp stored in the tag value of the current column.
// Note: The tag value of a column can contain just the microhelp, or may
// contain other information as well.
// The format follows: MICROHELP=.
//////////////////////////////////////////////////////////////////////////////
// Rev. History Version
// 5.0 Initial version
// 6.0 Added notification to the Linkage Service.
// 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
string ls_microhelp
window lw_parent
n_cst_string lnv_string
If IsNull(dwo) or not IsValid (dwo) then return
//Check for microhelp requirements.
If gnv_app.of_GetMicrohelp() then
// Check the tag for any "microhelp" information.
ls_microhelp = lnv_string.of_GetKeyValue (dwo.tag, "microhelp", ";")
if IsNull (ls_microhelp) or Len(Trim(ls_microhelp))=0 then ls_microhelp = ""
//Notify the window.
of_GetParentWindow(lw_parent)
If IsValid(lw_parent) then
// Dynamic call to the parent window.
lw_parent.Dynamic Event pfc_microHelp (ls_microhelp)
end if
end if
// Is Querymode enabled?
If IsValid(inv_QueryMode) then lb_disablelinkage = inv_QueryMode.of_GetEnabled()
if not lb_disablelinkage then
If IsValid(inv_Linkage) then
inv_Linkage.Event pfc_itemfocuschanged (row, dwo)
end if
end if
end event