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

RE: How to pass a form control to a delegate in AX 7 ?

$
0
0

You can see the type in debugger.

Where do you have such code? I thought you're talking about ProjInvoiceProposalDetail form, but I don't see it there.


RE: How to pass a form control to a delegate in AX 7 ?

$
0
0

Hi Martin,

This code is in ProjInvoiceTable form. The form method is fillInvoiceFormatCombo().

RE: How to pass a form control to a delegate in AX 7 ?

$
0
0

Thanks Martin. I have found it. It is FormComboBoxControl.

RE: How to pass a form control to a delegate in AX 7 ?

$
0
0

Not in my version (1611), but the fillInvoiceFormatCombo() calls ProjProposalJour::getInvoiceFormats() and it's there.

getInvoiceFormats() is public, therefore you can use a post-method event handler to add extra elements to the list it returns.

RE: How to pass a form control to a delegate in AX 7 ?

$
0
0

It seems that you're using an older version and upgrading to the current one would make your work easier. It's possible that it was intentionally refactored because somebody else already had a similar requirement.

How to pass a form control to a delegate?

$
0
0

Hi,

I have a customized code in a form method as follows in AX 2012:

projFundingSource_PSAInvoiceFormats.add(enum2str(PSAInvoiceFormats::DetailInvoice));
projFundingSource_PSAInvoiceFormats.add(enum2str(PSAInvoiceFormats::SummaryInvoice));
projFundingSource_PSAInvoiceFormats.add(enum2str(PSAInvoiceFormats::SummaryByCategory));
//Customized Start
ProjFundingSource_PSAInvoiceFormats.add(enum2str(PSAInvoiceFormats::ABC));
ProjFundingSource_PSAInvoiceFormats.add(enum2str(PSAInvoiceFormats::XYZ));

//Customized End

The same code needs to be replicated in AX 7 and there I want to use delegate for this. But I am not sure what is the type of "ProjFundingSource_PSAInvoiceFormats"  I should pass to the delegate. I have tried passing the FormControl as type, also tred PSAInvoiceFormats as type, but neither works. 

Can someone help on this?

I'm thinking of writing an AX7 kanban control

$
0
0

Hi,

This is a question for all you manufacturing experts out there. I'm thinking of writing an AX7 kanban control, and then put it up as a community addition (free). I don't know manufacturing at all. All I know is that in AX 2012 there's a kanban control for lean manufacturing, do we have the same control for AX7? The other alternative I've thought of is to write a schedule control like the one in outlook (day, work week, etc).

I'm also open for control ideas or suggestions. I've already built several controls for AX7. What makes my AX7 controls different is that I use the HTML5 Canvas instead of the DOM.

RE: How to prevent getting a new LedgerJournalTrans_Voucher after the posting Vendor Invoice from Invoice Approval Journal/Invoice Register?

$
0
0

Hi Leon,

I compared the system behavior in AX2012 R3 CU8 and CU12 and you are right, there is a change in the way how the number sequences are used.

Unfortunately, there seems no parameter available that allows determining how AX uses those vouchers.

I would thus suggest that you either contact the MS support to provide a fix for that or that you fix the issue yourself with the help of a developer.

Would be great if you could keep us updated here.

Many thanks and best regards,

Ludwig


reassigning purchase requisitions ignores signing limits, any remedy?

$
0
0

When the purchasing team reassigns a purchase requisition to another user for approval, then all signing limits are ignored, which we do not want to happen.  There is a check box in Sys Admin/workflow parameters that 'validate delegates have sufficient signing limits' but this is just for where there is an auto delegation in place.

Any ideas how to ensure when the 'reassign' button is clicked that only users with sufficient rights can be selected?  With many users its not practical to look up everyone's job and signing limit when a PR needs reassigning to manually check first.

thanks

AXF

RE: Item budget on Project module

$
0
0

Hi Mudassar Hassan,

There are two options how this can be achieved in my opinion:

Option 1:

In the Project module - on the project or in the parameters - select the parameter 'disallow budget overruns'. This will ensure that the total amount budgeted won't be exceeded.

Option 2:

Transfer the project budget to the budgeting module and setup the budget configuration control there. In the source document form of the Control configuration form you can select that a line item control shall be executed.

Best regards,

Ludwig

Item budget on Project module

$
0
0

Can I have item wise budget control on Purchase Orders in Project module? If yet any idea how can i configure this. Currently I can see only option is cost head wise

RE: where do i specify the excel location path and sheet when linking Management reporter to external excel sheet?

$
0
0

thanks for the above,

