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

Is there still a real reason to create models in existing packages?

$
0
0

Not a pressing issue... but I was wondering....

Since overlayering is quickly on its way out, does it serve any purpose to still create a model inside an existing package? As I cannot think of any technical benefit you gain from doing that. You would be able to achieve the same, by just creating another package, that references both your package and the one you need to integrate with. Is this just a legacy left over from the overlayering days?

One advantage I could maybe think of, is that it creates a better overview of which code belongs where... am I missing something? Is there a specific reason not to make a model inside an existing package, or vice versa, a good reason to do? Maybe I am missing something obvious in the late afternoon ;)

Interested in your thoughts

Wessel


Are there any endpoint hardware requirements?

$
0
0

Hi all,

speaking of Dynamics 365 for operations, what are the hardware requirements for the endpoints in the new Dynamics 365 ? Couldn't find a concrete answer online that there are none, or if its not worth mentioning.

PS
does all the processing happen on the local server or do the endpoints process as well ?

Thanks.

HTML Name

HTML Name

How to restore a copy of a Dynamics 365 for Operations database on local VM?

$
0
0

Hi,

How can I restore Dynamics  AX 365 for operation DB from one VM to an other VM?

Shall I take back up from  AxDB and AxDW databases and restore them on new VM (using SQL Server Management Studio)? Or other databases ( DynamicsAxReportServer, DynamicsAxReportServerTempDB, DYNAMICSXREFDB, etc... )should be restored?

Full database synchronization errors

$
0
0

Hello everyone,

I've been experiencing synchronization errors for a while, and I ran out of ideas.

The errors I get are different, depending on the type of synchronization I use (legacy or new) and on the date settings of my user (UK or US).

The two types of errors are:

UK regional settings:

Error: FormatException:String was not recognized as a valid DateTime. at System.DateTimeParse.Parse

Which are related to views based on queries with ranges of type date, normally with a default value.

US regional settings:

System.ArgumentNullException: Value cannot be null. at Microsoft.Dynamics.AX.Framework.Database.Tools.DataEntityTriggerSync.GenerateInsertStatementForDataSource

No more details in this case, just a  generic Value cannot be null.

 

I restored an old backup of the database, and I restored the objects with Visual Studio Team Services to a version that is definitely working (UAT and Live are using the same objects).

When I do a full build I never get any error, and I tried both build and sync several times, and rebooted the server before doing that.

Anyone else with the same issues? 

 

Modify amount edt number of decimal to 3

$
0
0

Hi,

The requirement is to modify number decimal for amount EDT in dynamics 365. As the amount EDT is in Application platform package. After creating model I have to select existing package but application package is not showing. 

And I tried to change number of decimal for amount EDT manually The system throwing below error. Thanks in advance.

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


Print attachments after running a report

$
0
0

I want to print attachments after running ssrs report. So I used WinAPI::shellExecute() from RDP class. from X++ job it is working but not from RDP class. Please guide me.. Thank you

How to add fact boxes in Dynamics 365

$
0
0

Hi folks, 

How we can add fact boxes in Dynamics 365 on our custom forms. 
Is there any article available on this? 

Translate SQL query as RDP

$
0
0

Hi All,

I have following SQL query, I could do with some help/guidance in translating this into an RDP... I'm still new to x++ query development and am struggling with anything fairly complicated... thanks!

USE AxDB;

SELECT  P1.PROJID AS ProjId ,
        CUSTACCOUNT AS CustAccount ,
        NAME AS Name ,
        ISNULL(E.Value, 0) AS Estimate ,
        ABS(SUM(CASE WHEN P2.PROJTRANSTYPE = 1
                          AND P2.CATEGORYID = '3RDPARTY_FEE' THEN P2.AMOUNTMST
                     ELSE 0
                END)) AS TotalInvoicedCosts ,
        SUM(CASE WHEN P2.COSTSALES = 1 THEN P2.AMOUNTMST
                 ELSE 0
            END) AS TotalCostValue ,
        ABS(SUM(CASE WHEN P2.PROJTRANSTYPE = 1
                          AND P2.CATEGORYID = '3RDPARTY_FEE' THEN P2.AMOUNTMST
                     ELSE 0
                END)) - SUM(CASE WHEN P2.COSTSALES = 1 THEN P2.AMOUNTMST
                                 ELSE 0
                            END) AS Balance ,
        ISNULL(C.CommittedCosts, 0) AS CommittedCosts ,
        ABS(SUM(CASE WHEN P2.PROJTRANSTYPE = 1
                          AND P2.CATEGORYID = '3RDPARTY_FEE' THEN P2.AMOUNTMST
                     ELSE 0
                END)) - SUM(CASE WHEN P2.COSTSALES = 1 THEN P2.AMOUNTMST
                                 ELSE 0
                            END) - ISNULL(C.CommittedCosts, 0) AS ForecastBalance
