Skip to main content

Posts

Set an Application Object Server and client instance to enable printing in MSD Axapta

Set an Application Object Server instance to enable printing 1. Open the Server Configuration utility on following path Start > Administrative Tools > Microsoft Dynamics AX Server Configuration. 2. On the Application Object Server tab, click Connect to printers on this server, and then click OK. Once this option enable then ax service will restart automatically then printing option from server will be enable. I hope this will work for you. Same thing you can do for axapta client configuration to enable printing form axapta client but there this option is available on connection tab.

Set an startup message for Microsoft Dynamics AX client on opening

Set a startup message for Microsoft Dynamics AX client To set a startup message 1. Open the Configuration Utility on path Start > Control Panel > Administrative Tools > Microsoft Dynamics AX Configuration).  2. On the General tab, in the Startup message box, enter the message you want to display like "This is Live" or "This is Test Application" etc, and then click OK. Other References

Assign single login per user in MSD axapta

Thia code is Assign single login per user in axapta  I hope this will help you lot select count(recid) from clientSessions where clientSessions.userId==curuserid() && clientSessions.Status!=0 && clientSessions.sessionType==0; if(clientSessions.RecId>1) { for (i=1; i<=50; i++) { progress.incCount(); progress.setCaption('Login Error'); progress.setText(strfmt("User '%1' Already Taken login session ",curuserid())); sleep(10); } infolog.shutDown(true); }

Creating class in Microsoft Dynamics ax 2009

declare following variables in class DialogField DialogFromDate,DialogToDate; // DateTimeUtil fromDate; // DateTimeUtil toDate; FromDate fromDate; ToDate toDate; protected Object dialog() { Object ret; DialogRunbase dialog; //= super(); Dialog = super(dialog); Dialog.caption("Percentage Calculation"); DialogFromDate = dialog.addField(typeid(FromDate)); DialogToDate = dialog.addField(typeid(ToDate)); return dialog; } public boolean getFromDialog() { boolean ret; ret = super(); fromDate=dialogFromDate.value(); toDate=dialogToDate.value(); return ret; }

Flags control example in report of MSD Axapta

Flags control example in report of Axapta I think its going to difficult to understand. public boolean fetch() { // boolean ret; // ret = super(); boolean HeaderFlag; boolean ProgFlag; boolean FirstRun; Boolean HeaderOnFirstRun; QueryBuildDataSource qbds__RegBatchProcess; QueryBuildRange QrRegNo,qrcrop,rangeTransDate,QBR_TechYear; Query q = new Query(); ; q = this.query(); qbds__RegBatchProcess = q.dataSourceTable(tablenum(_RegBatchProcess)); //Add Sort Field qbds__RegBatchProcess.addSortField(fieldnum(_RegBatchProcess, InventLocationId));//1 Center qbds__RegBatchProcess.addSortField(fieldnum(_RegBatchProcess, _seasonid));//2 Season qbds__RegBatchProcess.addSortField(fieldnum(_RegBatchProcess,Stg));//3 Stage qbds__RegBatchProcess.addSortField(fieldnum(_RegBatchProcess, ItemId));//4 Crop qbds__RegBatchProcess.addSortField(fieldnum(_RegBatchProcess, CustAccount));//5 MPCode qbds__RegBatchProcess.addSortField(fieldnum(_RegBa

Show field of run time control in MSD axapta

public void showFields(tableId tableId,FormGridControl formGridControl1, FormBuildDataSource formDataSource1) { FormStringControl formStringControl1,formStringControl2; DictTable dictTable; DictTable dictTable1; DictTable dictTable2; fieldId fieldId; int i; int t; int fieldCnt; Query Q1; str ColValue[]; str strQuery; object formRunCaller; ; formRunCaller = element.args().caller(); testId1=formRunCaller.MethodA(); dictTable1 = new DictTable(_TestColumn.TableId); // dictTable2 = new DictTable(_TestRows.TableId); dictTable = new DictTable(tableId); select * from _TestColumn where _TestColumn.QId == _Question.QId && _TestColumn.TestId==testId1 ; if(_TestColumn) { ColValue[1] = _TestColumn.Col1; ColValue[2] = _TestColumn.Col2; ColValue[3] = _TestColumn.Col3; ColValue[4] = _TestColumn.Col4; ColValue[5] = _TestColumn.Col5; ColValue[6] = _TestColumn.Col6; ColValue[7] = _TestColumn.Col7; ColValu