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

Show tmpData in Form Grid

$
0
0

Hi all

I do have a form with a grid connected to a datasource. Now I expand the grid with fields, pointing to data on a tmpTable. These fields are hidden until I mark a checkbox on the form. With this mark I set the fieldsvisible, calculate the relating tmpData and set it.

The tmpTable on the Form has property "JoinSource" and LinkType outerJoin set.

Now my data is not visible.

Can someone help me out?


RunBase & SysOperation

$
0
0

Are these two frameworks still applicable in Dynamics 365?

- RunBase Framework

- SysOperation Framework

Most of the articles and discussions I see are all related to AX 2012. So are they still there for Dynamics 365 Enterprise Edition?

Microsoft Dynamics AX + AXeptance

$
0
0

Hello all,

I'm trying to figure out the best ways to automate regression testing in Dynamics AX. During my research I came across a software called AXeptance which seems to be used for regression testing automation. I have found several youtube videos on it (https://www.youtube.com/watch?v=-CWETXCz6tg). It seems like a good product but I feel like there is a lack of documentation online regarding it.

Do any of you use AXeptance for your AX testing? Would you recommend it? Is it easy to set up? Any information regrading AXeptance would be very helpful.

Thank you,

Mariam

How do I access the AOT from D365 for Operations?

$
0
0

Hi,

I am new to D365 and am working with a setup as application consultant. Where do I find the AOT in D365? Do I need Visual Studio just to watch the tables and projects?

Many thanks for any help.

Anna

Choosing Legal Entity when calling Custom Service

$
0
0

Hi.

Im creating a some custom services to support a webshop integration. When calling the Custom services how do you specify which Company (Legal Entity), to get data from ?

Deployable package: not all objects of package are included

$
0
0

I had this strange situation today, for which I cannot find a solution.

Our setup is the following:

- 2 developers are working on their own virtual machines running Dynamics For Operations and Finance Update 8, we use VSTS for source control.

- A development/build machine hosted on azure, where we build our releases.

- We then apply those releases/deployable packages to other environments.

How I created my deployable package

- did a "get latest version" for all the objects in my package, on the dev machine in the source control explorer

- Then I used the Dynamics 365 > "build models" function in Visual studio, and choose to build all the referenced packages.

- Then I uploaded the deployable package to LCS and applied it to my destination environment.

What is the problem

Today it appeared that all new objects were not in this destination environment, extensions on existing standard tables were in the package.

I did notice the following however:

When building each visual studio solution, there were binary files added to the folder C:\AOSService\PackagesLocalDirectory\<Mypackage<\bin

But then when creating a depoyable package, the complete model is built, and serveral 'netmodulefiles' and others were deleted again.
I can even see those files become a '.delete' file when the model build is running.

What's going on here?

Your help is greatly appreciated

Kind regards

Mathieu

Dynamics AX 365 Integration with WEB API using OAUTH

$
0
0

Hi

I am looking for an example on how to consume Odata entities from Dynamics ax 365 onWeb api project using OAUTH authentication. 

i am trying to implement web api project using reference given below but it is not working for Web api project. Console application i tried using the below connector and that is working fine.

https://github.com/Microsoft/Dynamics-AX-Integration/tree/master/ServiceSamples

If someone can help and share some examples on web api integration with AX 365, that would be great.

Thanks

Amir

Debugging the batch printing of CustCollectionReports with corresponding GiroReports

$
0
0

I need to track down a problem with printing collection notes where sometimes the first page isn't printed when using a batch process.

I've read through soooo many articles by now but it still doesn't work. What I have figured out so far:

  • I need to debug batch jobs using Visual Studio. No problem
  • I need to set a break point on a method take from the Application Explorer. Alright. I know that CustCollectionController.outputReport is used when printing normally so I've set my breakpoint there
  • I need to attach to the AX Server process. Managed to do that using remote debugging tools.
  • I need to set the Authentication Mode on the server to "No Authentication" because for some reason Visual Studio doesn't support Windows Authentication. *sigh*

The problem is that my breakpoint is never hit. Visual Studio tells me "The breakpoint will not currently be hit. No symbols have been loaded for this document." Now this is a pretty common theme for articles on the net unfortunately none of the solutions I've seen suggested work for me:

  • "Don't worry once your run your batch VS will lazy load it and the breakpoint will hit" ... nope it doesn't
  • "Go to the Modules window and manually trigger the loading of the sources." ... that does load some sources but for the vast majority of dlls there aren't any.
  • "Enable breakpoints to debug X ++ code runing on this server" ... It is enabled
  • "Uncheck Enable Just My Code (Managed Only)" ... It is disabled
  • "Open the source code file in ..\Program Files\Microsoft Dynamics Ax\6.0\Server\AxaptaDev\Bin\XppIL\source\ OR Program Files\Microsoft Dynamics AX\6.3\Server\AxaptaDev\bin\XppIL\source" ... Nothing like this directory exists on my machine
  • "Attach to Batch.exe instead" ... There is no such process
  • An old (2009 Version) guide mentions "In the AOS Configuration Enable global breakpoints to debug X++ code running in batch jobs" ... I don't have that but I have "Enable global breakpoints" But enabling that didn't help either

