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

After the insert_recordset statement i want to fetch salestable base on sales id field but i am getting empty buffer. insert_recordset is working fine.

$
0
0

Record of temp table after running above x++ code

What i want is to based on salesid field in inserted temp table, futher i want to insert line in same tmp table from sales line.


Create new Driver record in Sales Order

$
0
0

How to create a new record for Driver in Sales Order?

Sales and Marketing --> Common --> Sales Order --> All Sales Order

In the current record, i need to select a Driver from the Drop-down list but the Driver record do not exist so i have to create a new record for the driver?

How will i do it? 

AX2009 Data Migration

$
0
0

We are trying to do Data migration in AX2009. What is the process to migrate the data from one server to another server.  (AX2009 to AX2009)? 

Microsoft Dynamics AX 2012 Consultant

$
0
0

I need a Microsoft Dynamics AX 2012 expert to work on site to help with troubleshooting. Preferably in person - we are located in Meriden, CT 06450

"The subject and message are missing" while reassign the workflow to another user.User has system admin rights

$
0
0

Hello all,I am trying to reassign the workflow ,but when i reassign it gives me the above error.

D365 F&O application issue.

$
0
0

My D365 F&O application is running perfactly, suddenly I get this issue though this issue is resolved by I did not know the exact reason.

D365 on trade and logistics

$
0
0

Hi,

Could pls suggest books for d365 for trade and logistics..

Thanks,

Karthikeyan

change vendor account pops up error message: The transaction type cannot be changed because the transaction has been fully or partially updated.

$
0
0

1. use Record info-rename

2. pops up error message


Procurement and sourcing workflows

$
0
0

  

  

I am trying to remove the users "ahilario" and "grecarey" from the workflow because they are no longer in the company, but when I remove them from the workflow, I get an error when approving the purchase requests

How to Allow or Not Allow Edit on Purchase Order?

$
0
0

I added a comboBox type field called "Status" with the values ​​Open and Blocked on the PurchTable form and I want to write a method that does not allow editing any information from Purchases Order if the Blocked value is selected.

How can I iterate over all the datasources on the PurchTable form?

$
0
0

I added an Enum type field that has the Open and Blocked values ​​and I want the fields not to be editable for all PurchesOrders with Blocked status.

escalation Not working in Ax2012

$
0
0

Hello

I set the escalation for my workflow but it is not working after due date and time.

system did not generate any notification or escalation also not working after dute date and time finish.

SSRS report data contract not being passed into RDP class

$
0
0

Hi,

I have built a custom SSRS report in D365 - 10.0.27.

The report runs fine and returns my data without issue.

I have a data contract in use and a data query.

[SrsReportQueryAttribute(queryStr(MyTestQuery)),
SRSReportParameterAttribute(classStr(MyTestContract))]
class MyTestRDP extends SRSReportDataProviderBase

I have the above code declared at the beginning of my RDP class - everything appears to be correct in the code but when I execute the run of the report and debug, it would appear my data query is being loaded correctly but my data contract is not present in the parmDataContract() method of the class - when I look at the rdpDataContract value, it is simply a blank version of the contract.

My report loads the parameters of the contract when the report is run via my controller class, when I debug the contract, I can see the value change when I select it - when I click on OK to run the report with the parameters in place, the contract refreshes a number of times until the code reaches the processData method of the RDP class.

It is here where it is almost as if a blank or new version of the contract is initialised and my selected values are not being returned.

I am sure there is something really minor wrong, somewhere but if someone could advise me on where to look that would be great.

Thanks

Procurement and sourcing workflows

$
0
0

  

  

I am trying to remove the users "ahilario" and "grecarey" from the workflow because they are no longer in the company, but when I remove them from the workflow, I get an error when approving the purchase requests

PO subledger journal entries not reflecting at trial balance

$
0
0

Hi,

Good day!

Anyone who can help me to fix the set-up for PO, its subledger journals can't be seen at trial balance or GL transactions.

what set-up should I fix for this?

Subledger

Thank you.


Extract Metadata Properties of Data Entity Extension

$
0
0

Hi All,

using System.IO;
using OfficeOpenXml;
using OfficeOpenXml.ExcelPackage;
using OfficeOpenXml.ExcelRange;
using OfficeOpenXml.Style;
using OfficeOpenXml.Table;
class RunnableClass7Modified
{


