Skip to main content

Posts

Showing posts from February, 2013

Question and answer on Ax workflow in axapta 2009

1. Which application element is used to define to which module a workflow is applicable? ( ) Workflow template (•) Workflow category ( ) A field in the workflow configuration ( ) SalesTable 2. Which type of AOT element needs to be created to specify which tables will be affected by a workflow? ( ) Extended data type ( ) Class ( ) Form (•) Query 3. There are three types of providers that define what rules the workflow can follow. What are they? (√) Participant provider (√) DueDate provider (√) Hierarchy provider ( ) Internet provider 4. Which two properties on a form data source need to be modified to allow the form to use a workflow? ( ) WorkflowTemplate (√) WorkflowEnabled ( ) WorkflowDocument (√) WorkflowDatasource

Question and answer on Project accounting in axapta

1. True or False: A project is linked to the customer table through ProjTable.CustAccount. ANSWER: False 2. In which class would you find a method that returns whether an employee hours transaction has already been invoiced? ANSWER: ProjTransEmplTrans 3. When posting a project invoice, which method calls the project totals calculation method - projProposalTotals.calc()? ANSWER: CreateJournal

Question and answer on Production in axapta

1. Which parm table is used when updating the status from Scheduled to Released? ANSWER: ProdParmRelease 2. Which class controls whether a production order can be updated from one status to another? ANSWER: ProdStatusType 3. WrkCtrRouteData is a data storage class which holds all____________ that are in a route. ANSWER: WrkCtrRouteData is a data storage class that holds all operations that are in a route.

Question and answer on Inventory in Axapta 2009

1. Is the InventDimParm table a temporary table? ANSWER: Yes 2. In which method is an InventDim record created? ANSWER: InventDim::FindOrCreate() 3. Which class is used to create inventory transactions? ANSWER: InventUpdate 4. Why has the Inventory Multi-transaction Tracking system been introduced? ANSWER: To solve deadlocking in InventSum 5. True or false: An InventDimId is always unique to an itemId. ANSWER: False

Question and answer on Trade in Axapta 2009

1. True or False: SalesLineType is a sub-class of SalesTableType. ANSWER: False 2. In which method in SalesFormLetter are the records in SalesParmLine created? ANSWER: SalesFormLetter.CreateParmLine() 3. What is the name of the class used when posting vendor transactions that handle both posting to the AP sub-ledger and the AP ledger account? ANSWER: CustVendVoucher 4. What is 8 div 3? ANSWER: Two

Question and Answer on Ledger in Axapta 2009

1. Which class holds a list of transactions that are going to be posted for a particular voucher? ANSWER: LedgerVoucherObject 2. The transaction log type and transaction log text are used in the ________trail. ANSWER: The transaction log type and transaction log text are used in the audit trail. 3. Which table stores default values that initialize a LedgerJournalTablerecord? ANSWER: LedgerJournalName 4. Which class posts a journal? MODEL ANSWER: LedgerJournalCheckPost

Question and answer on CLR in Microsoft Dynamics Ax 2009 x++

1. How do you make CLR Interop assemblies visible to Microsoft Dynamics AX 2009 X++ code? ANSWER: You add references to the assembly files in the AOT, under the References node. 2. Are CLR Interop assemblies, classes, and methods case-sensitive when referenced in X++ code? ANSWER: Yes. They are case sensitive 3. What code do you use, to provide Code Access Security permission to a CLR Interop class? MODEL ANSWER: new InteropPermission(InteropKind) 4. Which node on the AOT are Web service references found? ANSWER: The References node. 5. Which class contains multiple methods, using the kernel32.dll and user32.dll objects to communicate with the Windows environment? ANSWER: WinAPI

Question and answer on Business Connector in Axapta 2009

1. Describe the purpose of the Business Connector. ANSWER: The Business Connector enables external applications to interact with Microsoft Dynamics AX 2009 Application Object Server instances. 2. Do you need to register the .NET connector into the Global Assembly Cache after it is installed? ANSWER: No. It is registered automatically during installation. 3. What is the Business Connector Proxy User account used for? ANSWER: It is used to enable the Business Connector to "act-onbehalf" of Microsoft Dynamics AX users who cannot be fully authenticated 4. How is debugging through the Business Connector enabled? ANSWER: Enable debugging on the AOS configuration, Enable debugging on the Client configuration, Set Debug mode to When Breakpoint, Open an instance of the Microsoft Dynamics AX debugger. 5. What is the purpose of the Managed Classes in the .NET Business Connector? ANSWER: They expose public methods that can be called to interact with Microsoft Dynamics ...

Question and answer on Print job setting in MSD Axapta 2009

1. What is the syntax for setting the default printer option to e-mail in the PrintJobSetting class? ANSWER: PrintJobSettings.SetTarget(PrintMedium::Mail). 2. Which method would you use to initialize printJobSettings for a specificreport, when this report is called from a class? ANSWER: ReportRun.UnpackPrintJobSettings. 3. Where does Microsoft Dynamics AX store the previously selected printer settings for a specific report? ANSWER: Usage Data (SysLastValue).

