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

Reference to other table Field

$
0
0

Hello guys,

Since you have helped me a lot by now and are the ultimate source of expert AX knowledge, I came up with one more question. I have two tables: PersonDir and EmployeesPFA (custom made). In personDir table I added a field pfaRecId which should create relation to employeePFA table (pfaRecId == recId). What is more, in HcmWorker form, I added a field EmployeesPFA that shows the workers PFA and when record is being edited should let choose from all the PFA values stored in EmployeesPFA table and save the reference to it in that PersonDir table pfaRecId field. How should this be done? Thank you.


Extension of a data provider class

$
0
0

Just wondering if anyone has faced this issue so far: you have to create an extension for a SSRS report's provider class and add a new table that will be send to the report using the SRSReportDataSetAttribute. All sound good and like it will work, until I get this error "An error occurred during report data sets execution".

The event viewer has only a "An exception occured during Ax Report Provider execution." message.

HTML Name

HTML Name

Functional regression test automation in Dynamics AX 2012

$
0
0

I am looking for a tool to automate functional regression tests in Dynamics AX 2012:

1. I looked at third party (ISV) tools like Axeptance and Executive Automats. Does anyone have experience with these tools? Could you provide me pro's/cons and your experience when you made it part of your testing process?

2. I read Dave Froslie's Testing Best Practices white paper and am also interested in using Microsoft Test Manager in Visual studio. Does anyone have any videos/examples/blog posts using Test Manager with Dynamics AX? So far all I have found is videos showing web application testing, but I would like to see it in action with Dynamics AX.

Any other suggestions, tips and tools regarding automated functional regression testing also welcome! 

P.S. - I am not interested in unit tests or SysTest yet; hopefully that will be phase 2 of our new testing process! :-) 

Multiple report into same viewer to print to same PDF file

$
0
0

Hi all,

I have problem with the below.

I have 3 report: Delivery Slip, Receipt Slip and Invoice

In the customized's form, select records in form and click button Print report, 3 report will show with seperate order: Delevery Slip, Receipt Slip and Invoice(export PDF to 3 files)

But customer want to all report in 1 file.

Currently, 3 report belong to 3 diffence's object.

How to resolve with problem?

Please help me!!!

Thanks in advance.

Shinji.

Calling protected constructor from class extension

$
0
0

Hi,
I created an extension class according to all rules, but I get a bunch of errors, saying that the parent class (HcmWorkerTransition) is not visible due to protection level (by default it is declared as just a class, so I suppose it is public). The same is said about the parent class methods, although they are declared as protected. What could possibly cause it? Thank you.

Want to store display method value

$
0
0

Hi All,

I want to store form display method value in table.

Please help.


Report name output as dynamic

$
0
0

hi 

i am new to Dynamics AX 2012 , i need the report output name should have include parameter and report with timestampe.

its possible , 

thanks 

kumar

how to get date format using x++ from system date

$
0
0

Hi all,

how to get system date format using x++, my requirement is to get system date format then corresponding logic should execute . 

Link Office 365 in LCS

$
0
0

Hi,

Is there any way to link/unlink the Office 365 account from LCS? We need to manage the AX 7 users, but seems that AX 7 users are linked to O365 accounts.

Regards,

How to debug Connector for AX by Microsoft ?

$
0
0

We are using the Connector for AX for the CRM integration . Issue is that we are not able to debug  code .  I have tried writing jobs but its not that much useful . I want to have real time debugging .

Getting started with MS Dynamics AX 2012

$
0
0

Hi,

I am a Software professional and pretty new to MS Dynamics.

I want to start working (development environment) on MS Dynamics AX 2012.

I have searched about how to download MS Dynamics AX 2012 trial for development.

Based on my research following are my assumptions:

1. There is no free trial download for MS Dynamics AX 2012.

2. There are certain third party providers that provides free trial download for MS Dynamics AX 2012 but they require actual business email address and after download there is no support for development environment.

3. If I have an MSDN subscription then I can download the setup files. But in this case I have to manually setup and configure Dynamics AX on my local system. Also there is no demo data present. And creating demo data is a tedious task. Also support for development environment is not present (I am not sure on this though).

4. If I have access to Customer Source or Partner Source than I can download a hyper-v machine on my local system with AX2012 R2 already installed with demo data. But with the demo license the development environment is not accessible. For that I should have a working license for AX2012.

Are my assumptions correct?

It would be of great help if you can elaborate on the above points and help me.

Thanks,
Tauseef.

Extensions and Customization

$
0
0

Hey, 

