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

RE: Using display methods in data entities

$
0
0

Hi Joe,

The postLoad method can be used if you have also the original fields in your staging table. Then you can use something like this:

    /// <summary>
    /// Map data fields to virtual fields
    /// </summary>
    public void postLoad()
    {
        this.TableName          = tableId2Name(this.Table);
        this.FieldName          = fieldId2Name(this.Table, this.Field);
        this.ExtendedTypeName   = extendedTypeId2name(this.ExtendedTypeId);
    }


When you need to map the virtual fields to the target datasource, you can use the method mapEntityToDataSource(). An example:

    public void mapEntityToDataSource(DataEntityRuntimeContext _entityCtx, DataEntityDataSourceRuntimeContext _dataSourceCtx)
    {
        super(_entityCtx, _dataSourceCtx);

        if (_entityCtx.getDatabaseOperation() == DataEntityDatabaseOperation::Insert || _entityCtx.getDatabaseOperation() == DataEntityDatabaseOperation::Update)
        {
            if (_dataSourceCtx.name() == dataentitydatasourcestr(MyEntity, MyTable))
            {
                MyTable myTable = _dataSourceCtx.getBuffer();

                myTable.Table            = tableName2Id(this.TableName);
                myTable.Field            = fieldName2Id(myTable.Table, this.FieldName);
            }
        }
    }


You can also use the metadata search for examples of entities in D365 which are also using these methods.


Using display methods in data entities

$
0
0

Hi

I want to be able to use a display method from one of the tables in my data entity. I have created an unmapped field, but cant see how to populate it. I guess I have to override the postLoad method but I can't see how to get the datasource and current record.

Can anyone point me in the right direction please?

Thanks,
Joe

RE: SSRS report controller parmShowDialog(false) doesn't work

$
0
0

A workaround is fixing the underlying problem by yourself, as discussed in previous replies in this thread.

SSRS report controller parmShowDialog(false) doesn't work

$
0
0

I have a report controller class and am trying to prevent the parameters dialog from showing in certain instances.

myController.parmShowDialog(false);

myController.StartOperation();

the parmShowDialog is not preventing the dialog from showing.

Sales tax - delivery address - AX doesn't pick it up

$
0
0

Hi all,

AX doesn't pick up a sales tax group from a customer's delivery address.

What I have:

1. Terms of delivery: sales tax address is set to Delivery.

2. Multiple addresses on the customer record. Only one address is set to purpose Delivery. This address has sales tax group selected on the General tab.

3. Invoice and delivery tab: sales tax group is blank.

The setup above works for some customers and doesn't work for others. I don't see any difference in setups between those customers. Same terms of delivery, a sales tax group is selected on the address form, invoice and delivery tab - sales tax group is blank. 

Obviously, if I add a sales tax group to invoice and delivery tab, everything works perfectly. 

Any thoughts would be greatly appreciated!

RE: Get address bar path of menus X++

Get address bar path of menus X++

$
0
0

Hello everyone,

I want to get menu path of a specific menu in AOS by using code. Is there any ways to do this?

Ex: "Accounts receiveable/Common/Customers/All customers"

RE: Dynamics 365 for Operations integrations licensing

$
0
0

That's the official story regarding multiplexing - if you indirectly access Windows Server (and it's licensed on pre-user basis), you need a Windows Server CAL, similarly with SQL Server and so on, and also with Dynamics 365 for Operations. The general rules regarding multiplexing cover all automated processes - the only way is having a manual step in between.

That being said, I suggest you contact Microsoft, explain the situation to them and ask them to give you a solution.

Note that this is a community forum - we can't change Microsoft licensing policies. Again, you'll have to send them to Microsoft.


Dynamics 365 for Operations integrations licensing

$
0
0

Hi,

 

we have a customer who has 15 legal entites, all of them but a few are manufacturing companies. Now they want to buy a new ERP for their centralised purchase and supply chain. At the same time they want to fully automate outbound and inbound invoicing, meaning completing the transaction as far as it can go, until it just needs approval. Initially I thought that that means about a 100 entreprise licenses. Of the 1000 employees, that is about the number who will have access to D365fO.

 

