Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all 175888 articles
Browse latest View live

RE: Print first letter of the InventBatchId in using X++

$
0
0

Martin,

While running the debugger, it doesn't pick up the code that I am using to join the InventDim table and I think this will be a main reason for the code to throw an empty value.

I am joining the InventDim table with WMSOrderTrans table as

WMSOrderTrans.InventDimId == InventDim.InventDimId.


The code looks like:

while select wmsOrderTrans

           where wmsOrderTrans.routeId == wmsPickingRoute.pickingRouteID

           && wmsOrderTrans.fullPallet == 0&& (wmsOrderTrans.expeditionStatus == WMSExpeditionStatus::Picked || wmsOrderTrans.expeditionStatus == WMSExpeditionStatus::Complete)

       join salesLine

           where salesLine.inventTransId == wmsOrderTrans.inventTransId

                     exists join inventTable

           where inventTable.ManufacturerId == 'per batch'&& SalesLine.ItemId == inventTable.ItemId

           exists join InventDim

                     where WMSOrderTrans.inventDimId == InventDim.inventDimId


RE: Country Specific Features

$
0
0

E.G. - Indian localization has this function - Misc Charges on Transfer Orders.

Country Specific Features

$
0
0

I have multiple questions regarding country specific features in AX2012R3

  1. Does anybody have a list of all features (names, menu location, functionality description)?
  2. I understand how it work; and that it depends on the Entity Address (if the address is in Italy for example then Italian specific features will be enabled if it was marked in License configuration), my question is can I use some of the features without setting my address to be in Italy, I know I can change the (menu, tables,…) properties to be without a specific country and hence it will be used, but is there another way?
  3. Does anybody have experience in using country specific features for not the original country intended for?

RE: Print first letter of the InventBatchId in using X++

$
0
0

All right, so you hopefully now understand how subStr() works and we're now completely changing the question.

If you debug your code, you'll see that InventDim is completely empty. That's the correct behavior, if you use exists join instead of the normal (inner) join.

RE: Generate Dev Project Name

$
0
0

Yes, something like this. You are welcome, Otten.

Generate Dev Project Name

$
0
0

In Dynamics AX 2012 R3 CU9 it is possible to work with the AOT projects (development projects: shared / private).

Question: Is it possible to generate a new project name in X++? See the example code below.

static void GenerateProjectNameJob(Args _args)

{

  TreeNode projectNode = TreeNode::rootNode();
  Name projectName = TreeNode::generateObjectName("Project");
  info(projectName);
}

What I expected was an output like: "Project1". But it doesn't. This code will output: "Project".

Please, tell me what statement(s) to use instead.

RE: Print first letter of the InventBatchId in using X++

$
0
0

Martin,

I even tried using normal join still same results (empty value)

join InventDim
     where WMSOrderTrans.inventDimId == InventDim.inventDimId

Am I missing any more conditions while I join the InventDim table?

Display Image in form - FormImageControl & FormWindowControl are non-standard?

$
0
0

Hi,

At run time, I'm trying to generate a simple popup form that displays an image. the image is stored as a Base64 string and converted to an Image object OK. I then generate a new form at run-time, which is also fine, but I can't get the syntax right to add the image to the form. I've not created a form at run time before, so it could be that I'm not adding controls to it properly...

Looking through the available methods on FormControls, I thought the FormImageControl or FormWindowControl classes would be fairly straight forward  - but curiously, I can't seem to instantiate a FormImageControl or a FormWindowControl. 

- When declaring a FormImageControl variable in my method, the compiler doesn't recognize the class type (error: "variable FormImageControl has not been declared").

- And while I can declare a FormWindowControl variable, I can't instantiate it in the normal way, as type 'Window' doesn't appear in the FormControlTypes Enum.