Does anyone have some insight on this?

That would be most appreciated...


Unable to override table methods

$
0
0

Folks,

I've seen the post by Ievgen on how to override a form data source field method:

https://ievgensaxblog.wordpress.com/2016/05/01/ax-7-how-to-override-form-data-source-field-methods-without-overlaying/

I wanted to apply the same approach to override a table method, say validateWrite() on the TSTimesheetFavorites table, but wasn't certain how to go about doing that.

Here are the methods available on that table, but they all could be called multiple times, and would not be good candidates for calling registerOverrideMethod(), as I believe that will cause an error, as per this blog post:

https://shyamkannadasan.blogspot.ca/2016/08/registeroverridemethod-was-called-twice.html

Let's say that that issue was solved, the next issue is the syntax used by Ievgen doesn't seem to apply to tables: 

    [DataEventHandler(tableStr(TSTimesheetFavorites), DataEventType::ValidatingWrite)]
    public static void TSTimesheetFavorites_onValidatingWrite(Common sender, DataEventArgs e)
    {

        var overrides = TSTimesheetFavoritesEventOverrides::construct();

   sender.registerOverrideMethod(tableMethodStr(TSTimesheetFavorites,validateWrite),methodStr(TCK_TSTimesheetFavoritesEventOverrides, validateWrite),overrides);
    }

This will build, but during runtime, it will error out when it hits this method:

Error executing code: TSTimesheetFavorites table does not have method 'registerOverrideMethod'

Any ideas on how to override built-in table methods using the extension approach?

Thanks!

System error 1067(the process terminated unexpectedly) when starting AOS service for dynamics AX

$
0
0

Hi All ,

I am getting the error when  i start AOS service every time.

'System error 1067 has occurred, the process terminated unexpectedly'

I tried starting AOS  directly from services and also from command prompt both gives the same error.

I did some search and found that the issue is at the kernel level of the system OS

Anyone experience the same error previously?

Please look if anyone can help me.

Thanks in advance.

Regards,

Uploading file to Azure File storage

$
0
0

Hi, All,

I am trying to create a comma separated text file and then upload that in the azure file storage. Below is my code. The file is getting created in the azure storage, but the file contains nothing. Can any one help me on this.

below is the code.

using Microsoft.Azure;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Blob;
using Microsoft.WindowsAzure.Storage.File;

public class AzureStoreageUploadCheck
{        
    /// <summary>
    /// Runs the class with the specified arguments.
    /// </summary>
    /// <param name = "_args">The specified arguments.</param>
    public static void main(Args _args)
    {  
        TextStreamIo                  file = TextStreamIo::constructForWrite();
        str                     totalFile;
        container               mainContainer;
        
        totalFile = "A,B,,    ,Cust001";        

        mainContainer = conNull();
        mainContainer = conIns(mainContainer,1,totalFile);
        
        file.writeExp(mainContainer);
        File::SendFileToUser(file.getStream(), "Demo.txt");

        System.IO.MemoryStream memoryStream;

        var storageCredentials = new Microsoft.WindowsAzure.Storage.Auth.StorageCredentials('DEMO2018', 'XXXXX');

        CloudStorageAccount storageAccount = new Microsoft.WindowsAzure.Storage.CloudStorageAccount(storageCredentials, true);

        CloudFileClient fileClient = storageAccount.CreateCloudFileClient();

        CloudFileShare share = fileClient.GetShareReference('bankpaymentfile');

        if (share.Exists(null, null))
        {
            CloudFileDirectory rootDir = share.GetRootDirectoryReference();

            CloudFileDirectory fileDir = rootDir.GetDirectoryReference('UnProcessed');

            if (fileDir.Exists(null, null))
            {
                CloudFile cfile = fileDir.GetFileReference('file.csv');

                if (cfile.Exists(null, null))
                {
                    memoryStream = new System.IO.MemoryStream();
                    cfile.DownloadToStream(memoryStream, null, null, null);
                }
                else
                {
                    str a = File::SendFileToTempStore(file.getStream(),"file.txt");
                    cfile.UploadFromStreamAsync(file.getStream()).Wait();
                    info("Upload");
                }
            }
        }

        
    }

}

How to deploy AX Inbound services to Azure Service bus relay

Creating alert rule: record already exists

$
0
0

I'm facing an issue while creating alert rule in ax 2012 r3.

Retail -> Inquiries -> Online Store Transactions.


In that form, while creating alert rule for Pending order status field. It generates the error as shown in screenshot. I've analyzed the error and found that there is no customization on this form and in Event Rule table.

Please help me asap.

Thank You,

RaviSankar

Consume entity with OData without using OData generator file

$
0
0

Hi, I've created a few OData applications in C#, always using an OData generator, which creates a .tt file with the reference to all the entities from Dynamics 365, however, in a new C# class library app that I'm using, I'm getting this error when building the app:

Combined length of user strings used by the program exceeds allowed limit. Try to decrease use of string literals.