    public static void main(Args _args)
    {
        DocuFileSaveResult          saveResult = DocuFileSave::promptForSaveLocation("@ApplicationPlatform:OfficeDefaultWorkbookFileName","xlsx", null, "AMDeviceModelCodeEntity - Export excel file");
        container                   headerContainer = ['Field Name', 'Help Text', 'Label', 'Mandatory', 'String Size', 'Computed Field'];
        if (saveResult&& saveResult.parmAction() != DocuFileSaveAction::Cancel)
        {
            saveResult.parmOpenParameters('web=1');
            saveResult.parmOpenInNewWindow(false);



            System.IO.MemoryStream memoryStream = new System.IO.MemoryStream();



            using (var package = new OfficeOpenXml.ExcelPackage(memoryStream))
            {
                var currentRow          = 1;
                var worksheets          = package.get_Workbook().get_Worksheets();
                var worksheet           = worksheets.Add('Sheet1');
                var cells               = worksheet.get_Cells();



                OfficeOpenXml.ExcelRange cell;



                for (int i=1; i<=conLen(headerContainer); i++)
                {
                    cell  = cells.get_Item(currentRow, i);
                    cell.set_Value(conPeek(headerContainer, i));
                    cell  = null;
                }



                var     axDataEntity            = Microsoft.Dynamics.Ax.Xpp.MetadataSupport::GetDataEntityView('AMCaseTableEntity');
                var     dataEntityFields        = axDataEntity.Fields;
                var     dataEntityStagingTable  = axDataEntity.DataManagementStagingTable;
                //gets the tableid for the staging table of the data entity
                int     axTableId               = tableName2Id(dataEntityStagingTable);



                System.Collections.IEnumerator defEnum = dataEntityFields.GetEnumerator();



                while (defEnum.MoveNext())
                {
                    //info(strFmt("Staging Table for Entity: %1", dataEntityStagingTable));
                    //setPrefix("Field Looping");

                    

                    Microsoft.Dynamics.AX.Metadata.MetaModel.AxDataEntityViewField          axTableField    = defEnum.Current;
                    //Microsoft.Dynamics.AX.Metadata.MetaModel.AxDataEntityViewMappedField    axTableMapField = defEnum.Current;


                    int x;
                    

                    DictDataEntity dataEntity = new DictDataEntity(tableNum(AMCaseTableEntity));
                    DictField entityField1 = new DictField(axTableId, fieldName2Id(axTableId, axTableField.Name));
                    DictDataEntityField entityField = new DictDataEntityField(tableNum(AMCaseTableEntity),dataEntity.fieldCnt2Id(x));
                    int cnt   = dataEntity.fieldCnt();

                    //for ( x=1; x<=cnt; x++)
                    //{
                        if(entityField1 )
                        {
                            if(entityField.accessModifier() == FieldAccessModifier::Public)
                        {
                            currentRow ++;



                            cell = null;
                            cell = cells.get_Item(currentRow, 1);
                            cell.set_Value(axTableField.Name);



                            cell = null;
                            cell = cells.get_Item(currentRow, 2);
                            cell.set_Value(entityField1.help());



                            cell = null;
                            cell = cells.get_Item(currentRow, 3);
                            cell.set_Value(entityField1.label());



                            cell = null;
                            cell = cells.get_Item(currentRow, 4);
                            cell.set_Value(entityField.mandatory());



                            cell = null;
                            cell = cells.get_Item(currentRow, 5);
                            cell.set_Value(entityField1.stringLen());


                            cell = null;
                            cell = cells.get_Item(currentRow, 6);
                            cell.set_Value(entityField.IsComputedField());
                        }
                        }
                    //}
                }
                
                package.Save();
            }



            memoryStream.Seek(0, System.IO.SeekOrigin::Begin);



            DocuFileSave::processSaveResult(memoryStream, saveResult);
        }
    }

}

I tried to extract metadata properties of data entity field and extract into excel.

The problem is, i cant extract from data entity extension and got this error.




Master planning

$
0
0

how to make the master planning batch considers only part of open sales orders in AX according to their dates?

How to change SalesType to a new specifical salesType

$
0
0

I try to change salesType to salesOrder on creating new salesTable, I added a new type to SalesType Enum, and i added new class 

[SalesLineTypeFactoryAttribute(SalesType::ISA_ProvisionalPreOrder, NoYes::No)]
class ISA_SalesTableType_ProvisionalPreOrder extends SalesTableType
{
static SalesTableType construct(SalesTable salesTable)
{
return new ISA_SalesTableType_ProvisionalPreOrder(salesTable);
}

}

and when system insert new salesTable, i get this error The SalesTableType::construct function was not called correctly.

have you any suggestion please !

Purchase order status changes from Confirmed to Draft after running tax calculation

$
0
0

All my PO that are confirmed changes from confirmed to draft when we run Tax Calculation

Dynamics 365 implementation best practices white paper

$
0
0

Hi Team,

I need a white paper for best practices for D365 F&O implementation. If the documentation from MSDN is most helpful. If anyone have correct link please share it with here.

Thanks,

Pavithran

Viewing all 175888 articles
Browse latest View live