>>Hi everybody,
>>
>>In the application we use GetExpr to allow to specify custom filter. This is called from a button in a form. Unfortunately, all tables and cursors that are opened in the form's DE, are visible in GetExpr dialog.
>>
>>Is there any way to hide the extra tables and only show the tables we want?
>>
>>Thanks in advance.
>
>I don't think that such an option exists explicitly. I would suggest you open a private datasession (perhaps with an object based on the Session class), specifically open the desired tables, and then use GETEXPR within the context of this data session.
I was thinking about something like this - a bit tricky, though. May be not worth the trouble as nobody complained...
UPDATE. I decided to go ahead and implement the change. So far so good.
If it's not broken, fix it until it is.
My Blog