Skip to main content

Posts

Add Lookup Method for Dimension fields for UI Builder class in Axapta SSRS

To Add Lookup Method for Dimension fields like division ,branch etc using UI Builder class in Axapta SSRS Report you can refer below code. #define.DimensionName("Branch") Query query; QueryBuildDataSource qbds,qbds1; SysTableLookup sysTableLookup; DimensionAttribute dimAttr; ; dimAttr = DimensionAttribute::findByName(#DimensionName); sysTableLookup = SysTableLookup::newParameters(tablenum(OMOperatingUnit),branchCodeLookup); sysTableLookup.addLookupfield(fieldnum(OMOperatingUnit, OmoperatingunitNumber)); sysTableLookup.addLookupfield(fieldNum(OMOperatingUnit,Name)); query = new Query(); qbds = query.addDataSource(tableNum(OMOperatingUnit)); qbds.addRange(fieldNum(OMOperatingUnit, OMOperatingUnitType)).value(queryvalue(OMOperatingUnitType::OMBusinessUnit)); sysTableLookup.parmQuery(query); sysTableLookup.parmUseLookupValue(False); sysTableLookup.performFormLookup(); Division dime

Form development from Basic level Microsoft dynamics ax 2012 R3

This post include Form Design and development using primary key and foreign key table relation in Microsoft Dynamics Axapta. 2012 r3 Module. How to Add primary key in table first you need to create unique key field let id is key field name for your table. Add index with allow duplicate no property to make it unique key . then add relation in tables(foreign key and primary key) as shown in below video clip. Create another table for foreign key relation then add normal relation in second table. To show data in form Add table to form datasource and set required properties in data source as shown in clip. You seen how its works table data on form . Thanks for viewing and watching if you like it please subscribe to get next video update and learning.

Basic technical fundamental in Ax 2012 online training clip

Basic technical  Demo for Ax form development and table creation 1. How to create project Go to AOT CTR+D->Project->Shared project->create project then rename it using properties. 2. How to create table Go to table node and create table as shown in below clip. 3. How to create form In Ax Go to form node and create formas shown in below clip. 4. Add form to menu item as below clip Thanks for viewing this if you like then please subscribe on YouTube . On next post will show form with related tables.

How to pass default value to parameter using SSRS Class in axapta

To pass default value to parameter using SSRS Class in axapta 2012 you can override method prePromptModifyContract in controller class then initialize contract class variable then you can pass value using contract class method calling. Below is example sample for syntax is mentioned. protected void prePromptModifyContract() { Contract=this.parmReportContract().parmRdpContract() ; Contract.parmDetails(DiscCurrency::Currency); super(); }

How to Deploy SSRS Report without Admin right From Command prompt

You may face below error if you don't have admin right from ax report  deployment. An error occurred : The network path was not found. 1.If User Account Control (UAC) is enabled on the machine, close the application, right-click the application, and then click Run as administrator. 2. The deployment was aborted. You do not have privileges to deploy to server: abcd. For deployment, you must have administrative rights to the SQL Server Reporting Services (SSRS) server. Contact your administrator to deploy. To Deploy SSRS Report without Admin right . You can follow below steps. For single report deployment. Open Dynamics Management shell and write deployment command like below. Publish-axreport -reportname vend –SkipReportServerAdminCheck To Deploy all report  Try below code Publish-AXReport –ReportName * -SkipReportServerAdminCheck Same you can see practical on below youtube video clip.

Microsoft Dynamics AX 2012 R3 CU12 is Available

Microsoft Dynamics AX 2012 R3 CU12 is now available. Cumulative Update 12 build number or version is  6.3.5000.138. You can check this by clicking on about dynamics ax button. Microsoft official KB document  Number is KB3199741. To learn more about known issues in CU 12, You need to log int o LCS by using Customer Source or PartnerSource account then search with CU12 Known issue. You can also find on Microsoft partner source for pdf document WhatsNewinAX2012R3CU12.pdf to get details that whats new in CU12.

Find position of item in container in ax 2012

To find position of item in container in ax 2012 you can get idea from below code. Confind method used to get position details of items for container. container c ; int i; int j; ; c=conPoke(c,1,"item1"); c=conPoke(c,2,"item2"); c=conPoke(c,3,"item3"); i = conFind(c, "item2"); j = conFind(c, "item3"); print "Position of 'item2' in container is " + int2Str(i); print "Position of 'item4' in container is " + int2Str(j); pause;

Workflow infrastructure configuration wizard in Ax 2012

Workflow infrastructure configuration wizard. 1. Click Area Page node: System administration -> Setup -> Workflow -> Workflow infrastructure configuration. 2. Click the Next > button. 3. Switch to the Configure the workflow message processing batch job tab on the Workflow infrastructure configuration wizard form. 4. Click the Next > button. 5. Switch to the Configure the workflow due date processing batch job tab on the Workflow infrastructure configuration wizard form. 6. Click the Next > button. 7. Switch to the Configure the line-item workflow notifications batch job tab on the Workflow infrastructure configuration wizard form. 8. Change Repeat job after the specified number of minutes from '30' to '1'. 9. Click the Next > button. 10. Switch to the Completing the workflow infrastructure configuration wizard tab on the Workflow infrastructure configuration wizard form. 11. Click the Finish button. 12. Close the Wo

Remove spaces from Text in Ax 2012

To Remove spaces from Text you can get idea from below code sample. Here we are update name fields which include spaces on right and left side . Dirpartytable Dirpartytable; Name Name; ; while select forUpdate Dirpartytable { ttsBegin; Name= strRTrim(strLTrim(Dirpartytable.Name)); Dirpartytable.Name = Name; Dirpartytable.doUpdate(); ttsCommit; } info("Done");

Cascade delete option in Ax 2012

Cascade delete option in Ax 2012 . You can apply as below image for your tables.

Update and Update_RecordSet Code sample in Ax 2012

This is Update and Update_RecordSet Code sample. Result of both will be same . TestTable TestTable; //Update_Recordset update_recordset TestTable setting Name ="New Enterprises" where TestTable.Accountnum =="uS-027"; //Update ttsBegin; while select forupdate TestTable where TestTable.Accountnum =="uS-027" { TestTable.Name ="New Enterprises"; TestTable.update(); } ttsCommit; info("OK");

List of Companies working in NAV and CRM in India