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

Json string into X++ object

$
0
0

Hi Experts,

I'm working on  AX 2009 integration with third party web application. 

I have consumed the json api and converted into C# object and added the (.dll) in ax 2009. I am getting the json value as string and unable to de-serialize the data in AX using x++.

Anyone help here, how to send the json data in list to AX or appreciate if any alternate suggestion ?

Tools:

1. VS 2010 Professional.

2. AX 2009 SP1.

Thanks in advance and Regards,

Vignesh


Creating and using tables through code X++

$
0
0

Hi, 

I need to create multiple tables dynamically through X++ code. There are multiple codes available for creation of tables. But once the table is created and in the same code we want to use that table's buffer to insert record. How to use that.

Like we have created a table through X++ named "MyTable". And then in the same method or class, I want to use this table. But I can't create a table buffer for this MyTable as it will give compile time error that this table doesn't exist.

So please share how to use a table which is we are creating through X++ code.

Pass a Form control value to a class outside scope. Control is a custom Field which is not Datasource bound.

$
0
0

Hi - 

   I have added a custom field "PRODUCTION TIME" on Report as Finished form "ProdParmReportFinished". This control is not datasource bound. I want to take the value of this control when the user clicks ok button. And use this value in a class which is outside scope  " jmgJobBundle" and "JmgRegistrationForm". 

User enters 100.00 in custom control Production Time and clicks OK.

Now I have to take that production Time Value and use it to create a route card for Production Order. This is the requirement.

THE ISSUE - I'm not able to move the value of the control from the form to out of scope classes. Can you please give me some suggestions what can be done to achieve this functionality ?  I don't prefer adding a regular table to store values because that will require maintenance etc. Perhaps using args ? 

Thanks 

SettleVendorInvoice need database information

$
0
0

I am working on the API of dynamicsAx. 

I want to know which tables are affected with the API call 'SettleVendorInvoice'.

Please reply with details or process of above API.

i want to English to arabic convert in X++ on D365

$
0
0

Hi, guys

i need it English to Arabic convert so that what to be done?

regards,

Riyas 

Update interface using extension

$
0
0

I try to add extra method to interface HcmIMeasurementRefreshable using class extension 

then  try to implement the new added method using extension  for Form HcmDiscussion since the original form implements this interface .

All updates are build successfully but the logic implemented in new added method not triggered , so my question is it possible to update interface  using extension  if yes what may case the logic implemented not to be triggered  

Difference between two hours

$
0
0

Hi,

I think I have two different time difference in hours, how can I calculate?

Example: starthours: 15:30 endhours 18:15
endhours - starthours


result: 2:45
 

  - 

AIF through .NET CORE 2.1

$
0
0

DAX Tribe,

I've built a great solution on top of .NET Framework WCF  that talks to a DAX 2012 install through AIF. I want to get this solution (a DLL library) installed into an Azure cloud app (either a Function or a Logic App). I've got it mostly working using Azure Function V1. But I need to get it working on Azure Functions V2 -- which is .NET CORE only.

So, I'm porting my .NET Framework app over to .NET CORE 2.1.

And nothing works.

The reasons are that there are very specific authentication issues that the net.tcp uses (like SPNs and EndPointIdentities) that are NOT available on CORE. Not that I can tell, anyway.

Has anybody gotten a .NET CORE app to talk to the AIF service endpoints exposed on a DAX 2012 R3 instance?

If you have, would you mind sharing your base code implementation?

Thanks for any reply,

Dave Cline


Dynamic header of a columns in grid

$
0
0
hello, I need help with how a dynamic header of a column in a grid is generated in ax 2012 R2

Running compilation, Full CIL and Synchronization after each restart

$
0
0

Hello,

I would like to verify one information that has been brought to me by our vendor. They claim, that each time we have perform a restart of any of the AOS's we have to stop the whole AOS stack and run the compilation process, followed by Full CIL generation and synchronization. Even if there were no development changes in the environment.

This extends the maintenance process by a couple of hours, which sometimes causes the whole service window to last for more than 10 or even 12 hours.

Would you please care to comment, if this is the correct approach to AX 2012 R3 and if so, why has this happened almost 2 years after the implementation and is now a regular part of maintenance? We didn't have to do this before, it started to be a need about 3 months ago, when we noticed, that without this full blown process we observe errors about not compiled classes and different AOS's show different data (i.e. warehouse location on one AOS show a stock of 25 and 17 on another).

