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

AX 2009 - How to get selected data from a Grid containing a temporary table

$
0
0

Hi all, for AX 2009, I have a grid that is populated with the contents of a temporary table. 

I then placed a button beside the grid. 

On the clicked method on that button, how do I get the currently selected record on the grid? Or more specifically, how do I get one of the fields from the currently selected record on the grid?

Multi-select is not enabled on the grid, I want to select a single record only.

Thanks so much!


Get customer closed transaction Marked records SpecTrans

$
0
0

Hi,

I need to get all the marked records for a customer in AX 2012 

AR>all customers > Collect tab > Closed transaction editing.

I have written some code related to spectrans but I need to get the voucher number as well.

I am able to get the count with the below code , but I need tthe values of the record as well. eg. Voucher number

specTransManager = SpecTransManager::newRefTableId(Custtable, tableNum(CustSettlement), true);
if(specTransManager.getSpecTransCount() > 0)

Thanks,

VK

AX2009 export multiple sheet in one workbook

$
0
0

Hello  guys,

when  i  want  to  export customer  to multiple sheet  in the  same workbook  (  group  by  custgroup ).but  when i   open  the  exported workbook.I noticed that instead of starting each sheet on the first line, he inserted the original line number into the different sheets.as  the  picture  shown,  .and  my  code  is :

Microsoft.Dynamics.Ax.Xpp.DeadlockException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.DeadlockException' was thrown. - AX 2012

$
0
0

Hi All,

Batch jobs are executing for long time, when we check the batch server , we got the below error.

Batch jobs executed when we cancel and re-run.

Frequently some job is running for long time, observed all the long running jobs are executing on same batch server, it is having 32 GB RAM.

Please advice how we can resolve this issue.

"Object Server 01: Microsoft.Dynamics.Ax.Xpp.DeadlockException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.DeadlockException' was thrown.
at Dynamics.Ax.Application.BatchRun.serverProcessDependencies(Boolean forceProcessing, Boolean ) in BatchRun.serverProcessDependencies.xpp:line 171
at Dynamics.Ax.Application.BatchRun.serverGetTask(Batch batch, String serverId) in BatchRun.serverGetTask.xpp:line 71
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
at BatchIL.startTask()
at BatchIL.CheckBatchJobs()
at BatchIL.threadFunc(Object threadArg)"

Auto populate the fields upon importing the Id in data entity

$
0
0

I'm trying to import an excel file in Data management that has a projId only

after importing the file it should automatically generate/populate the value of projName and ProjNumber in the fixed assets form
so that when I Export the data it will automatically put a value on projName and ProjNumber 

is there a way to do this automation or process ?

class returns old xml

$
0
0

Hi all.

I am working with ax 2009.

we have a service that call a class that return an xml.

I have made some changes to the xml and added some new properties.

With a test job I can see that the class create the new xml and return it.

But if I call the service I get the old xml.

I have restarted the AX service, did compile forward and restart the servers.

I have no more ideas.

Does anyone know the phenomenon and can help?

How can I get to the Customer Name when I click another form menu item

$
0
0

