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

RE: address and contact information purposes

$
0
0

Hi Sayed, thank you for your help. aside from the print management settings what other purposes does the purpose serve? is there a documentation about that?


RE: Update Sales Agreement AFTER Invoice Posting

$
0
0

if your safely invoiced level not locked , and your sales order released sales agreement , you can edit sales order line and create link with your agreement

RE: Re-refresh grid based on new selected value ?

$
0
0

Hi,

This can be achieved by writing code in the modified method of customer group field like whenever value is selected just pass it as a query range to the formdatasource query and call formdatasource.executequery(at end) to filter the data based on criteria. Can you share your code with us, so that we can check the missing part.

Re-refresh grid based on new selected value ?

$
0
0

Hello Everyone

first pic

i

Second pic

my problem in second pic when i change the customer group selection for the second time the grid save old records and show it with new selection

thank in advance.

RE: AX2012R3 Demo VM shuts down unexpectedly

$
0
0

Hi,

we are facing the same Shut down issue in our D365 Demo VM, which is with Windows Server 2016 Datacenter Edition of OS.

Please let me know if we can use the same Command mentioned here to extend the OS trial period.

Thanks

SGTPrasad

Demo VM shuts down unexpectedly

$
0
0

Hi, I have spun up an AX2012 R3 demo VM on Azure using LCS. After about 45 minutes the VM shuts down with no warning? I've tried using a new Azure subscription and the same thing happens making me believe there is something wrong with the VM. It seems to do this very consistently after 45 minutes. Has anybody else run into this? Thanks!

Post intercompany invoice with different amounts

$
0
0

Hi,

I have create a SO in company A, this So has create a PO in the Company B

I have post the the Sales Invoice in company A with an amoun (lts say 1.000), now I am trying to post the Vendor Inovice whose value is 1.100 because of taxes, but system is not allowing me to posted.

The system message is:

Customer invoice in company A = 1.000, purchase is updated with 1.100.

Is any parameter or setup to allow differences on orders and invoices?

Regards,

RE: Re-refresh grid based on new selected value ?

$
0
0

now you can find the code in the post

thank you


RE: Custom lookup in form datasource field

$
0
0

In my testings, the registerOverrideMethod on performFormLookup() worked... the first time. Second times and further, a fixed and non-closable form is shown; so I had to nevermind this way.

Finally I used control events approach suggested by Martin, but this is far from ideal.

I was wondering if Chain Of Commands (new from PU9) work over form methods, datasources, fields, and controls??

Custom lookup in form datasource field

$
0
0

Hi everybody.

I'm trying to create a simple lookup in a field of a datasource in a form.

The tables and related forms are BankAccountTable.

1.- Added new field BullCust (extends EDT CustAccount) and field group to new extension BankAccountTable.MyExtension.

2.- Created new form extension BankAccountTable.MyExtension and added new group to form.

This works OK. But now I want a simpler lookup. In Ax2012, I would override BankAccountTable\Datasources\BankAccountTable\BullCust\Lookup method, with something like this:

public void lookup(FormControl _formControl, str _filterStr)
    {
        Query                   query = new Query();
        QueryBuildDataSource    queryBuildDataSource;
        SysTableLookup          sysTableLookup;

        sysTableLookup = SysTableLookup::newParameters(tableNum(CustTable), _formControl);
        queryBuildDataSource = query.addDataSource(tableNum(CustTable));

        sysTableLookup.addLookupField(fieldNum(CustTable, AccountNum));
        sysTableLookup.addLookupField(fieldNum(CustTable, Party));
        sysTableLookup.addLookupField(fieldNum(CustTable, RecId));

        sysTableLookup.parmQuery(query);
        sysTableLookup.performFormLookup();
    }

In Ax7 this doesn't work anymore. Tried this approach (based on https://ievgensaxblog.wordpress.com/2016/05/01/ax-7-how-to-override-form-data-source-field-methods-without-overlaying/):

3.- Created class that manages lookup:

public class BullFormBankAccountTable_Handler
{
    public static BullFormBankAccountTable_Handler construct()
    {
        return new BullFormBankAccountTable_Handler();
    }

    public void BankAccountTable_BullCust_OnLookup(FormDataObject _formDataObject, FormControl _formControl, str _filterStr)
    {

        Query                   query = new Query();
        QueryBuildDataSource    queryBuildDataSource;
        SysTableLookup          sysTableLookup;

        sysTableLookup = SysTableLookup::newParameters(tableNum(CustTable), _formControl);
        queryBuildDataSource = query.addDataSource(tableNum(CustTable));

        sysTableLookup.addLookupField(fieldNum(CustTable, AccountNum));
        sysTableLookup.addLookupField(fieldNum(CustTable, Party));
        sysTableLookup.addLookupField(fieldNum(CustTable, RecId));

        sysTableLookup.parmQuery(query);
        sysTableLookup.performFormLookup();
    }

}