I checked this error on the web, and there's an article saying that it's because of the length of the ttinclude file. Is there a way that I can consume an entity from Dynamics 365 using OData without the .tt file? I'd like to see if it's possible to get rid of that error by using an HttpRequest Get/Post instead of using the generator. If you have a workaround I would appreciate the help, I'm just not very familiar with consuming a 365 entity without using the .tt file. thanks!

El tipo 'Record' no se admite como tipo de devolución.

$
0
0

Hola, soy nueva usando AX, estoy haciendo un SSRS y al correr el MenuItems me aparece este error, en ningún código me sale error y no encuentro la manera de solventar, gracias de antemano. 


Word COM Objects - How to specify specific printer

$
0
0

Hi Everybody

I am trying to print a word document, and i found this code (https://blogs.msdn.microsoft.com/czdaxsup/2009/09/08/howto-print-word-document-from-x/) which works fine. But i also need to specify a specific printer, it is using the default printer. Can anybody help?

I read something about using the method ActivePrinter to set the printer, but it does'nt seem to work. I get the error Method not exist.

I am using Word 2016.

----------------------------------------

str document = "C:\\test.doc";

COM wordApplication;

COM wordDocuments;

COM wordDoc;

str printerName = "\\\\H\\MyPrinter";

;

// Create instance of Word application

wordApplication = new COM("Word.Application");


// Get documents property

wordDocuments = wordApplication.Documents();


// Open document
wordDoc = wordDocuments.Open(document);

// Activate the document - this is necessary to print it

wordDoc.Activate();


// Print the document

wordDoc.PrintOut();


// Close document

wordDoc.Close();


// Close Word application

wordApplication.Quit();

Recommendations to achieve increased Storage IOPS and throughput for AX Business DB on Azure

$
0
0

Hello experts,

I am a SQL DBA supporting a Dynamics AX 2012 R3 CU10 environment. SQL is of version 2014 enterprise edition running off windows server 2012 R2 standard edition.

We currently are in deliberations and discussions to move from on premise to Azure. 

My question surrounds areas on how to achieve increased IOPS and throughput for the AX Business DB on SQL Server Azure VM. Our current environment has SSDs (NVMe INTEL SSDPEDMD02) and another set of disks on - DELL PERC H730P Mini SCSI Disk Device. Both have excellent IOPS and throughput numbers.

  1. Does Microsoft Dynamics AX support (specifically for the AX Business DB) Table/Index partitioning on its objects?
  2. Does Microsoft Dynamics AX support changing table/index definitions to move them to different File Groups with its files spread over different disks, increase the disk IO paths and help achieve higher IOPS/throughput? My understanding was that tables/indexes in AX business database are considered as its kernel objects and changing them can lead to failure when one needs to perform a AX compilation or full synchronisation; is this correct? And if so does AX allow changing the table/indexes definitions in AX itself?

On Azure I am aware that we can implement Windows Storage Pools (on the SQL Server Azure VM) where you add as many physical disks, group them in virtual disks with Disk Striping and that can take you closer to your target IOPS/throughput and then carve out the desired volumes.

But is implementing table/index partitioning and/or configuring additional file groups and rearranging objects even possible (supported) by Dynamics AX. And is it worth the effort if Windows Storage Pool can assist with this.  

If you can share any MS KBs or Whitepapers related to these questions it will be highly appreciated.

thank you for time.     

Niraj Mehta

  

Add new field from CustTable in DirPartyQuickCreateForm

$
0
0

Hi,

I have to add a new field (Invoice account) DirPar.tyQuickCreateForm. I am not finding a way how to add this field.  I know that I should use dirpartyentity  but I am not sure how it works. Are fields in this form added by code? How can I add this field in there?

Thanks,

Enxhi

A SQL query to find all wmsLocations that have zero stock in AX 2012 R3

$
0
0

I have been trying this for a day now, and I can't seem to find the correct way to do this. I need a SQL query that returns me all locations with zero physical stock ( inventSum.PostedQty + inventSum.Received - inventSum.Deducted + inventSum.Registered - inventSum.Picked <= 0) I think it should be as simple as below but this is returning me locations where ( inventSum.PostedQty + inventSum.Received - inventSum.Deducted + inventSum.Registered - inventSum.Picked > 0). Can someone please help me figure out what is wrong here?

select
wmslocationid
from wmsLocation
order by wmsLocation.wMSLocationId
where
(wmsLocation.inventLocationId == inventLocationId) //default warehouse
exists join inventDim
where (inventDim.InventSiteId == inventSiteId) &&//default site
(inventDim.InventLocationId == inventLocationId) &&
(inventDim.WMSLocationId == wmsLocation.wMSLocationId)
exists join inventSum
where (inventDim.InventDimId == inventSum.InventDimId) &&
(inventSum.PostedQty + inventSum.Received - inventSum.Deducted + inventSum.Registered - inventSum.Picked <= 0);

Copy of AX 2012 Virtual Machine

$
0
0

Hi Experts,

I need a copy of the AX 2012 Virtual Machine. Can anybody suggest me where can i get or download it?

Thanks,

Renato

Viewing all 17532 articles
Browse latest View live


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