PM_DataItemExcludeFromLov

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.

Const.PM_DataItemExcludeFromLov<

It is normal for a LOV reference to have parameters. For example when editing an employee number a LOV reference for emp_no will most likely have company as key in the reference. In most cases when the LOV is opened for the emp_no the company value is set and the data in the LOV is filtered for that company. If this is not the case the LOV will display all companies and when the user select an employee in the LOV the result will be that the company that is now implicitly selected will be set in the form as well. If this default behavior is not wanted the application should catch PM_DataItemExcludeFromLov and return true.

The framework sends the Const.PM_DataItemExcludeFromLov message to data items to query if a LOV-dialog should modify specified items when:

  1. The result from the LOV contains the specified data item.
  2. The data item is a parameter in the reference view.

Parameters

Name Description
wParam Unused
lParam Unused

Returns

Applications should return TRUE to indicate that no changes should be made from the LOV-dialog, FALSE otherwise.

Example

private void dfsCompanyId_MessageActions(ref SalMessage message)
{
	#region Actions
	switch (message.Code)
	{
		case Ifs.Fnd.ApplicationForms.Const.PM_DataItemExcludeFromLov:
			message.Handled = true;
			message.Return = true;
			return;
	}
	#endregion
}