Compartir a través de


QueryBuildDataSource Class

Definition

The QueryBuildDataSource class provides the building blocks that queries are made of.

public ref class QueryBuildDataSource : Dynamics::AX::Application::TreeNode
[Microsoft.Dynamics.Ax.Xpp.KernelClass]
public class QueryBuildDataSource : Dynamics.AX.Application.TreeNode
[<Microsoft.Dynamics.Ax.Xpp.KernelClass>]
type QueryBuildDataSource = class
    inherit TreeNode
Public Class QueryBuildDataSource
Inherits TreeNode
Inheritance
Microsoft.Dynamics.AX.KernelInterop.ProxyBase
QueryBuildDataSource
Attributes

Remarks

Data sources are arranged in hierarchies that define the sequence in which records are fetched from the tables that are assigned to the data sources. Each data source defines the order in which the records are fetched, and also the criteria that must be met by the selected records. This class lets you create, read, update, and delete X++ code and metadata. Make sure that the user has access to the development security key (SysDevelopment) before this API is called.

{ QueryBuildDataSource ds; Query q = new Query(); ds = q.addDataSource( TableNum(CustTable));}

Constructors

QueryBuildDataSource()
QueryBuildDataSource(IntPtr)

Fields

kernelClass (Inherited from XppObjectBase)

Methods

__shouldCallNew(Type)
addAllFields(String)
addCalculationField(NumericExpression, String)
addDataSource(Object, String, Boolean)
addDataSource(Object, String)
addDataSource(Object)

Adds a data source that is embedded in this data source.

addDynalink(Int32, Common, Int32, Int32, Int32)
addDynalink(Int32, Common, Int32, Int32)
addDynalink(Int32, Common, Int32)
addForeignKeyDynalink(Common, String)
addForeignkeyRelation(String, String)
addForeignkeyRelation(String)
addGroupByField(Int32, Int32)
addGroupByField(Int32)
addLink(Int32, Int32, String)
addLink(Int32, Int32)
addOrderByAggregateField(SelectionField, Int32, SortOrder, Int32)
addOrderByAggregateField(SelectionField, Int32, SortOrder)
addOrderByAggregateField(SelectionField, Int32)
addOrderByCalculationField(NumericExpression, SortOrder)
addOrderByCalculationField(NumericExpression)
addOrderByField(Int32, SortOrder, Int32)
addOrderByField(Int32, SortOrder)
addOrderByField(Int32)
addRange(Int32, Int32, QueryRangeType)
addRange(Int32, Int32)
addRange(Int32)

Adds a range to the data source.

addRelation(DictRelation, TableScope)
addRelation(DictRelation)
addSelectionField(Int32, SelectionField, Int32)
addSelectionField(Int32, SelectionField)
addSelectionField(Int32)
addSelectionFieldWithAlias(String, Int32, SelectionField)
addSelectionFieldWithAlias(String, Int32)
addSortField(Int32, SortOrder, Int32)
addSortField(Int32, SortOrder)
addSortField(Int32)
addSortIndex(Int32)
addStaticLink(Int32, Common, Int32)
addXppProxyReference(Type, Object) (Inherited from XppObjectBase)
allowAdd()
allowAdd(Int32)
AOTadd(String) (Inherited from TreeNode)
AOTaddExtendedDataType(String, Types) (Inherited from TreeNode)
AOTaddRelation() (Inherited from TreeNode)
AOTaddSubNode(Int32) (Inherited from TreeNode)
AOTaddXref(String, xRefKind, Int32, Int32, XRefReference, Int32) (Inherited from TreeNode)
AOTaddXref(String, xRefKind, Int32, Int32, XRefReference) (Inherited from TreeNode)
AOTaddXref(String, xRefKind, Int32, Int32) (Inherited from TreeNode)
AOTAllowEdit() (Inherited from TreeNode)
AOTbitmapId()

Returns the resource ID of the bitmap of the tree node.

(Inherited from TreeNode)
AOTchildNodeCount()

Counts the number of child nodes that a given tree node has.