is it possible to connect to a file other than excel , for example an SQL view ?

regards

RE: Submitting Workflows automatically

Submitting Workflows automatically

$
0
0

hi,

We are working on the timesheet in AX 2012, I have written an import that takes a csv and creates timesheets for each of our weekly workers. Unfortunately this process creates 40 individual timesheet, that require submitting for approval and posting. I'm pretty sure I can automate the posting part of the procedure, I'd just like to know if anyone has done anything similar, or if any one has written code to submit workflows automatcically.

Thanks

Nick

RE: CheckbyDateAndVendAccount

$
0
0

First of all, let me format and refactor your code, which will make it easier to talk about it.

public boolean checkValuesByDate()
{
    AgreementLine agreementLine;

    while select agreementLine
        where agreementLine.ItemId == aLine.ItemId
           && agreementLine.Agreement != PurchAgreementHeader.RecId
    {
        if (PurchAgreementHeader.VendAccount == PurchAgreementHeader::find(aLine.Agreement).VendAccount)
        {
            if ( (aLine.EffectiveDate < agreementLine.EffectiveDate  && aLine.ExpirationDate < agreementLine.EffectiveDate)
              || (aLine.EffectiveDate > agreementLine.ExpirationDate && aLine.ExpirationDate > agreementLine.ExpirationDate))
            {
                return true;
            }
            else
            {
                error(strFmt("This contract already exists in this period with the vend account %1", purchAgreementHeader.VendAccount));
                return false;
            }
        }
    }
return true; }


RE: CheckbyDateAndVendAccount

$
0
0

The next step:

The first IF statement depends only on purchAgreementHeader and aLine, not on anything fetch by the select statement, so we can move it out of the loop. There is no reason evaluate it again and again and even run the while select at all if the condition isn't met.

public boolean checkValuesByDate()
{
    AgreementLine agreementLine;

    if (purchAgreementHeader.VendAccount != PurchAgreementHeader::find(aLine.Agreement).VendAccount)
    {
        return true;
    }

    while select agreementLine
        where agreementLine.ItemId == aLine.ItemId
           && agreementLine.Agreement != PurchAgreementHeader.RecId
    {
        if ( (aLine.EffectiveDate < agreementLine.EffectiveDate  && aLine.ExpirationDate < agreementLine.EffectiveDate)
          || (aLine.EffectiveDate > agreementLine.ExpirationDate && aLine.ExpirationDate > agreementLine.ExpirationDate))
        {
            return true;
        }
        else
        {
            error(strFmt("This contract already exists in this period with the vend account %1", purchAgreementHeader.VendAccount));
            return false;
        }
    }
    return true;
}


RE: where do i specify the excel location path and sheet when linking Management reporter to external excel sheet?

$
0
0

Hi Silvano,

That's not supported in Management Reporter. If you require data from other sources you can make use of Power-BI or the AX2012 cubes.

Best regards,

Ludwig

RE: Transfer journal: Quantity and amount must have the same sign

$
0
0

Found out what was causing this (in the end it was so simple too...).

The "Items" form has a tab with all the pricing information. There are 3 columns, one for purchase prices, cost prices and sales prices. The "Price unit" field should have "1,0" entered into the field but in the case of this specific item had "-1,0" in it in the cost price column. I assume this was either an oversight when creating the item or was caused by using a template to create the item.

After having removed the minus sign from the Price unit field and re-entering the transfer journal line the issue was resolved.

Transfer journal: Quantity and amount must have the same sign

$
0
0

Hi,

I'm trying to post a transfer journal for a single item. It will be transferred to a different warehouse and location. The batch number and serial number will remain the same. It is just a basic transfer journal which is commonly created within our company.

However when I validate (or post) the transfer journal I am getting the error "Quantity and amount must have the same sign". 

Naturally I googled some things but there don't seem to be any real solutions other than "call a consultant and have him fix it". Is there really no other way? What could even be causing this issue now?

Thanks in advance!

RE: Project intercompany invoice posting issue

$
0
0

Hi Ludwig,

Error was because of validation in project parameter i.e worker/project lookup, I removed that validation. after removing this validation i went to pending vendor invoice screen to post the invoice, i found it is moved to invoice history and matching detail form under inquiries and not available in pending vendor invoice screen.

If it is normal PO invoice we can clean that history and regenerate the invoice but for intercompany invoice there is no PO and if I clean the history i have no option to recover the intercompany invoice.

hope i am able to explain the issue.

Best Regards,

Sushil

Viewing all 175888 articles
Browse latest View live


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