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

connect to SQL server of a D365 on DevBox

$
0
0

Hi all,

We have a performance issue with one of our data entity exports and we would like to use SSMS (SQL server management Studio) activity monitor to see what is going on when we export the data. How can we get the connection string of the Azure SQL server DB?

Thanks


Copy uploaded files

$
0
0

Hi,

does anybody has experience with copy of uploaded files? Or is there an example in D365?

I want to upload a file, do something with the file and copy it to a new file...

Thank's in advance

Passing arguments to controller class from Form on button click

$
0
0

Hello all, in a requirement i have to run my report from form where it takes the selected record on form as parameter to process the report. The report dialog should be invisible. How can i achieve this ? 
I have written DP class, contract class and controller class, created an action menu item and set it as menu item button form. But here i am not setting the data source. I need some code level implementation from where the report gets open on button click 

Install-AXModel -File problems.

$
0
0

hi

i got the following message after trying install an ax model security tool development,

PS C:\> Install-AXModel -File "c:\Program Files (x86)\Microsoft\Security Development Tool\SecurityDevelopmentTool.axmodel"
Install-AXModel : The pipeline has been stopped.
At line:1 char:1
+ Install-AXModel -File "c:\Program Files (x86)\Microsoft\Security Deve ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [Install-AXModel], PipelineStoppedException
+ FullyQualifiedErrorId : One or more conflicting model elements already exists in an
installed model.,Microsoft.Dynamics.AX.Framework.Tools.ModelManagement.PowerShell.InstallAXModelCommand

i open all port by creating a new rule.

please tell me if i forget a detail.

thank.

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!

Modelstore Release

$
0
0

Good Morning I have a question I have been using Microsoft Dynamics AX 2012R3 for just a little over 1 year now we have been implementing it as part of a 3 phased project the 1st project has only affected the Manufacturing area and the 2nd part will be the majority of the other business areas for example Finance, Merchandising, CallCentre etc

the question I have is that we have released 4 model store releases since we went live in November 2017 and to apply a model store to Production we need to have all users out of the AX application to do this sometimes up to 4 hours and testing- now although very challenging to do this when your you work for a business that is a 24 operation we found the time

my concern is when the rest of the business comes online with AX2012 - do we really have to have everyone out to apply a model store as I am thinking this is going to cause us significant disruption while this takes place making it almost impossible to implement change

obviously I understand the risks with XPOs and understand why we wouldn't  choose and XPO release over a Model store - I am just wondering if there's anyway to deploy change without taking everyone out the system for so long

Error : When mapping In VS TFS 2015

$
0
0

when create mapping between FTS and VSTS that Massage it shown :

Error in Class

$
0
0

Hi Friends,

I got a error while run a job using class. Class Name is SSSEmployeeSet. Below error is occured 

SSSEmployeeSet object not initialized. Stack trace (C)\Jobs\SSSEmployeeSet - line 6

Thanks in Advance.


Learning system administrator role

$
0
0

Hi,

Please send set up link for microsoft dynamics ax 2012 r3

Thanks,

Mahesh

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

Need to access d365 O data web API using Java script Ajax call.

$
0
0

I am using this code to access token but it gives me an error.

<!DOCTYPE html>
<!--
This file is part of the Microsoft Dynamics CRM SDK code samples.

Copyright (C) Microsoft Corporation.  All rights reserved.

This source code is intended only as a supplement to Microsoft
Development Tools and/or on-line documentation.  See these other
materials for detailed information regarding Microsoft code samples.

THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
-->
<!--<snippetMetaDataDemo>-->
<html lang="en-US">

<head>
    <style>


    </style>
    <title>Metadata Demonstration</title>
    <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">

<script src="ajax.googleapis.com/.../jquery.min.js"></script>
    <script type="text/javascript">
        function startSample() {
            
            $.ajax({
                url: 'login.microsoftonline.com/.../token',
                beforeSend: function(xhr) {
                    xhr.setRequestHeader('tenant_id', "dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx7");
                    xhr.setRequestHeader('client_id', "exxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx3");
                    xhr.setRequestHeader('client_secret', "Jxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=");
                    xhr.setRequestHeader('grant_type', "client_credentials");
                    xhr.setRequestHeader('resource', "cfxpos-devaos.sandbox.ax.dynamics.com");

                },
                type: 'POST',
                async: false,
                contentType: "application/json",
                dataType: 'jsonp',
                success: function(data) {
                    alert("Success from success callback!");
                    // ShowData(data);                    
                    alert(data);
                },
                error: function(xhr, status) {
                    alert(status);
                }
                //complete: function (data) {
                //    alert("Success!from complete function");
                // }
            });
            }
    </script>
</head>

<body onload="startSample()" style="font-family: Segoe UI;">
 
 
</body>

</html>

Please let me know if anything wrong here.

create a purchase order using API

$
0
0

Is there an API to create a new purchase order in D365 FO? 

Maybe x++ in Runnable class can make it?

Can someone give me an example? Thank you so much!

AX practice environment

$
0
0

Hi guys,

   i am new to ms dynamics ax and i would like to practice ms dynamics ax so microsoft provides any virtual machines for practicing purpose in case if not any other company or institute provides practicing environment how can i practice it?