public void init()
    {
        super();

        if (element.args().caller())
        {
            wizard = element.args().caller();
         
            custTableCaller = wizard.parmCustTable();
            MyDatasource.FirstName = custTableCaller.nameAlias();
            myDatasource_ds.research(true);
     
        }

when I select any record in the CustTable grid, and then click another Form menu item, I want the CustTable name field to populate the First name field automatically. In this init() method, Data is coming with debugging but it is not showing in the form field. Any idea? Thanks

La combinación de la cuenta contable no coincide con la configuración del control de diario para los tipos de registro de cuentas contables.

$
0
0

Para la creación de libros contables me surge el siguiente un error.

La combinación de cuenta contable ****  no es válida.

La combinación de la cuenta contable no coincide con la configuración del control de diario para los tipos de registro de cuentas contables.


The ledger account combination does not match the journal control settings for ledger record types.

$
0
0

For the creation of accounting books I have the following error.

The ledger account combination is invalid.

The ledger account combination does not match the journal control settings for ledger record types.

How to auto download a txt file when a button is clicked?

$
0
0

I am a beginner in working with ax and I need to create a button (Get Template) that will download a text file when is clicked. The file must then be loaded and the Location must be updated when the ok button is pressed. Is there any possibility to do this in ax 2012?

Sales Order Invoicing and Reverse invoice

$
0
0

I have requirement in which i need to post some free text invoice, after standard Sales Order Invoicing once we invoice and some issue happens in creation of free text invoice i need to rollback my standard invoice as well for that where i can write code in X++, i am checking SalesFormLetter Classes please give overview on that flow of methods from where i can rollback invocing and runs my custom logic after the standard invoicing is happened..

Thanks in advance,

Yogesh

Export Invent Journal Lines to Excel

$
0
0

Hi. We have an AX2012 R2 CU7 application. When we export journal lines to Excel the inventory dimensions are not being exported. Most of these dimensions appear in the journal lines form - Site, Inventlocation,WMSLocation, BatchId, etc.    Is there a solution for this issue within CU7 or is this issue resolved in a later CU?  It is certainly not an issue in AX2012 R3.  Cheers. James.

Error while importing data from excel-addin for HcmEmployment Entity

$
0
0

Hi Friends,

I am getting this error while importing data from excel-addin

A row created in data set EmployeesV2 was not published. Error message: 'Write failed for table row of type 'HcmEmployeeV2Entity'. Infolog: Info: Cannot edit a record in Worker calendar assignment (WorkCalendarEmployment). Employment: Usha HR emp USSI 4/23/2023 06:30:00 pm 12/31/2154 11:59:59 pm, Standard. The record already exists..

This error arises even after inserting a completely new record in excel-addin.

Please help me on this issue.

Thank you.

Workflow Notification link is not opening currently selected record.

$
0
0

I have workflow which is created to send notification email to the approver.The approver is set in dynamics application.Above is the personal timeoff request form where the record is submitted for workflow.The link is then sent to the approver after the workflow is submitted.The issue with the link is it is always opening the first record in the form and not opening the selected record during workflow submission.Is there a way to send a link which has the currently selected record in the form.As per the image the 4th record is the one selected but the link always opens the first one.I checked the logic in the init method it always fetches the first record since there is no caller form to fetch the currently selected data.How can we proceed on this?

Please help me on this issue.

Thanks.

Difference between load status Shipped and Received in Ax 2012

$
0
0

Hello

Can someone simply explain the differences between  Load status"Shipped" and "Received"  ("Inbound" from Purchase orders) in AX 2012? 

From what I have understood, it´s the same status in the end, but something must separate them.

regards BCC


Cancel PO's based on condition

$
0
0

Need to Cancel POs, if it satisfies below condition.

where PurchTable.createdDateTime < Year(2020)

AND

PurchLine.DeliverRemainder < 25000

Sales Invoice report extension

$
0
0

Hello everyone, i want to add some missing fields to the sales invoice report.

In the sales invoice report, we have 3 datasets:SalesInvoiceHeaderFooterTmp, SalesInvoiceLocalizationTmp and SalesInvoiceDS


1.tables that i have added the missing fields: SalesInvoiceHeaderFooterTmp and SalesInvoiceLocalizationTmp (Extension)
2. i added the fields Ex_PreparedBy, Ex_ReceivedBy, Ex_Salesperson, Ex_BankAddress and Ex_Beneficary to the table SalesInvoiceHeaderFooterTmp and the fields        Ex_TaxRate and Ex_VAT to the table SalesInvoiceLocalizationTmp
3. Data type of fields: Ex_TaxRate (String), Ex_VAT(String),Ex_Beneficiary(String),Ex_BankAddress(String),Ex_PreparedBy(String),Ex_ReceivedBy(String),               Ex_SalesPerson(Int64),


Now i need to do extension of the original data provider class which is SalesInvoiceDP (use extension of ) to add these fields.

 but im facing some issue with coding this class. Is there some missing step i forgot to configure?

Getting error AsyncClient configuration through Powershell

Minimum Time for Timesheet per day

$
0
0

Hi,

Im trying to find a way to create a report that gives me details per employee of their minimum working time per day. Example person X is down as 7 hours per day. The company has all employees set-up as 7.5 hours a day. I need to be able to identify which ones may have been set-up or changed to 7 hours a day.

I can find per user in Workers > Project Management (Tab) > Project Set-up. However really need a report of this for all workers rather than going through each employee as there are thousands.

Regards,

Isaac

Load stuck at load status shipped. Cannot move the status to load.

$
0
0

Hi all, 

I am throwing a penny in the fountain here.  Not a lot of info. 

I have a few loads that remain stuck with the load status of Shipped and should be received..

Anyone has a clue at 52000 feet. 

Thanks


F

Viewing all 72043 articles
Browse latest View live


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