[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.axapta.programming

add datasource to query which is passed as an arg to a class

hansi

12/9/2005 2:29:00 PM

hi all,
i wrote a own_sysContextMenu-class, that allowes to filter, search,
gotoMainTable an show directhelp on displayfields in forms. it works fine and
has good performance. i pass some args to the class (formDataSource_q, some
fieldIds, an help-url, an a searchtxt a.s.o). in the class i build a new
query with an added datasource, an addlink and a joinmode (needed for filter
an search). then i return this new query to the form.

in the class i won't build a new query. i'd like to get the whole query and
only add datasources and add links and joinmodes. i always get the message,
that the new datasource isnt embedded in the formdatasource.

whats going wrong?

thanks for any reply
hansi
1 Answer

Luegisdorf

12/9/2005 2:42:00 PM

0

Hi Hansi

May be your are just searching for formDataSource.dataSource(1).query()
which returns the existing query from formDataSource?

Best regards
Patrick

"hansi" wrote:

> hi all,
> i wrote a own_sysContextMenu-class, that allowes to filter, search,
> gotoMainTable an show directhelp on displayfields in forms. it works fine and
> has good performance. i pass some args to the class (formDataSource_q, some
> fieldIds, an help-url, an a searchtxt a.s.o). in the class i build a new
> query with an added datasource, an addlink and a joinmode (needed for filter
> an search). then i return this new query to the form.
>
> in the class i won't build a new query. i'd like to get the whole query and
> only add datasources and add links and joinmodes. i always get the message,
> that the new datasource isnt embedded in the formdatasource.
>
> whats going wrong?
>
> thanks for any reply
> hansi