Quantcast
Channel: Technical Tutorials on MS Dynamics Axapta 2012,D365 FnO
Viewing all 219 articles
Browse latest View live

Find position of item in container in ax 2012

$
0
0
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;


Microsoft Dynamics AX 2012 R3 CU12 is Available

$
0
0

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.

How to Deploy SSRS Report without Admin right From Command prompt

$
0
0
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.






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

$
0
0
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();
}

Basic technical fundamental in Ax 2012 online training clip

$
0
0
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.



Form development from Basic level Microsoft dynamics ax 2012 R3

$
0
0
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.

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

$
0
0
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 dimension lookup method is as below.

 private void divisionCodeLookup(FormStringControl divisionCodeLookup)  
{
#define.DimensionName("Division")
Query query;
QueryBuildDataSource qbds,qbds1;
SysTableLookup sysTableLookup;
DimensionAttribute dimAttr;
;
dimAttr = DimensionAttribute::findByName(#DimensionName);
sysTableLookup = SysTableLookup::newParameters(tablenum(DimensionFinancialTag),divisionCodeLookup);
sysTableLookup.addLookupfield(fieldnum(DimensionFinancialTag, Value));
sysTableLookup.addLookupfield(fieldNum(DimensionFinancialTag,Description));
query = new Query();
qbds = query.addDataSource(tableNum(DimensionFinancialTag));
qbds1 = qbds.addDataSource(tableNum(DimensionAttributeDirCategory));
qbds1.addLink(fieldNum(DimensionFinancialTag,FinancialTagCategory),fieldnum(DimensionAttributeDirCategory,RecId));
qbds1.addRange(fieldNum(DimensionAttributeDirCategory, DimensionAttribute)).value(queryvalue(dimAttr.recid));
sysTableLookup.parmQuery(query);
sysTableLookup.parmUseLookupValue(False);
sysTableLookup.performFormLookup();
}

You can call lookup method on post build method in UI Builder class.

  dialogregion.registerOverrideMethod(methodStr(FormStringControl, lookup), methodStr(GOD_CustomerOutstandingUIBuilder,regionCodeLookup), this);  
dialogbranch.registerOverrideMethod(methodStr(FormStringControl, lookup), methodStr(GOD_CustomerOutstandingUIBuilder,branchCodeLookup), this);

You need to call contract object in following method.

 public void getFromDialog()  
{
contract = this.dataContractObject();
super();
}


AX 2012 R3 Error for New Installation

$
0
0
Getting below error even Initialization Checklist  is completed and success.

"Enter the unique sequence number in the System parameters form that is opened from the Checklist"

Solution.

Go to SystemParameters table

Go to method validateThaiSoftwareSeqNo where you can find the field value should not be empty. 

\Data Dictionary\Tables\SystemParameters\Methods\validateThaiSoftwareSeqNo

I hope you have the solution for that error.

Steps to Restore EP Website menus in AX 2012

$
0
0
How to restore Enterprise Price menu if its missing or  In case of database restore and you are not abe to see your EP Page.

Then you need to Go to Home page on web menu ->Refresh data and dictionary

If  menu is not visible then check label on menu item put label if missing on going to AOT Web node.

Second step is Deploy user control if its customized one to particular module like sales or purchase etc or place where you want.

Third step is you can deploy page definition

Four step you need to check Manage content deploy for Web node in AOT

You also  need to import url page.

Design user control,Add lookup, Selected Index change code in Ax 2012

$
0
0
Design user control

To design user control you need to open visual studio then you can create new user control on form designer you can do below steps.
add data source-add formid-add axsection=add grid or group

Then Add lookup. 
Add dataset
add control for lookup and set dataset and fields in 
Add range on init method or any other method to get range value filter
Autopostback to true property on field to save data immediately.

selectedindexchangeevent code

 this.AxDataSource1.GetDataSet().DataSetRun.AxaptaObjectAdapter.Call("datasourceRefresh",DropDownList1.SelectedItem.Text);  

Advance Warehouse management (Mobile) Ax 2012

Top Ideas for Things to Develop in Axapta

$
0
0
Top Ideas for Things if You will  Develop in Axapta.

Single user License
You can try single instance access to Ax .As per this task user should not able to open more than on ax instance or client except admin user so all user restricted to open multiple session of ax.

Screen user login and password
Required login credential to open ax instance . Each user has own credential. In standard way user able to open ax without login screen.
Workflow Pending Aging
You can Show user details on which workflow is pending to approve. How much time its pending is treated as aging. This task done on form.

Workflow actions email alerts
All Pending Workflow with user need to send email to particular user as per provided template  format every day and Cancelled, Stopped, Unrecoverable workflow status should be send to email to admin user. Image in email header and signature included in email template you can try in code. Manual option also You can provide to send mail to user,usergroup and all users.
Above points if you apply for your customer then it will be very helpful .

What are the Tools to analyse dumps Crash of Ax ,LCS

What are the standard Cubes in Microsoft Dynamics Ax 2012 R3

$
0
0
Following Cubes are available as standard Cube in Microsoft Dynamics Ax 2012 R3

1Accounts payable cube (VendCube)
2Accounts receivable cube (CustCube)
3Budget control cube (BudgetControlCube)
4Budget plan cube (BudgetPlanCube)
5Demand forecast accuracy cube (ReqDemPlanAccuracyCube)
6Demand forecast cube (ReqDemandPlanningCube)
7Environmental sustainability cube (EMSCube)
8Expense management cube (TrvCube)
9General ledger cube (LedgerCube)
10Human resources cube (HumanResourceCube)
11Inventory value cube (InventValueCube)
12Payroll cube (PayrollCube)
13Production cube (ProdCube)
14Profit tax totals cube (RTax25Registers)
15Project accounting cube (ProjCube)
16Purchase cube (PurchCube)
17Retail cube (RetailCube)
18Sales and marketing cube (smmSalesMarketingCube)
19Sales cube (SalesCube)
20Workflow cube (WorkflowCube)

How to Update Project Status by Code in Ax 2012

$
0
0
To Update Project Status by Code in Ax 2012 You can get help from below code sample. In this code if Project status is created then it will update to In process stage.

Same way you can try as per your requirement.

 Projtable projTable;  
int cnt;
ttsBegin;
while select forUpdate projtable where projTable.Status==ProjStatus::Created
{
cnt++;
projtable.Status=ProjStatus::InProcess;
     projtable.update(); 
}
ttsCommit;
info(strFmt("%1 Project Updated",cnt));


Steps to open AIF ports in case of major issue in Ax 2012

$
0
0
These are the Steps to open or enable all AIF port in case of major issue in Ax 2012 like Workflow issues, Business logic execution etc.

1) Stop all relevant AOS server(s)

