pfc_propertypopulate | |
|
pfcutil.pbl > pfc_u_tabpg_dwproperty_srvlinkage2 > pfc_propertypopulate |
Full name | pfc_u_tabpg_dwproperty_srvlinkage2.pfc_propertypopulate |
---|---|
Access | public |
Extend of | |
Return value | |
Prototype | event pfc_propertypopulate() |
Name | Datatype |
---|---|
No Data |
Name | Datatype |
---|---|
li_rc | integer |
li_style | integer |
event pfc_propertypopulate;call super::pfc_propertypopulate;//////////////////////////////////////////////////////////////////////////////
//
// Event: pfc_propertypopulate
//
// Arguments: None
//
// Returns: Integer
// 1 if it succeeds.
// -1 if an error occurs.
//
// Description:
// Populate the screen edit controls with the current service values.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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
integer li_style
// Validate references.
If IsNull(idw_requestor) or Not IsValid(idw_requestor) Then
Return -1
End If
If IsNull(idw_requestor.inv_linkage) or Not IsValid(idw_requestor.inv_linkage) Then
Return -1
End If
// Disable Retrieve Style only options.
If idw_requestor.inv_linkage.of_GetStyle() <> idw_requestor.inv_linkage.RETRIEVE Then
cbx_updateonrowchange.Enabled = False
End If
// Get the current Delete style.
li_style = idw_requestor.inv_linkage.of_GetDeleteStyle()
// The delete style attributes start at 0, the ddlb index start at 1.
ii_deletestyle = li_style + 1
li_rc = ddlb_deletestyle.SelectItem(ii_deletestyle)
// Get the current Update style.
li_style = idw_requestor.inv_linkage.of_GetUpdateStyle()
ii_updatestyle = li_style
// The update styles are (1 through 4) and then the Custom (5).
If ii_updatestyle >= 5 Then ii_updatestyle = 5
li_rc = ddlb_updatestyle.SelectItem(ii_updatestyle)
ddlb_updatestyle.Event SelectionChanged(ii_updatestyle)
// Get the current Custom Update style.
li_style = idw_requestor.inv_linkage.of_GetCustomUpdate()
ii_customupdate = li_style
// The update styles are (1 through 9).
If ii_customupdate >= 10 Then ii_customupdate = 10
li_rc = ddlb_customupdate.SelectItem(ii_customupdate)
// Determine if Visible Only columns is enabled.
cbx_synconkeychange.Checked = idw_requestor.inv_linkage.of_isSyncOnKeyChange()
// Determine if Update On Row Change is enabled.
cbx_updateonrowchange.Checked = idw_requestor.inv_linkage.of_isUpdateOnRowChange()
cbx_updateonrowchange.Event Clicked()
// Determine if Confirm On Row Change is enabled.
cbx_confirmonrowchange.Checked = idw_requestor.inv_linkage.of_isConfirmOnRowChange()
// Determine if Confirm On Delete is enabled.
cbx_confirmondelete.Checked = idw_requestor.inv_linkage.of_isConfirmOnDelete()
// Get the current Sound File style.
sle_savesound.Text = idw_requestor.inv_linkage.of_GetSaveSound()
Return 1
end event
Name | Owner |
---|---|
No Data |
Name | Owner |
---|---|
dropdownlistbox.selectitem | dropdownlistbox |
systemfunctions.isnull | systemfunctions |
systemfunctions.isvalid | systemfunctions |
pfc_n_cst_dwsrv_linkage.of_getupdatestyle | pfc_n_cst_dwsrv_linkage |
pfc_n_cst_dwsrv_linkage.of_getstyle | pfc_n_cst_dwsrv_linkage |
pfc_n_cst_dwsrv_linkage.of_GetSaveSound | pfc_n_cst_dwsrv_linkage |
pfc_n_cst_dwsrv_linkage.of_isconfirmonrowchange | pfc_n_cst_dwsrv_linkage |
pfc_n_cst_dwsrv_linkage.of_isconfirmondelete | pfc_n_cst_dwsrv_linkage |
pfc_n_cst_dwsrv_linkage.of_GetDeleteStyle | pfc_n_cst_dwsrv_linkage |
pfc_n_cst_dwsrv_linkage.of_GetCustomUpdate | pfc_n_cst_dwsrv_linkage |
pfc_n_cst_dwsrv_linkage.of_IsUpdateOnRowChange | pfc_n_cst_dwsrv_linkage |
pfc_n_cst_dwsrv_linkage.of_issynconkeychange | pfc_n_cst_dwsrv_linkage |
pfc_u_tabpg_dwproperty_base.pfc_propertypopulate | pfc_u_tabpg_dwproperty_base |
pfc_u_tabpg_dwproperty_srvlinkage2.cbx_updateonrowchange.clicked | cbx_updateonrowchange |
pfc_u_tabpg_dwproperty_srvlinkage2.ddlb_updatestyle.selectionchanged | ddlb_updatestyle |
Full name |
---|
pfc_u_tabpg_dwproperty_srvlinkage2 |
Name | Scope |
---|---|
No Data |