I have one theoretical question, I have two projects in a solution, one uses a model that is of Application Suite package, another uses model of a separate custom made package. In first project I have created some customization of elements, in another I have put the extensions of other elements. But what would be the impact if the extensions of the second project would be replaced to the first project? Shouldn't I do it? Thank you.

AOS service crashing

$
0
0

Dear Professionals , i have a strange issue ,  AX 2012 R3 , AOS SERVICE stops automatically daily at specific time , i have to start it  manually . i have look at the event viewer what may cause the issue , found nothing .  


How reach form datasource object in a standard method with delegate

$
0
0

Hello,

I need to create a delegate in a standard method (use in Active standard datasource method) in order to add a specific control on datasource field:

    // Standard method where i want to use a post delegate:


    public void setFieldAccess()
    {
        boolean isResourceRate = projHourCostPrice.IsResourceRate;

        projHourCostPrice_ds.object(fieldNum(ProjHourCostPrice, Resource)).allowEdit(!isResourceRate);
        ....
    }

I create a delegate method in a specific class:

    /// <summary>
    /// Add specific control
    /// </summary>
    /// <param name="args"></param>
    [PostHandlerFor(formStr(ProjCostPriceHour), formMethodStr(ProjCostPriceHour, setFieldAccess))]
    public static void ProjCostPriceHour_Post_setFieldAccess(XppPrePostArgs args)
    {

        // Bad use/context  it don't work:
        FormRun                  sender = args.getThis();
        FormDataSource      projHourCostPrice_ds;
        projHourCostPrice_ds = sender.formRun().dataSource("ProjHourCostPrice");

       // I want to add this code:
        projHourCostPrice_ds.object(fieldNum(ProjHourCostPrice, Resource)).allowEdit(false);

                }

How i can reach formdatasource object with args param with delegate from a standard method in form?

AX365 Customization: Overlayering and extensions

$
0
0

Hello,

In AX365 there are two methods of customizing source code and metadata of model elements: overlayering and extensions.

I read in other posts:

 "It is not possible to develop a solution 100% free of OverLayring, as of today".
 "You need a customization if you want to change code inside a method".

I need to:

 -create new specific table MyNewTable (Extensions)
 -new referenced field link (refrecid) related to my table in standard table StandardTable1 (ApplicationSuite) (Extensions)
 -create new others specific fields in standard table StandardTable1 (ApplicationSuite) (Extensions)
 -Initialized specific field value and standard field value from specific value (Delegates)
 -Modify other standard value from my specific value ( for instance class runnable treatement job)
 -In standard active method form datasource: modifiy standard allow edit rules (standard If/else) from specific fields ... (Extensions not possible...,Overlaying way)
 -Modify standard method with no super() (Extensions with Reflection)

I read you must create a new extension package/model (ApplicationSuiteExtension) and use Extensions Code (Events/Plugins/Class Extensions/Reclection),Table extensions/Form extensions etc

But when one point requires an overlaying way  (for instance for a specific extension field / specific table code change use inside standard code) what's mean?

Get back to an overlaying solution in a new specific model (ApplicationSuiteCustom) in ApplicationSuite package for specific field/table and inside:
-Continue to use delegates/static method extensions to minimize overlaying code
-Create extensions only for field/tables in this specific model when they are no standard code change inside a method?

Does DB logging works when records are manipulated via code?

$
0
0

Hi,

We have created an upload journal function using csv. The DB logging is turned on for that table and when records are inserted manually the DB log store those changes. But when we use the custom upload functionality there is no record of it the log table. So anyone has idea if the logs are stored when records are inserted via code?

Thanks.

AX 7 Dimension Changes

$
0
0

In AX 2012 there is a function like this:

DimensionStorage::getDynamicAccount(_accountNum, _accountType);

I cannot find a similar function in AX 7.

Also the AxdDimensionUtil is not supported any more. Particularly I am looking for this method getLedgerAccountId(_continer)

AX 7 suggests using thee DimensionResolver but I can't find the right function.

Any help will be appreciated.

Thank you

Azure error while deploying Dynamics 365 Operations (AX) on LCS

$
0
0

Hello,
We are trying to deploy the partner trial version of D365 Operations using LCS and getting an error at the last step before deployment:
The configured Azure subscription AAD Tenant Domain for the Connector in invalid or non-existent. Please edit the Connector and provide the correct AAD Tenant Domain that the subscription is associated with.

We checked that we had three domains including the xxxxx.onmicrosoft.com domain. We have tried all three of them but all of them are not working.

Any input would be really great.

Viewing all 17532 articles
Browse latest View live


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