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

DB Backup Download

$
0
0

Hi experts,

Trying to apply DB backup to my DEV environments but the DB size is 9GB and I cannot get it to download to my VM so I can apply it.

Repro steps:
1. navigate to internet explorer on the DEV VM you would like to apply the back up.
2. Log into LCS and attempt to download the DB backup file from the asset library

What should I do? What are my options?


One solution - two projects

$
0
0

Hi,

We are to develop a standard custom model (e.g. TRX) , and also one Test model (e,g, TRXUT) which is used to include all the UT code.

I am not sure if it is best practice to structure the VS solution like below:

1. Create a solution for one requirement development

2. Under this solution, create one project to include the custom development (TRX model)

3. Under the same solution, create another project to include the UT development (TRXUT model)

Is this the recommended way?

Thanks,

Looking for AX2009 software download for inhouse POC

$
0
0

Hello Folks, 

Looking for some quick help on AX2009 downloads link to do inhouse POC for Azure for our client. 

Thanks In Advance. 

Saving user last selection - SysLastValue

$
0
0

Hi folks

I have built a tree lookup: another thread of mine. Now I want to save the user selection. I am more than capable of doing this by creating a custom table to do the job. But I have a vague suspicion that I should use SysLastValue. I am aware of the user-last-value functionality. But I am not exactly sure how it works. And I have not used it before. Hence I do not know why it isn't working for this form of mine in the first place.

The tree is built from some tables, but there are no datasources on the form. I know that the last value functionality works if I use a contract / SysOperation. But I do not feel like that is relevant for this implementation of mine.

Should I 1) build my own table 2) use the SysLastValue table or 3) change my tree lookup in some way that the standard user-last-value functionality works?

Thanks for your attention.

Associated model of a given form

$
0
0

Hello again, 

I have quick technical question about Extensions in Dynamics 365 For Finance.

I'm asking how technicaly works, the standard calls the Extended forms.

Example: 

I have 2 extensions of DirPartyTable Standard form which in Directory Model

  1. First Extension of DirPartyTable in "Contact Person Management" Model
  2. Second Extension is in "Application Suite" Model

When i'm on the UI, opening DirPartyTable page (Common > Commun > Global Address book) i see my extension of ApplicationSuite Model.

My Question is how the standard technicaly call this Form extension, call o is there any API manage this ? 

How the standard refer to the correct packages, 

I want to know the Model associated to a form :

Exemple: Name of an extended form (DirPartyTable.Extension) 

Output> Get the name of the model

How to add enum values to AOT by through code by xml editing.

$
0
0

Hi every one,

I am doing some R&D on xml editing.

I had one test enum and it has two enum values pen and pencil. I want to add  a new element i.e node let us say scale.

class CreatingEnumThroughXml

{

   // public static void main(Args _args)

   // container strpath;

 

 

   public static void main(Args _args)

   {

       str path;

       

       //nodeXml = xDoc.createElement("scale")

       XmlElement xmlName ,xmlAXEnumValue,XmlValue;

       XmlNode  enumValues , AXEnumValue,AxValue;

       FileIoPermission permission;

        permission  =    new

            FileIoPermission("K:\AosService\PackagesLocalDirectory\HandelAndKontor\HandelAndKontor\AxEnum\TestEnum1.xml",'w');

     

       XmlText xmlNameText,xmlValueText;

 

      

        path = @"K:\AosService\PackagesLocalDirectory\mymodel\mymodel\AxEnum\TestEnum1.xml";

        XmlDocument xDoc = new XmlDocument();

        xDoc.Load(path);

        xmlName         =   xDoc.createElement("Name");

        XmlValue        =   xDoc.createElement("Value");

        xmlAXEnumValue  =   xDoc.createElement("AXEnumValue");

        AXEnumValue     =   xDoc.documentElement().selectSingleNode("EnumValues").appendChild(xmlAXEnumValue);

       // enumValues  = xDoc.documentElement().selectSingleNode("EnumValues").appendChild(xmlName);

        enumValues      =   AXEnumValue.appendChild(xmlName);

        AxValue         =   AXEnumValue.appendChild(XmlValue);

 

        xmlNameText = xDoc.createTextNode("Scale");

        xmlValueText= xDoc.createTextNode("2");

        enumValues.appendChild(xmlNameText);

        AxValue.appendChild(xmlValueText);

 

        xDoc.save(path);

     

       

}

 

}

