RE: Delivery address on sales order
Delivery address on sales order
I wanted to know how the delivery address on sales order is getting populated when we select any customer.As per my understanding it should take primary address from customer card but behaviour is something different.i observed below scenarios in ax 2012 R3
1. When we create any new customer using existing name and created two address for that customer.one which is set as primary is of purpose delivery.other address is of business,delivery.In this case instead of taking primary address it is taking another address
2.When we create any new customer by creating new name and created two address for that customer.one which is set as primary is of purpose delivery.other address is of business,delivery.In this case it is taking primary address.
RE: Additional Column for viewing
Sir Mahmoud
i already tried your code, but it only display the documentnum once click in the description.
Additional Column for viewing
RE: Primary address
Primary address
AX2012R2
What is the purpose of the primary address ?
We are wanting to create sales orders automatically from electronically received purchase orders.
The sales orders are getting created with the delivery address that is marked as the primary.
If we change the primary address to be the required delivery address, AX will create the sales order correctly with the correct delivery address.
Our concern is what will "break" if we change the primary address?
RE: Query built data source query join getting error Table does't contain this field
thanks but its not the write thing i found it by my self i have to use the same qbds weather i was using qbds1. silly mistakes makes you an expert
RE: Legal entity's Primary address
Legal entity's Primary address
Hi All,
I'm checking Customer account statement in report in Demo application and there system prints Contoso address marked as primary.
I run to Organisation management and wonder what system doesn't allow to enable/disable primary address:
Even i set this demo address Purpose = Other i get it everywhere.
So why switch of Primary address blocked - it's bug or feature?
If i can't operate the switch i should change address itself?
RE: query build data source not initialised
Hi Kavaljeet,
can you use Rich formatting <> button to paste your code. It will be very easy to read code for others. On which line you are getting this error ?
RE: query build data source not initialised
if (financeLocation || groupDimension) { query = new Query(); queryBuildDataSource = query.addDataSource(TableNum(LedgerTrans)); queryBuildDataSource.addSortIndex(indexNum(LedgerTrans, ACDate)); queryBuildDataSource.addRange(fieldNum(LedgerTrans, AccountNum)).value(LedgerTable.AccountNum); queryBuildDataSource.addRange(fieldNum(LedgerTrans, TransDate)).value(strFmt('<%1', fromDate)); //DSB00021 ::Begin queryBuildDataSource.addRange(fieldNum(LedgerTrans, RecId)).value(strFmt('<=%1', ledgerTransMaxRecId.RecId)); queryBuildDataSource.addRange(fieldNum(LedgerTrans, createdDateTime)).value(strFmt('<=%1', ledgerTransMaxRecId.createdDateTime)); //DSB00021 ::End queryBuildDataSource.addRange(fieldNum(LedgerTrans, OperationsTax)).value(enum2str(OperationsTax::Current)); queryBuildDataSource.addRange(fieldId2Ext(fieldNum(LedgerTrans,Dimension), Dimensions::code2ArrayIdx(SysDimension::FinanceLocation))).value(strFmt('%1', FinanceLocation)); //qbds = query.addDataSource(TableNum(Dimensions)); qbds = query.dataSourceTable(tableNum(Dimensions)).addDataSource(tableNum(LedgerTrans));//here i am getting error qbds.joinMode(JoinMode::InnerJoin); qbds.addLink(fieldnum(LedgerTrans,Dimension),fieldnum(Dimensions,Num)); qbds.addRange(fieldnum(Dimensions,DimensionCode)).value(groupDimension); queryBuildDataSource.addSelectionField(fieldNum(LedgerTrans, AmountMST), SelectionField::Sum); queryRun = new queryRun(query); while (queryRun.next()) { _ledgerTrans = queryRun.get(TableNum(LedgerTrans)); openingBalance += _ledgerTrans.AmountMST; }
RE: Data deleted from table during process of Virtual company.
Virtual companies are used to share data. When table is not added in virtual company it has dataAreaID column , when you add it in VC that column gets deleted and data also , that's the intended behavior . if You want that data you have to take back up before adding that table to VC.
That's why recommendation is that you set up virtual companies when you first implement Microsoft Dynamics AX
RE: query build data source not initialised
Hi,
Please use following statement
qbds = queryBuildDataSource.addDataSource(TableNum(Dimensions));
instead of
qbds = query.dataSourceTable(tableNum(Dimensions)).addDataSource(tableNum(LedgerTrans));//here i am getting this error
RE: Data deleted from table during process of Virtual company.
Thanks Sukrut,
If i take XPO (Backup) of table before VC then it will take backup of table structure right ot data. Then how i will get existing data?
Please give me more shed on this.
Arpan
RE: query build data source not initialised
Is Dimension table already exist in Query ? if it not use adddatasource method
query build data source not initialised
I am getting an error "query build data source not initialised"
my code is
query = new Query();
queryBuildDataSource = query.addDataSource(TableNum(LedgerTrans));
queryBuildDataSource.addSortIndex(indexNum(LedgerTrans, ACDate));
queryBuildDataSource.addRange(fieldNum(LedgerTrans, AccountNum)).value(LedgerTable.AccountNum);
queryBuildDataSource.addRange(fieldNum(LedgerTrans, TransDate)).value(strFmt('<%1', fromDate));
//DSB00021 ::Begin
queryBuildDataSource.addRange(fieldNum(LedgerTrans, RecId)).value(strFmt('<=%1', ledgerTransMaxRecId.RecId));
queryBuildDataSource.addRange(fieldNum(LedgerTrans, createdDateTime)).value(strFmt('<=%1', ledgerTransMaxRecId.createdDateTime));
//DSB00021 ::End
queryBuildDataSource.addRange(fieldNum(LedgerTrans, OperationsTax)).value(enum2str(OperationsTax::Current));
queryBuildDataSource.addRange(fieldId2Ext(fieldNum(LedgerTrans,Dimension),
Dimensions::code2ArrayIdx(SysDimension::FinanceLocation))).value(strFmt('%1', FinanceLocation));
//qbds = query.addDataSource(TableNum(Dimensions));
qbds = query.dataSourceTable(tableNum(Dimensions)).addDataSource(tableNum(LedgerTrans));//here i am getting this error
qbds.joinMode(JoinMode::InnerJoin);
qbds.addLink(fieldnum(LedgerTrans,Dimension),fieldnum(Dimensions,Num));
qbds.addRange(fieldnum(Dimensions,DimensionCode)).value(groupDimension);
queryBuildDataSource.addSelectionField(fieldNum(LedgerTrans, AmountMST), SelectionField::Sum);
queryRun = new queryRun(query);
while (queryRun.next())
{
_ledgerTrans = queryRun.get(TableNum(LedgerTrans));
openingBalance += _ledgerTrans.AmountMST;
}
RE: Data deleted from table during process of Virtual company.
XPO is back up of your metadata not actual data in you table. you have to take back up of your data before adding table to VC.
see below community link data back up options
community.dynamics.com/.../table-collection-and-virtual-company-in-dynamics-ax
Data deleted from table during process of Virtual company.
Dear All,
I am tested Virtual company with with 3 companies. When i drag and drop table "EmployeeTable" in to 3 companies one by one then i got an info 3 times :
Then i realize that if data is exist in table "EmployeeTable" then it will deleted during the process of Virtual company.
Because in table "EmployeeTable" Data is existed before setup "Virtual Company". Once i done with setup and restart client then data will deleted from Table.
Why it's happening?
Then i am creating records in table which is shared by 3 companies as well.
Please give me more shed on this.
Arpan
Acquiring old Fixed Assets
Hi-
I currently have a handful of fixed assets sitting in my Fixed Asset Clearing Account since May 2017 that i need to acquire at 7/31/17. I'd like to acquire them at 7/31, but adjust them so that there is a 'catch up' in the depreciation calc at 7/31 making up for the 2 months in which they were sitting in the clearing account. can someone please assist as i don't want to skew anything in closed periods.
Thank you,
Daniel Pecora
RE: Additional Column for viewing
Hi Sir mahmoud
Kindly disregard my question. i already solve it.