The MSDN documentation doesn't acknowledge any of these quirks, implying that these two children of FormControl behave the same as the others. Here's my code (various attempts are commented out but hopefully you get the picture:

void button_clicked(formButtonControl _formButtonControl)

{

Args                                 args;
Form                                windowForm;
FormRun                          formRun;
FormBuildDesign             formBuildDesign;
FormBuildControl             formBuildControl;   

str                                     imageBase64;
BinData                            binData = new BinData();
container                         baseContainer;
Image                              image;
FormWindowControl       windowControl;
FormImageControl          imageControl; // variable FormImageControl has not been declared???

            

                // Create container from base64
                baseContainer =  BinData::loadFromBase64("imageBase64String here");


                // Create binData from container.
                binData = new BinData();
                binData.setData(baseContainer);

                // lock element
                element.lock();

                // create Image from binData
                image = new Image();
                image.setData(binData.getData());  
               
                // Create the form to display the screenshot
                windowForm = new Form();
               
                // Create the form design.
                formBuildDesign = windowForm.addDesign("Design");
                formBuildDesign.caption("Caption here");
                formBuildDesign.height(image.height());
                formBuildDesign.width(image.width());
                formBuildDesign.style(3);
               
                //
                // Problem Adding/Displaying the image!
                // Obviously simple to do with embedded resources but not obvious from binData Image object
                //

                // Approach 1: FormImageControl
                imageControl = windowForm.addControl(FormControlType::Image, "Image");
                imageControl.image(image);
               
                // Approach 2: FormWindowControl
                windowControl = windowForm.addControl(FormControlType::Window, "Window"); // Enum element not found!
                windowControl.image(image);
               

                // Create the run-time form.
                args = new Args();
                args.object(windowForm);
               
                formRun = classfactory.formRunClass(args);
                formRun.run();
                formRun.detach();  

}


RE: Print first letter of the InventBatchId in using X++

$
0
0

Which "value" are you talking about?

If you see in debugger that a record was found (has RecId field filled in), but InventBatchId is empty, it just means that this particular dimension doesn't have InventBatchId. It's a normal thing; not all items track batch numbers.

If your data doesn't look like you expect, there is nothing we can do about it. Either change the data (if it's a data issue), or change your expectations (and your query).

RE: Exact path for open Dynamics 365 for operation

$
0
0

It depends how and where have you deployed your application. Please provide missing information.

There is no development workspace in AX 7. Development is done in Visual Studio.

Address formats different for countries other than current company

$
0
0

I've been presented a requirement where the client only wants printed addresses to include the country/region ID if said country/region ID is different from the country/region ID of the primary address for the current legal entity in which the current user is working.  This feels like a sufficiently 'obvious' request that I'm hoping it may be covered somewhere in standard AX, but I can't see anything in the Organisation administration > Setup > AddressesAddress setup or Organisation administration > Setup > Global address bookGlobal address book parameters forms that might fit the bill.

My first thought was to modify the LogisticsPostalAddress::formatAddress method to implement this as a customisation, but given that addresses aren't specific to a company/DataArea, that simply doesn't make sense.  Additionally, it makes me more certain that this probably isn't a standard piece of functionality.  Hence, can anyone think of a smarter way to do this than adding a new public static method to the LogisticsPostalAddress table (i.e. formatAddressForInternationalMail) that's pretty similar to formatAddress, but conditionally includes the country/region ID?

RE: Exact path for open Dynamics 365 for operation

$
0
0

Thanks Martin,

Is't from IIS ? Any  Dynamics365 website which we can browse.

Is't correct?

Thanks!

Arpan Sen

RE: Enabling folder directory using FilePath/FileNameOpen EDT field

$
0
0

Hi Martin,

The requirement is to create an XML file in runtime and to place the same in a folder path which will be consumed by a third party application. The third party application will handle its own functionality once after consuming the file.

I am able to save the file in AX server. But not sure about the file consuming access by the third party application.

Could you please advice a better way to achieve it in AX 7.

Thanks,

Suren.

RE: Enabling folder directory using FilePath/FileNameOpen EDT field

$
0
0

As I said, you need an application that will download files from AX in Azure and put them to the folder. Use the dequeu web service for that, as explained in Recurring integrations on wiki.

Enabling folder directory using FilePath/FileNameOpen EDT field

$
0
0

Hi,

I have a query with enabling folder directory using FilePath/FileNameOpen EDT field in AX 7. In 2012 version when we use the FilePath/FileNameOpen EDT, it will enable the folder directory icon in form level. But the same functionality is not supporting in AX 7. The option available in AX 7 is to add 'File upload' control in the form control which will support in browsing and selecting the files from the directory. But what I want exactly is to save the directory path in a parameter field. Could anyone confirm whether this functionality is still supported in AX 7.

Thanks.


RE: Exact path for open Dynamics 365 for operation

$
0
0

Unfortunately you again forgot to provide any details, so I can only guess.

Assuming that you're talking about a single-box environment, then yes, there is a web application on IIS.

RE: Exact path for open Dynamics 365 for operation

$
0
0

Thanks Martin

Yes, It's Single box environment. What is the name of web application which is using for Dynamics 365 for Operation?

Thanks!

Arpan Sen

RE: Import file on network in Batch job

$
0
0

Hi  Freya Tan

I'm trying to export my data to CSV via batch processing and facing errors, my code work in client side but not on Batch, Have you got any solution?

Thanks

Import file on network in Batch job

$
0
0

Hi,

I have a batch job that will import a file. The import file is saved in a different server (not where the AOS resides). The batch job runs if I just use a directory where the AOS is installed. Also, if I run the class manually (not as batch job) and I use a network directory, I can import the file successfully. 

Any ideas?

Thanks

RE: Exact path for open Dynamics 365 for operation

$
0
0

Ignore sites prefixed with Retail. And if you can't guess which of two remaining sites is the right one, try both and you'll see.

Viewing all 175888 articles
Browse latest View live


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