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

How to pass list of class in API Web service

$
0
0

Hi,

I was trying to pass list of class parameter from .NET client to D365 API custom service but whenever i am trying to pass list of class getting error with status code 500, i am able to get List of string, int or etc but when try to pass collection of class then its showing error. help required 


AX 7 form extension with query as datasource

$
0
0

Hi everyone

On my own custom forms i can still draw a query on form datasource and everything is fine.

Now I need to visualize query data on a standard form. Therefore I create an extension for the form. There I do not find any way to assign a query as a datasource. Drag and Drop does not work on extensions, the only possibility i found to add a datasource is with contextmenu "new datasource". That works only for tables and views but not for queries.

Does someboby have a solution for this issue. I'm glad to hear about it ans appreciate any response to my question.

Qty in packing slip and qty in inventtrans not matching

$
0
0

Hello,

I have a very weird situation in dynamics ax 2009.  The story was this :

1. Order was created and multiple packing slips were posted. 

2.Then the packing slip was reversed with one line:

it is the item BMDVKP80/92,so  theoretically the total quantity is 0, however when i try to delete the order, i get the following error message:

So then i check the inventtrans of that item and i see the following:

And in InventTrans it looks like this:

I was not able to replicate this problem. Do you have any ideas what can be causing it? And how can it be fixed?

use method initFrom ProjJornalTrans y ProjJournalTable

$
0
0


I am inserting diaries of workers' hours, and I need to use the initFrom methods, which fills me fields automatically with just calling them and sending a parameter, what I do not understand is how to use these methods. For example:

public void initFromProjActivity(ProjActivity _projActivity)
{
ProjJournalTable projJournalTable;
ProjCategory projCategory;

if (!_projActivity || !_projActivity.CategoryDefault)
{
return;
}

projJournalTable = ProjJournalTable::find(this.JournalId);
projCategory = ProjCategory::find(_projActivity.CategoryDefault);
switch(projJournalTable.JournalType)
{
case ProjJournalType::Hour :
if ( projCategory.CategoryType != ProjCategoryType::Hour)
{
return;
}
break;

case ProjJournalType::Revenue:
if (projCategory.CategoryType != ProjCategoryType::Revenue)
{
return;
}
break;
}

this.CategoryId = _projActivity.CategoryDefault;
if (isConfigurationkeyEnabled(configurationKeyNum(Project3)))
{
this.TaxItemGroupId = projCategory.TaxItemGroupId;
this.setLineProperty();
this.setHourCostPrice();
this.setHourSalesPrice();
}
}


Asks me to send you a parameter, but I do not know very well how. I am very new to Dynamics and I am starting with it, thank you for your help.

RE: How to pass list of class in API Web service

$
0
0

Please give us more information.

What's the parameter of the method? What class are you trying to use in the collection? Is it a data contract class? Didn't you forget AifCollectionTypeAttribute?

Then, how are you calling the service? Are you using the SOAP endpoing or the JSON endpoint?

RE: Year End Closing Error

$
0
0

Hi Dhruv Singhvi,

I try to answer your question from bottom to top.

Taking out the second parameter will not affect the traceability of the Transactions. I would rather consider it as an advantage not setting it. Please see question two on this site dynamicsax-fico.com/.../five-qa-on-the-fiscal-year-close-process

ii) The Transfer of balances requires that the periods are open, which currently seems to be prevented by i)

i) Answering the first question is the most difficult but most important one :-) Can you possibly check the following

- Is the calendar Mar-Apr assigned in the ledger form in GL?

- Are any of the other periods closed?

- Have you experienced this problem in the previous year at year end closing? If so, how did you overcome it?

Best regards,

Ludwig

Errors when importing solution to Visual Studio

$
0
0

I want to move a project that I have been working on from one VM to another. I tried to do this by doing the export/import that Dynamics provides, following this link:  https://community.dynamics.com/ax/b/axilitynet/archive/2016/05/19/project-export-and-import

When I imported the project, I selected the axpp file which was located on the VM desktop for the file name. I entered C:\Users\sovos1\Documents\Visual Studio 2015\Projects for the project file location. I selected "new solution" to open the project in (since this is a new VM I didnt have any solutions). I also checked the overwrite solution.