4.- Created class extension that subscribes and links apropiated events:

[ExtensionOf(formStr(BankAccountTable))]
final public class BullFormBankAccountTable_Extension
{
    [FormDataSourceEventHandler(formDataSourceStr(BankAccountTable, BankAccountTable), FormDataSourceEventType::Initialized)]
    public static void BankAccountTable_OnInitialized(FormDataSource _sender, FormDataSourceEventArgs _e)
    {
        var overrider = BullFormBankAccountTable_Handler::construct();

        _sender.object(fieldNum(BankAccountTable, BullCust)).registerOverrideMethod(methodStr(FormDataObject, lookup),
            methodStr(BullFormBankAccountTable_Handler, BankAccountTable_BullCust_OnLookup), overrider);
    }

}

And no result. I've debugged and BullFormBankAccountTable_Extension.BankAccountTable_OnInitialized() is properly called. But resulting lookup is the standard one, not the mine one.
Any ideas or example about how should this be performed?

(PS: version Ax7 Platform Update 9)

RE: Legal Entities and Currency in GL

$
0
0

Hi,

You can use the following job/code to find the accounting currency, reporting currency for a given legal entity.

static void LedgerCurrency(Args _args)
{
    Ledger  ledger;
    Currency reportCurr, accountCurr;
    CompanyInfo companyInfo;

    select * from ledger
        join companyInfo
        where companyInfo.RecId == ledger.PrimaryForLegalEntity
        && companyInfo.DataArea == curext()
        join accountCurr
        where accountCurr.CurrencyCode == ledger.AccountingCurrency
        join reportCurr
        where reportCurr.CurrencyCode == ledger.ReportingCurrency;

    info(strFmt("Accounting currency: %1, Report currency: %2, Legal Entity: %3",  ledger.AccountingCurrency, ledger.ReportingCurrency, ledger.Name));
}


(or)

CompanyInfo::standardCurrency() which makes a call to
Ledger::accountingCurrency(CompanyInfo::current());

RE: Re-refresh grid based on new selected value ?

RE: Show AX Label on SSRS report based on some condition

$
0
0

no,

try 1st one.If that is working fine what you are expecting then keep 1 in expression

If 1 is fail.

Try 2 expression.if 2nd expression satisfies.use 2nd only in expression

Show AX Label on SSRS report based on some condition

$
0
0

Hello,

 I am using AX label Id on page footer of SSRS report (SalesInvoice ) but I want to show another label Id in place of first one based on some condition ( based on some checkbox on table). is it possible ?

please suggest

RE: Post Intercompany Sales Order Invoice.

$
0
0

Did you get the answer? I am facing same issue


Post Intercompany Sales Order Invoice.

$
0
0

Hello,

I guess due to some modifications before, intercompany sales order invoice posting can't be performed.. the following error message is appearing : 


As I found out the problem is that "Sales Tax" and "Invoice amount" fields of Totals form are not passed to fill the PO's Vendor invoice header fields, that are custom fields.

Because of the error above I couldn't track all methods in debugger.

Can you guide me in which methods I should look and add code to pass values?

What I know is that fields from total form should be taken from displayFieldServer method of SalesTotals class.

Thanks.

RE: textBuffer.fromFile(filename, FileEncoding::UTF8); fails

textBuffer.fromFile(filename, FileEncoding::UTF8); fails

$
0
0

hi,

I am trying to read file  using Textbuffer class. If I indicate no encoding it works. But when I indicate FileEncoding::UTF8 it do nothing. Nothing is read. What's wrong?

TextBuffer                      textBuffer = new TextBuffer();

 ok = textBuffer.fromFile(filename, FileEncoding::UTF8);

it always returns false.

RE: Create worker through code

$
0
0

Hi xain,

Divide your task into two parts

1) create worker

2) import hcmPersonDeatils

if I will be in your shoes, I will love to rely on DIXF. Writing code is just  a matter of wasting time, if something is available as data entity. Have a look at entities, if you can use one or you may create a custom entity.

RE: Legal Entities and Currency in GL

$
0
0

Use "Ledger" table accounting currency Field.

Viewing all 175888 articles
Browse latest View live


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