2) On your relevant AOS server(s) navigate to the following folder (default) using Windows Explorer:
C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\XppIL

3) Make sure you create a safe copy of the XPPIL folder content to another new local folder on the AOS computer (example: C:\XPPIL_Backup)

4) Now delete all folders and files inside the folder “C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\XppIL” but keep the folder “XPPIL” itself.

5) Start all AOS server(s)

6) Rull full dos based compilation using axutil. (axbuild.exe xppcompileall /aos=01 /altbin="C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin" /workers=4)

7) Run a full CIL creation from AOT. This will create a fresh rebuild of all files/ folders inside the XPPIL folder

8) Open Ax client configuration utility and Refresh the WCF configuration.

I hope after apply above steps then problem will get resolved.

Resolved :The Web Part page was not created correctly on the site

$
0
0
Problem:
While deploying EP form getting business connector error.
Error  “The Web Part page  was not created correctly on the site. No .NET Business Connector session could be found.”
. No .NET Business Connector session could be found

 deploying EP form


Solution :

You can  try this and check.

1. Uncheck the Anonymous user of "IIS \ Directory Security \ Authentication and access control "
2. Add the BCProxy user to the local Administration group on the IIS server.
3. Then restart IIS and AX.

How to get Reserved Quantity for Sales Line in Ax 2012

$
0
0
If you want to get total of reserved quantity Sales line wise then you can do the following way. First you need to create view as per below picture.

Inventtrans view

Then you can try below code in job to get reserved quantity for sales line item.


  GOD_InventTransView GOD_InventTransView;  
select sum(Qty) from GOD_InventTransView where GOD_InventTransView.ReferenceId==_salesline1.SalesId && GOD_InventTransView.ItemId==_salesline1.ItemId
&& GOD_InventTransView.InventTransId==_salesline1.InventTransId
&& GOD_InventTransView.StatusIssue == StatusIssue::ReservPhysical;

Code for Resubmit workflow after rejection in Ax 2012

$
0
0
I am sharing here code Code for Resubmit workflow after rejection in Ax 2012. You need to write code in resubmit action manager class i.e. WFApprovalWFResubmitActionMgr.

Code snippets is as below.

 Resubmit workflow after rejection in Ax 2012




































At the end of the code you need to call _args.caller().updateWorkflowControls(); to update workflow control.

In main method you need to call this method to work resubmitting functionality of workflow. 

Step to create simple view of multiple tables in Ax 2012

$
0
0
This video clip will show you how to Create Simple View In Ax 2012 using multiple tables. In this clip I shown  example of table inventtrans and Inventtransorigin .

Mostly people face how to get all inventory transaction order wise like sales order,purchase order,production order etc .

Then you can follow steps shown in clip to get all details.


Viewing all 219 articles
Browse latest View live