axapta

Is it possible to filter a datasource getting the condition from a calculated field?

三世轮回 提交于 2019-12-12 04:24:34
问题 I'm guessing if it is possible to filter a datasource using the result getted from a calculated field. For example, I need to filter my datasource (and, in consequence) my grid, using the condition: Field A - Field B > 0 . Is it possible ? 回答1: Create a range on a field from your table (like its RecId, it does not matter which field you chose) and use an expression in its value (described here http://www.axaptapedia.com/Expressions_in_query_ranges). 来源: https://stackoverflow.com/questions

Return a list to .NET Business Connector

丶灬走出姿态 提交于 2019-12-12 03:35:37
问题 Currently, I am using the following code: Axapta ax = new Axapta(); string tableName; ArrayList ax_cont = null; ax.Logon(null, null, null, null); try { ax_cont = (ArrayList)ax.CallStaticClassMethod("Code_Generator", "tableNames"); for (int i = 1; i <= ax_cont.Count; i++) { tableName = ax_cont[i].ToString(); tablesCB.Items.Add(tableName); } } catch { } But I'm getting a type conversion exception. What do I need to do in C# when a list is returned from ax dynamics as an AxpataObject ? 回答1: It

Ax Trace Parser Doesnt Show SQL Queries

女生的网名这么多〃 提交于 2019-12-12 03:22:57
问题 Configuring the tracing cockpit to show sql events, traceparser doesn't show the sql tab, how can I get the sql queries from trace parser? And one second question, It also shows only my queries,is there a way to make it show all queries running in ax? 回答1: See how to Install the Trace Parser. Also ensure you run it from the AOS server and that the correct event selection is provided. Also start AX with escalated privileges (Run as administrator). 来源: https://stackoverflow.com/questions

How to implement cXML in Dynamics Axapta 2012 for VendInvoice AIF service

为君一笑 提交于 2019-12-12 03:08:12
问题 We have a request to automatize the process of Vend Invoice creation in Dynamics axapta 2012. The request is to add a customization to be able to create vend invoices using Inbound port AccountsPayable from cXML's. Does anybody know whit what process to start? Do we have to create a intermediate service which will parse cXML file in XML and to call axapta vend invoice service? 回答1: If you have your schema defined in your cXML schema and you want to use the standard AIF schema, you'll have to

Dynamics AX 2012 - CommandButton insert and edit by form

萝らか妹 提交于 2019-12-12 03:01:03
问题 I've created form that should insert, edit and delete row by usig CommandButtons. Propierity is set in Command field to New, Edit record and delete. Generally it works, but its not safe, because it is editing rows without using CommandButton. I don't know how to make data Source or CommandButton propierities to edit record only with button, not automatically. 回答1: This is how standard AX 2012 forms behave, if created using form templates as described here. To create a form with a template,

Axapta 2009 X++ Reverse only selected PackingSlip

孤人 提交于 2019-12-12 01:10:45
问题 How to modify X++ AX so it will correctly pick the right packing (if I know the PackingslipId)? For example, I'm doing 3 times packing for an item with different quantity like this: 1. Qty=50 2. Qty=20 3. Qty=30 Then I want to reverse Packing #2 (Qty 20), currently AX will deduct Packing #1 and that is wrong and not what I wanted, because I what I did is reversing packing #2 and I do not want to deduct from any other packing slip at all. Currently there is two solution I know to reverse

Store Keystrokes in X++

只谈情不闲聊 提交于 2019-12-11 20:14:50
问题 Does anybody knows how to store keystroke as a string in X++? And also if I want to covert them to ASCII and vise-versa. And the below job does not shows the expected behaviour. public void textChange() { int i, j; int L = 12; int h = 4; int t = 54; str tmpStr; ; i = strLen(strKeep(seField.text(), '\n')); info(seField.text() + ' Lines: ' + int2str(i)); super(); if (i >= H) { error(strFmt("max lines = %1", h)); } } Actually i am trying to implement something like- in a textChange method of

Example for Dynamics AX 2012 QueryService through C# - Relations and JoinMode usage

≡放荡痞女 提交于 2019-12-11 19:42:04
问题 Trying to access AX 2012 QueryService through c# application and would like to get CustomerID and Customername fields only. Problem is, CustomerID is in CustTable and CustomerName is in DirPartyTable. Any help to article or code samples would be appreciated. Reference to QueryDataSourceMetadata to put join in these tables and get data. What are the options and when to use Relations and JoinMode? I searched in MSDN and it just lists the property names and methods and not much help in the form

convert SQL Query with Join to X++ Dynamics AX scripting

五迷三道 提交于 2019-12-11 19:09:15
问题 I have a SQL query that is not that simple as it contains Join SELECT * FROM table1 a inner join table2 b on a.field1 = b.field1 inner join table3 c on a.field2 = c.field2 inner join table4 d on c.field3 = d.field3 inner join table5 e on c.field4 = e.field4 WHERE a.location = 'asia' AND b.modType = 1 and c.discount = 'sample' and d.name = 'hello' and e.name in ('one', 'two', 'three') I like to convert it to X++ scripting, here's what I did while select forUpdate table1 join table2 where

How do I remove diacritics from a string in dynamics ax

你。 提交于 2019-12-11 16:28:04
问题 I'm trying to convert some strings, I'd like to be able to remove diacritics from strinf. (Exemple : éùèà would become euea) i have try this : static str AALRemoveDiacritics( System.String input ) { int i; System.Text.NormalizationForm FormD; str normalizedString = input.Normalize(FormD); System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder(); for (i = 0; i < strLen(normalizedString); i++) { System.Char c = normalizedString[i]; if (CharUnicodeInfo.GetUnicodeCategory(c) !=