Quantcast
Channel: Martin Dráb's Activities
Viewing all 17532 articles
Browse latest View live

ReImplementation of payment connector

$
0
0

Hello,

We are planning to reimplement the Ax2012 payment connector in D365FO . In Ax 2012, we will drop the payment DLL in server and client locations. How does it work in D365FO?

Thanks in advance!

Regards,

Manjula.


How to create Charts in Forms?

$
0
0

Hi all,

I want to create a chart in D365 version. I am not aware of charts before.Any reference blogs/standard forms where i can look over into.

pls suggest

Unable to connect to an Application Object Server. A company name or server name may not be specified correctly in the client configuration, or the server specified may not be available.

$
0
0

Hi All,

We have refreshed the DB with Production in DEV environment, we have updated the SID for admin , AX services are up and running , but while opening AX getting the below error in event log and AX is not opening:

" Unable to connect to an Application Object Server. A company name or server name may not be specified correctly in the client configuration, or the server specified may not be available. "

Please do needful.

Regards,

Akbar

TFS mapping with AX environments

$
0
0

Hello,

I followed few links and found that in order to use TFS with AX 2012 below mentioned patch needs to be installed on client computer:

1. Team Foundation Server 2010 SP1 Object Model.

2. Visual Studio 2010 SP1 Team Foundation Server Compatibility GDR.

I have installed these in my DEV machine and my AX-TFS mapping works fine. Do I need to install these in my TEST and LIVE server also? 

Generating JSON file on SO confirmation

$
0
0

Hi All,

Whenever a Sales order is confirmed a JSON file should be generated with details from CustConfirmJour and custconfirmtrans for the journal created during confirmation.

How can I achieve this ?

 

Multiple Designs for different companies

$
0
0

Hi Experts,

I have created a new design for the report PurchPurchaseOrder (Purchase order confirmation report). I need to print the new design in a particular company only. I am aware that PurchPurchaseOrder report uses printmanagement but no idea where to place the condition; should be in PrintMgmtDocType class or PrintMgmtReportFormat table etc. and how the condition should be, in case of different companies.

Please help. 

Thanks 

Custom outbound AIF service request and response in same operation

$
0
0

Hi All,

I am figuring out to create a new custom webservice in AX 2012 R3.  Requirement is to create a webservice to request something from biztalk and read the response sent from biztalk and populate data in AX. All these request and response should happen synchronously. 

As per my understanding, we can only request from AX to biztalk using outbound service but I am not sure about retrieving response in same operation.

Please let me know anyone come across requirement like above and show me some light to design my requirement.

Regards,

Madeva 

new feature of opening page side by side by using in dynamics 365 FO.


Update Customer using OData

$
0
0

Hello Everyone 
 

I am trying to Update a Customer Using Odata

 message":"No resources were found when selecting for update.","type":"Microsoft.Dynamics.Platform.Integration.Services.OData.ODataArgumentException"

		string dynamicCustomerQuery = "CustomerAccount eq '981848'";                
                var customers = d365.Customers.AddQueryOption("$filter", dynamicCustomerQuery).AddQueryOption("cross-company", "true").Execute();
                DataServiceCollection<Customer> customerToUpdate = new DataServiceCollection<Customer>(customers);
                foreach (var customer in customerToUpdate)
                {
                    Console.WriteLine("Customer with ID {0} retrived.", customer.CustomerAccount);
                    customer.PersonPhoneticFirstName = "Sankarsh Cust Updated";
                    d365.UpdateObject(customer);
                }
                d365.SaveChanges(SaveChangesOptions.PostOnlySetProperties);

Kindly Provide your valuable suggestion.

ps:- I have also tried d365.SaveChanges()

Authentication for custom web services in AX 2012 R3

$
0
0

Hi Experts,

I have created AIF document services for our custom service , able to add to Visual studio and push data to AX using the same, now I want to add authentication to my web service, as of now its open and without authentication able to connect.

Please suggest me solution for this.

Thanks

Tanmay

How to Sum field value in a table

$
0
0

This is my AAA table. How can I show the value of number3


                                  AAA
---------------------------------------------------
number1                number2                number3

123                         111                 

By using table method How can I calculate 
number1 - number2 = number3
because in the method I did something but couldn't work at all 

display public EDT(number3) methodName1()

{

      return this.number1 - this.number2;

}

And i cant return the value to my number3

DataField type in array

$
0
0

Hi :)