(Inherited from TreeNode)
AOTcompile() (Inherited from TreeNode)
AOTcompile(Int32, Boolean, Boolean) (Inherited from TreeNode)
AOTcompile(Int32, Boolean) (Inherited from TreeNode)
AOTcompile(Int32) (Inherited from TreeNode)
AOTconfigure() (Inherited from TreeNode)
AOTdelete() (Inherited from TreeNode)
AOTDrop(TreeNode, TreeNode) (Inherited from TreeNode)
AOTDrop(TreeNode)

Creates a copy of a specified tree node as a child to the TreeNode object.

(Inherited from TreeNode)
AOTDuplicate() (Inherited from TreeNode)
AOTedit()

Opens the appropriate editor for this node.

(Inherited from TreeNode)
AOTedit(Int32, Int32) (Inherited from TreeNode)
AOTedit(Int32) (Inherited from TreeNode)
AOTendXref() (Inherited from TreeNode)
AOTfindChild(String, Int32) (Inherited from TreeNode)
AOTfindChild(String)

Finds the specified child node of this node.

(Inherited from TreeNode)
AOTfirstChild()

Retrieves the first child of the tree node.

(Inherited from TreeNode)
AOTfirstChildEx() (Inherited from TreeNode)
AOTfirstChildEx(Boolean) (Inherited from TreeNode)
AOTgetExecutableLineCount()

Returns the number of executable lines of code for this node.

(Inherited from TreeNode)
AOTgetExecutableLines()

Returns the executable lines of code for this node.

(Inherited from TreeNode)
AOTGetModel() (Inherited from TreeNode)
AOTgetProperties()

Returns a string containing the properties of the tree node.

(Inherited from TreeNode)
AOTgetProperties(Boolean, Boolean, Boolean) (Inherited from TreeNode)
AOTgetProperties(Boolean, Boolean) (Inherited from TreeNode)
AOTgetProperties(Boolean) (Inherited from TreeNode)
AOTgetPropertiesExt() (Inherited from TreeNode)
AOTgetPropertiesExt(String) (Inherited from TreeNode)
AOTgetProperty(String) (Inherited from TreeNode)
AOTgetSource()

Returns the source code of this node.

(Inherited from TreeNode)
AOTIncludeInCompare() (Inherited from TreeNode)
AOTinsert(TreeNode, TreeNode, Boolean) (Inherited from TreeNode)
AOTinsert(TreeNode, TreeNode) (Inherited from TreeNode)
AOTinsert(TreeNode)

Inserts a node among the subnodes of this node.

(Inherited from TreeNode)
AOTIsDirty() (Inherited from TreeNode)
AOTIsOld()

Indicates whether this node is from a file found in the old model store.

(Inherited from TreeNode)
AOTIsPersisted()

Indicates whether this node has been persisted in the model store.

(Inherited from TreeNode)
AOTIsProxyNode() (Inherited from TreeNode)
AOTiterator()

Returns an object which can be used to iterate the child nodes of the tree node.

(Inherited from TreeNode)
AOTKernelHelpType() (Inherited from TreeNode)
AOTLayer()

Returns the layer of the tree node.

(Inherited from TreeNode)
AOTLayers()

Returns a collection of the layers the tree node is defined in.

(Inherited from TreeNode)
AOTLayers(Boolean) (Inherited from TreeNode)
AOTload()

Ensures that the object is loaded.

(Inherited from TreeNode)
AOTmakeXref()

Compiles this node and its subtree in the AOT, updating the cross-reference system.

(Inherited from TreeNode)
AOTmakeXref(Int32, Boolean) (Inherited from TreeNode)
AOTmakeXref(Int32) (Inherited from TreeNode)
AOTmessageLine(String, Int32)

Writes text to the Application Object Tree (AOT) Message window.

(Inherited from TreeNode)
AOTMove(TreeNode, TreeNode) (Inherited from TreeNode)
AOTMove(TreeNode) (Inherited from TreeNode)
AOTname()

Returns the value of the name property of the node.

(Inherited from TreeNode)
AOTnewWindow()

Opens a new AOT tree window with the tree node as the root.

(Inherited from TreeNode)
AOTnextSibling()

Returns the next node on the same level as the tree node.

(Inherited from TreeNode)
AOTObjectNode()