The question it rises is if all the other 900 users, who don't even know of the existence of an ERP, also needs entreprise licenses. The paragraph saying that: Any user or device that accesses Microsoft Dynamics 365 —whether directly or indirectly—must be properly licensed, is concerning and a dealbreaker. The only viable license in our case is full Operations licenses or entreprise. Today they work mainly in about 20 separate systems: CAD, PLM, PIM and various production systems, all of them maintaining their own infrastructure. They will not be able to or wanting to use D365fO since it is not a system that suit their needs and all the other systems represent a substatial investment. Still we will need to sync some data between the systems, mainly through nightly batch runs. That is done today in the current solution, no extra licenses needed.

 

 And what about the suppliers that now will cause economical transactions through automation of e-invoices and mailed invoices. Will they need to purchase extra licenses for all of them? Since e-invoicing from and to public and government institutions will be written into law in our country this will be a real factor here, not to mention that it is a logical improvement.

 In this case that would mean 500+ extra full Operations licenses, then we will need to look at alternative options. We can not defend that kind of costs for something that only 5% of the licensed users in the company works in. Can someone please give me some guidance, what license models can we offer? I greeted the fact that it is now written in the guidelines that a customer's customers now don't need extra licenses, please fix these integration cases too! 

Sales order creation from XML file with DocuRef - Field Type must be filled in

$
0
0

Hi All,

I have been facing an issue while creating a sales order from an XML file. I have provided the TypeId element tag in DocuRefHeader entity but its still complaining the value must be provided.

XML I am importing in AX

 <?xml version="1.0" encoding="utf-8" ?>

<SalesOrder xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/SalesOrder">

<SalesTable class="entity">

  <CustAccount>C000002</CustAccount>

  <DeliveryDate>2011-10-11</DeliveryDate>

  <ReceiptDateRequested>2011-11-11</ReceiptDateRequested>

  <PurchOrderFormNum>ABC-98654</PurchOrderFormNum>

  <InventLocationId>EMU</InventLocationId>

  <DeliveryName>Delivery name 465</DeliveryName>

<TableDlvAddr class="entity"> 

  <City>southbank</City>

  <CountryRegionId>AUS</CountryRegionId>

  <LocationName>delivery address</LocationName>

  <State>VIC</State>

  <Street>13075 MANCHESTER RD STE</Street> 

  <ZipCode>3006</ZipCode>

</TableDlvAddr>

<SalesLine class="entity">

<ItemId>CANO</ItemId>

<SalesQty>20</SalesQty>

<SalesPrice>82.25</SalesPrice>

<SalesUnit>ltr</SalesUnit>

  </SalesLine>

<DocuRefHeader class="entity">

            <TypeId>Note</TypeId>

            <Notes>Carriage Extra at Cost</Notes>

            <Restriction>External</Restriction>

</DocuRefHeader>

</SalesTable>

</SalesOrder>

 

Job to test above XML

 

staticvoid JobImportXml(Args _args)

{

    //feed the xml that was modified after exporting through exportxml job

    XmlDocument xml = XmlDocument::newFile(@'C:\temp\SORequest.xml');

    AxdSalesOrder salesOrder;

 

    try

    {

        salesOrder = new AxdSalesOrder();

        salesOrder.create(xml.xml(),  new AifEndPointActionPolicyInfo(), new AifConstraintList());

    }

    catch

    {

        throw error('Error in document service');

    }

    info(strFmt('Sales order created'));

}

 

Getting this error

 

Error "The state of the source document or Source document line could not be updated" while selecting the vendor purchase requisition in AX7

$
0
0

Hi All,

Let me give a background on the scenario.

Initially we had two companies and the user had specific roles for creating purchase requisition and those specific roles had access to all organizations including DAT.