FROM    dbo.PROJTABLE P1
        JOIN dbo.PROJTRANSPOSTING P2 ON P2.PROJID = P1.PROJID
        OUTER APPLY ( SELECT    SUM(AMOUNTMST) AS CommittedCosts
                      FROM      dbo.COSTCONTROLTRANSCOMMITTEDCOST C
                      WHERE     C.PROJID = P1.PROJID
                    ) AS C
        OUTER APPLY ( SELECT    SUM(Q4.VALUE) AS [Value]
                      FROM      ESTIMATETEMPLATEPROJ Q1
                                JOIN ESTIMATETEMPLATETABLE Q2 ON Q2.RECID = Q1.ESTIMATETEMPLATETABLERECID
                                JOIN ESTIMATETEMPLATELINE Q3 ON Q3.ESTIMATETEMPLATETABLERECID = Q2.RECID
                                JOIN ESTIMATETEMPLATEPERIOD Q4 ON Q4.ESTIMATETEMPLATELINERECID = Q3.RECID
                      WHERE     Q1.PROJID = P1.PROJID
                    ) AS E
GROUP BY P1.PROJID ,
        P1.CUSTACCOUNT ,
        P1.NAME ,
        C.CommittedCosts ,
        E.Value
ORDER BY ProjId


This is how far I've gotten so far below... at least if i can get the base tables/relationships correct I can do all the case stuff in SSRS expressions.

[
SRSReportQueryAttribute(queryStr(WIPSumRDP)),
SRSReportParameterAttribute(classstr(WIPSumRDPContract))
]
public class WIPSumRDP extends SRSReportDataProviderBase
{
        tmpWIPSumRDP tmpWIPSumRDP;

