axapta

How to get RecId selected from lookup method?

拥有回忆 提交于 2019-12-25 13:18:22
问题 I want to get the RecId selected from lookup method? In lookup method in StringEditLookup_ZipCode public void lookup() { Query query = new Query(); QueryBuildDataSource queryBuildDataSource; QueryBuildRange queryBuildRange; SysTableLookup sysTableLookup = SysTableLookup::newParameters(tableNum(LogisticsAddressZipCode), this); sysTableLookup.addLookupField(fieldNum(LogisticsAddressZipCode, ZipCode)); sysTableLookup.addLookupField(fieldNum(LogisticsAddressZipCode, City)); sysTableLookup

How to get RecId selected from lookup method?

回眸只為那壹抹淺笑 提交于 2019-12-25 13:18:13
问题 I want to get the RecId selected from lookup method? In lookup method in StringEditLookup_ZipCode public void lookup() { Query query = new Query(); QueryBuildDataSource queryBuildDataSource; QueryBuildRange queryBuildRange; SysTableLookup sysTableLookup = SysTableLookup::newParameters(tableNum(LogisticsAddressZipCode), this); sysTableLookup.addLookupField(fieldNum(LogisticsAddressZipCode, ZipCode)); sysTableLookup.addLookupField(fieldNum(LogisticsAddressZipCode, City)); sysTableLookup

Increasing the length of the Description field in movement journal in AX 2009

旧时模样 提交于 2019-12-25 07:24:12
问题 How can we increase the field length of Description field up to 200 characters available in Movement Journal in Inventory module in AX 2009? The field is InventJournalTable_DescriptionInventJournalTable(InventJournalTable).Description 回答1: Create a new Extended Data Type of type String. Set the StringSize property of your data type to 200. Find the JournalDescription Extended Data Type in the AOT. Change the Extends property of JournalDescription to the name of your new data type. Synchronize

How to refresh/Synch View based on a Query with dynamic range?

和自甴很熟 提交于 2019-12-25 05:36:14
问题 I have a simple View with a Query , my custom Query has a Dynamically Range . In class SysQueryRangeUtil I have insered a my custom public static method and copy it in my Custom Query. This range, work well. But I have a problem, when the range condition change, if I want to see the new view(with new selected record) I have to Synch, in AOT my View. But this operation can't do a simple SystemUser. There is a way to use a dynamic range in a View and not constantly synchronize ? My dynamic

How to use a DataSource based on condition being true?

点点圈 提交于 2019-12-25 05:22:32
问题 I'm currently trying to build a query that uses a datasource based on a particular condition being true. Say "if value == 1, use datasource 1. If value == 2, use datasource 2. These tables are already a couple of levels into my datasources. Haven't been able to find info on this anywhere! 回答1: You did not specify the tables and relations, but using these datasources as an example: CustTable CustTrans (JoinMode: ExistsJoin) CustInvoiceJour (JoinMode: ExistsJoin) Suppose you want to exists join

Dynamics AX 2009 “user group permission”

血红的双手。 提交于 2019-12-25 04:05:45
问题 I would like to prepare very fast "user group permission" but this is very difficult for example If I would like to add access for Administration ->Location View this software give only permission for parent but not for all nodes in this parent. What should I do to fix this problem? If I will click Dimension sets I need make permission to all child in this parent. Do you know what I have to do? public void MCOVgrantFullAccess(SecurityKeySet _startSecurityKeySet = null) { //klasa systemowa

Voucher number sequence

无人久伴 提交于 2019-12-25 03:28:07
问题 I want to update the existing number sequence of voucher to new fiscal year number sequence that shows the month in the sequence, I know how to make a number sequence with fiscal year but I am not able to do it for voucher number as I am not able to find voucher edt in the loadModule method inside NumberSeqModuleLedger class. Can any body guide me where to find the edt in loadModule() ? In which class can I add fiscalyear parameter type to it? 回答1: Voucher number sequence codes are set up in

AOT Query relation OR case

≡放荡痞女 提交于 2019-12-25 03:16:37
问题 For example I have the following x++ query. Select EcoResproduct join tableX where EcoResproduct.RecId == tableX.Product || EcoResproduct.RecId == tableX.DistinctProductVariant; Is that possible to do the same thing through AOT query without using a union query or adding two times the same datasource and without using QueryBuildDataSource object and X++ at all . Thanks in advance PS: I made my question more clear. 回答1: Initial incorrect answer: Is that possible to do the same thing through an

LedgerJournalEngine and LedgerJournalCheckPost

拥有回忆 提交于 2019-12-25 02:15:14
问题 I am creating and posting Dynamics AX Ledger Journals from C#. I want to use the two helper classes the come with AX, LedgerJournalEngine and LedgerJournalCheckPost, to validate the journals I create. My questions are: 1.) How do you get a list of errors -> voucher from either of these classes or some other class? 2.) Can you simulate a post inside of a AX transaction and roll it back? 2-a.) If you roll back a posting in a transaction will AX be smart enough to reuse the voucher numbers that

How to generate PDF file using X++?

送分小仙女□ 提交于 2019-12-24 19:33:50
问题 Can I create simple pdf file in x++? In this pdf I would like to have for example select from one table or simple static text. 回答1: MorphX reports can be saved to PDF by using the proper print settings beforehand. SSRS reports can do this also using similar tricks. Another way is to generate RTF, then let Word do the PDF creation. Silly, but maybe the PDF is smaller or better looking. It is possible, but not simple, to generate PDF directly by using third party .Net components. 回答2: Some