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

Detailed operation for Combine XPO Tool of AX 2012

$
0
0

I got useful information for Combine XPO Tool from MSDN.

I'd like to try to use the tool in my project, but I doubt that how the tool works.

My main question is as below.

XPO "A" has a "A" method, and XPO "B" doesn't have a "A" method in the same object(e.g. table, class, form or somewhere)

Then, how the tool works in this case?

Will it add "A" method or remove?


List<string> values return from .net to D365fo

$
0
0

Good morning ,

I am doing integration in which i got list<string> .

step - 1 - Created .net code to retun list which contains CSV file data.that is read from third pary application and it is converted to string and have to pass to D365

For reference please find image below

In the image List has 2 levels.

In 1st level i have one csv file data into str .

in 2nd also contains another csv file data.

How can i read in D365fo.

i am passing list string to d365.or else should i pass something else.?

Experts please provide some light on this.

Note : in that csv file customer data will be there where i need to create in d365.

Regards.

Have a great day.

What makes an entity, an orphan entity?

$
0
0

When I create a custom entity, and refresh the entity list, it tells me that it is "orphan" and it is removed. What are the conditions for this entity to be marked as "orphan"?

How can i browse file and save in D365fo

$
0
0

Good morning,

I was trying to build functionality i.e 

1.Browse file and save  in D365fo

Once if i delete that file that must be in My d365fo

Is it possible.

Please provide some light on this.

Regards.

Have a great day.

Enable Public API and Enable Data Management Capabilities options in Entity wizard in D365FO

$
0
0

Dear all,

Can you please let me know in Entity wizard I saw 2 check boxes:

1. Enable Public API

2. Enable Data Management Capabilities

What is the use of these both check boxes? If I selcet those then what will happened?

Thanks!

Call javascript server side app from X++ class

$
0
0

Hi, I have seen lots of examples online of calling javascript from form controls, but what I am looking to call a javascript function from an X++ class. I can run the javascript app and call from X++/D365 after exposing it as HTTP API app, but I don't like the architecture (too disconnected).

I am really looking for a way to have the javascript code in D365, and call it from an X++ class without having to host the javascript app elsewhere.

Is this possible? Can anyone point me in the right direction on how I can accomplish this?

Any help is appreciated.

Cannot cancel delivery reminder salesline after cancelling packingslip and reduce picked quantity

$
0
0

Hello all,

I am using AX2012 R3 CU12

I released a salesline with a quantity of 2. After that i completed all the word and stuff and posted the packingslip. After that, i cancelled the packingslip, reversed the shipmentconfirmation, and than i reduced the picked quantity with 1. It seemed all went well. Then i confirmed the outbound shipment again and posted the packingslip from the sales order. Now i am trying to cancel the delivery remainder but i get an error: Reservations cannot be removed because there is work created which relies on the reservations. When i look at the work, it says that there is only one picked, but the put action still has a quantity of 2. How can i cancel the delivery reminder? Am i doing something wrong?

thanks in advance

Roel Klopstra

Excel file accessing from Google drive in D365FO

$
0
0

Dear all,

I am using VM for D365FO.

I am creating a new Table Student details with 5 columns...

In Excel Student.xlsx  I am creating same 5 columns and filled data accordingly. I put my excel in to Google drive.

I wants to import data in to Student detail table in D365FO from Google  drive with accessing the excel file Student.xksx

Please let me know how to do this.

Thanks!


Adding data source view to form

$
0
0

Hi everyone,

I have an extended form to which I am attempting to add a custom view. I have built and queried it via SSMS to ensure it's valid. On the extended form, I added a datasource node and specified my view. I understand that because I'm adding a view, which has not true association with the EcoResDistinctProductVariant table, I would have to override the init() on the view to add the link. When I right click the method node of my newly added data source view, I only see three options and none are override method. In the next attempt, I created an extension class with an inner class for the data source, then overrode init() there with just a simple info statement. When I debug, I don't see the info statement triggered. Can someone shed some light on how to properly add a view to a form? 

Much appreciated.

Standard report with extension

$
0
0

Dear all,

In SSRS report we having 3 sections like

1. Business logic

2. Data sources

3. Design

As we know that if we are working with Standard report on D365FO then it's possible only through Extension.

Example 1:

If the changes is only in Business logic then we need to create a extension for respective standard classes like DP, Controller OR Contract only.

Example 2:

If the changes is only in Data sources then we need to create a extension for both Tables (DS) and SSRS report also.

Example 3:

If the changes is only in design part then we need to create a extension for SSRS report only.

Example 4:

If the changes in Business logic and design OR DS

Then it should be combination of either

Example 1,2,3 OR

Example 1, 3 OR

Example 1,2

Kindly verify. Is't correct?

Please give me more she'd on this

How do I get File::GetFilrFromUser() to Work?

$
0
0

Hello,

I am trying to run the below code on the D365 FO VHD version 8.1 as it comes from LCS:

    public static void main(Args _args)
    {
        AsciiStreamIo                                   file;
        Array                                           fileLines;
        FileUploadTemporaryStorageResult                fileUpload;
        fileUpload = file::GetFileFromUser() as FileUploadTemporaryStorageResult;
        file = AsciiStreamIo::constructForRead(fileUpload.openResult());
        if (file)
        {
            if (file.status())
            {
                throw error("Could not Upload File.");
            }
            file.inFieldDelimiter(',');
            file.inRecordDelimiter('\r\n');
        }
        container record;
        while (!file.status())
        {
            record = file.read();
            if (conLen(record))
            {
                info(strFmt("%1 - %2",conPeek(record,1),conPeek(record,2)));
            }
        }
        info("done");
    }


