Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all 175888 articles
Browse latest View live

RE: Delivery address on sales order

$
0
0

Hello Shri,

The primary address can be overridden in the "More options" section by setting a "Default" delivery address.  You can use this option to choose the default Business address and Delivery Address.


Delivery address on sales order

$
0
0

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

$
0
0

Sir Mahmoud

i already tried your code, but it only display the documentnum once click in the description.

Additional Column for viewing

$
0
0

Hi!

I want to add column on AR Payment Journal (LedgerJournalTable) , the additional column comes from AR Payment Journal Lines (LedgerJournalLines). 

RE: Primary address

$
0
0

You can have a Business/Delivery address set as the Primary but using the "More options" you can set a different delivery address as the "Default."  By doing so you override the Primary setting.

Primary address

$
0
0

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

$
0
0

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

$
0
0

Though you have selected a specific address as the Primary, you can use the "More options" to set a default address that is different from the Primary.  By doing this it will override the Primary address.


Legal entity's Primary address

$
0
0

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

$
0
0

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

$
0
0
    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.

$
0
0

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

$
0
0

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.

$
0
0

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

$
0
0

Is Dimension table already exist in Query ? if it not use adddatasource method


query build data source not initialised

$
0
0

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.

Data deleted from table during process of Virtual company.

$
0
0

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

$
0
0

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

$
0
0

Hi Sir mahmoud

Kindly disregard my question. i already solve it.

Viewing all 175888 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>