Now as we increased the no of companies I want to restrict the users access to only those two companies so I did grand him access to specific companies. Now when the user is trying to select the vendor or the user is trying to approve the purchase requisition we are getting the error "The state of the source document or Source document line could not be updated"

But if I change the access grant back to all organization the error doesn't come and when I change it back to specific companies i get the error.

There is no customization invovled.

Is there any cache like .auc files we had to delete or on server side we have to delete.? which might resolve the issue.

Sales invoice financial dates

$
0
0

I have a situation where the sales invoice posting is failing because the financial dates are in previous months.  The module access is set to "On hold"  in Feb.  The wierd thing is that the sales order was created on the 28/03/2017 and picked on that date but the invoice will not post as some portion of it is trying to post to 28/02/2017.    All items are standard cost and I cannot replicate this in our TEST environment.

Where does the system get it's financial dates when posting a sales invoice?

Many thanks for any pointers as to where to look.

Paulina

RE: Link vendor to customer

$
0
0

Hi Preeti Menon

Thanks for the information, but the blog mentioned above does not available. Do you have any other link where I can get information about it.

Thanks

Shashikant

Link vendor to customer

$
0
0

Dear 

how do i link a customer to a vendor in Dynamics AX 2012 R3 , it seems all the instruction online are for earlier versions ?

regards

RE: Zero VAT transaction does not post/save into TaxTrans table

$
0
0

Hi Ludwig,

I have setup From and To date against the tax code for Company B in the test system and I do get the post into TaxTrans table finally after that . Thank you very much for the information again . But I am just curious that why Company A does not need to setup the data range when it is still working well .

Best regards,

Hoy


RE: Layers , Models and Compare with baseline in Visual Studio

$
0
0

Hi Joris,

I got it that we dont have any option to select the baseline.

I got that only models created first will go as the baseline.(but)

to cross check my results I tried creating a new model wih cus layer and customized an object compare with baseline is ( application suite as the baseline)

now after that i created a new model with SLN layer and while trying to customize the object I dint see the changes which I made in Cus layer

Layers , Models and Compare with baseline in Visual Studio

$
0
0

Hi everyone,

I have a doubt, whether in AX7 what is the importance of layers do they have any significance  or models are having any precedence the way they are being created. I tried overlayering an object in a model(cus layer) in app suite package.Then I use compare with baseline( it is comparing with sys. I created a new model(isv layer) customized the same object and when comparing with baseline I can see both (sys+cus layer )as baseline and isv code being compared against them. Now when I created a new model (using sln layer) and try overlayering the same object and try to compare with the baseline the baseline is again sys layer not the models( with cus and isv). Is there any setting where we can set a specific layer in visual studio to as the baseline.

Time Zone Conflict

$
0
0

Dear Team,

I need to know about the time zone conflict which happened in ax 2009. and how it is rectified in ax 2012 R3.

Basic Example: Workflow approval

Originator is from India sending the approval on 30/3/2017 and the approval person is from USA so he would be getting the approval on 29/3/2017 so this date conflict was a problem in ax 2009 and this was solved in ax 2012 R3.

1. Needed to know on what basis it was solved.

2. Wanted to know if there were any other conflict regarding time zone in ax 2009 which is solved later in ax 2012 R3.

Thanks

Suresh

RE: Best approach for setup AOS, DB and client for different Geographical Location

$
0
0

Hi Vilmos,

I have last confusion with your one comment , please clear :

" The typical installations go with 6 AOS and 3 SQL instances (2x SQL Server for AlwaysOn, 1x for SSRS/SSAS)."

What are these 6 AOS for? what are 2 SQL instance for always On ? please elaborate it

RE: Best approach for setup AOS, DB and client for different Geographical Location

$
0
0

AX AOSes for different purposes and considering disaster recovery: User1, User2, Batch1+Reporting, Batch2+DIXF, AIF/API1, AIF/API2

AlwaysOn is the disaster recovery for SQL Server that needs minimum 2 instances, you can Google it to understand it better.

Viewing all 175888 articles
Browse latest View live


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