Dear Vilmos Kintera,
Can you explain more, I am getting this error "error executing code: FormBuildGroupControl object does not have method 'scrollbars'."
Dear Vilmos Kintera,
Can you explain more, I am getting this error "error executing code: FormBuildGroupControl object does not have method 'scrollbars'."
Hi,
QueryBuildDataSource is a class that is used either when we try to construct a query using AOT query classes (or) to retreive a query datasource from a AOT query. SysTableLookup is a class that helps to construct lookup forms with required fields as lookup(from the table used during instantiation).
Eg: SysTableLookup sysTableLookup =
sysTableLookup::newParameters(tableNum(VendTable), this);
sysTableLookup.addLookupField(fieldnum()); // To add the field from the table
If we need to have lookup based on business logic (or) on tables joins, then we construct a query and pass to systablelookup as a parameter using the statement systablelookup.parmQuery(query).
Refer below link:
(SysTableLookup class)
www.axaptapedia.com/SysTableLookup_class
(Query class)
Hello everyone
can anyone help me to add specific time range to a query
in code there is queryBuildRange i need to add time range Ex. from 1/9/2017 to 1/10/2017
i added this line but nothing happened
queryBuildRange.value(SysQuery::range(01/09/2017 , 03/09/2017));
public void lookup(FormControl _formControl, str _filterStr) { Query query; // used to build query dinamiclly SysTableLookup sysTableLookup; QueryBuildDataSource queryBuildDataSource; QueryBuildRange queryBuildRange; // Instantiate sysTableLookup object using table which will provide the visible fields sysTableLookup = SysTableLookup::newParameters(tableNum(Table3),_formControl); // Like create new query in OAT query = new Query(); //data source is added like OAT queryBuildDataSource = query.addDataSource(tableNum(Table3)); queryBuildRange=queryBuildDataSource.addRange(fieldNum(Table3,StartDate)); queryBuildRange. // Specify the fields to show in the form. In this case we have chosen Name sysTableLookup.addLookupfield(fieldNum(Table3,id)); sysTableLookup.addLookupfield(fieldNum(Table3,Name)); // Set the query to be used by the lookup form sysTableLookup.parmQuery(query); // Perform the lookup sysTableLookup.performFormLookup(); }
ax2012 R3
thanks
In the product receipt process select the parameter registered quantity, then the lines will be set to the quantity registered of 1. Receive it.
Hi Ludwig
I have a similar issue as to what B.A had. The PO order status says “Open order” yet the Quality order status says “Closed quality order”. I do not know too much about the PO side of things but apparently the Receipts list was posted with X amount of quantity. The PO was than released with a quantity amount less than what was stated on the Receipts list but was than GRN with the same quantity amount as the Receipts list. Because of this the PO doesn't want to be invoiced.
Do you perhaps have a solution for me to solve this issue?
Please note that i'm using AX 4.0
Good day.
i have a problem with a Purchase Order.
i am not sure what the user has done. there is an invoice, but the Purchase Order and Line are still Open Order status. Under 'Receive' i have a Product receipt journal but no Receipt list. Both Posting receipt list and Product receipt are still open to generate. when i look at teh Product Receipt List the 'Ordered' and 'Received' qty are both the same.
i do not know too much about the Purchase order side of things. How is it possible to generate the invoice without completing the posting receipt list and the product receipt?
how can i get this Purchase order to be invoiced?
any help with this would be appreciated.
Hi, Terry's steps look good to me. It would also be logical to count all inventory out, and close inventory, as you will probably be counting into a new warehouse with the "Warehouse management processes" flag activated. Probably best done as an an end-of-month process.
Dear Experts,
I want to change my existing items to WMS items. As we know WMS items have their own setup which mainly includes Reservation hierarchy and Advanced warehouse management inventory dimension.
Can anyone suggest how it is possible to convert an existing item to advanced warehouse management item?
Best Regards,
public str dispatchEmailWithError() { str errorMessege = ""; print("Email Dispatching Satrted. Subject:"); SsmGmail.SendMessage(recipientsEmail,ccEmail,emailSubject,emailBody,emailAttachments); print("Email Dispatched"); return errorMessege; }
the Error is :
Argument '5' is incompatible with the required type. \Classes\CustomEmailDispatcher\dispatchEmailWithError 7 dispatchEmailWithError Err:11
Regards.
If there is any MS partner representative in this community, please response to my question.
Hi,
I have a third party application which connects with AX through AIF. The end user enter their domain credentials in the App and then are able to login.
Please let me know based on this do we have to follow any MS pricing.
Thanks
Thanks, Vilmos.
The links where helpful and it is nice to know that it seems possible to get this setup to work.
However, I would still like to know if anyone actually is using AX 4 in this type of setup in a production environment with multiple users.
Best regards
Kim Nowak
Hi,
ControlNum refers to specific control within another container control (such as tab, formgroup, etc.) and if you just copy-paste the code, it might point to the wrong control. Thus it is better to iterate through all form controls, and check what are they, since only specific form control types have the scrollbars method available on them.
So you need to find the correct one.
Hi,
Do you have exception handling for CLR error and deadlock in your batch job(class), If not please include it(as below) to capture the error during the batch process.
Also, please check whether AOS user account has sufficient access rights to the folder and UNC path(like \\servername\Folder) is used to fetch the file.
System.Exception ex; catch (Exception::CLRError) { ex = ClrInterop::getLastException(); if (ex != null) { ex = ex.get_InnerException(); if (ex != null) { error(strFmt("%1", ex.ToString())); } } retry; } catch (Exception::Deadlock) { retry; }
Dear all AX Experts,
i'm using dynamics ax 2012 R3 CU9, i make a new batch job that will upload a file from my directory to the AP invoice journal, i have make this batch job for 6months, all going right until last week, last week AX automatically make new batch jobs like journalizing product receipts, and 1 other batch job, the batch jobs automatically executing when sunday and when monday i want to use my batch job (upload AP Invoice journal), the batch job can't run because there are 2 batch jobs is executing from sunday. i have restart my AOS service and my server but the batch jobs still executing, and i decide to delete that batch job using SQL, now there are no batch jobs (journalizing product receipts and other), but when i executing my batch job (uploading AP Invoice journal), the batch job never ending, what should i do? any sugesstion?
Hi,
Can you try posting counting journal by using the sample code specified below, just to make sure something is not missing in your code. If same error happens, then there is some problem/missing setup in your item inventory.
(Dynamics AX 2012 – How to do an Item Counting Journal using X++)
www.andesoft.net/dynamics-ax-2012-item-counting-journal-using-x
Hi ,
Inspiring from the inventcountcreate class I did a code that set to zero all quantities in my stocks. So this means that I set to zero my fields in inventjournal trans like this:
inventJournalTrans.Counted = 0;
inventJournalTrans.Qty = -InventJournalTrans.InventOnHand;
inventJournalTrans.CostAmount = 0;
inventJournalTrans.JournalId =JournalId;
inventJournalTrans.ItemId =_inventSum.ItemId;
The data input check works fine (Journal is OK) but when I try to post the journal there is an error (A quantity cannot be picked)