Filter UDO Data when navigate
I create an UDO form. When i load the form, it was in ADD mode.
I want to filter the data when i use the navigate buttons (Next/Previous/First/Last record).
I put this code in the FormDataEvent :
if (BusinessObjectInfo.BeforeAction == true)
oConditions = (SAPbouiCOM.Conditions)SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_Conditions);
oCondition = oConditions.Add();
oCondition.BracketOpenNum = 1;
oCondition.Alias = "U_IFC_KEY";
oCondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
oCondition.CondVal = sItemCode + "-" + iRow_UID.ToString();
oCondition.BracketCloseNum = 1;
This code has no effect in the datasource. Why ?
Thansk for your help.