AX 2012 取得Form或Query的 所有DataSources

static void AllDataSourcesInQuery(Args _args)
{
    Args args = new Args();
    Query                       query;
    QueryRun                    queryRun;
    counter i;
    ;

query = new query(queryStr(CustConsInvoiceConstruction_JP));
    queryRun = new QueryRun(query);

for(i=1 ; i<=query.dataSourceCount();i++)
    {
        info(new DictTable(query.dataSourceNo(i).table()).name());
    }
}

static void AllDataSourcesInForm(Args _args)
{
    Args args = new Args();
    FormRun fr;
    FormBuildDataSource formBuildDataSource;
    counter i;
    ;
    args.name("CustTable");   // its your FORM name
    fr = ClassFactory.formRunClass(args);
    for(i=1 ; i<=fr.form().dataSourceCount();i++)
    {
        formBuildDataSource = fr.form().dataSource(i);
        info(new DictTable(formBuildDataSource.table()).name());
    }
   
}

时间: 2024-08-10 17:31:26

AX 2012 取得Form或Query的 所有DataSources的相关文章

Using Controls in a Form Design [AX 2012]

Using Controls in a Form Design [AX 2012] This topic has not yet been rated - Rate this topic Updated: January 27, 2012 Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynam

Overview of Form Control Types [AX 2012]

Overview of Form Control Types [AX 2012] Other Versions 0 out of 1 rated this helpful - Rate this topic Updated: October 11, 2011 Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Micro

AX 2012 Form and Parts

在AX 2012 中系统标准FORM 中绝大部分都应用parts,form 和parts 是不可分开. 说到底parts到底是什么呢? Parts :我个人理解是为了在一个form中的显示更多信息而存在,并不像每条record那样存在, 而是可能对应关联到每条record或者不关联每条record,总之,对应到每条record需要额外显示 在一个form的其余位置中. 其中,parts在form中主要显示在下图form布局视图的factboxpane和previewpane中. ps:下图为Fo

Table Properties [AX 2012]

Table Properties [AX 2012] 1 out of 2 rated this helpful - Rate this topic Updated: July 20, 2012 Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012 This topic describes the properties that

Temporary TempDB Tables [AX 2012]

Temporary TempDB Tables [AX 2012] 1 out of 4 rated this helpful - Rate this topic Updated: November 5, 2013 Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012 In Microsoft Dynamics AX, one t

View Properties [AX 2012]

View Properties [AX 2012] Other Versions This topic has not yet been rated - Rate this topic Updated: July 20, 2012 Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012 在 Views中的属性和在表中的一样,但因为视

Customizing AX 2012 Released Product ListPage Filter using X++

In Microsoft Dynamics AX 2012, ListPages are more restricted from customization than in prior versions of AX.  Primary reason for the restriction is so that the list pages maintain compatibility with Enterprise Portal.  Recently a customer had a requ

Dynamics AX 2012 – Batch Jobs Not Executing

In Dynamics AX 2012, there are times when batch jobs appear to be stranded in a waiting status.  When this happens, the cause can typically be a batch server or batch group which is not set up properly.   However, if these are set up correctly and yo

Select Statement Syntax [AX 2012]

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012 SelectStatement = select Parameters Parameters   [ [  FindOptions  ] [  FieldList  from ] ] TableBufferVaria