axapta

Hiding/showing report field based on values

十年热恋 提交于 2019-12-13 03:58:58
问题 this is a really simple query but I have a total mental block with it. I am modifying the Customer Account Statement report, and we have two Invoice ID Fields, I want to hide one if there is a value in the other. For example; If(custTrans.InvoiceID_1 != '') { return CustTrans.InvoiceID_1 } else return InvoiceID_2; I understand this would be carried out in Fetch Method, but I believe this is not the case, I have tried several ways of carrying out this change but have had no luck, any

Add subtotals and grand totals in Axapta 2009 report

百般思念 提交于 2019-12-13 03:49:15
问题 I have a report like this Classification Item Qty Weight (Kg) Value I want to add subtotal per Classification and grandtotal to both Weight and Value. How? 回答1: To add a subtotal for Classification you need to set the SumAll property of the corresponding field to Yes . However you would need to calculate grand totals of Weight and Value manually, you can display them in a separate ProgrammableSection by running element.execute(...); from the fetch() method. 来源: https://stackoverflow.com

Exporting labels to Excel from a project

醉酒当歌 提交于 2019-12-13 02:17:28
问题 I have a small problem - I have to list all the labels of several large shared projects, so labels that are missing a translation are identified updated. Now what I'm looking is something like Palle Agermark's label export job (http://www.agermark.com/2011/10/export-and-import-labels-for.html) but one that goes through one or more projects and pulls all the label IDs (regardless of label series) and values for three languages to Excel. Can this be done, any pointers? :) 回答1: This expands the

Dynamics AX 2012 RegConfig does not work

╄→尐↘猪︶ㄣ 提交于 2019-12-13 01:34:37
问题 I'm currently developping a failover service for an environment using Dynamics AX and 2 mirrored SQL servers, and I have some issues getting AX to work the way I expect it to. I have developped a service which does the following : - try to connect to the SQL servers instances - start Dynamics AX using the reachable SQL server. To do this, I have created 2 AX configuration files (.axc), each one pointing to a SQL server. But when I try to start the service, no mater which way I use, AX always

Change batch job user identity (run as)

偶尔善良 提交于 2019-12-12 17:15:57
问题 I have created a couple of batch jobs and associated tasks to them, they run fine. But one problem is that they run with the account I have used to create the jobs in the first place. I would like to be a system account instead of my personal account (which could be deactivated if I ever leave this place) I see nowhere to change this. Do I have to change it via an SQL update statement ? Thanks. 回答1: You can log-in as whatever service user you want and setup the batch jobs, or you can use

UTC datetime offset

亡梦爱人 提交于 2019-12-12 17:05:06
问题 I need to get timestamps from Axapta-tables in TSQL , without timezone and / or daylight-bias-offsets for each time, eg from table JMGABSENCECALENDAR . Taking this as initial approach, and regaring this, it works for current time. But reading data from the table referring to other timestamps, the solution provided in the second link doesn't get the information about daylight to the specified time. For example: I add an absence for today ( 2012-01-07 ). Now, using SSMS, reading this dataset

How to use RecId as a foreign key in a form

醉酒当歌 提交于 2019-12-12 16:26:08
问题 I have a table of items that each reference one other item in another table. We'll say the items are people, and the related items are favorite foods. Table A: Bob:1, Sally:1, Sue:3 Table B: 1:Apples, 2:Bananas, 3:Oranges The "people" are tied to their favorite "foods" by the food RecId, refererenced in the People table. I have a form/grid for editing people. Is there a way to cause the FoodRecId StringView in the grid to convert its value so the RecId numbers are not visible in the grid? I

Add custom text to AX 2012 drill-down links

為{幸葍}努か 提交于 2019-12-12 05:02:22
问题 I want to customize the standard drill-down functionality and add a text parameter to the drill-down URL. I will then parse and use the parameter in the SysStartUpCmdDrillDown or EventDrillDownPoller class like the solution provided by Jan B. Kjeldsen in this question. The standard drill-down link is dynamics:// Target /?DrillDown_ RecID / : dynamics://0/?DrillDown_5637230378/ In previous versions of AX it was possible to modify the RecId to custom text and parse the text once the client is

Dynamics AX 2009 X++ Page Counter Query

£可爱£侵袭症+ 提交于 2019-12-12 04:36:35
问题 wondering how to carry out this requirement if at all possible. I am modifying the Customer Account Statement morphx report, and the user has requested that we have a Page of Page, i.e. Page 1 of 10, Page 2 of 10 etc etc... What we need is for the report to reset the total pages after it fetches a new customer. So Customer 00001 might have a 3 page statement, which would be "Page 1 of 3" "Page 2 of 3" and "Page 3 of 3". Customer 00002 might only have a page statement so it will be "Page 1 of

Ax 2012 aif catching warnings

ε祈祈猫儿з 提交于 2019-12-12 04:33:56
问题 I created an AIF web service in ax. I have a vb.net application that calls the aif web service to insert data into the general journal. Now when an error occurs i catch it in vb and it returns the error which is fine. What i want to do is also catch the warning messages. Usually what happens , is if a line is getting entered and its a wrong dimension, it returns a warning message and an error. but i only get the error. So the question is how can i either catch and retrieve the warning message