The project was imported with no errors. Then I ran a build of the project. The build finished stating that the build completed. Then it prompted me that I had 50 errors. these errors were caused by classes that had _packageSlip appended to them. How can I resolve these errors? There is a screenshot below of the build and the errors.

None of these errors exist in the VM that I exported the solution from to generate the axpp file. How can I fix these errors?

RE: QueryBuildDataSource object not initialized

$
0
0

The error message tells you that you're using an uninitialized variable at line 14 of your processReport() method. Instead of recreating the report, restarting services and so on, go to ProjectReportDP.processReport() and fix the error. If it's not clear to you what's wrong, walk through your code in debugger to understand it. If it doesn't help you, share your findings with us.


RE: OpenXML in AX2012

RE: withholding tax and withholding tax

$
0
0

Hi Shayma El Haj Ali,

Have you tried contacting the one who setup your system and setup the databases because I can't tell you what name and server to enter here.

Best regards,

Ludwig

RE: Posting InterCompany Invoice Journal gives account structure error

$
0
0

Hi Hamza,

Can you check your account structures that are setup for company AH1?

Are the accounts 1010002 and 3004002 included in the account structure Balance Sheet?

What are these two accounts used for?

Are they setup as intercompany accounts in GL?

If so, do they require some specific financial Dimension-account combinations?

Best regards,

Ludwig

Retrieving selected row in the grid in Form when form control button is clicked.

$
0
0

Hi,

I added new button “Back to draft” in the Approval menu in the Journal. Basically what it has to do it when the user click that button, the journal which is already reported as ready should be reverted back so that user can amend the journal.

The problem I am having now is I am not being able to figure out the way to retrieve the selected row in the journal.

  /// <summary>
    ///
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    [FormControlEventHandler(formControlStr(LedgerJournalTable, BackToDraft2), FormControlEventType::Clicked)]
    public static void BackToDraft2_OnClicked(FormControl sender, FormControlEventArgs e)
    {
        FormRun                         formrun = sender.
        Object                          LedgerJournalTable_DS = FormRun.dataSource(formDataSourceStr(LedgerJournalTable,LedgerJournalTable));
        LedgerJournalTable              localLedgerJournalTable =   LedgerJournalTable_DS.getFirst() as LedgerJournalTable;
        localLedgerJournalTable.ReportedAsReadyBy = '';
        LedgerJournalTable_DS.research();
    }

Here is the code which just retrieves the first row in the data source but I need to retrieve the selected row in the grid so that I can change the status for that particular record. How would I do that using event handling? 

Thank you,

RE: Errors when importing solution to Visual Studio

$
0
0

What's the version of your application? Is it the same in both of your environments?

It seems that your target application doesn't contain the Indian localization.

Extension form

$
0
0

Hi,

I would like to add jumpRef method for fields in the data source in form without overlayering. But this field does not have overridden jumpRef in code therefore trick with registerOverrideMethod does not work: it is ignored by the system.

Maybe, somebody has any advice.

RE: Retrieving selected row in the grid in Form when form control button is clicked.

$
0
0

Why don't you simply use a menu item button and receive the record in args.record() as usual?

If you insist on your design, try something like sender.dataSourceObject().cursor().


RE: PO & PR reference

$
0
0

HI Zafar,

PR number is stored in Purchase order  line and the same PO number stored in Purchase requisition line.

PO screen

PR screen

RE: Errors when importing solution to Visual Studio

RE: Extension form

$
0
0

Even if the jumpRef hasn't been overridden registerOverrideMethod should work. You might have overlooked something. If possible share the code where registerOverrideMethod  is implemented.

RE: Errors when importing solution to Visual Studio

$
0
0

You're talking about the platform, but what's the version of the application. You clearly have a problem with the application, i.e. things like tables and forms.

You can't simply import code from another version; you have to upgrade it to work with the new application.

Add languages in a label file

$
0
0

Hello everyone

I had to install a label file (AX 2012 R3), instead of importing it or creating the file with the wizard, I imported it from a file.

Importing had no problem, but implementing a report that uses those labels informs me that the label is not defined for multiple languages.

The label file has only the language I have imported, none more, my question is: How to add a language installed in an existing label file?


Thank you

Viewing all 175888 articles
Browse latest View live


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