Question and answer on Number Sequences in MSD Axapta 2009

1. When assigning numbers from the numberseq class, when would you use newGetNumAndVoucherFromCode() and newGetNumAndVoucher()? ANSWER: NewGetNumAndVoucher() is used to instantiate NumberSeq from NumberSeqReference. NewGetNumAndVoucherFromCode() is used to instantiate NumberSeq from a NumberSeqCode. 2. What does it mean that a number sequence is continuous? ANSWER: A continuous number sequence ensures that all numbers in the sequence are used. 3. From which method would you get the number sequence reference used for a sales order number? ANSWER: SalesParameters.NumRefSalesId().

Question and answer on form development in MSD axapta 2009

1. Which kernel class is documenting the individual field in a data source and how do you get a handle to it? ANSWER - The kernel class FormDataObject documents fields on a data source. You can get a handle by using FormDataSource.Object(<fielded>)</fielded> 2. Which methods do you override if you want to make changes to the structure of the query which fetches data to the data source? ANSWER - You override FormDataSource.executeQuery and FormDataSource.init(). 3. What are the characteristics of a table control? ANSWER - The developer can select which data type the rows and columns in the table should have and the number of columns and rows. 4. List the application objects which are automatically generated by the Wizard . ANSWER - When you run the Wizard wizard it will generate a project, a class, a form, and a Menu item.

Question and answer on MSD Axapta 2009 development Tool

1. Which file contains the modification of the form CustTable when developing in the var-layer with an en-us user interface? ANSWER - axVAR.aod. There is no language dependence in the application objects as the user interface texts are stored in the label file. 2. What action must be taken after copying the modifications to the test environment? ANSWER - Start the AOS server and then an AX client in the test environment and make a compilation of the entire AOT followed by a synchronization of the database. 3. How can you determine every application element that is using the method VendTable.balanceMST()? ANSWER - Ensure that the cross-reference has been updated. Find the VendTable.balanceMST() method in the AOT. Right-click, select Addins> Cross-reference > Used By. 4. How can you ensure that a select statement considers record level security? ANSWER - Before the select statement set the recordLevelSecurity() property on the table variable to True.

Question and answer on Report in MSD Axapta 2009

1. What are the three major components that constitute a Microsoft Dynamics AX 2009 report? Mark all that apply. (Select all that apply.) (√) Designs (√) Datasources (√) Methods ( ) Layouts 2. What is the difference between an AutoDesign specification and a custom GeneratedDesign specification? ANSWER - When you are using AutoDesignSpecs, the report layout is generated when the report is run. Its content and layout are based on the query used for the report. In a GeneratedDesign the layout is dictated by its design structure that is created in the Visual Report Designer and not by a query or report template. 3. A Section group can contain which items? Mark all that apply. (Select all that apply.) (√) Bodies (√) Footers (√) Headers ( ) Page Footers 4. What are some features of the Visual Report Designer that make it an ideal choice for designing reports? ANSWER - The Visual Report Designer allows you to drag and drop report field elements for placement in the report. It...

Question and answer on User Interface in MSD Ax 2009

1. The three (3) elements for a Form include: ( ) Methods, Data Sources, and Views (•) Designs, Methods, and Data Sources ( ) Display Menu Items, Data Sources, and Designs ( ) Jobs, Menu Items, and Macros 2. The Area Pages can be customized by: ( ) Making changes to the Areas node in the AOT (•) By making changes to the Menus that the Areas page will automatically be generated from ( ) By setting the IsDisplayedInContentArea property of the Navigation Pane ( ) The Area Pages cannot be changed 3. Available Project types available are: Mark all that apply. (Select all that apply.) (√) Project ( ) Help Project (√) SysTestProject ( ) Test Project 4. Available Menu Items are: Mark all that apply. (Select all that apply.) (√) Display Menu Items (√) Output Menu Items ( ) Project Menu Items ( ) Report Menu Items

Question and answer on Data Dictionary in MSD Ax 2009

1. Task: Put the following steps in order to create a new Primary Index in a table. Step 4 : Add the primary key field(s) to the index Step 3 : Set the Allow Duplicates property on the index to No Step 6 : Set the Primary Index on the Table to the Unique Index Step 1 : Create a new index Step 2 : Set the name for the new index Step 5 : Synchronize the AOT 2. Allowable data types for an index may include: ( ) String, Integer, Real, and Container ( ) String, Enumerated, Real, and Memo (•) String, Integer, Real, and Enumerated ( ) Memo, Container, Map, and integer 3. Nodes required to define a table include: (Mark all that apply.) (Select all that apply.) (√) Fields (√) Field Groups ( ) Maps ( ) Enumerated data types

Question and answer on MSD Ax 2009 Architecture