Indicates whether the node is an application object.

(Inherited from TreeNode)
AOToverlayBitmapId()

Returns the resource ID of the overlay in the AOT associated with this node.

(Inherited from TreeNode)
AOTparent()

Returns the parent node of the tree node.

(Inherited from TreeNode)
AOTprevious()

Returns the previous sibling of this tree node.

(Inherited from TreeNode)
AOTrefresh()

Refreshes the node with the latest changes to the .aod file.

(Inherited from TreeNode)
AOTregenerate() (Inherited from TreeNode)
AOTRename(String) (Inherited from TreeNode)
AOTrestore()

Reloads this node from the disk, if applicable.

(Inherited from TreeNode)
AOTrestore(Boolean) (Inherited from TreeNode)
AOTrun()

Compiles this node and its subtree in the Application Object Tree (AOT).

(Inherited from TreeNode)
AOTrun(xArgs) (Inherited from TreeNode)
AOTsave() (Inherited from TreeNode)
AOTSetModel(Int32) (Inherited from TreeNode)
AOTsetProperties(String) (Inherited from TreeNode)
AOTsetPropertiesExt(Struct) (Inherited from TreeNode)
AOTsetProperty(String, Object) (Inherited from TreeNode)
AOTsetSource(String, Boolean) (Inherited from TreeNode)
AOTsetSource(String) (Inherited from TreeNode)
AOTshowProperties()

Opens the property sheet (if not already open) and shows the properties for this node.

(Inherited from TreeNode)
AOTtoolTip()

Returns the tool tip associated with the tree node.

(Inherited from TreeNode)
AOTToString() (Inherited from TreeNode)
AOTtypeStr()

Returns the internal string code for the element type used in XPO files.

(Inherited from TreeNode)
AOTUtilFileType()

Retrieves the value of the UtilFileType enumeration type for the TreeNode object. The UtilFileType indicates which kind of file the application object is stored in.

(Inherited from TreeNode)
applObjectId()

Returns the application object ID, if applicable.

(Inherited from TreeNode)
applObjectLayerMask()

Returns a bitmask that specifies which layers contain this element.

(Inherited from TreeNode)
applObjectOldLayerMask()

Returns a bitmask that specifies which layers contain this element in the baseline model store.

(Inherited from TreeNode)
applyFilter(FilterValue)
applyOrderBy(FieldBinding, SortOrder)
autoHeader(Int32, Boolean)
autoHeader(Int32)
autoHeaderDetailLevel(Int32, Int32)
autoHeaderDetailLevel(Int32)
autoSum(Int32, Boolean)
autoSum(Int32)
autoSumDetailLevel(Int32, Int32)
autoSumDetailLevel(Int32)
Call(String, Object[], Type[], Object[]) (Inherited from XppObjectBase)
cancelTimeOut(Int32) (Inherited from XppObjectBase)
changedNo()
childDataSourceCount()
childDataSourceNo(Int32)
clearDynalinks()
clearLinks()
clearRange(Int32, Int32)
clearRange(Int32)
clearRanges()

Deletes all ranges that are associated with the data source.

clearSortIndex()
clone()
clone(Boolean)
company()
company(String)
concurrencyModel()
concurrencyModel(Int32)
createKernelClass(Object[], Type[], Object[]) (Inherited from XppObjectBase)
cursor()
cursor(Common)
dynalink(Int32)
dynalinkCount()
embedded()
enabled()

Determines whether to enable or disable the object.

enabled(Boolean)
equal(XppObjectBase) (Inherited from XppObjectBase)
existsMeanOrExists()
existsMeanOrExists(Boolean)
fetchMode()
fetchMode(Int32)
fields()
file()
finalize()
findJoinByRelationPath(RelationPath)
findRange(Int32, Int32, Int32)
findRange(Int32, Int32)
findRange(Int32)
firstFast()

Determines whether to retrieve the first record from the query before the other records.

