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

unable to return DimensionAttributeValue record for XXX

$
0
0

Guys,

i tried to create payment journal from AIF service and i got that error!!


Know from where eventhandler is triggered

$
0
0
Hi ,
Say I am inserting a record to 'InventJournalTable' from a custom class 'ImportJournalclass' in the method  'insertToJournalTable'.
Similarly I will be inserting records to InventJournalTable from multiple places like classes, button clicked methods of forms etc..
I have to write posteventhandler as below to execute some of my other operations.

[DataEventHandler(tableStr(InventJournalTable), DataEventType::Inserted)]
public static void InventJournalTable_onInserted(Common sender, DataEventArgs e)
{      
}
 
 
Now I want to know in this posteventhandler method from where this eventhandler is called.
Any help on this?
Thanks

trouble with Microsoft Dynamics ax 2012 R3 with tfs 2018

$
0
0

Good morning, I am working in the integration of ax 2012 R3 and TFS 2018. actually it works, my problem is how to custumize the Check in form in order to add some Tfs fields such as "AssignedTo" fields.  I could add the field in the form" SysVersionControlCheckIn"  and in the table, but i could not retreive information ( I mean the value of the field assigned To refering to the WorkItem) from TFS.  After searching the place where they populate values i found the class SysVersionControlWorkItemProviderTFS, exactly in the methode insertWorkItemToTable, but i didn't find how they populate values from tfs.  Can you help me please.  Thank you so much

Cliquez ou appuyez sur Entrée pour afficher sysVersioncontrolCheckIn.PNG dans l’aperçu de photosysVersioncontrolCheckIn.PNG

Change the filename of an SSRS report when emailed through X++

$
0
0

Hi

I have the following code (excerpt only, not full method) to both email a SSRS report and save it as a file:

    // create email contract
    emailContract = new SrsReportEMailDataContract();
    
    // fill in the email contract details
    emailContract.parmAttachmentFileFormat(SRSReportFileFormat::PDF); 
    emailContract.parmSubject("My Report"); 
    emailContract.parmTo("someone@someone.com");   
    
    // email report
    certificateController.parmReportContract().parmPrintSettings().printMediumType(SRSPrintMediumType::Email);
    certificateController.parmReportContract().parmPrintSettings().parmEmailContract(emailContract);
    certificateController.parmReportContract().parmPrintSettings().fileFormat(SRSReportFileFormat::PDF);
    certificateController.parmReportContract().parmPrintSettings().fileName(tSaveParameters.CertificateUNCPath + '\\' +  fileNamePDF);
    
    certificateController.runReport();    
    
    // generate file for archiving
    certificateController.parmReportContract().parmPrintSettings().printMediumType(SRSPrintMediumType::File);
    certificateController.parmReportContract().parmPrintSettings().overwriteFile(true);
    certificateController.parmReportContract().parmPrintSettings().fileFormat(SRSReportFileFormat::PDF);
    certificateController.parmReportContract().parmPrintSettings().fileName(tMFilesParameters.FLW_MFilesCertificateUNCPath + '\\' +  fileNamePDF);

    certificateController.runReport();

When the email is received, the report as an email attachment is the AOT name of the report eg. Reportname.PrecisionDesign1.pdf

When the report is saved to a file share, it is the name I gave it.

Can I change the name of the attachment on the email, in the same way I change the name of the saved file?

Many thanks in advance!

How to do WHEREIN or contain in x++?

$
0
0

Why x++ is not supporting WHEREIN or contain in sql? Is there any workaround of doing in x++? I have been searching for one hour but haven't found anything.