1. Where should the Business logic be executed with correctly designed objects? ( ) The Client (•) The Application Object Server ( ) The Database Server ( ) Stored Procedures on the SQL Server 2. What three items control security within Microsoft Dynamics AX 2009? ( ) Security Keys, Domains and Companies ( ) User Group Permissions, Security Keys, and Layers (•) License Keys, Configuration Keys and Security Keys ( ) Base Package Keys, X++ Keys, and MorphX Keys 3. Label file ID's that should not be used due to the risk of being overwritten when applying service packs include: ( ) SYS, MBS, USR ( ) SYS, LOS, DIS (•) GLP, HFX, SL1, SYS ( ) SYP, LOP, DIP, SLP

Error during installation of MS SharePoint Foundation 2010 Pre-requisites

If you are trying to install SharePoint Foundation 2010 Pre-requisites and getting the below error: Application Server Role, Web Server (IIS) Role: configuration error. The tool was unable to install Application Server Role.Web Server (IIS) Role. You are using Windows Server 2012 machine and also has IIS 7.0 installed. Currently, Enterprise Portal is supported only with SharePoint 2010, which is not supported on WindowsServer 2012. Computers where you plan to install Enterprise Portal must run Windows Server 2008 R2 orWindows Server 2008. For more information about SharePoint compatibility with Windows Server 2012,see Microsoft Knowledge Base article number 2724471 SPS 2010 Foundation will support Win 2012 with sp2 not relaesed yet.

Confirmation validation for Sales order to restrict picking packing invoice in MSD axapta

If you want to put restriction on the sales order that without confirmation no one is able to do the pick/pack or invoice. I want to share some ideas to do it. you can disable the picklist,Packingslip and Invoice. After PO creation confirmation option enable via code. you need to do some modification in SalesTableType Class.Methods are: CanPickingListbeUpdates, can PackingSlipbeUpdates and canInvoicebeUpdates . Instead doing any customization, you can enable the workflow, which will control stopping pick/pack/Invoice without approve the sales Order.

Create fields Method dynamically in MSD axapta

If you want to create new method at runtime in axapta then you can try following code. To test method you can paste following code in job. TreeNode TreeNode1,tnCust, TreeNdmethod; MemberFunction memberFn; str source; ; TreeNode1 = infolog.findNode(“\Forms\CustTable\Data Sources\CustTable\Fields\Name”); tnCust = infolog.findNode( “\Forms\CustTable“ ); TreeNdmethod = TreeNode1.AOTfindChild( ‘Methods’ ); TreeNdmethod.AOTadd(‘lookup’); memberFn = TreeNdmethod.AOTfindChild( ‘lookup’ ); source = @”public void lookup(FormControl _formControl, str _filterStr) { super(_formControl, _filterStr); }” ; memberFn.AOTsetSource(source, false); memberFn.AOTsave(); TreeNdmethod.AOTsave(); tnCust.AOTcompile();

Option to disable open new workspace in MSD Axapta

Sometimes we require to disable to open new workspace in axapta its very simple just you need to disable the option under the tools list within the security permissions . The option is within the 'Select Company Accounts' tree. If you want to restrict multiple user login session then you need to do some code under application or info class in startuppost method.

Performance point for workflow in MSD axapta 2009

If you are facing performance issue in axapta 2009 than there may be one reason that some data issue in workflow related tables like WorkflowTrackingTable, WorkflowTrackingStatusTable, WorkflowMessageTable etc. If you have deleted any company then you need to check data in workflow tables. After deletion of company that company data may remain same so you need to delete workflow data for particular company via sql. Other things you need to check version of application and kernel if its different then you can face slow performance for workflow due to some errors. version should remain same.

Sending SMS Microsoft dynamics axapta

You can try following code in job to send sms via axapta. This is code sample to get hints to apply in your program. System.Net.WebClient custWebclient; System.IO.Stream InfoData; System.IO.StreamReader Streamreader; System.String URLStr; Str SMSConfirmID; str mobileno='9834045959'; str message='Test SMS'; ; custWebclient=newSystem.Net.WebClient(); URLStr="http://www.smszone.in/sendsms.asp?page=SendSmsBulk&username=87676767645&password=8787&number="+mobileno+"&message="+message; InfoData=custWebclient.OpenRead(URLStr); Streamreader=newSystem.IO.StreamReader(InfoData); SMSConfirmID=Streamreader.ReadToEnd(); InfoData.Close(); Streamreader.Close(); You can try other website too to send sms here smszone.in has been considered to send messages. You need to put your username and password in given url string.

Compile and schedule time for AOT Node in MSD axapta

To comple AOT Node by code you can try following code in job. treeNode treeNd; ; treeNd= TreeNode::findNode(#FormsPath); treeNd.AOTcompile(); If you want to schedule time to compile AOT then you can do following things. To create a scheduled task You require to access "Start -> All programs -> Accessories -> System Tools -> Scheduled tasks" and Point the Scheduled Task Wizard to "Ax32.exe" this exe must be in your "client\bin directory" and enter users details like user ID, password and time etc You can either Axapta login window or by entering Network accout name available under Tools -> Options -> General Tab in Axapta. I hope this will work well for you.