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_DataItemLovQueryValue
The framework automatically sends this message to check if an alternative value should be used to format the where-statement in the LOV-dialog.
Name | Description |
---|---|
wParam | Unused |
lParam | Unused |
Const.LOVITEMVALUE_MyValue - The item value
Const.LOVITEMVALUE_IsNull - The item will be formatted like 'xxx is null'
A string value converted to number - The alternative value that will be used in the LOV statement.
The value used for the LOV is normally the item value. Application might override this and set another value.
On PM_DataItemLovQueryValue If sCompany = strNULL Return LOVITEMVALUE_IsNull Else Return SalHStringToNumbert( sCompany )// Check if an alternative value should be used.
nTemp = Sal.SendMsg(hWndCol, Const.PM_DataItemLovQueryValue, 0, 0); if (nTemp == Const.LOVITEMVALUE_IsNull) { return Vis.StrChoose(sAlias == Const.strNULL, sSqlColumn, sAlias) + " is null "; } if (nTemp == Const.LOVITEMVALUE_MyValue) { sTemp[0] = SalString.FromHandle(Sal.SendMsg(hWndCol, Const.PM_DataItemValueGet, 0, 0)); } else { sTemp[0] = SalString.FromHandle(nTemp); }
............