/*
自定义Dialog中对数组的取值
以下为Job
*/
static void xyf_DialogDimension(Args _args)
{
Dialog _Dialog = new Dialog("Test Array->Dimension");
DialogField dlgDimension;
Dimension _Dimension;
FormDataSource LedgerTable_ds;
;
dlgDimension = _Dialog.addField(typeId(Dimension),"成本利润中心");
dlgDimension.fieldControl(1).visible(false);
dlgDimension.fieldControl(3).visible(false);
/** Query
LedgerTable_ds.query().dataSourceTable(tablenum(LedgerTable)).addRange(fieldId2Ext(fieldnum(LedgerTable,
Dimension),1)).value(QueryValue("DepartmentName"));
*/
_Dialog.doInit();
if(_Dialog.run())
{
_Dimension = dlgDimension.value();
info(_Dimension[2]);
}
}