Показать сообщение отдельно
Старый 22.03.2006, 12:21   #1  
Maxim Gorbunov is offline
Maxim Gorbunov
Administrator
Соотечественники
Лучший по профессии 2009
 
2,483 / 645 (26) +++++++
Регистрация: 27.11.2001
Адрес: Dubai, UAE
How do I delete a datasource from a query ? (by stelsig)
Цитата:
Posted on 20-Mar-2006 at microsoft.public.axapta.programming by stelsig
I need to delete a child datasource and all of it's children from a
query, how do I do that from code ?
There is no way you can actually delete a data source from query. Consider disabling data sources (QueryBuildDataSource::enabled(false) method). That will give the same result as removing a data source and all of its children from query.

If it's not applicable you can try to build a copy of query skiping unwanted data sources. You may find SysQuery::packRangeAndSortOrder() and SysQuery::unpackRangeAndSortorder() methods useful while implementing that.
__________________
Not registered yet? Register here!
Have comments, questions, suggestions or anything else regarding our web site? Don't hesitate, send them to me