        [
        SRSReportDataSetAttribute('tmpWIPSumRDP')
        ]
        public tmpWIPSumRDP gettmpWIPSumRDP()
    {
        select tmpWIPSumRDP;
        return tmpWIPSumRDP;
    }

public void processReport()
    {
        ProjTable                       projTable;
        ProjTransPosting                projTransPosting;
        CostControlTransCommittedCost   costControlTransCommittedCost;
        EstimateTemplatePeriod      EstimateTemplatePeriod;
        QueryRun                        queryRun;



        // Get the query from the runtime using a dynamic query.
        queryRun = new QueryRun(this.parmQuery());


        while (queryRun.next())
        {
            projTable = queryRun.get(tablenum(ProjTable));
            ProjTransPosting = queryRun.get(tablenum(ProjTransPosting));
            CostControlTransCommittedCost = QueryRun.get(tableNum(CostControlTransCommittedCost));
            EstimateTemplatePeriod = QueryRun.get(tableNum(EstimateTemplatePeriod));

            tmpWIPSumRDP.clear();
            tmpWIPSumRDP.CustAccount = projTable.CustAccount;
            tmpWIPSumRDP.ProjId = projTable.ProjId;
            tmpWIPSumRDP.Name = projTable.Name;
            tmpWIPSumRDP.CustName = projTable.custName(); //Not displaying data
            tmpWIPSumRDP.AmountMst = projTransPosting.AmountMst;
            tmpWIPSumRDP.CostAmount = projTransPosting.costAmount(); //Not displaying data
            tmpWIPSumRDP.ProjTransType = projTransPosting.ProjTransType;
            tmpWIPSumRDP.CategoryId = projTransPosting.CategoryId;
            tmpWIPSumRDP.CommittedCostAmount = costControlTransCommittedCost.AmountMst;
            tmpWIPSumRDP.EstimateValue = EstimateTemplatePeriod.Value;
            tmpWIPSumRDP.insert();
        }

    }

*** UPDATE *** so i was messing around with my AOT query and I managed to get it to work correctly with my aggregated values. So from projtable --> Projtransposting, CostControlTransCommittedCost, QTQ_estimatetemplateproj all data sources below ProjTable I have set Fetch Mode OneToN which seems to be giving me the correct results now. The only thing i'm stuck on is the display methods on the table are not pulling through any data how can I do this?

Installation of Dynamics 365 for Operations

$
0
0

Hi all,

I want to understand how to install dynamics 365 on Azure.

also let me clear is Azure licence required for Dynamics 365 Enterprise edition.

Query nested Data Sources JoinMode property kernel analysis sequence

$
0
0

Hi All,

The question is very simple and at the same time not so obvious as expected.

Let’s assume that we have a Query designed in the Application Object Tree (AOT). And our Query has the following structure

 

Prerequisite: table B is always containing linked records for table A; JoinMode 1::1 for all DataSources.

Let’s assume that:

Scenario 1. Table С is containing linked records for table A, and tables D and E are also containing linked records for table C - in this case everything works fine, we will receive records from all tables A,B,C,D and E;

Scenario 2. Table С is containing linked records for table A, and tables D is NOT containing linked records for table C - in this case I expect that at least records from tables A and B are returned (since table C has OuterJoin), but in fact - no record are returned at ALL (even from A and B);

So, the questions are:

1. How does the kernel filters the records of the nested datasources?

2. Why in this particular case (described above) for Scenario 2 no records are returned;

Do I need Claims based security when using 365 on premises?

$
0
0

Hi,

I'm deploying Dynamics 365 on premises solution. The users will never go online over the internet to access the system, they access it only through the local server (inside the domain). So effectively they're only using the Active Directory of the domain (right?)

The question is will the client need to acquire license for the AD FS as well as the Active Directory? (Does the system still require it in such scenario?)

Many thanks.

Peeking the next element when iterating/enumerating a List

$
0
0

Hello everyone,

is there an efficient way to "peek" the next element using a ListIterator or ListEnumerator?

I want to see the next value, while still pointing to the current value (ListIterator and ListEnumerator both can't seem to backwards, so I can't just step one forward and back again)

I also tried to create a copy of the ListIterator/Enumerator, but didn't find a way of doing it (I could just copy the ListIterator, step forward, grab the value and dump the new Iterator/Enumerator)

I'm sure an Array might be a better way of solving this, but before I'm going to change a lot of code I want to check wether or not this is possible with Lists.

Thank you in advance

Robin


Request Virtual/Demo Dynamic 365

$
0
0

Hi All

How i can Request Virtual/Demo Dynamic 365 for install in my server?

Thanks

We need more fulltime Microsoft Support here

$
0
0

Hi,

I think I am not the only one that it is struggling with Azure problems with our Microsoft Dynamics 365 Enterprise projects, mainly because lack of experience but also the common issues of a new product.

I think that it would be valuable that Microsoft bring more effort to support the forums here so we get more quick answers to our problems without the need to use expensive and lenghly Microsoft official Support.

It is only an idea but I think it would be quite helpful. 

Thanks. 

Execute method when AX Starts

$
0
0

I need to execute my code when AX Starts. I following following link. and 

Commands Available when Microsoft Dynamics AX Starts section.

https://ax.help.dynamics.com/en/wiki/xpp-classes-and-methods/

I followed the same but getting the error mentioned in the screenshot below. Am I missing anything or is there any other way to achieve this ? I need to execute my code when AX Start to initialise few variables. 

Thanks,

Himal

Client Side Save Event - Vendor

$
0
0

Is there any client side event available for Save event on Vendor ? Say, I need to show an alert message box when user click on "Save" button ?

Regards,

Himal

Store Configuration Values on the Server Side

$
0
0

What is the best way to store any configuration values in X++ ? I need to store few URLs and some credentials to access external APIs.

Thanks in advance. 

Regards,

Himal

Viewing all 17532 articles
Browse latest View live


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