Sunday, April 10, 2011

CheckBox on forms / Grids

Had a serious problem today with enum field on table, but a simple solution for it.

Issue:
Had created a Enum field on a table and Attached EDT NOYesId to it, expectations was to check/uncheck the fields on grid and it was not working, but when updated from backend its fine and through code also it's been updated as required. But its a simple enum field which has to Check / Uncheck based on user selection on form.

Solution:
Create a new enum field to the same table rename the old one and use this with initially created enum field. Now check/ uncheck on forms works well and good.

Reason:
Unknown

Time consumed:
2 Hrs

Tuesday, December 14, 2010

ProdComReport_BE

4.431.123.118 is the sample number that can be used as branch number for companyinfo table branch number to generate report ProdComReport_BE.

This will return validation true : considers last two characters for validation against all other characters excluding '.'

Tuesday, November 2, 2010

Object 'FormRun' could not be created


Issue & Cause:
When opening report from Ax, if you are coming across this error, the main reson might be args are not getting passed from Form or to formfrom classes.

Solution:

Check the main method , it should be using client keyword, since args were passed from client.

Example : Public client static void main(Args _args)

Tuesday, October 26, 2010

Best Practices

Type 1: XML documentation is not well-formed

If this message is encountered first thing you shoulod do is to check opening and closing braces of tags specified on top of class methods for Parm, Remarks.

Also make sure that there is no condition written with < or >= conditions which might also be the cause as the compiler often confuses tags with greater than less than conditional operators.Example 7 > m > 12 can be written as between 7 and 12.

Type 2: Data object class SalesSalesEInvoice_CustTable is missing method existsParty.

For these type of error you can just opne the classdeclaration of the class and there will be service class make a note of it.
Then go to Tools > Development Tools > Application Integration Framework > Update Document service.
Click on option regenrate data objects and click ok which will synchrnize schema with table or class service, so if there is any inclusion or deletion of table fields it will get updated accordingly.

Friday, September 24, 2010

Bi Installation Error

Error:
AOS services WSDL port accessible

The Application object Server WSDL port muts be accessible. The connection to the WSDL port is determined using the following URI: https//:/DynamicsAX/Services/MetadataService

Resolution:

AOS is not started. Please check whether AOs is started.