Please remove Microsoft Dynamics AX filter as not it is called D365 For Operation it is so confusing :(

Insert a record failed.

$
0
0

Hi

    I created a extension table for CustTable, and insert two new fields (NewestDate and NewestBy). Then I wrote a code to insert record. Code run successfully, but when I was debugging, it has a error. (My purpose is, if the record has already existed, I can update new value, if the record does not exist, I can insert a new record.) Who know reasons?

How to modify a dialog field value at run time

$
0
0

Hello friends,

I have a scenario where I have to modify a dialog form by adding my new fields in D365O.

The standard class is extended with runbasebatch class.

I have used Chain Of Command method to create extension of this standard class and to add my four dialog fields.

Now my second requirement is that, based on one of my custom field's value the standard dialog field value will be enabled or disabled.

I have tried the approach explained in the below links, but no luck:

http://dynamicsaxforum.blogspot.com/2012/10/override-event-methods-on-dialog.html

https://community.dynamics.com/ax/b/axworld/archive/2018/01/19/ax2012-dynamic-actions-on-runbase-dialog

This may be working in Ax 2012, but not working in D365O in my case.

Had anyone gone through this requirement in D365O before?

Any suggestions will be helpful.

Best Regards

Pranav

How to join customer account with main account in AX

$
0
0

Please anybody provides me with a useful knowledge if possible


It is possible to use locally installed VS to doing D365 developement/customization

$
0
0

Hello Everyone,

It is possible to use locally installed Visual Studio to doing customization/developement on D365. If its possible then tell me how we can implemented on my local system . Basically i am use D365 VM (application version 8.0) and i have also LCS credential.

An exception occurred in the query metadata execution. The exception is Map object not initialized.

Types of Databases in AX 2012

$
0
0

Greetings,

Hi people I need help figuring out what these database consists of(What are stored in them).


thanks and regards

Package deployment on Build and Test environment

$
0
0

Hello everyone,

I am trying to install deployable package on Build and Test environment on cloud. I read on the Microsoft website that I can only install the deployable package using command line. Also, there is no admin account in Microsoft subscription.

I have already unblocked the file. 

But when I follow the steps, I get the error "Access is denied".

Error when exporting large number of records to CSV

$
0
0

Hi all,

I have a Query based SSRS report. Just a simple query with no complex stuff in it but gets huge data and the report runs fine. When the data is exported to CSV, after a while I get the below error. Please suggest how to fix this and export the data smoothly.

The maximum message size quota for incoming messages (2147483647) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.

 

Thank you,

Praveen.

Extend RDP Report using COC

$
0
0

Hello,

my requirement to add a new value to an existing report so followed the following steps:

1-create an extension of the temp table then adds the field.

2- create Extension class of the RDP and used the COC for the processReport function, but I counter an Issue here 

when trying to use the Temp Table I could but when try to update the temp table it through a syntax error "Temp is not declared" as shown in the following Image.

the remaining steps to create a new report and copy the old design and edit the design as I want, then create an extension of the report menu item and choose the new report as an object. 

Is there any issue in this steps and why it allows us to assign a value to the temp but through error when trying to select or update it.\

thanks in advance.

WhatsApp integration with D365 for operations

$
0
0

Hi,

is it possible to integrate whatsApp with D365. If yes then please guide me for the same.


SSRS Report not loading if i change query ranges

$
0
0

Dear All,

We have one Customized BOM Report. In one query, we are taking values from table InventSum, making ranges of fields Closed=0, and ClosedQty=0. That is working fine.

But if i remove the ranges or updating like Closed in (0,1) and ClosedQty in (0,1), report is not loading in ax 2012.

I tried the same query in SQL Server and that is working fine.

Could you please help me to sort this out?

Regards,

Workkb

trouble with Microsoft Dynamics ax 2012 R3 with tfs 2018

$
0
0

Good morning, I am working in the integration of ax 2012 R3 and TFS 2018. actually it works, my problem is how to custumize the Check in form in order to add some Tfs fields such as "AssignedTo" fields.  I could add the field in the form" SysVersionControlCheckIn"  and in the table, but i could not retreive information ( I mean the value of the field assigned To refering to the WorkItem) from TFS.  After searching the place where they populate values i found the class SysVersionControlWorkItemProviderTFS, exactly in the methode insertWorkItemToTable, but i didn't find how they populate values from tfs.  Can you help me please.  Thank you so much

Cliquez ou appuyez sur Entrée pour afficher sysVersioncontrolCheckIn.PNG dans l’aperçu de photosysVersioncontrolCheckIn.PNG

Sending a JSON List to custom service

$
0
0

Hello All,

I have a JSON list am trying to send to a custom service.

[
{
"EmployeeId":"ERS/CONS/67898",
"Gross":30567.90,
"NetPay":7890.89,
"EmployeePension":578564,
"EmployerPension":898789,
"PAYE":68798
}
,
{
"EmployeeId":"ERS/CONS/9087",
"Gross":30567.90,
"NetPay":7890.89,
"EmployeePension":578564,
"EmployerPension":898789,
"PAYE":68798
}
,
{
"EmployeeId":"ERS/CONS/6745",
"Gross":30567.90,
"NetPay":7890.89,
"EmployeePension":578564,
"EmployerPension":898789,
"PAYE":68798
}
,
{
"EmployeeId":"ERS/CONS/2345",
"Gross":30567.90,
"NetPay":7890.89,
"EmployeePension":578564,
"EmployerPension":898789,
"PAYE":68798
}
]

The code for the custom service is as follows;

[
DataCollectionAttribute(Types::Class, classStr(ERSPayrollRecordContract)),
]
public str createRecords(List _records)
{
ERSPayrollRecordContract payrollRecord;
ListEnumerator listEnum = _records.getEnumerator();
str txt="";
while(listEnum.moveNext())
{
payrollRecord = listEnum.current();
txt +=strFmt("%1, ", payrollRecord.EmployeeId());
}
return txt;
}

but i get this error in my API tester

{
"Message": "An exception occured when deserializing a parameters - Exception occured when parsing the request content - Error reading JObject from JsonReader. Current JsonReader item is not an object: StartArray. Path '', line 1, position 1.",
"ExceptionType": "XppServicesDeserializationException",
"ActivityId": "d3e970ed-9630-0003-20fd-e9d33096d401"
}
Please what am i doing wrong

Send message box to other users

$
0
0

Hello,

I need to create a job that shows a message box to a user of ax that I indicate based on its id. To a user or to several, to show a notification to all the users indicated. I do not know how to create the job, is there a code for it?

Thank you

Alex

Consume JSON based web API in AX 2012

$
0
0

Hi All,

We have a requirement to consume JSON based Web API in AX 2012 R3. I am new to this requirement and with the help of some posts I tried to use the below sample code by executing in a Job in X++.

RetailWebRequest    request; 
RetailWebResponse   response;
    str                 rawResponse;
    Map                 responseData;
    str                 responseValue;
   
    RetailCommonWebAPI webApi = RetailCommonWebAPI::construct(); 
    request = RetailWebRequest::newUrl("echo.jsontest.com/.../Clark");
    response = webApi.getResponse(request); 
    rawResponse = response.parmData(); 
    responseData = RetailCommonWebAPI::getMapFromJsonString(rawResponse);
    responseValue = responseData.lookup("Kent");
     info(strFmt("Element name: %1", responseValue));

However, I could not get any response. Can anyone please help me on this?  

Regards

Ana

Viewing all 17532 articles
Browse latest View live


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