PM_DataItemLovUserSelectDistinct

Const.PM_DataItemLovUserSelectDistinct

The framework sends the Const.PM_DataItemLovUserReturnSelectDistinct message to a data item to establish if the search should be run using a distinct selection.

Parameters

Name Description
wParam Unused
lParam Unused

Comments

The framework will by default not run a distinct selection in LOV dialogs.
A LOV reference that defines only a limited amount of parent keys can use this message, making the result only showing unique rows. Still, the design in such places is limited, since LOV references should normally always define and provide all the parent keys needed, for why the message PM_DataItemLovUserReturnSelectDistinct should only be used when database changes where defining additional LOV views is for some reason not possible.
NOTE! A distinct selection have bad impact on performance, making the search run much slower.

Example

switch (e.ActionType)
{
   case Ifs.Fnd.ApplicationForms.Const.PM_DataItemLovUserSelectDistinct:
      e.Handled = true;
      e.Return = true;
      return;
}

Returns

Return true if the LOV search should be executed using a distinct selection.