Hi all I am trying to do same functionality as if choosing Project > Item Requirement > Posting > Picking List from X++ of course without having a dialog popping up. I have several SOs that is posted in batch from a class. I have found a couple of blogs that seems to be sharing the solution, but none of them is working for me. Right now I have to methods that I hoped would work from looking at blog solutions, but have not had any luck yet. private void postCreateAndPostJournal(SalesTable _salesTable) { SalesFormLetter_PickingList salesFormLetter; salesFormLetter = SalesFormLetter_PickingList::newPickingList(); salesFormLetter.updatePrinterSettingsFormLetter(pickingListPrinterSettings); salesFormLetter.createFromLines( true ); salesFormLetter.update( _salesTable, systemDateGet (), SalesUpdate::All, AccountOrder::None, NoYes::No, NoYes::No, NoYes::No, NoYes::No); } private void postCreateAndPostJournal_2(SalesTable _salesTable) { SalesFormLetter_PickingList salesFormLetter; Query query; QueryRun queryRun; QueryBuildDataSource qbds; query = new Query( QueryStr (SalesUpdate)); qbds = query.dataSourceTable( tableNum (SalesLine)); // Build query range to find those lines which needs to be posted. qbds.addRange( fieldNum (SalesLine, SalesStatus)).value(queryValue(SalesStatus::Backorder)); qbds.addRange( fieldNum (SalesLine,SalesId)).value(_salesTable.SalesId); qbds.addRange( fieldNum (SalesLine,SalesDeliverNow)).value('>0'); queryRun = new queryRun(query); salesFormLetter = SalesFormLetter_PickingList::newPickingList(); salesFormLetter.chooseLinesQuery(queryRun); salesFormLetter.specQty(SalesUpdate::DeliverNow); salesFormLetter.update(_salesTable); } If anyone has had experience or comments on this, it will be greatly appreciated. Thanks
↧
Forum Post: Posting project item requirement picking list in X++
↧
Forum Post: RE: Project Invoicing - charging items at cost
Hi Rahul, Please see my screenshots for replying to Ludwig. If the sales price is zero project module does not calculate any invoice for the customer and nothing shows up in the invoice proposal. When I change the line property and remove the chargeable attribute even if you populate the sales price the transaction is not picked up in the invoice proposal form. Thanks, Reza
↧
↧
Forum Post: AX 2012 R3 Async Server Deployment in DR Site
Hi, One of our AX 2012 R3 Customer wants to setup a DR site for their Production AX environment. They have already configured SQL 2014 Always On Availability Groups for AX Production Databases. Now customer wants to deploy DR for Async Server sot their Retail Stores can continue to sync in case of a disaster in Primary Datacenter. We have configured one Async Server in Primary Datacenter and one Async Server in DR Site. Both Async Servers are pointing to same messaging database. We have also configured Network Load Balancing in Single Server mode. Shops are configured to use NLB Virtual Name instead of a particular Server. Now there is only one confusion related to Working Folders and Data. AX 2012 R3 can't be configured with two different working folders simultaneously. How can we replicate Primary Async Server working folder data to DR Site Async Server and vice versa? Best, SH
↧
Forum Post: RE: Project Invoicing - charging items at cost
I am not sure why the link is not posted. I am trying again: technet.microsoft.com/.../hh227474.aspx
↧
Forum Post: RE: AP Invoice Balance - Reverse a reversal
Hi Andre, I looked at "Edit Closed Transactions / Closed transaction Editing" and it only shows the invoice that is settled with a check/payment. I can confirm, after reversing transaction "GLRV000183" (please see above screenshots) the balance on vendor card cleared and the Vendor aging and trial balance matched. I'm unable to replicate this scenario and we are unable to pinpoint why and what caused this issue at the first place. Regards, Mohsin Kamal
↧
↧
Forum Post: Code doesn't work
What can be wrong here? The error happens when new record is created. public void insert() { TableA tableA; TableB tableB; if (tableA.Avaliable == NoYesCombo::Yes) { if (tableB.Room == NoYesCombo::No) super(); } else error("Error!"); }
↧
Forum Post: RE: Three way matching with additional charges
Hi Georgek, Here some comments for step 3: If you are in the vendor invoice form you have two possibilities to add the charges: Option a): At the invoice lines Level, select financials - maintain charges and manually add the charge for your invoice line Option b): In the vendor invoice form - financials tab, select Maintain charges and add the charges for all of your PO lines. Once this has been done, select 'allocate charges' to allocate the charges that you entered to all of your PO lines automatically for example based on the net amount. If you are making the charge allocation in the PO invoice form, then you can directly post the invoice without having the confirm the PO again. (Provided that your matching settings allow for differences between ordered and invoiced amounts). Best regards, Ludwig
↧
Forum Post: RE: Code doesn't work
In the above code system is going to insert record only when your below condition is true if (tableA.Avaliable == NoYesCombo::Yes) and tableb.room = No , as you are calling super in if else loop. what is your business requirement ? do your validations before super() call.
↧
Forum Post: Frozen client - Release approved purchase requisition form
Hello, Recently we are facing performance issue with the form: Procurement and sourcing>Purchase requisitions>Release approved purchase requisitions. In our PROD environment it locks the client occasionally when simply traversing between the records (on different records, there is no rule). In such case only killing the client can help the user to work. I see that it is connected with infoboxes - when infoboxes are closed or turned off (in Client performance options) it works fine. We tried to debug but no luck, seems that it is something in the kernel. I also tried to use trace parser - but the same - I was not able to catch anything valuable. I checked the same in standard AX version (application 6.3.5000.133) with Contoso database and I faced similar issue - form was freezed. Version in our PROD: Dynamics AX 2012 kernel: 6.3.5000.2713 application: 6.3.2000.323 Best regards, Maciej
↧
↧
Forum Post: RE: Inventory Closing post item cost variance into WIP for invoiced transactions
Hi Peter Samir, Thank you for that screenprint. There must be something missing here (=>probably because of the filters) because the debit and credit amounts do not fully balance. Can you run a voucher inquiry in GL and show details of voucher CFM-10105 and voucher CFM170000127? Many thanks, Ludwig
↧
Blog Post: Additional settings for Management Reporter 2012 CU16 Hotfix 3815274
Hotfix 3815274 is an optional hotfix that can be applied to CU16. It can be loaded to revert a CU16 change with reporting tree rollups. The hotfix will allow children nodes to be rolled up to a parent that contains a Dimension filter. Before making any changes, be sure to have a backup of the MRServiceHost.settings.config file. You can then do the following: Open the Management Reporter Configuration Console. You will need to be logged in as a user that has the Administrator role in MR, when starting the console. Stop both the Process Service and the Application Service. Navigate to “C:\Program Files\Microsoft Dynamics ERP\Management Reporter\2.1\Server\Services\MRServiceHost.settings.config” Edit the config file in Notepad and then add the following line. This will make dimension filters on summary tree units be ignored (pre-CU15 functionality): This new line should be added before the Save your changes and close Notepad. In the Management Reporter Configuration Console, start the Process Service and the Application Service. Once the services have been restarted, you will need to re-generate your reports for the changes to be applied. Hotfix 3815274 can be downloaded here: https://mbs.microsoft.com/files/customer/MgmtReporter/Downloads/ProductReleases/ManagementReporter2012-CU16-Hotfix-3815274-en-us-update.exe
↧
Forum Post: RE: New Menu in MainMenu Extension don't works
Hi Sukrut Yes, in the application explorer appears de menu extensión, I open designer and the menureference is there. Adding, I delete the CountryRegionCode property from my new menu and it remains invisble Regards
↧
Forum Post: customer postal Address
hi expert, I have a strange situation , we have two customized table, salesTableArrivale(header table) ,SalesTableArrivaleLines (line table) which have relation with custTable. now we want to display customer postal address and customer name on customized report. the report designed from AOT Query, not RDP Base. so we just created display method on header level table(salesTableArrival) for Customer name: Display name customerName() { ; return CustTable::find(this.CustAccount).name(); } and for customer Address : display LogisticsAddressing partyAddress() { ; return CustTable::find(this.CustAccount).address(); } now the problem is that customer name is displaying on report while address for same customer doesn't display. please advise where is the problem in code.? thanks And Regards.
↧
↧
Forum Post: RE: AOT\Resources ..how to customize resources?
Thanks for the link https://organicsax.com/ ... I enabled PriceDiscServices and deployed them. Custom fields already exist in PriceDiscAdmTrans, PriceDiscADmTransfer tables and their table methods modified. PriceDiscAdmTransDoc_prieDIscTrans class also customized Still custom fields are not displayed in the excel. what else missing? Please guide.
↧
Forum Post: Multiple records to Morphx report
Hi all, I have a form, where when i click print, it passes the current record to the report and prints it. User will enter the details in the below form and hit print. I have coded some logic in print button clicked method. If the total num of containers is 2, when hitting print, two records will be created with the next number sequence(Customer label ID). How can i pass these two records to report. in my report fetch(), i did,labelPart = element.args().record(); i tried using queryRun, but how to get the next record of the current record. i am totally confused on the fetch logic. could someone please tell me how to write the logic in the fetch method.
↧
Forum Post: Fixed Asset
, Hello Dears, I have a point that i could not understand I have an item that I arranged the picking slip to fixed asset and i invoiced it to fixed asset , cost amount was 37.61 after recalc the inventory at the end of month , the cost amount is changed to 39.65 . how it can be ? this means that system calculates the transactions cost as the following (37.61+15.25 )/4= 13.22 so the transaction on 17.01.2017 is 3*13.22= 39.65 ?? this is correct ? Thanks
↧
Forum Post: Calculate sum of a display method.
I have a table A and a table B. In the Table A, there is a display method, and now what i want is to calculate the sum of that display method grouped by a field in the table B. Is that possible? How can i calculate sum of a display method ?
↧
↧
Forum Post: RE: Fixed Asset
You would have to compare your physical and financial transactions. There must have been a variance between the item receipt (physical) and vendor invoice (financial). The offset will be recalculated and adjusted when doing inventory recalculation.
↧
Forum Post: Form filter taking lot of time to filter values
Hi We have more than 100K records in checks form ( Cash and Bank Management >Common > Checks), when we to try to filter data on cleared date its taking more than 30 mins to filter. Its taking more than 3 hours to save records from form to excel. I created a AOT query which is equivalent to below SQL query. SELECT * FROM BankChequeTable(BankChequeTable) USING INDEX AccountChequeIdx WHERE ((ChequeStatus = 4)) OUTER JOIN ChequeNum, ClearedDate, AccountId FROM BankAccountTrans(BankAccountTrans) ON BankChequeTable.ChequeNum = BankAccountTrans.ChequeNum AND BankChequeTable.AccountID = BankAccountTrans.AccountId AND ((ClearedDate = {ts '1900-01-01 00:00:00.000'})) OUTER JOIN Location, Location, ValidFrom FROM LogisticsPostalAddress(Ref_LogisticsPostalAddress_RemittanceAddress_FK) ON BankChequeTable.RemittanceAddress = LogisticsPostalAddress.RecId OUTER JOIN Description FROM LogisticsLocation(Ref_LogisticsLocation_RemittanceAddress_FK_Location) ON LogisticsPostalAddress.Location = LogisticsLocation.RecId I exposed this query to excel add ins using DocumentDataSources, when I refresh the data in Excel Add in its timing out. I tried to create SSRS report with same query its also timing out. Would anybody suggest me how to handle this scenario with more than 100k records. Thanks
↧
Forum Post: RE: Code doesn't work
Which part of your code do you think is not working? If you get the error, that means your conditions before to insert the record was not met, thus you raise an exception.
↧