But I am always getting the error below:

In Event Viewer, I get 4 errors:

What could be the issue?

Thanks

Consume custom web service

$
0
0

Hi,

I have created custom service in D365 FO and now trying to consume that in VS. I have done all the authentication steps and it is fine. but when I debug my code i found it is not reaching to my webservice URL. please help

SysOperation framework class to fill the table after processing From Date to To Date.

$
0
0

Hello all,

I want to do a batch processing to filter the record From Date to To Date then a table has to be filled. One which method and where I have to code to get my job done.

Thank You

Regards.

Export Report to CSV

$
0
0

Hello everybody, 

I have a requirement where I need to export a report in CSV, but I want the fields to be separated by semicolon(;). 

I have done this up to now:

str csvName;

csvName = strfmt("test");

controller.parmReportContract().parmReportExecutionInfo(new SrsPrintMngmtExecutionInfo());

controller.parmReportContract().parmPrintSettings().printMediumType(SRSPrintMediumType::File);

controller.parmReportContract().parmPrintSettings().fileFormat(SRSFileFormat::CSV);

controller.parmReportContract().parmPrintSettings().overwriteFile(true);

controller.parmReportContract().parmPrintSettings().fileName();

controller.parmReportContract().parmPrintSettings().fileName(csvFileName);

controller.startOperation();

It saves the report in CSV, but the fields are separeted with comma. Istead i need the fields to be separated with semicolon(;).

Thanks in advance!

AX 2012 R3 REST API IMPLEMENTATION

$
0
0

Dear Friends, 

I would like to access the AX 2012 AOS instance and its services from Restful APIs using this code . I have configured the stuffs as mentioned in the documentation but still unable to access the same. 

If someone has succeeded with the above stuff, please help me to achieve my goal. 

I thank you so much in advance.!


How to extend a final class.

$
0
0

Background

I have ISV solution, they have build their solution by extending Application suite classes.

Solution was working fine until a need arised, need for customizing ISV sol. 

ISV advised that we can go ahead , extend their class & build solution .

Issue I am facing is how can i extended their classes , which are already extension of app suite classes.

For example in code below.

How to extend class  MyISVClass_Extension 

[ExtensionOf(classStr(APPSuiteClass))]

final class MyISVClass_Extension
{
    private void new()
    {
    }
}


OnDisplayOptionInitialize only getting first record

$
0
0

Hi,

I am having a requirement where I need to color rows depending on a condition, in 2012, or even in 365 on a custom form, this is doable by overriding the displayOption method on the dataSource. However on standard 365 forms where I have extended, I tried using this event, but I am only getting the first record, it does not cycle through all the records, therefore all the rows in the grid get the same color.

/// <summary>
    ///
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    [FormDataSourceEventHandler(formDataSourceStr(PurchTable, PurchLine), FormDataSourceEventType::DisplayOptionInitialize)]
    public static void PurchLine_OnDisplayOptionInitialize(FormDataSource sender, FormDataSourceEventArgs e)
    {
		PurchLine										purchLine;
        FormDataSourceDisplayOptionInitializeEventArgs	event;
		
        purchLine = sender.cursor().data();
		
        event = e as FormDataSourceDisplayOptionInitializeEventArgs;

        event.displayOption().backColor(purchLine.SomeCustomData);
    }


D365 CE Sales integration with AX2012 R3 CU12

$
0
0

Experts,

I'm looking for a technical recommendation how to integrate the Dynamics 365 Sales to Dynamics AX2012 R3 CU12. What would be the best approach CDS, Scribe? Or should the customer build an sales APP to connect with AX2012 On-Premise?

The customer currently uses the Sales and Marketing module as a CRM solution but is looking for a richer and mobile solutions for its 65 field sales rep.

all the help will be appreciated,

Thank you,

Maria

Event Handler Doesn't get Parameter

$
0
0

Dear All,

I have an issue on my code

My event handler doesn't get parameter

Here is my code and variable on debugger

I add the event handler on update method

I just full compile and full cil but didn't solve the issue

Please kindly give me an advice and solution

Thanks in advance

Best Regards,

Bintang

SysDictField object not initialized

$
0
0

Hi All,

can you help me out to solve this it is not allowing to change the qty and i had compiled but there is no error in these classes.

(C)\Classes\PriceDiscPolicyDialog\createDialogFields - line 51
(C)\Classes\PriceDiscPolicyDialog\dialog - line 46
(C)\Classes\RunBase\dialogMake - line 15
(C)\Classes\RunBase\promptPrim - line 23
(C)\Classes\RunBase\prompt - line 12
(C)\Classes\PriceDiscPolicyDialog\runPolicyDialog - line 20
(C)\Data Dictionary\Maps\PriceDiscResultFields\Methods\runPriceDiscPolicyDialog - line 54
(C)\Data Dictionary\Tables\PurchLine\Methods\runPriceDiscPolicyDialog - line 15
(C)\Classes\PurchLineType\purchQtyAllowEdit - line 9

Viewing all 17532 articles
Browse latest View live


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