I have a task to make dialog with undefined number of fields. I mean that I'm going throw InventTable and searching for missing data, when it occurs I'm adding a field to my dialog and display it at the end with all fields at the same time. 

My only idea is like that:

d = new Dialog();
field1 = d.addField(types::String, "some text");
field2 = d.addField(types::String, "some text");
field3 = d.addField(types::String, "some text");
d.run();


it's not effective because I need to make a lot of variables, but DialogFields not allows to be an array.

Is there any solution to make that somehow like array to avoid making hundreds of variables? 

Can I add a new display method under a datasource of a form extension?

$
0
0

Hi 

       How can I add a new display method under a datasource of a form extension? I am working with On hand List. I want to add a field for recalculating reservPhysical. (newreservPhysical = reservPhysical + picked). Currently, my code looks like this

[ExtensionOf(formstr( InventOnhandItem )) ]
final class JC_InventOnhandItem_Extension
{
    [DataSource]
    class InventSum
    {
        display InventQtyReservPhysical newreservPhysical(InventSum _inventsum)
        {
        //my logic code
        }
    }
}

However, after I choose Data Source to InventSum, I cannot find this method on Data Method.

Because the values in on-hand List depends on InventDim, I cannot simply add  display to InventSum table. Is there any way I can add display method under datasource of form.

Best Regards,

JustZM

Query::Insert_RecordSet field is not filled

$
0
0

Hi all

I created next code and when i call it from a class is not fill ProdId field on temporal table.

Query q = new Query();
QueryBuildDataSource prodTableQbds;
QueryBuildDataSource prodBOMQbds;
QueryBuildFieldList prodTableFieldList;
QueryBuildFieldList prodBOMfieldList;

Map fieldMapping;

prodTableQbds = q.addDataSource(tableNum(ProdTable));
prodBOMQbds = prodTableQbds.addDataSource(tableNum(ProdBOM));
prodBOMQbds.joinMode(JoinMode::InnerJoin);
prodBOMQbds.relations(true);

prodTableFieldList = prodTableQbds.fields();
prodTableFieldList.addField(fieldNum(ProdTable, ProdId));
prodTableFieldList.addField(fieldNum(ProdTable, bomId));
prodTableFieldList.dynamic(QueryFieldListDynamic::No);

prodBOMfieldList = prodBOMQbds.fields();
prodBOMfieldList.addField(fieldNum(ProdBOM, BOMId));
prodBOMfieldList.addField(fieldNum(ProdBOM, ItemId));
prodBOMfieldList.dynamic(QueryFieldListDynamic::No);

prodTableQbds.addGroupByField(fieldNum(ProdTable, ProdId));
prodTableQbds.addGroupByField(fieldNum(ProdTable, bomId));
prodBOMQbds.addGroupByField(fieldNum(ProdBOM, BOMId));
prodBOMQbds.addGroupByField(fieldNum(ProdBOM, ItemId));

prodTableQbds.addRange(fieldNum(ProdTable, ProdStatus)) .value(queryValue(ProdStatus::StartedUp));
prodTableQbds.addRange(fieldNum(ProdTable, ProdPoolId)) .value(queryValue(prodPoolId));
prodBOMQbds.addRange(fieldNum(ProdBOM, ProdFlushingPrincip)).value(queryValue(ProdFlushingPrincipBOM::Manual));
prodBOMQbds.addRange(fieldNum(ProdBOM, EndConsump)) .value(queryValue(NoYes::No));

if (ProdId)
{
prodTableQbds.addRange(fieldNum(ProdTable, ProdId)).value(queryValue(ProdId));
}
if (filterSpice)
{
prodTableQbds.addRange(fieldNum(ProdTable, DlvDate)) .value(queryRange(fromDate, toDate));
prodTableQbds.addRange(fieldNum(ProdTable, ProductionLineId)).value(queryValue(ProductionLineId));
}
if (ItemId)
{
prodBOMQbds.addRange(fieldNum(ProdBOM, ItemId)).value(queryValue(ItemId));
}

fieldMapping = new Map(Types::String, Types::Container);
fieldMapping.insert(fieldStr(ProdBOMTmp, ProdId), [prodTableQbds.uniqueId(), fieldStr(ProdTable, ProdId)]);
fieldMapping.insert(fieldStr(ProdBOMTmp, BOMId), [prodTableQbds.uniqueId(), fieldStr(ProdTable, BOMId)]);
fieldMapping.insert(fieldStr(ProdBOMTmp, ProdTableBOMId), [prodBOMQbds.uniqueId(), fieldStr(ProdBOM, BOMId)]);
fieldMapping.insert(fieldStr(ProdBOMTmp, ItemId), [prodBOMQbds.uniqueId(), fieldStr(ProdBOM, ItemId)]);