For this new node is getting added to xml but it is not reflecting in the AOT.

Update cross-references on schedule

$
0
0

I'm thinking to build the cross-references in my dev box that either adding new entries or update the existing one in XRefDB. In AX2012, we can call the XRef static method on a batch job so it can be schedule to run on non-working hours.

What should be the approach to accomplish this task?

File attachment to General Journal not working

$
0
0

I am looking at moving my company to a paperless system, and I am trying to attach a file to a General Journal in Dynamics AX.  I go to General Ledger > Journals > General Journal > New > Create Entry and Enter lines for JE > then I click on the attachment button in the bottom ribbon/bar.

In the Attachment window that opens, I click on New > File > Browse and select my file to attach > add description to attachment.  Then I click close on the attachment window.

My JE is now complete, so I click Post > Post.

I took note of the voucher number, but when I go into the voucher, the attachment is no longer there.  I am not sure what I am doing wrong and why the document won't stay attached.


Outbound shipment details from D365 to Conex system (a customs procedure management software )

$
0
0

I need to send the outbound shipment details from D365 to Conex system (a customs procedure management software )

How do i built an interface so that I can send and receive transaction from Conex system.

Thanks,

How to build cross reference data in onebox

$
0
0

I would like to know what is the new approach on building the cross reference data in OneBox? 

How to schedule or run the task is not a problem, either a batch job in D365/PS on scheduling/Console written in c#.

I'm thinking the business case is to be able to schedule the xRef update on adhoc or it can be schedule to run out of working hours.

I read this post and the xppCompiler is no longer exists.

https://ievgensaxblog.wordpress.com/2018/12/09/msdyn365fo-code-to-build-cross-reference-data-without-a-full-compile/

Beta exam MB-500

$
0
0

Today I took the beta exam MB-500: Microsoft Dynamics 365: Finance and Operations Apps Developer; I think it’s going to be made generally available on January. I was already planning to take it when I received an email with a significant discount, therefore I had no reason to hesitate.

They didn’t show me my score – they’ll do it „within two weeks after the exam’s live publication date“. But I don’t think I have to worry…

I usually dislike many exam questions – they’re often vaguely formulated, outdated, off the exam topic, testing things that are easy to test but irrelevant and so on.

Questions of this exam are firmly on topic – I don’t remember any where I would question whether the topic itself is relevant. But there are surely things to improve.

Here a few examples:

All answers of one question mention an action in GUI which simply doesn’t make sense, so technically neither answer is correct. It’s clear that the actual question was about something else, but it may be confusing and it doesn’t look very professional.

In one lab, the ALM process described there doesn’t make a good sense to me and it goes directly against Microsoft best practices, therefore I don’t think it’s a good idea to put it there. Then you must answer questions not based on how things should be done in practice, but what fulfills the artificial restrictions – and hope that authors of the exams didn’t forget about them when defining “correct” answers.

In one question, I was asked to implement a very common piece of code, but the options didn’t include any of the ways how it’s normally done. What I assume is the right answer is technically correct, but nobody would ever do it and I don’t believe that many people remember the method – I didn’t it. I’m convinced that this isn’t what exams should test.

I also found some basics mistakes in code, such as incompatible types that would cause failure already on compilation, or answers that can be correct or not depending on context (which wasn’t provided).

After taking an exam, there is time for evaluation and I was keen to cover all these points in detail there. But the time allocated was completely insufficient; then it simply kicks you off. And when I got a warning popup that I had only one minute left, the UI became unresponsive and I was unable to complete at least the thing I writing at the moment. Effectively, I got even one less minute that intended.

