RecordSelectionListSetSelect

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalBoolean RecordSelectionListSetSelect(SalNumber nItem)

The RecordSelectionListSetSelect selects the specified item in the combo box and repopulates the window.

Parameters

Name Description
SalNumber  nItem Number of item to select.

Returns

The return value is TRUE if the item was successfully selected, FALSE otherwise.

Comments

Calling RecordSelectionListSetSelect simulates the user selecting the item manually.

Example

If DataTransfer.RecCountGet () > 0
   ! Putting data at the destination when using cRecSelComboBox:
   Call SalWaitCursor(TRUE)
   Call InitFromTransferedData()
   Call DataTransfer.Reset()
   Call cmbOrderId.RecordSelectionListSetSelect( 0 ) 
   Call SalWaitCursor(FALSE)
   Return FALSE
if (Ifs.Fnd.ApplicationForms.Var.DataTransfer.RecCountGet() > 0) 
{
Sal.WaitCursor(true);
Ifs.Fnd.ApplicationForms.Var.DataTransfer.ItemGet("SUPPLIER_ID", sSupplierId);
Ifs.Fnd.ApplicationForms.Var.DataTransfer.ItemGet("ADDRESS_ID", sAddressId);
Ifs.Fnd.ApplicationForms.Var.DataTransfer.Reset();
Ifs.Fnd.ApplicationForms.Var.DataTransfer.SourceNameSet("frmSupplierInfoAddress");
Ifs.Fnd.ApplicationForms.Var.DataTransfer.ItemAdd("SUPPLIER_ID", sSupplierId);
InitFromTransferredData();
cmbSupplierId.RecordSelectionListSetSelect(0);
Sal.WaitCursor(false);
frmSupplierInfo.FromHandle(i_hWndFrame).TabSetActive(picTab.FindName("Name1"), true);
Ifs.Fnd.ApplicationForms.Var.DataTransfer.ItemAdd("ADDRESS_ID", sAddressId);
return false;
}