Skip to main content

Posts

Showing posts from December, 2013

Day Year Month make date in MSD axapta

Basedate date1; ; info(strfmt('ToDay :%1', ,systemdateget()); info(strfmt('Year:%1', ,year(systemdateget())); info(strfmt('Day :%1', ,dayofmth(systemdateget())); info(strfmt("%1",mthofyr(systemdateget())); date1= mkdate(dayofmth(systemdateget()),mthofyr(systemdateget()),year(systemdateget()))); info(strfmt("%1",date1));

MS Dynamics Ax Subjects and topics

If you want to write any blog or article related to dynamics axapta then I want to suggest some topics which may famous keywords for you. 1. Microsoft Dynamics Axapta 2. DAX 3. Dynamics morphx 4. Ax Training 5. Axapta Corner 6. Axapta coverage 7. Ax Development and customization 8. X++ Business Connector 9. Dynamics ax developer 10. Axapta advisers. 11. Axapta accounting software 12.Axapta business intelligence 13. Axapta build numbers 14.axapta companies in India. 15. axapta development training. 16. axapta erp 17. axapta functional interview questions 18. axapta functional consultant jobs 19. axapta guide 20. axapta history 21. axapta help 22.axapta interview questions with answers 23. axapta jobs in india 24. axapta kernel version 25. axapta openings. 26. axapta programming language 27. axapta retail 28. axapta software free download 29. axapta user guide 30. axapta versions

Insert item details using barcode in MSD axapta

If you want to Insert item details using barcode in axapta then this code can help you. Here TableItemTrans is item transaction table. This is not a exact code but this can help you to get hints to implement barcode in your customized module. ItemId ItemId; InventTable InvTable; InventItemBarcode InventItemBarcode; TableItemTrans _TableItemTrans; ; ItemId = this.text(); If (ItemID != "" && !InventTable ::exist(ItemId)) { InvTable = InventTable::find(InventItemBarcode::findBarcode(this.text(), False, False).itemId); if (InvTable.ItemId != '') { info(StrFmt("Itemid using Barcode : %1.",InvTable.ItemId)); _TableItemTrans.ItemId = InvTable.ItemId; this.text(InvTable.ItemId); }

Test Sample code to call Web service Reference object in MSD axapta

This is a Test Sample code to call Web service Reference object in axapta. If you created any web service out side axapta and want to call that web service method to do some activity then this code sample can help you a lot. TestRefObject.RefObject_PortClient RefObject1; str errDesc; boolean ret; ; try { new InteropPermission(InteropKind::ClrInterop).assert(); RefObject1 = new TestRefObject.RefObject_PortClient("RefObject_Port"); RefObject1.Test_Method(para1,par2..); CodeAccessPermission::revertAssert(); ret = true; } catch(Exception::CLRError) { errDesc = strfmt("Error message %1,AifUtil::getClrErrorMessage()); ErrorLog::LogError("Error ",errDesc,SourceType::System); ret = checkfailed(errDesc); } return ret;

Authentication Error on consuming web service reference in MSD axapta

If you are getting Authentication Error on consuming web service reference in axapta like this "The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate'. The remote server returned an error: (401) Unauthorized” Then you need to check application configuration file in service reference folder from application folder. You need to check <behaviors /> tag you can replace with following code. <behavior name="allowDelegation"> <clientCredentials> <windows allowedImpersonationLevel="Delegation" /> </clientCredentials> </behavior> Then you need to check security tag. Previous code <security mode="None"> <transport clientCredentialType="None" proxyCredentialType="None" realm="" /> <message clientCredentialType="UserName" algorithmSuite="Def...

Error while consuming web service Reference in MSD axapta

If you have added service reference in axapta and getting following error while call any method by using service reference object. Description: Type 'System.ServiceModel.Channels.ReceivedFault' in assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable. This type of error problem could occurred  if your connection is being time out just you need to set limit of time out in service configuration I hope your error get resolved.

Error while posting the Prepayment for a Purchase order in MSD Axapta

If you are getting an error while posting the Prepayment for a Purchase order- "Account number does not exist for type Prepayment". Solution: You need to check  set up for 1) Posting profile of 'Advance' and attached it in the Parameter of AP. 2) Attached the prepayment account in Item posting but  if you still  getting that error then go to step 3. 3.If its mapped in Item Posting only for GROUP then you need changed it to ALL .

code to Get current system time in MSD axapta

To Get current system time in axapta by code you can use following method. TimeInMS CurrentTime; str timeinstr; CurrentTime =timeNow(); //If you want to convert time in string format then you can use time2str method. timeinstr =time2str(CurrentTime ,0,0); //Syntax of time2str method is time2Str( int _time, int _separator, int _timeFormat)

Get Primary key field name of table in MSD axapta by code

To Get Primary key field name of table in axapta by code you can try following code. First you need to declare variable for dictTable . DictTable _dictTable; DictField _dictField; ; _dictTable = new SysDictTable(tableNum(SalesTable)); // Then you need to call primary key field by passing table id like here we have pass salestable and dicttable.id() method will get id of salestable. _dictField = new SysDictField(dictTable.id(), dictTable.primaryKeyField()); info(dictField.name());

Miscellaneous charges calculation by code in MSD axapta

To calculate Miscellaneous charges calculation by code in axapta you can get code hint by below method AmountCur LineMiscValue; MarkupTrans markupTrans; MarkupTable markTable; while select markupTrans where markupTrans.TransTableId ==CustInvoiceTrans.TableId && markupTrans.TransRecId == CustInvoiceTrans.RecId join markTable where markTable.MarkupCode == markupTrans.MarkupCode && markTable.ModuleType == ModuleInventCustVend::Cust { LineMiscValue = totalLineValue + MarkUp::calcTrans(markupTrans,CustInvoiceTrans.Qty, CustInvoiceTrans.LineAmout); } return LineMiscValue