|
of_populatedddw
|
|
Full name
|
pfc_n_cst_dwsrv.of_populatedddw
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_populatedddw(string)
|
Name
|
Datatype
|
ldwc_obj
|
DataWindowChild
|
li_rc
|
integer
|
ll_rc
|
Long
|
ls_dddwdatacolumn
|
String
|
public function integer of_populatedddw (string as_dddwname);//////////////////////////////////////////////////////////////////////////////
//
// Function:
// of_PopulateDDDW
//
// Access:
// Public
//
// Arguments:
// as_dddwname The column name of the DDDW
//
// Returns:
// 1 = success
// -1 = error
//
// Description:
// Populates specified DDDW
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
integer li_rc = 1
Long ll_rc
String ls_dddwdatacolumn
DataWindowChild ldwc_obj
// Check required references.
If IsNull(idw_Requestor) or Not IsValid(idw_Requestor) Then Return -1
// Determine if the current column is a DropDownDataWindow.
ls_dddwdatacolumn = idw_Requestor.Describe ( as_dddwname + ".DDDW.DataColumn" )
IF ls_dddwdatacolumn = "" OR ls_dddwdatacolumn = "?" or ls_dddwdatacolumn = "!" THEN
// Not a DropDownDataWindow.
li_rc = -1
ELSE
// Get the Child reference.
ll_rc = idw_Requestor.GetChild (as_dddwname, ldwc_obj)
If ll_rc > 0 Then
ll_rc = idw_requestor.event pfc_populatedddw (as_dddwname, ldwc_obj)
if ll_rc < 0 then return -1
End If
END IF
Return li_rc
end function
Name
|
Owner
|
datawindow.describe |
datawindow
|
datawindow.getchild |
datawindow
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.isvalid |
systemfunctions
|
pfc_u_dw.pfc_populatedddw |
pfc_u_dw
|