>Serge,
>
>>No. I was thinking about using it dynamically during the life of BizObj.
>>I am using First(), Next() and other methods and I need to set filter before I call those.
>
>What I meant is, are you envisioning that SetFilter() is an empty method at the Framework level, and the developer places code in subclasses of the business object that sets a particular filter.
>
>Do you see the Framework calling this method automatically?
>
>Regards,
I was thinking about something like CreateIndex() method where I can send the whole filter expression as a parameter. I did not see the Framework calling this method automatically, but I assume I could always use DataEnvironment.PostInitHook() if I need to call it.
Here is how it might look:
LPARAMETERS tcFilter
LOCAL lcAlias
lcAlias = This.GetAlias()
IF Used(This.GetAlias())
SET Filter TO &tcFilter IN (lcAlias)
ENDIF