How to know actually consumed Device CAL license

$
0
0

Hi All,

Our customer has bought around 32 device CAL for 25 computers. Now as they are going to renew the license they want to know how many actually device cal they are using.

1. IS there any way to know actually consumed device CAL?

2.How many users can access one device CAL?any max limit on user?

Thanks,

Shri

Data Entity in Dyn365FO

$
0
0

Hi,

I created a data entity to import an excel. After creating i just tried to sync the project  i'm getting this error.

Validation step: Database synchronization started.
Infolog diagnostic message: Infolog diagnostic message: 'Cannot create record for data entity - USEWasteCodeTableEntity. The most common cause is if the entity metadata is not compiled. Recompile and retry database sync.' on category 'Error'.
Database synchronization failed. You may have to do a full build of the package 'USEModel' and all of its dependent packages.
Validation step: Database synchronization completed (120473 ms).
Validation completed (120477 ms).

Even i did Full build but still it doesn't works, i'm keep on doing build and sync.

please help me out.. !

Thanks

Vignesh T


Copy uploaded files

$
0
0

Hi,

does anybody has experience with copy of uploaded files? Or is there an example in D365?

I want to upload a file, do something with the file and copy it to a new file...

Thank's in advance

Lookup() in dialog

$
0
0

Dear All,

I did lookup in dialog in AX 2009. It's working properly.

Class declaration :

class TM_Deduction extends RunBase
{
Dialog dlg;
DialogField dialogDeductionCode;
ACXPay_AllowanceDeductionNo deductionCode;
}

Dialog :

protected Object dialog(DialogRunbase dialog, boolean forceOnClient)
{
;
dlg = super(dialog, forceOnClient);
dlg.caption('List of deduction');

dialogDeductionCode = dlg.addField(typeid(ACXPay_AllowanceDeductionNo), "Deduction code");

return dlg;
}

dialogPostRun() :

public void dialogPostRun(DialogRunbase dialog)
{
;
super(dialog);

dialog.dialogForm().formRun().controlMethodOverload(true);
dialog.dialogForm().formRun().controlMethodOverloadObject(this);
}

void Fld1_1_lookup()
{
FormStringControl control = dlg.formRun().controlCallingMethod();

Query query = new Query();
QueryBuildDataSource qbds;
QueryBuildRange qbr;
SysTableLookup sysTableLookup =
SysTableLookup::newParameters(tableNum(ACXPay_AllowanceDeduction), control);
;
qbds = query.addDataSource(tablenum(ACXPay_AllowanceDeduction));

sysTableLookup.addLookupField(fieldNum(ACXPay_AllowanceDeduction, AllowanceDeductionNo));
sysTableLookup.addLookupField(fieldNum(ACXPay_AllowanceDeduction, Name));

qbr = qbds.addRange(fieldnum(ACXPay_AllowanceDeduction, AllowanceDeductionType));
qbr.value(enum2str(ACXPayAllowanceDeduction::Deduction));

qbr = qbds.addRange(fieldnum(ACXPay_AllowanceDeduction, Priority));
qbr.value('2');

sysTableLookup.parmQuery(query);
sysTableLookup.performFormLookup();
}

Pack() :

container pack()
{
return [deductionCode];
}

UnPack() :

boolean unpack(container _packedValues)
{
[deductionCode] = _packedValues;

return true;
}

main() :

static void main(Args args)
{
TM_Deduction deduction;
;
deduction = new TM_Deduction();

if(deduction.prompt())
{
deduction.run();
}
}

Note : I searched in google and build this lookup for dialog.

I have  3 queries :

1. How Fld1_1 is identify by dialog? Where i am getting Fld1_1 value for dialog field?
If i have 3 dialog fields then it will be Fld1_2,Fld1_3... . Is't correct?

2. in AX 2012 R3 is there any replacement for Fld1_1?

3.  What is role of dialogPostRun() ?

Please give me more shed on this.

Thanks!

Arpan Sen

Study materials for certification

$
0
0

Hi folks, by professional i am an accountant. I have blend of different ERP like SAP AND SAGE hand on experience.

Now, i want to change my exposure to consultancy side of finance and operation. I decided to pursue my certification in D365.

Can any one tell me what is the first step to kick off my study for this certification?

Appreciate your prompt reply.

Thanks,

Kashif

Displays for development

$
0
0

I have another related post: https://community.dynamics.com/365/financeandoperations/f/765/t/295208 I separated them because I was afraid only one question would be addressed. Yes this is not specific to D365, but still very relevant to development in D365.

I currently have a 27inch Dell. I want to ask the boss for another screen. I once borrowed a 29inch which worked well and at another time I worked with two 27inch displays. I am unsure which I should go for: one massive screen or two smaller ones (or three?). Do some sizes become impractical? Any opinions on curved displays? Is 4K at all relevant for development?

Please don't tell me it comes down to my own preference. I am posting because I'd like to get an opinion - I haven't been developing for long so I don't trust my own preference. I'd just like to know what (in someones opinion) works well. I mean if you have been developing for decades (like many respected admins on this forum), you must have some opinions on this topic. Or I hope so :)

Thanks for reading

Email Body attachment

Viewing all 17532 articles
Browse latest View live


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