How to Extend D365 Fin & op Privilege (Security Feature),I want to add a new entry point of Display Menu

$
0
0

Can I add a Display menu as entry Point in a Privilege in D365 Fin& Op with extension.

How Can I achieve to add a new entry point in standard Privilege with new display menu Item??

(503) Server Unavailable

$
0
0

Hi,

I cannot restart AOS service in D365 for the development environment.

I restarted IIS from LCS. I also stop/start the services from LCS. When i connect to the link i get 

HTTP Error 503. The service is unavailable.

I rebuild the model from VS then i get The remote server returned an error: (503) Server Unavailable.

I don't how can i start AOS D365.

Regards

how to import sales orders from an excel template in d365?

$
0
0

Dear all,

I need to import sales orders from an excel to my custom form in d365 fo . how to achieve that using x++?

my custom form resembles sales form without validations.

any piece of code is very helpful.

any suggestions please.

Report cannot be customized becase project belongs to a different package

$
0
0

Hi guys,

when i customize SSRS report in D365Fo while getting this error.

.

Regards,

Riyas ahamed F

Json array

$
0
0

I am working with ax data entity using Json.

I try to push a list of records to AX data base using Json array shown below  but the below error is faced 

 Json array:

[{"Key1":"Value1","Key2":Value } ,
{"Key1":"Value1","Key2":Value }]

Error reading JObject from JsonReader. Current JsonReader item is not an object: StartArray

the question is how to pass a Json array 


Getting errors irrelevant errors during project build

$
0
0

hi all, 

I am getting two errors on every project build where as if i build my model its successful.


Severity Code Description Project File Line Suppression State
Error Path: []:System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Dynamics.Framework.Tools.ILGeneratorAgent.CompilationService.ValidateMetadata(String module, String metadataPath, String compilerMetadataPath, IEnumerable`1 elements) 0


Severity Code Description Project File Line Suppression State
Error BP Rule: [Exception occured while performing operation Best practice checks. Exception details]:System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Dynamics.Framework.Tools.ILGeneratorAgent.CompilationService.RunBestPracticeChecks(String module, String metadataPath, String compilerMetadataPath, IEnumerable`1 elements, String modelName, Boolean isNormalizedCollectionNeeded) 0

Facing this only past 2 days. If someone has a solution do share. 






Import file on network in Batch job

$
0
0

Hi all,

Can anyone please help me out from this issue. i m not able to read csv file data while scheduling that batch job.

i have schedule batch job through class, in that run method i have create code for reading csv file from path and inserting data into table.

below is the code for creating the RunbaseBatch job.

#File
IO iO;
CustAccount custAccount;
Name        custname;
FilenameOpen filename = @"C:\test\File1.csv";//To assign file name
Container record;
boolean first = true;
Table1 table1;
;
iO = new CommaTextIo(filename,'R');
if (! iO || iO.status() != IO_Status::Ok)
{
  throw error("@SYS19358");
}
while (iO.status() == IO_Status::Ok)
{
  record = iO.read();// To read file
  if (record)
  {
    if (first) //To skip header
    {
      first = false;
    }
    else
    {
      table1.Name = conpeek(record, 1);//To peek record
      table1.CustAccount = conpeek(record, 2);
      table1.insert();
      info(strfmt('%1--%2',custAccount,custname));
    }
  }
}

I m not able to read data from csv file from this line

iO = new CommaTextIo(filename,'R');

If i have run only for getting the list of csv file then it's giving me the all csv file from the folder.

How to send and retrieve data from external database

$
0
0

Hi guru,


i have a problem about integration.
i have an external database SQL Server.
and i use d365fo cloud.

i want send data to external database.
and retrieve data from external database.

in ax2012, i can use ODBC.
i can create class and get data from another database.
but, in d365fo cloud, what best practice can i use for this situation.

Thanks.

How can we show a warning message according to a select statement.

$
0
0

Hello all,

How can we show a warning message according to a select statement. 

That is if the select statement gets any value then it should show a warning message.

Thank You

Siddhant

Unable to find the report design dev_CustReportRDPDemoReport.Design

Viewing all 17532 articles
Browse latest View live


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