query::insert_recordset(ProdBOMTmp, fieldMapping, q);

if (ItemId)
{
prodBOMQbds.clearRange(fieldNum(ProdBOM, ItemId));
prodBOMQbds.addRange(fieldNum(ProdBOM, bomId)).value(queryValue(ItemId));
}

query::insert_recordset(ProdBOMTmp, fieldMapping, q);

Call OData method in Unified Operations Project (X++)

$
0
0

I Have a code library written in c# and that has a method addTask(string,string,string). I want to call this method in Unified Operation project class 'MyClass'. How to achieve this?. The method 'addTask' connects to OData using Azure authentication.

I have added the authentication, odata & code library dll to project. Its not working.

ConsoleApplication.Program Testing = new ConsoleApplication.Program();

Testing.addTask("Test 1","1",projectId);


Data migration to dynamics 365 Finance & Operation

$
0
0

Hi Everyone,

I am trying to insert data from a flat file to dynamics 365 Finance & Operation instance.

For example, there are 2 legal entities A and B. A has some records and B doesn't have any record.

So i exported A's records and trying to push into B but it's getting error stating records already exist.

In SSIS I have made a connection string using F&O url.

Can anyone please help me understand how do we push data into the legal entity B using SSIS KingswaySoft.

In other word how do we point the connection to legal entity B ?

Immediate help is highly appreciated.

Regards,

Arunesh

Extend Public method of table

$
0
0

Hi,

Scenario - I have to edit one field of the table LedgerJournalTrans through one button after printing the cheque, getting warning message as "Voucher %1 can not be changed or deleted as check has been printed"

Query - I want to skip this warning message from the Public method of Table level, where I need to ensure that this warning message would not be called.

But somehow, in my understanding it would get called as we would be using next in Chain Of Commands. I have already looked up this method which is not hookable method So I am not able to use pre or post event handlers also.

Detailed Explanation

  1. FormName - LedgerJournalTransVendPaym, Table - LedgerJournalTrans, method - Private method - checkAllowEditWhenCheckPrinted() as I can not extend private method,
  2. So I am trying to extend Public Method - CheckAllowEdit() but here also I am not able to control this method as the code is written for calling Private method - checkAllowEditWhenCheckPrinted() is not reachable for me.

Kindly suggest any wayout as I am able to go through certain examples of COC but unable to find the wayout to edit exact code where I wish this line of code to be called and another line of code should not be called. 

I am not sure whether it would be a possibility or not.

How to manage the RecIds during a data import from SSIS?

$
0
0

Hi,

I am building an SSIS project to transfer data from CRM Online and from an internal web application into AX 2012 database. 

During the import I experienced the following problem:

While the records are imported successfully into AX 2012, I receive an error message whenever I try to create the same type of records from the UI, which persists until I delete the imported records. From what I read it is related to RecId duplication (apparently the system is trying to create the record's row with the same RecId that I used during the import).

I followed this article below to try to update the NextVal field of the SYSTEMSEQUENCES table (where the next RecIds for each table are kept), but I still receive this error.

https://sumitsaxfactor.wordpress.com/2011/04/01/handling-recids-in-sql-server/

Can you suggest me any other approach through which I can manage the RecIds and avoid the problem I described?

I have also read that I can "reserve" certain number of RecIds through using X++ code and then calling the X++ service in my SSIS project, still I am trying to avoid that approach for the moment, as we want to keep the logic "SSIS only" as it would be easier for the other .NET Developers in the team, who are unfamiliar with AX 2012 and X++, to support it, as it's pure C# and SQL code for the moment. 

Yet, if there is no feasible way to use only SSIS to fix this issue, what else would you suggest me to use?

Thanks.

Best Regards,

Evgeni Dyulgerov

How to download installer bits to setup DEV or TEST environment. LCS does not show option except DynamicsNAV and we are partners to study customer issues.

$
0
0

How to download installer bits to setup DEV or TEST environment for Dynamics365 Finance and Operations. LCS does not show option except DynamicsNAV and we are partners to study customer issues.

Microsoft Dynamics AX api integration guide

$
0
0

Need xml api documentation for create customer account in  microsoft dynamics ax 

Viewing all 17532 articles
Browse latest View live


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