firstFast(Boolean)
firstOnly()
firstOnly(Boolean)
getDataSourceByName(String)
GetIntPtr()
GetKernelInstanceUniqueId() (Inherited from XppObjectBase)
getMostRestrictedQueryBuildRangeStatus(Int32, Int32, Int32)
getMostRestrictedQueryBuildRangeStatus(Int32, Int32)
getMostRestrictedQueryBuildRangeStatus(Int32)
getNo()
getNodeInLayer(UtilEntryLevel, Boolean) (Inherited from TreeNode)
getNodeInLayer(UtilEntryLevel)

Retrieves a version of the tree node from a specified layer.

(Inherited from TreeNode)
getTimeOutTimerHandle() (Inherited from XppObjectBase)
getXppProxyReference(Type) (Inherited from XppObjectBase)
handle()
hashKey() (Inherited from TreeNode)
id()
indexIsHint(Boolean)
insertDataSource(Int32, QueryBuildDataSource)
isGroupedByField(Int32)
IsManagedValid()
isPartOfSubQueryInBaseQuery()
joined()
joinedDataSources()
joinMode()
joinMode(Int32)
kernelhandle()
KernelInstanceDisposed() (Inherited from XppObjectBase)
label()

Gets or sets the label for a control.

label(String)
level()
link(Int32)
linkCount()
linkFields(String, String, String)
linkFields(String, String)
makeCopy() (Inherited from TreeNode)
MakeReflectionCall(String, Object[]) (Inherited from XppObjectBase)
name()

Gets or sets the name that is used in code to identify a form, report, table, query, or another Finance and Operations application object.

name(String)
newmethod()
newObjectName()

Returns a string that contains the name of the new element.

(Inherited from TreeNode)
newObjectName(String) (Inherited from TreeNode)
notify() (Inherited from XppObjectBase)
notifyAll() (Inherited from XppObjectBase)
objectOnServer()
Obsolete.
(Inherited from XppObjectBase)
oneToOneDataSources()
orderMode()
orderMode(Int32)
orphan()
parentDataSource()
policyContext()
policyContext(String)
query()
range(Int32)
rangeCount()
rangeField(Int32, Int32)
rangeField(Int32)
relations()
relations(Boolean)
rightOuterJoin()
rightOuterJoin(Boolean)
selectionCount()
selectWithRepeatableRead()
selectWithRepeatableRead(Boolean)
setDeferredLoadingAllowed(Boolean)
setTimeOut(String, Int32, Boolean)
Obsolete.
(Inherited from XppObjectBase)
setTimeOut(String, Int32)
Obsolete.
(Inherited from XppObjectBase)
sortClear()
sortDirection(Int32, SortOrder)
sortDirection(Int32)
sortField(Int32)
sortFieldCount()
sortIndex(Int32)
sortIndexCount()
staticlink(Int32)

Returns a static Link object on the query"s data source.

staticlinkCount()

Gives the number of static links that are defined on the QueryBuildDataSource object.

table()

Gets or sets the table ID that is associated with the object.

table(Int32)
ToString()

Returns a string that represents the current object.

treeNodeExport(String, Int32) (Inherited from TreeNode)
treeNodeExport(String)

Exports this node and its subtree from the Application Object Tree (AOT).

(Inherited from TreeNode)
treeNodeName()

Returns the name of the tree node.

(Inherited from TreeNode)
treeNodePath()

Returns the unique path to the tree node within the Application Object Tree (AOT).

(Inherited from TreeNode)
treeNodeRelease()

Releases the tree node explicitly.

(Inherited from TreeNode)
treeNodeType()

Retrieves an instance of a TreeNodeType class that provides reflection information for the tree node.

(Inherited from TreeNode)
unionType()
unionType(Int32)
uniqueId()
update()

Determines whether the records fetched by this data source can be updated.

update(Boolean)
updateNodePermissions(Boolean) (Inherited from TreeNode)
usageCount() (Inherited from XppObjectBase)
utilElement()

Returns a UtilElements record that is related to the node.

(Inherited from TreeNode)
utilIdElement()

Returns a UtilIdElements record that is related to the node.

(Inherited from TreeNode)
validateNameCharacters(String) (Inherited from TreeNode)
VerifyKernelClass() (Inherited from XppObjectBase)
wait() (Inherited from XppObjectBase)
Xml() (Inherited from XppObjectBase)
Xml(Int32) (Inherited from XppObjectBase)

Applies to