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

Project management & accounting parameters - Production posting method = consumed

$
0
0

Hello,

AX 2012 Feature Pack,

I am looking at consumed production but seem to have hit a wall when it comes to posting workers hours via time & attendance (barcode ID scanning), the hours are posted using job cards but it seems the consumed process only posts the route and picking journals to the project. The T&A hours are posted to the production order not the project.

Does anyone know if this is a setup issue or this is how the consumed method works?

Any advice is much appreciated,

Thank you,

Ian


RE: Additional AX Server

RE: How to remove first word from string

$
0
0
static void RemoveFirstWord(Args _args)
{
    str testString = 'This is a test';
    str newString; 
    int firstSpace = strFind(testString, ' ', 1, strLen(testString));
    
    if (firstSpace)
    {
        newString = subStr(testString, firstSpace + 1, strLen(testString));
    }
    
    info (newString);
}

How to remove first word from string

$
0
0

How to remove first word from string in AX 2012  run time, 

First can be of any length, requirement is to remove or delete the first word of the string dynamically,

we have string function but haven't found any function that removes/deletes first word from string, (do not want to hard coded words, needs run time),

Please do needful,

Deleting an sales order line and recreates Open Transaction

$
0
0

Hi All,

Senario:

I define Payment Schedule(with 3 installment) and set it in my SO which include 2 lines.When I invoice it, the Open Transaction is created with 3 instalment according to Payment Schedule.

Now, I want to delete one of line of SO and create Open Transaction(invoice it) once again.

What is your Solution?

RE: Document Handling References broken

$
0
0

If it is a file, and you have the filename (& path) stored somewhere else, you can create a new record in Docuref / or update filename for the existing record.

For other types of document, I'm not sure of a solution.

Document Handling References broken

$
0
0

Hello,

Not sure how this happened. My Document Handling attachments are stored in the database and while looking at the document types something happened and the setting changed. No warning on the references breaking like there normally is. Anyways,. in the File field in the DocuValue table is Null. I update the SQL table and inserted the file, when I look in SQL I see the field is not null anymore but when I look at the table through the AOT there is nothing attached. 

How can I re-attach the files in the docuValue table?

The SQL I used was that inserted the file.

Update DOCUVALUE
Set File_ =
(select * from OpenRowSet(Bulk N'C:\Temp\MyFile.pdf',SINGLE_BLOB) as File_)
Where Recid = 56428400206

Looking through the table browser, the first record is a document that was inserted through AX, which shows BLOB as the file type.

RE: Importing Worker Time Registration

$
0
0

Ok guys, I wrote a job that imports from an external database, the only table that needs to be written is JmgTermReg which contains the Clockin and Clockout registrations.

When calculating, these will be automatically written into JmgStampJournalTrans and JmgStampJournalTable.

Code below, maybe it will be helpful to someone.

int64 InsertJmgTermReg(str _jobID, str _jobIDAbs, str _date, str _time, str _terminalID, int64 _worker)
{
    JmgTermReg  jtr;
    
    ttsBegin;
    
    jtr.JobId= _jobID;
    jtr.JobIdAbs = _jobIDAbs;
    jtr.ProfileDate = str2Date(_date,321);
    jtr.RegDateTime = DateTimeUtil::removeTimeZoneOffset(str2datetime(_date + " " + _time,321), DateTimeUtil::getUserPreferredTimeZone());
    jtr.TerminalId = _terminalID;
    jtr.Worker = _worker;
    jtr.insert();
        
    ttsCommit;
    
    return jtr.RecId;
}



Importing Worker Time Registration

$
0
0

Hello,

Is there any X++ code to import Worker Time Registration entries from another source (Time Attendance Machine DB)?

If not, are the only tables involved: JmgStampTrans and JmgStampTransJournal?

Thank you

RE: Additional AX Server

Additional AX Server

$
0
0

Hi,

Can a Existing AX 2012 R3 User purchase & Use a multiple AX 2012 R3 server for the Single Entity?

RE: Unable to log on to Microsoft Dynamics AX.

RE: Unable to log on to Microsoft Dynamics AX.

Unable to log on to Microsoft Dynamics AX.

$
0
0

Hi Everyone, 
I'm new in AX.

When I am trying to preview Report in Visual Studio. There is an error prompt.

How can I solve this problem.

Thanks.

RE: How to consume C# data contract class list in Ax 2012

$
0
0

How can I declare ShipmentTableContract class to non generic types in C#?

public IEnumerable getShipmentTable(string companyId)
{
    CallContext axCallContext = new CallContext();
    ShipmentIntegServiceClient axService = this.logonToService();

    try 
    {	        
		        
        axCallContext.Company = companyId;
           
        IEnumerable<ShipmentTableContract> shipmentList = new ArrayLis<ShipmentTableContract>();
        shipmentList = axService.getShipmentTable(axCallContext);
}
catch (Exception) { axService.Abort(); throw; } finally { axService.Close(); } }


I am getting the following error while declaring shipmentList to new ArrayList;

"The non-generic type 'System.Collections.IEnumerable' cannot be used with type arguments"


How to consume C# data contract class list in Ax 2012

$
0
0

Hello,

I had to make integration between 2 different Ax environment. I wrote an AIF service for one environment to read data and I wrote a C# class, I am getting data from AIF to C# by using data contract class and I am returning as data contract class list. When I added C# project to second Ax environment in Visual Studio C# Projects I can not consume the data which returning from C# project as data contract class list in x++. How can i consume C# list in X++?

I need to get data from this C# method in x++;

public List<ShipmentTableContract> getShipmentTable(string companyId)
{

    CallContext axCallContext = new CallContext();
    ShipmentIntegServiceClient axService = this.logonToService();
    axCallContext.Company = companyId;


    List<ShipmentTableContract> shipmentList = new List<ShipmentTableContract>();
    shipmentList = axService.getShipmentTable(axCallContext);

    return shipmentList;

}


Can anyone help?

Delivery date control NONE taking sales leadtime

$
0
0

How can I setup AX2012 in a way that the system will NOT take the leadtime of the item into account. I thought it was delivery date control NONE. But this setup still takes the sales leadtime that has been set up in the site specific or default order settings. When creating a sales order line with delivery date control set to NONE, the number of days in the sales lead time field is added to todays date and gives a requested ship date in the future. So there doesn't seem to be much of a difference between delivery date control "none" and "Sales lead time" ?

I would like NO delivery date control done whatsoever.

AX 2012 R2 and R3 Invoice approval journal sales tax over ride not working

$
0
0

Hello,

I tried over ride the sales tax from the invoice approval journal ->Sales tax form it allows to over ride but when we close the sales tax form and re-open it again shows the default sales tax values not the over ridden values.

Any guess do I need to make any setup?

However, When tax is over ridden in Invoice register and same voucher is fetched in Invoice approval journal it displays the Over ridden sales tax.

Thanks & Regards,

Venkatesh

RE: Combine several Purchase order to export 1 pdf file

$
0
0

With Standard AX, this is not possible for Confirmation.

But, for a same vendor, you can consolidate multiple POs to one invoice, which will result in one Pdf. (unfortunately not available for confirmation).

You can try customizing it. (Copy the consolidation function for invoices to confirmation)

Combine several Purchase order to export 1 pdf file

$
0
0

Hello All,

I would like to combine several Purchase Orders to export by 1 pdf file.

Recently I just export 1 Purchase order to 1 pdf file.

Could you please advise ?

Viewing all 175888 articles
Browse latest View live


Latest Images

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