It sounds pretty strange to me – you invite somebody to take a beta exam and give you feedback, but they you make providing detailed feedback impossible. The time slot for evaluation should be longer – even for regular exams, but especially for beta exams that should be all about collecting feedback. And a bit more review of technical correctness wouldn’t harm either.

The best way to find a specific method in Dynamics AX 2009

$
0
0

Probably somebody knows an efficient way to find a specific method. I know only 2 ways to find interesting method:
1. To call Find(crl+f) in AOT - this is a long way to find something. (see pic1)
2. To call the context menu on the selected method and choose "view definition". (see pic2)
Please help me detect the best way to find a specific component in AOT.

pic1

pic2

How to Upload attachment to current record in Dynamics F&O with the use of ODataUltility library c#

$
0
0

Hello

Currently I am using Odatautility to export data to dynamics f&o. The class which used for exporting data - Resources, in its object I point which type of export will be used and what data will be send, but there is no method for sending documents for attachments,. I found that webClient can be used for it, it has UploadDocument method, but how can I link with group of data that will be exported ? For example type of export is sales order and I need to attach document to a new sales order item, how can I achive this ?

Thanks

How to get propertyMenuItem from AXFormControl?

$
0
0

Hi,

I use this Code to get the propertyMenuItem from AXFormControl:

menuItem=findProperty(_axFormControl.Name, #PropertyMenuItemName);
                if (menuItem!='')
                {
                    Info('test');
                }

But menuItem = null.

I can't use the variable treeNode because I can't acess path of  control from fromExtension.

For example : I can't use this instruction to find controls:

TreeNode  treeNode=TreeNode::findNode("\Form Extensions\ MyFormExtension\...)

insert form field data in datasource using button clicked event

$
0
0

Hi, I'm new to ax and in my current scenario While I'm trying to insert form fields data in datasource using buttons clicked method, instead of creating a new record its overwriting existing record

form pattern is dialog basic.

even after saving the property of a button


Adding two reference group in a form pointing the same reference field.

$
0
0

I have a reference group in my 'ProjFundingSourceDetail' form representing the billing location of the customer. On selecting a value from the reference group,  the detail address is shown in a text box. I need to add another reference group for shipping address that will work in a similar fashion. I have to show the options from a single data attribute named 'invoiceLocation'. I tried to add another reference group in the form pointing the same reference field (invoiceLocation). The problem is when i change the value of one of the reference group, both the values and their corresponding text boxes are changing. Have anyone faced a similar situation, or can anyone help me with how can i implement the scenario. Thanks in advance.

PO Approval Workflow: Purchase order lines.Total Amount

$
0
0

Hi,

Is Purchase order lines.Total amount in PO Workflow = Total of PO lines?

Example: PO line 1 Net  amount = 500; PO line 2 Net  amount = 5000

Is Purchase order lines.Total amount in PO Workflow = 5,500?

Import .csv file and finally move the file to processed directory

$
0
0

Hi everyone,

I have to import an .csv file, read the data inside, create an journal and move this file renamed to a processed directory.

I will not use an entity, because the file has a strong definition with fixed field length without any delimiter. And I will not convert the file...

At this time I could read the file but I don't know how to to rename it and store it in another directory...

So is there anyone who could give a little advice?

Hopeful

Christian

Looking for a D365 F&O development tutorial

$
0
0

Hello,

I'm new to developing in D365 but not new to developing in DAX & X++, I've been a developer on AX2009 for many years. I'm looking for a tutorial to guide me through the process of making a change and walking it through to a stage/test environment where a user would UAT it. I currently have a DEV environment, can RDP on the VM, run VS 2015 and see all the objects in the AOT, but now what? I'd like to start with something simple like moving a field on the CustTable form and seeing it in stage with the test data we currently have. Is there such a tutorial and if so can someone point me to it?

Table to store error message from infolog

$
0
0

Hi,

Customer would like to capture all the error infolog and put them into a table. I am not sure if the infolog information are already in an existing table or thrown in the memory (no regular table to store this kind of information). 

Thanks,

Viewing all 17532 articles
Browse latest View live


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