0% found this document useful (0 votes)
31 views31 pages

Interview Quetions

i am a fresher learning questions

Uploaded by

hafeezammu007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
31 views31 pages

Interview Quetions

i am a fresher learning questions

Uploaded by

hafeezammu007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 31
Microsoft [Dynamics 365 Communityhttps//community 7. Which classes are use for dat import export? ‘SyeDstamgort and Se0statxoor 8 From which table u can get the user permissions stored in AX Acessightlist able 9, What should we dof we need st cod tobe active whan a form is pene ln propetie of catsoure table st the StarPostion property as lt 10. Whatis he saquence of events wile eportis generated? Int, Run Promot Fetch sene Print 11 Name few Xs esses/Corekses rete to Quares? ‘Query, QueryRun, duerBuléRange, ueryikDataSoure, ueryBulink 12, What an index? An ndexis a abbespecticastabcesrictue that speeds the retrival of rw from the tbl, Indene are usa to improve the performance of dt retrieval nd rometmes to ensue the exitene of unique recor 18, Define Intlisorph Intlitdorp i the technology thst contol the user interface in Mcosot Dynamics AX, The user, Interace show the functionality of he apptiation presented or dsplayed to the user Intliorp contol the ayout ofthe wer inefae nd make easier to modify forms, reports, snd menus 14 Define Mors ‘The Morph Development Suite the integrated development envionment (DE) in Microsoft Dynamics AK we to develop and customize both the Windows Intartace andthe Wa irc 18. Define Xe Xe is the object-oriented programming language thats used inthe MorohXenvronment 16. Difeentate efesheread cesar eecsteguery relies wilot ead the recor rom the database. basicly just eteshes the cream ith whatever is stored In the frm cache ‘aceao wil ony re-read the CURRENT eco fom the DB 0 you should not Ue Io ctreah the form cata you have added/rmmaved record, Ws often se it you change some values inthe curen recordin sme cog, ana commit them tthe database ng vodatad onthe Se, instead of through the form Aatsaowe. In ths cae reread wil make those changes appear on te form research wl rerun the etn for query agait the datasource, therefore wil onour any ening ltrs ad sorting om the orm executeQuery® is another uetl one. should be used if you have moses the query in your code ad need t refresh the frm. I ike resrorchd except takes query changes ino account ing the Ist with new/removed records a wall 3s updating esting ones, This 7 efi 407 ‘The Applisation Objet Tee (ACT ia tre view of lhe apotition cece within Micoso Dymamice AX. The AOT contains everthing you need to costomize the look nd functionality of Mierorofe Dynamics AX apeaton 18. define AOS ‘The Microsoft Dynamics AX Object Serer (AOS) the second-tier aplaton sever in the Microsoft ymamics AX tweeter architecture ‘The -terenionmentis dived 3 follow + Firat Ter neligent Clan» Second Tier~AOS Third Ter - Database Saver Ina 3-ter solution the database runs ona saver asthe tid tie he AOS handles the busines logic inthe second ter The thin cents the fist er and hanes ‘he usr ntertace and necessary program logic 19, Derence between temp table and container. 1. Data in containers are stored and retrieved sequently, but temporary table enables you to define indewes to speed uo data retival 2.Comainers provide slower dat acces if you ae working with many records However ifyou are working with oly few ecards use a container. 2. Another important ference between temporary ables an continrsis how they ae se in method cls When you ee temparary table into a maths Call tis passed by rfernce Containers ar pated by value Wnan 3 varable i paste by reference, only» pointer tthe objet is passed nt te metho. When 2 variables passed by vl, snow copy af the vrablespased ite the method I the computer has 3 mted amount af memory, might stat swapping memory te dk slowing down application encution When you pat vail into method emporay table my provide better performance than 8 container 20, Watis an ED, Bate Enum how can wa use aay elements of an EDT? EDT -To reuse ts properties, The proettis of may fils can change atone tine by changg the properties on the ED. Relations cah be assigned to an etre known as Dynami latins EDT relations are Normal ad Related field Fx Wy not eld fixed fil fad works on only beween two tables 1-1 retion. And Related ld fed Woks on I~ many tablesso edt uses tlt ld fed Basefnum which ast fleas Enum values ae represented internally asintgats. yu can declare upto 281 (0 to 250 eras in a single enum ype. To reference an enum in Xe, use the name ofthe enum followed by the name ofthe Ira separated by two clons. ox -NoVes:Ne, 21. Definition and use of Maps, how AddessWap (ith methods) is use in standard AK? Maps dafie Xe alamans that wrap tabla objects atrun tine With map, you aoc map eld wih field in one or more tables, This enables you to ue the same eld name access fils with ferent amesin ferent ables. Map methods enable to you to create or modily methods hat act onthe map fe Address map thal contin an Adress ill The Adross map ld ised o seco both the Aras inthe CutTable able nd he Teds ln the CostvensranspoPontine able 22, Whatis the diference between Index and Index nt? ‘adding tha inde satamentto an Axapt sect toes NOT mean tha this inde willbe use by ‘he database What it DOES mean that Aas wl send an “order by tothe database, Aing the “index hint statement to an Aap selec, DOES mean that (hs nde il be used by the database (and no othe one) 25, How many pes of data vation methods ae wren an table evel? validate saldateWritealdteDelete, sosvaidsteDelete sosvaldstense' sosvaldateReadd sosvalateUipdate. 24, How many types of relations are avaible in Anas, Explain each of then "Normal Reotion: enforce referent integrty such 3 orign keys For dplying lookup onthe cil able Flaine rks a gest verity that a elation i active an en isdn the able speci value then the elation is active works an cantonal ralstons and were on enu typ of data (+ Dimension able Related ld faze: works 25 tar on he rebted tabla only shows records that mach the specie value for an enum field onthe elated able 25. When the eid is generated, whats its tly? when the record is entered inthe table the rec is generate by the kemeit unique or enc table 26, iferance between Primary &e Chaser index Primary index t works on unique indexes. The data should be unigue and not nl Retrieve dts rom the databace Clustered ine ark on unique and nan unique index ratieve dae fom the AOS. ‘The advantages of having s csr index ae lows 1+ Search sults are quicker when records ae retieved bythe cluster index, especial if ecors ae retrieved sequel long th index + Other indeses that sees that area par of he chster index might useless data space. ‘+ Fewer fies inthe aba; dts is clr inthe same flea the cistering inex Thi reduces the space used onthe dis and inthe ache ‘The daadhantages of hang cluster inde ste a follows: ‘+ tetaes longer to update records (but oly when the fl the clistring index are hanged. 1+ More data space might be used for other indexes hat use Feld that are not part of he cluster indexif the csterng ines wider than approximately 20 characer. 21, How many kind of leoups can be made and how 5 using tale relations Using EDT telaons Using morph and using X1 + codeSystookup css 28. How many types of Delete Actions are there in Standard Ax and define the use of each coscade Rested cscades Rested 20, Wany record’ cested in table want to fetch the date & tne stamp, how ll you do that? 20, Wate te function of superd ‘This method calls the system mathods to execute tis used to instaiting the varible a the parent clase Use for cod ecundancy 31, Uulty and use of fr metho [the tables shoul have atest one find method that slats and etuns ane racor fam th able tht mstchas the unque ine specie by the input parameter. The fst input parimeter ina fnd method should bes Boolean variable called fr update or update hae dete to fle, When ist tr the taller opject cn update the record thats returned bythe ind metho 432, What are the liferent ype of able groupe define on table properties? Micalancous Parameter Group Main WorkshestHeader Worksheetine 33, Mutipl inheritance possible or not if not how can we overcome that Inxes, 9 new css can only extend on other css; mip inhertance isnot supported. you extand 9 class, itnhers al he methods and vaiables inthe parent lass the superclass We cn ue nterfices instead of mip inheritance 1, Bowe need 0 rte main mathod give reson ‘Yes bu to open the css rom acton menuitem we have crate main metho of css 35, Whatisdlference betaeen new & construct method rnewuset cente a memory tothe abject, Construct You shoul reat » ttc constract method for exh dass. The method shoul retum an instance ofthe css. 36, Whatisthe att of the Runa property Applcason objets such a6 reports tables and methods can ron onthe appliction abject sere (AOS) or the cent. An objec an ako have the Ronn property value sett Caled from. Objects set Cale rom can rn ram either hector sere, depending ov where te objects eal rom) This tape desribet ‘he Rann prope, Lars tat lass objects can run on, anthints about sing AOSRunMade Default au of Run for Classes Caled trom Menuttems = chen, {Whats main class used batch process OR which dass wil yu inher to make a batch job 238, How can we make a batch ob occur at agulr interval - Using RunbaeaBatch 539, Whotis the main uty of esses in standard Ax ~ For busines gle 40, Which cassis called hen we create 250/70, SalesFormleter nd Puchrormitter 21, What athe bse structure of form Methods 0ataSoures Design. 42, Propet ofa frm datasource Name, Tale, Index, lowcheck, AlowEdt, AlowCrete lowDelete, StatPostn, lalnsoure,Lnklype 43, valdateWirted method canbe writen in form datasource a5 wells table evel, when should we wrt itn form DS and when in table. Simin case of wit method when we want the validation athe table level means in every form where this table is ses, we can wie atthe table lve Irie wansvalidstion tthe particular form and it does effec to he othe forms where this able was esd then we cin ue for evel alias {44 How can we cal able level methods from form 0S isimar methods By cresting te varie othe able and wth ablvaiable methosnamed 45, Whatis the tferece bemeen form init & DS int Form init: intis activated immediately after new and creates the run-time image ofthe form. Dino: Creates a dt source query based onthe datasource properties, The fm datasource nt method creates the query t fetch dat from he database an sets up Ink the forms ike to another form. 46, When form open what ae the sequent mathods cle. Form init, DataSource init, Form run, DataSource execstequery,canclose ose, AT. Where isthe best place to wite code perform fterina fom FormbataSource -execeQueny) ad cal this method inthe design fel of the form. 48, What are the diferent ypes of menu tems avalable,exhin each of ham Disploy—for Form ‘ouput ~for Report Aetion for clsses 48, Acton type menuitem is atached to a form buts he top down the menuitem is nt apeeaing, what could be the problem 50. biference between pas by reference and pas by valve Pass By Reference: In Paes oy reference adores ofthe variable spaced to 3 uncon, Whatever changes made to the formal parameter wil tfectto the acta parameters ‘Some memary leaton sues or both varible Forms and Actua itisututwhen you required to return more than Tales Pass By Value: Inthis method vl ofthe variable is passed. Changes made formal will nt affect the actual parameters Different memory feations wil be crested for beth variables. Here thre wl be temporary arable created inthe function stack which doesnot et the orginal variable Incase of pss by val, the erangein the sub-unetion wl not cause ay change the main function whereas in pass by reference the change inthe sub-unetion well change the vale in the min function. Pas by value sends COPY ofthe dts storein the variable you spec, pas by tlerence sends dec ink othe vile tel, So you passa variable by releence and then change the vale inside the lock you passed int, the ong variable wil be changed Ifyou simly pas by vale, the aniginal vole wil not beable tobe changed by the lock you passed tint but you will get copy of whatever contained at he tine ofthe call ST. What are the two mestimporant methods on th Repor? sto runofteh send prin 52. When do block the super method of fetch Dent call superd when overding the fetch method ina report ‘8. Cane make 3 report fom wizare fee fom where Yes, Toole Developmentoolss WaardRepor Witrd 58, Wnatisa Programmable Secon how we use eports Use programmable sections toa ny kine of customized information To actate a programmable ection, seat it expt th eccleNumber) statement. Te Number must be specie inthe ContalNumber property forthe design section 60, Whatis the liference beween Auto Desgn Spec & Generated Design ‘to Design An sto designs report design that has 3 yout thats stomatal generate based an the data fr the report You ean use auto designs for most common reports Reusablty i avaiable ‘hisses Report template and Section template. Header Section Group and Faster i ot salle Generate Designo” Precision design: You can create a presion desgn fo a report that equa very pres layout doesnt se Section tamphte and Report ‘emplateReusabily snot avalable 61. How can we sr the OS, hat city we can getin by pacing Fs in Ranges ‘his quer dtarource®) addsortelelnom(ablensme,eldname) soning ascending 62, Wnstisthe role of executeSection You con override the exeuteSecon method fora report section to mossy the layout ofthe section and to mesityhow the secon printed. you want to do something before 3 seton's printed, such a Jo tthe nes page his cn be coded inthe execteSection mato, 163, What are Queries, how do we use them You an creates query to retieve dts by using the query asses G54. what is Compose quay? ‘composite query uses another query bis dat source. A compost quay isi to dass invetitanceinX++ ar CX A composite query is» good design choice when one ofthe ollwing i te ‘a existing query licks only a range that you want to add An exiting query licks onl 2 method aver that you wa to ae 165, Whats the use of Parameter Enum ype Parameter/num Patametr properties of Menutens? Parameters: Specify the arguments that te passed tothe object. Option Enum TypePaamete and chum Parmeter Choose an enumerated ype 363 parameter fr the Object, and then selec an enum value as ‘he EnurParameter propery Optional ‘These properties are typically sed whan one forme used in several fret stustions, You can change the behavior ofthe farm, epending on ‘he EnumParameter sae, For example, the PrieeDiseGroup frm i uted bythe ferent ply rau tems PrceDiseGroup ‘which each ave ferent EnumParametr vale Inthe forns ntmethod, a steh const checks the vl, ad then the forms cested scordngh: 166, Way do we provide Coniguraton kay Security Key? Coniguration key Confguition ey low administrators to enable a abl fetus nthe appliation forall user Dissing fetus helps to minimize the sitack surface against pote attacks. Configuration hays are applied o: + Tbler * fies Views Mews Meno tens Form control + Report contr, fcended dita types + Enumerntone Secu key Security keye low administrator to st security on usergroup level Minimizing acces on a ver group level helps to reduce the tac surace soars potenti tks ‘The main reasons o apply user-evel security ae to: ‘low vers todo only her designated tks Protec sensive dots in the database Prevent users rom inadvertently braking an applistin by changing code o objects on which the aplication depends You need to apply a security ey to ‘bles Ferm controls + Report contre 61. Normaly what do we atachia Output ~Forms (68. Normaly what do we atachia Action ~ Classes 60, Whatie ference between select & slat fretonly statements ‘The selec statement fetches or manpultes dts fom the databace or both fetches and maniultes dats fom the database Resus of» select statement ae retumed na able buffer arb, you ae going to use only the fist ecard rif nly one record canbe found ute the fistOnly quai. Th optimize he slat statement for anyone record. Be rot use while selec firstly. kins bex prac to ee the rstOnl qualifier in id methods on ables TO. What are the keywords used to access data rom “multe companies" and “one company te another company" ‘A crss-company query returns data for several companies ina single un Te create rose-company quer Inxs, us the crossCompanykepwors'on the Xe select statement Ines, st the allowCressCompary propery method to tue on an instanceof the Query ass Inthe OT, st the AlloncrossCompany property to Yes on anode under Query. Tr How can we over lookup ‘oT Forms DatasSoutce> Fields FieldName >Leokyp Form DesignsFilds Lookup, 72.How do the folowing mathods workin a fom DS. ‘rere, ds research, dscerend, in what station we should use there methods Retesh: Updates the form by retreshing the vew of ll records inthe data source, Reseach: Reread the curent cord fom the atabase Reread: Rateshas the database serch defined bythe quey speed bythe FormDatSourcent method 73.0 closing form name te methods which ae invoked Close, dosed finale. "A. How can we provide user levelser group level sect - By using Sect hays 15, Whats Vaul Morphiploer, wha do we da with that?Revrse angnesing tool has replaced Viual Morpher "6. Whats the fncton of Applistion Hirarchy Tee? Displays the erent objects inhertance hese. ‘The Applization Hierarchy Tee enables yout view information about the parent and chien of aplication abject. For example you can see all the cases that extend a parol dass, sae which data types a partcular extended datatype inherits Hom ao enables you to Wew te methods fle and inders that are ‘se by tables. formations avaiable for application and system casos, ables, and cata ype. Te vew information fora single appliation object Right-ldthe object and then select Ade > Appiation Hierarchy Tree. Ta view information foal application objects, Select Too} > Development tools > Apotation irarchy Tree You nee to generate cress-references before you can se the Application Hirarchy Tree ‘bles re ste under the Common node in he Application Hierarchy Tee. Al tables extend the system table called Common. Classes ae listed under the Object node 17 Myou want to moniter the database stint, here can you get at Adminstration= Reports» DataBase information Adminstratonsinquires» Data information Adminitraton> Reports» Sie of Company accounts TB. Where can we fn the Label log and waatisits uly? Tle» DrvelopmentTonk>tabel Label log Use this form to view the history of bes within the syste an r-ceate bes that have been delete, View record ofall cnanges mage to the Ibe es, overview ach able describ in terms of sentation (1D), guage, status label text and by wham and when lt was madd. abe can lea contain » description which e dsplsyed athe Beton of the fom. General View information about the selected bel Button Recreate Re-ceste the selected bel 19, Whats Label intense? ‘The ysLavelintnva table contains the stings that contol he intra of abe ID shat te used o create net sel through the nel edtorin MorphX. 80, Waat are the tools you wll use to upgrade any object? - Compare 51, Whats the use of System Documentation Appliation evelpes Documantton/Applistion Documentation ‘Sjtem Documentation intended fr developers unc the functions subnode there are hundred of useful fentons you wi use when programming in ‘Applicaton Developer Documentation, under hs nade you fn documentation about tables and eases used by Ax, desertion about tables and clasts for developers 82, What are the classes, ables, Fors and Method used to post the sles ders SslsTabletype and Slesinetyae cases wil get called while casting the orders, SalasFormLeter classes il be se topos the sales order st various document statusipsehing invoice et SakesPam isbles ae use prepre the dats fr posting CustContieour CustConfimitans when a sales order gets confmed ContackingStplour,CustPackingSptrans- when 3 packing sp is pote Custnviceable Custnveicetrans- when an voices posted. ‘These ae some ofthe may used sles, 183. What are the classes, ables, Fos and Method used to post the purchase ores. {4 What are he classes, Tables, Ferms and Methods used to post the Ledger. 185. What are the cage, Tables, Forms and Method used o port the Inventory 16, Whats the base cas to send the en-bod E-maling Spear sn Syst BT. Wast are the storage Dimensions? Site WareHous alt SotchNumber SerialNumber 8, What are the Rem Dimensions? Contiguation scaler 80, Whats thecfference between RunBase and RunBsseBatch? untae: To create a job or an Action class» program that caries out processs, such a accepting parameters fom the user and then updating recordin the database = you ue the Runes farenork ‘The fameworisimplemented hy the RunBate application dats and supplies many festres, which inch the following + cory + Dilog with persistence of he Ws values entered by the wer + laste The RunBase dass is a famewerk for cases that nee 2 alog for ser interaction an that need the calog valves tobe saved pe ser Rundasestch: You can design your oa batch job by extending the RunBaseBatch dass. Yu cn also write code to schedule the batch to un The batch rng ‘he Application Object Server AOS) 91. Whats the aiffernce between Insert and doinsert Ince: Ta insert the cords nto the dtabat, Secure any ated transactions with tt Doinset.Thse methods should only be used under srt control because they bypass he following ‘ny aldatons shat have been setup ‘any cade that was writen inthe inter, update, an delete methods 92, Whats the Runbace Stack? 98 Diferonce between sl ana ++ saterant~ seuecre “able buffer onthe FROM nx» clue no the able in SQL ORDER BY cause precedes the WERE cnuse $.fornagation not NOT 35 in SOL {88 and orlogieal operator not AND or OR asin SQL St and for ba wears ot Sand _ 6 SQL JOIN CLAUSE: ‘ein douse has no ON keyword use WHERE instead Default JON sirecion et 2ithere are no LEFT and RIGHT keyaord for JIN in + “The FROM couse i aptonal when No celumn sted or Only one tbls stad in the SELECT n= select * FROM Costa Select Cstbble, both atesame. onnens- “Ihe WHILE SELECT statement provides an avtomsti cursor fortum rowsin xs + 2 har tno HAVING keyword + Noll values ae return xe 94, Whats ester nstalaton? ‘Admin - Setup - Cluster Configuration Clk System administration > Setup > System > Cluster configuration You can dstabute the user lsd in Mcrosot Dynamics AK seo muliple instances of Applition Cbjet Server {AOS} by ratings lod balancing duster 95. Steps crating number sequence? Basic» Setup> Numbe-Sequences> Numberequances Create 2 new number sequence Classes» Numbersequencetefetence>LoadModule ‘Ao Setup>parameters- setup code ‘bless CustPararatars~ cesta method starts with nunRefT. Form FomiRun - Create aumberSequenceformHandler method Form FormDataSource ~ Override ceate method 96, Any module you ar good at. ARAP Inventory Production 97. Colleton cases You cannot store objects in arrays or containers. The AX cllecton cases have been designed for string objec. The dass are implemented in C++ to achieve ‘he maximum perfrvance they re system cee. hase Description ‘oy Sesto at antl esr ig tes adc bet oe us Contains elements that ae accessed sequently Map Associnasa key vale with another value, se Holds values of any single type used when order important st Can contain values of more than ane tye. Used to group information about a sec entity. 98, Tables in nventony? ImvetabeventableModuelnventtemtocation,IvertDin, ventas BOMTable, WMSshipment IventCaor, InventSize 98 you manipulate anything which yer would i affect? The present yer where you ae working an below ofthat yer 100, What ste the components in vepons? Methods, Datasources, Desig, 101. Hom many types of esses are thers? stem Classes and Application Classes 102 Development oo? Version contol, Coss feence Code pol, Debugger, Application Hierarchy Tre Code Explorer, Reverse Engineer, Number f Records, Embedded Resouces, Wards abel 108. Communication ool TO, Can you say few bast pracssin a? 105. wats the eiference between sl ques nd dynamics ques. Sal query is Sle statement = Dynamic query ROT Query an Query lass using x 106. Wats the diference beeen a+ and et? Xee contains code and Slselet statements A contains only cose 107. what are the lk ype in? Pasir Lnke ehld datasources are not upated automaticaly, Updates ofthe child datasource mist be programmed on the active method ofthe master data Delayed: A pauses inserted before lined chi datasources are update. This enables faster navigation in the parent data source because the records rom cil data source re not update immediatly For exam, the user could be scaling oa several orders without immesintalyreing each ore Hes ‘Activ: The eld datasource i updated immediately when anew recordin the parent dat sources Slated. Continuous updates consume lt of resources Inneroin: Selects records rom the main able that have matching records inthe oined table and vie versa, There fone ecord for each match Record without rested record inthe other ets source ae eliminates fom the suk ‘utero: Sects record from the main table whether they hve matching records inthe joined table. ‘and te other cor sto shown nthe main table, [ston Selects record rom the main table foreach matching recor the joined ble, The dliferences between Ineriin an Eason ate 3 follow: ‘When the jon spe Exon the search end afte the fst match hasbeen foun ‘When the join type i neon a maiching record are searched for [Noxon Select records from the msn table that do nothave arate inthe one ab 108 what cant you tre in containers We cant store abjos in containers 108, Diterance between says and containers ‘an tray can hold any item of same and ts dectired ype Contanes store ferent types of datatypes at sine You anallcate memory space 9 ary anf tha pace wth vale ses, sucha in» oop This cont and performs wel ‘Up Converts a the letra sting to uppercase Tr What is uel? The user activates the Go to main able command fom the short menu onthe contol orby pressing CTRL*ALT* FA, The super) a opens the main table that contain dt forthe Fe 112. Abstract and final cs. ‘stac forces the cas to be dere subchain stops he hss not t be derive or inhertane, 113.08 Vakdsteete ane wite valdateWsite: Executed when anew or upeated records tobe wile. Determines whether dts is vail and ready tobe writen Wed: Executed when the use insets anew ecord or voles an esting one Cal the ForiDaaSoucevsldateWte method and manages the database wate operation 1. wats alage chs ‘Acialeg in AXis a simple form wih a standardized layout created by using the Dslg system cls. Dialogs shou allow users to ener some simple values. Dislog Classes. DialogField DalogGroup,Dialeglab?age DialogTex, DslogWindon Dialog Methods ~a6sFeldadéGroupaddTabPagerunpackunpack, 195 Pack and Unpack method? Use the pack-unpack pattem to save and/or stove the state of an object ad thes ate teintanate the same abject Packireate a pack method to read the stat ofthe object and return tna container suitable fr saving or ansporing between tes Reading the state ofthe object implies colectng the vale ofa is members she members are tables (acorccwsors temporary ables} or cases, must lo be posi o read thet Retune the sate ofthe abject 63 container Unpackicrest an unpack method that ake he packed stat and eines an object wth Construct the objec before cresting an unpack method, ‘The unpack method takes the save sate ofthe objet and reinales the obec wiht I renaizes he object members according to the valesin the container, taking the supple version number nto account ‘The method can return 9 Boolean that signals the rest of th intalzton process 116 Architecture of MS eyramies A chaste thre ar architecture 1. llent 2.A0S 30x80 117 Talus about AFONSMa) ‘Applcaon Integration Framework (Al isthe infrastructure within AK with which you can expose Business logic or exchange data with ather systems. AIFS comprised of tree primary components + Senda - rable you to expose business agi writen in Xe + ag asec to be consumes by ether applstons, Withia Microsoft Dynamics AX, you can ces, customize, and pubs sevies. 2 Document snes -& specie implementation of sees in which the Mcrogot Dynamics AX busines logic i exposed tough dcumentsences ‘Consume Wb srvices - In Microsoft Dynamics AX, you can consume external Web services rom your X++ code 118 How to design for in AX sing X=? ‘The Fv classes enable you to manipute create, mod, rr forms by sing K++ code. You can also mol forms during run tine so, for example. one oF ‘more cons are hcden ona form depending onthe users selectonsn the preceding form ‘The Fox classes ate ll system dass and are prefied with Form. Form, FormRun, FormDesign, FormBul Design, FormDatasoure, FormBulldDataSource, FormContrel 119. Whats eport bile? You cn eat repors by using Report Builder for Microsoft SQL Sever Reporting Services You add information tothe repor fom 9 report model Wen you rate a report by using Report Buller for Microsoft SQ Serve Reporting Services, you ae using secure ews of the tables avalablein the report model 120 What is Inde, progenies in Index andl ype of dex? An ndexis a abb-pectic aatabace stricture that speeds the retrial of rows from a table, ees ae seo mprove the performance of data rete ana to ensure the exten of unique records Ws up to the databasespecie query optinizer oie sible indexes o cate efficent dat rere Unique inde and non-unique inde 121. Concept of Diterent Layer ia AX ‘7829p ls Glp hf at sia 8 busbup var vap cus cup usr usp 122 itference between hound ar unbound conta? Form contrals belong to one of tee groups, depending on their data source sfllows: ‘+ Sound control - associated wth it in an underbing table. Use bound contol to dsp, ener, nd update ves fom fs nthe database. + Unhoun contol~ caer not have 3 dats source Use unbound contol to ply pietures an sai tx + Caleuate conrls~ ses 2 method sb te datasource An example af clelsted conta the um of two fle 2 3 frm, 128. Hom ocrast runtime query? You can este a query to rereve dts by sing the avery dasees, ‘Quer, Querytun Quen BuldDatasource, Quer/uldAange, QueryBuldLink, QuenBuladynatne 124. whatis optimistic concarrncy conrl and Pessmic Concurrency Conta (Optimistic Concurency Conta OCC} helps increase database performance Peisimistie Concurrency Cont lock ecords soon a they ae fetches fom the database for an update However, Optimistic Concureney only locks records fom the Une when the actual update is performed Following ate the sevantages of using OCC + Fewer resources are used to hold the locks during the update proces. + Record are locked fora shorar length of time *+ Records main avaible for other processes to update if they have been selected fom the database but haven yet been updated ‘The easdhantage af sing OCC that the update can fa f another process updates the same record If he update fa, must be erie, Tis an lao reduction i database peformsnce. (Occ mates t posible for ther processes to update a acord evn afte Ithas been fetched, You can catch update conflsby catching ‘he UpdateContc: and UpdateConfenNotcovered exceptions 125 What ae tranections? 125 How to look transactions? 127. What ae macros? ‘Macros acts container for defining varables wad for requenttast. The purpose of macros sto make statements asy to reusa,A macro cont be veces independent 39 365 ‘an advantage macros hat the msintenance is done in only one pac, Thre types of macros Macro brates standalone macro tat contain» callacton of ecal mscros Standalone macros is ceated by using the macro node inthe AOT Local macros = is declared wth in method 128. Wats the deft ink typeproperb? = Debye. 129, Detain in select statement (Quer) = inneroin 120 Diference between vaidte wie and ait le? validates: Executed when a rcord ie weiten tothe databace, before the data change corte in the database valdaefclag‘xecuted when you lave eld in a record For examgle, after entering changes oa fied ona grid cont you could ck another Flin that ame record or on fern cord, Oryou couls ck anoter conto on that same frm, ‘The super method invokes fel validation checks, as guided by the valve ofthe Validate propery 181. Dowe have vakdate wt a validate fil in form eel? FormDataSource —valdatWitet FormOstaSourceielt - vaste 132 what a the methods required or posting» purchase order? 135. How o give nln select que? Selec table where table id == °" 134, Whats cache lookup and Lookup whats i usd for? CacheLookup : Determines how o cache the records reteved dung lookup operation ‘ypes~ None, NownTIS, Found, FoundAnatmpy nirTable IsLoakup :For report meds, ispecies whether the able information is incorporated into oter tables that reference it when a feort mel i generated For OLAP cubes, it determines wheter to generate consclidated dimension or a tint dimension You can specty one af the following values + Yes ceates that stibutes from the table ae tobe consokidted nt the paren simenion tar char). 4+ No Inacates tat 3 separate cmenson isto be generate forthe abe Gnowke sche) 135, Diference between abe an vis? | micouot Oyamics AX view vival able tat cons the dts records and lds that are specie by quryLike table, a view wie elds and rows to represent data cords, However, the data in avew not stored a a database object but s dynamically created wen the view is accessed A view uses a query to reteve dae from one or mare dtabace ables When you create view, th view eftion i generated and stored ine database. When that view is accessed the view dynamical revieves he data that sats the view definition. Views ae rentsony. The data isan tables ha view uses cannot be updated from hat Benefit Description Focuses data ‘Avion enables you toretive and return only the data thats ralevant fra patclar usr or scenario Aviw enables you use» complex query to cate a highhcustomized set of data. For example, a view often represen: Cestamzed date dats 93 singe able that we etree from multiple joins tables an used many condone ‘Asiw can improwe performance by returning ony eleva fils to the we, In addin, view definton compiles Peformance which may provide better performance than ealing an equally complex avery. 136 nich case delet, fom and deat have sme est? When deleting ony one record inthe tale 137 Belin sales/puchase order processes in AK, 138. can you jst tll the table properties tht you can remember? 129. Eplain diferent types of report? [AOT Reports, Using K+ = Rapa less, Using Report wizard 14. Primary Key in tables tn dynamics AX dea'thave primary key 14. Whats the defutindex fora table? ‘The system nds cented onthe Reld an Datadveald lds the Daas eld exists. Otherwise the syst inden is rested on the Rec ld You can see system indeves inthe database bu they arent sein the ACT. "42 What ate all the add-on tals you usd in Dynamics AK A’ an invec question for AF) "43 bid you work wt EP Enterprise Portal & Workow) how cn you implemen: thi features into your projects? “Wt iference between this and element” ‘this element this canbe used in any objects to reference the cuvent object and member methods. Inform the collection of jects is contings within FoxmRun abject. You cn ceference member inthe outer frmrun abject by using the element reference your codes paced at the tp evel thee ate no functional ifeence between ths an element your codes paced na fordatasource but this wil erence the datasource but element wll ference the formu. You cannot ute elemento refer table or cis object “45.COM &.NET Business Connector 145. Concutent ser 8 Named ser “AT Pay key & Foreign key "4, OS Loud balancer concep/Chaterng "49. ax 2009 Debugger concepts? Use this debugger to debug Xe code that running on the following + Microsoft Dynamics AX Business Comactor + 105 ‘+ Microsoft Bynanies AX Cent The debugger windows 1.Code 2. Variables ACllstack AWatch Steak points 6.ourput 180. Cross reference tool? ‘The Microsoht Dynamics AX cros-eference system allows yout see the reatonships betneen objec You can see the following: 1+ Wie oer objects use the cuen object + Which other objects the cuent object uses Fer example, you can get et of every pace of code that wes parclr msthod or you can see which forms wee a parc table fel You can alto get informstion about where lbee ae wed in he appli, 151. Document Management 152 Pint Managemant 158. Caching mechanism in AK? aching sto remember the nformationableadyttieved fom the database and use this memory wen the same data is naeded again Draweack ifthe remembered information sn longer vald this could compromise the consistancy ofthe database asthe updates are made based onthe invalid ast Read ahead caching, single record caching. Ente table caching, Record view caching. Dslby method caching, ‘154. Whatis cloud computing? How ts configure in AX? 155. Diference between parameter table and Normal abe? ‘The parameter system design pattern hols atic tp information forthe modules in company such a iformaton on the national currency the posting method snd 1 on There one instanton of ths pattem pr module ‘The parameter system sould beset up a decribed in this tpic. The parameter record ir automatcly created by the system and ha he following + A parameter table + Aparamete: form + A parameter ment tem ‘There should be one parameter able per module Parameter tables hive single cos par company, holding the requires paramstar forthe module. The record is ached To enable the Found-cache key it detned, ‘Adan iceger eld ale key should have the Visible propary setto No 156 Whats Configuration form in Ax? AdminitrationsSetypsSyrtem>Confguraton ply alle module configuration kes and we cn enable ar sabe the key rom ths form, 157 How to change Standard able as temporary table? By changing ta table propery 0 Yes and Use the setTinp table methed to make anon-temperary table temporary rather than creating a copy ofthe tle, sand han making intempo, 188 Wnatis ference between Auto Ssign and Generate design? we user both designsin report what cesgn wil be print? Report prints - Generated design 189. Oops concept what doesnt supper in Ax? -Mutipeinestance and method ovroacing 160. Instead of mute inhertance what we us in Ax? Inertacer 161. How to open exe flein A? ‘x32. -"C\Program Files\Microsoft Dynamics ANSO\Cen\BM\AH2 ec" 162 Whatis table properties f fora and Reporte? For ables where the Table Gru property has been sett Group, Main, or WorksheetHeader, you mast do the following + Have a form to maintain the table recor. 1+ Set the Format property to the name ofa splay menu iter, G ‘he form and the dpiy man ite that re ved to start the form should have the sme name a the table. An example of hs ul the CustTable table in Microsoft Dynamics AX Note ‘nt set the Forme property or ables whare the MaxAccssMlode property i setto NoAccess These ables are not used na fom. Species the splay menu item thats acvated when a table is eternced ‘When you se primary index fled ona rapot this form is avaiable 3 nein the report. prmsy inex speed by wxing the Primanhdex propery you leave isd bank, the system attempts to splay 2 form that asthe same name asthe table The Format propery ofa able fokups soly menvitems 162 Hom many types of exceptions are there in AK? 1S types of exceptions in care Inf, waming ceadloceroetemalbreak ddr sequence umericCLR aor. Code acess scuty UpdateConic, UpdateContlcrNotRecovered DupicatekeyException OuplcateKeyExeptionNot Recoveres. 164 Accom moder and Method moses? ‘Access Moers: All methods of class ae always avalable to coce inthe cassis To conrol acess rom other classes, and to conlinbertance by subclasses, ew has three access contal modifiers fr method Cassar vested a publi you donot spec an access moder, public: Methods that are delred 3 public on be sed anyuhere the ct accesible and can be aveidenby subcases protected: Methods that ate dedored as protected can ony be cle rom methods the cls ad in sulscases af he css where the protected method is decaed rate: Methods that are deciaed as private can only be called fom methods in the clas whee the private method is declared, Method Modifiers: abstact dientsewerdsployedifinalstatepubleprhate, protected. 165 How mary types of dimensions in inventory? ten dimensions Configurationsiecaler Storage dimensions ~ Site, Ware hous, Pallet Batch number, Svs Number 165. we cese table eat and EDT elation forthe sme ied i the able whch reltion the eld utes? “ble retation. 167. Whats Composite query where we an use? ‘query ith in anaer query elled Composite query Usesin the Query node inthe ADT. 168 Can un the form on sever sie? — No 162. Dierence between able delete and form delete? 170. Whats section tempat and ror template? Report Template: A report tampate ca speci the sectons hat a repotinchdes, sch 2 page header and a cage fete, page mmbers on each page company logo the contol incuce in each eon and the lyout ofthe control. Ony repos base onan Auto design inher changes that are mace to a eport template Generate design doesn't inert changes to repor tema, Section tempat: This makesit pose te define sections one ime and reuse *hem mary times. hiss used for elements appearing in more than one reser. 171 when you ae creating 3 table what is the deft abe group? ~ Miscalloneous 172 wheres the best photo wee the login A? ‘lasses, ty 0 avo the code inthe forms. 173 wnat ithe thin ane thick oft chet inthe configurations? “Thick cfenthae the direct access to the ctabase, 1. Howto generate the Sales inviceptisialy/stomtiall? ow to send the customer's raport a an eit the panticubr sare on diy status? oS Wiha as wil cllwhen sanding the Ena? Howto run the debug forthe ser mosfer methods? 2 a What re the dt actions? What the rebtons and examples? 7. Whats Security kay and configuration key? 8, What re the query mathods and what in get, get methods? Inthe fetch method of report we call get@ and gatnod methods. Geis used to ge the table fom the query or datasource of aport here we wil ge the datasource ‘able name and getnod is se to ge the query numero” datasource tale numberof por. 9. What the Sales order ye? 10, What methods sn ables alld when porting the ses order? 11 Whats purchase equition? 12, What some 18 Whats abstract cas? what are the aba losses in Aa? Runaso, RunBaseBatch FormLeter,FomuetarReport PurchForntetr, PurehFormLeterRopon Sleaformleter,alesformLettrReport RunBaseReporGantDat, nventModelType, lnventMovemaent Ledgersslance Pntgnsierarhy, PrinMgnNode , Pin MgmielupSetings, Srmimpor SmnOulleakSyc, SysChedkist, SysCodebplorer,SysDatatepp ‘SpDafaltbat,Syatacel Syebxcalappation yeaa SyetacelMorkbooks yetxcelange, SeSearch, yeWlaaed Workflowtlement [AddressSlacForm AderessZiCodelmeor. AfDacument,AfDocumentSenice,Ase'Sum Cale AssetTableintena,AssetTableMethod Abas, Barcode, BOMCaIcBse, Bor 14, Whatis interface a what are interfaces sss in Ae? Batchabl, SysPacabl, SysComparbl, SysMergeableSysaveable ASenice,SsVersionConrollble, ysestxecutable SjTestlstener ANthSeralzabe AtCustomizableSence, AiGarewayecsiveManage AiGateraySenaManager,AihterationAdapter.AiPpelneComponentintertace AfEmpoyeeSeri WortlowConfgContol WMSOrderransMukivpastelfndesble, OynamicPropertyCallace RunbsseRecsMapableysCompareContextPrawider, WorklowStatedventHe Wortloncompetedeventandle, Worklloncancledeventandler sysVsoModelProvider,SysVersoncontlhangeists ‘SyeverionControRevans, SsTastRecordelEventMontor,SyimportSstusGetabl, SyehmportLoggeble SysChecisintfaceUpgradeutonStataProvider 18. Whatis polymosphisn? 18 Whats primary index duster index? 17. We 3 program for eversing the tng? 18 Why 52S using temporary table can we use normal able? 18, How many sypes we can develop SSRS reports? 20, Whatis Data provider css? 21, Whatis the best way te develop SSRS repans? query or DP css) 22, Wit rogram to print the sum of amount fr each accountnum rom Custis? 23, Wie program to print the reverse of 2 gven number? 2A, Wit pogeam fr Fling the biggest element inthe aay? 25. What are changes between 2009 and 20127 26, Whats table inertance in Ax 2012? 27, Wate able rterencen EDT = 20122 28, Whats surrogate hey n Ax 2012? 29, How zo cancethe sales order fom X's, whats the best place to wate the code fr cancelation? 30.1 have millon of records na form and to open the form er perform any operation is taking more ne So how to speed up the proces ofthe form to retviowe te records fom the database? 31, Whats FEO an LIFO in inventory give the realtime example? 32, How 20 debug the batch jabs in 3? 33, Whatisamstrong number wite » program for finding the amstrong number? 34, Where you wil wit the code fr fiterin form and report? 235, Difrences between abstract css and inertices? 1. Main ference fe methods of Jaa interice ar imply abstract nd canet have implementations. A Java abstract ces ca hve instance methods that implements aefau Sehavon 2 Vansbles delved ins nterace is by default Gal An abst class may consi nonfnlvtoles 2. Members of Java interface are public by default AJave abstract clase can have tha sus vor of case members Mk private protected te. 4Jvaiterfce should be implemented sing Keyword “implemen A Java abstract des shoul be extended sng keyword extend 5A interface ean ested another ava interace ony an abstract dass can extend another va css nd implement mile ava ntraces. 6 Asa class can implement mip interfaces but an extend on¥ one absac cass 7 Interac is bachtely abatact and cannat be iste Java abstract ct slo cannot be ineantiatd, but can be invoked sing ent 11s comparison with va abstract classes, java interfaces a how asi egies eta invecton Interven Questions: 41, Tel shoutyour St 2. Hom you wl create Table in An that Tabla how you wl define Indes, Rea {you willdefine Indes or Relatone. Why? 5 1 ® 8 Delete Actions and Methods. Tell me the steps Fst what you wl do, Fist Whats Naming Contentions in AX? “What ence? How many types of eses ae there? What is unique index nd non-uique? Whats Cache Look Up? Mote Questions on egading Cache Look Up? What's Forme? Whats Configuration Key? Why need ofconfguraton keys? 10. Whats Scant Koy? 11, Whats Record Level Secu? 12 How the aes proving security. What ae te ways? 13. Types of Relation. 14. Types of alee Actions. 15. What kindof methods you wil rate wl reste 9 Pareule Table? 16. What eTable Collections? 17, How you wil rate diferent Envonments he Aas, A220 08. 18 ForExample: 150 ser ate Accessing Aos' How you wil sign ur to Ree? for that what you require. More Question on regarding AOS 19, Tellme the Invent Tae Form Data sources? 20. invent Dim Table What stores? 21, Whats Table Group? When you resting new tables in ax by default aha ithe Table Grous? 22. Canyou tl me the Sales Tabla, able Group? What conte 23. Hom you wil do the SERS Repots in 2X? 24, Wat ae lhe New Features ae see in Ax 20097 25. How to instal 20087 What Require? How you wlnslin Win XP& Vista? Mote Questions on regarding Aa Istalation, 26. What Workflow? How yu wl do ths? Ex For Pehow to conigue Werklon? Steps 21. For New Module how to Achiave Worklow, Steps. mre Questions on regarding WF 28. How you wl configure Worflw For AR 29. How to install Workdow, What it aque (twac's) 30. Weather Workow quite 7 31, Whats EP? What requis software's), Mote Questions on egaring EP. 32. Whats Number Sequence? Kow you wil do that? Number Sequence Steps. 52 How you configure Number Sequence in Ax? For Example crested one recordin ABC Form, Li save the record, just delete the recor, fn that Case what well mapper? What comes nes. 4H, Whats Glbal Addons Book? 35. How can you use the Global Address Bok? 36. How can you Czate New Employee? 27. What ethe se ofVrwal Companies? 38, Al form Level how you wil define Query Bil lasses. ow you wil do that 2. a 2 45 46 °. st 82 st 56 56 st 6 . 6 6 5 66. 8. ©. 1 n by R. a 74 15 16. tm 1 ° 2 e Tele Form Level ata Source Mets rats Eeete Query What nt form Methods Types of nvetory Dimensions? ‘ype often Deron? Type of Storage Dimensions? Type of Birersonsin aX? Hon to define Compost Ques in x? Number Sequence Cas. Types of in ype? Inne Jin ar Exist on? ops concep? at inert? Type of nhetnce? What Abt Cas in Ae How you wl eine? What cece? Telimelntertsces Casas in it whats Randa? Wee we can ete tem in 2012? Diference between hang company nd os company? wats surogsteeyin 20122 How t import ata one apleaton to another aplston? Ditereneesn 2008 ana 20127 What are the ferences tween Ax2008 and 20127 ‘able mato sequences? Valse wte and witemathode? Necd of wie tha? Whats the mandatory propery hen ceating the Table? What delet actonr and whats Css Resid? at the rtur pe ofr metho? Whats inary nde and Csteredinde? What the ameworsn A? What Run be famenor? rane cet the dalog run method is sede? nothow oun the etd? & Is pone to rve the ar bye maton (oar aye Forex Hone wera ceted objects nar, how we cn move hee objet out yer? == sing compare tol ow to move modfiatan om dev stance o Test and Prod instance? hats ber ariecre? rats the rtum ype of npg mod? Whats int ethoain a fom? What are the reported sequences? \Wihen you open report, how many ties allohe ete? What inne excite maton? How many me bli? hat ae the mandatory properties able? ats leg ina Bland ns fr? wat ceeds Reta? Diferencas aang the delete atone? ratte he ins? pln? Wat eal the mathe all when ousvea recordin a abe? What ispobmerenen? _D Dillerence between conpeek and confind ‘ find - we can ind the position ofan tem. statevoid conFindbcampleiegs args ite ten, ham") = confinde tema’) = conFinde tema) Prin “Poston of tem” n contin" nat Print"Psiton of tem in containers” + nt pase -Sonpes we can get the item ina particular postion stati vod conpeektoamplettrgs_sa} ‘ = conta tem tem 1 = 1:1 <= conten prin conPeak pase 2) Method ovedoading and Method overiding X+ suppots overiing, bu t doesnot support overloading ‘Overiding a Method [AX 2012] ‘The methods ina dass are inherited by any clas that extends it. You can alter the functionality ofan inherited method by creating a methed inthe subclass withthe same name and parameters as inthe supetlass. Ths called overiding the method. For example: 1 Supercss: ibe public diss Atibute ine abject void methoaan Hama statements 1) Subclass Colrntebute public ces Clorktibute ecende Arte Inc addecoujectarible void methoaan Home statements Colorawibute ia subclass of Atibute and therfore inherits the method mathedat: However, cause ColorAtuibute defines a method wi the same name and the same number of arguments the method inthe suparcssis everien Preventing Method Overing tttsvowabloggercom/null Static methods cannot be overddn because they ext per class. To protec other sensitive methods, or core methds fom being everdden, use thetinal modifier Inthe example below, method i dectred a al a so tcannot be overrdden in any ces hat extends Abe. public ches toute In: objoctrisble final void mathosaey {ome statements fou mould not fect new ofintze method bs al Former formation about ihestance in X-+, see Ceaing» Suds puns micros com/EN S/o /0s635526 se Overiding va, Ovedoading to /my blogger com nuk ‘overoseing is where thers more than ane method ith the ame name, but the methads have diferent sgnatres tum fype or paramter Ets or both) Coverings where the sperclss'simplemantation of 3 method is ered by the sub thesame 'simplementation of the method but the signatures of ath methods are DicrTable clas i ued to access information alate te table you ma table name ili to acces the lds af record where you do et know the fill ames x= Dicteld cassis wed to access information rated to table fad clesdobsege args Dictlable dictTable = new DictabletableNum(ustTable DicFeldcicFils Int courte fl Ccustable cual anyype vale ct frstony usable for (couner = 1; counter <» dtTblefeldCnts counters») ‘ Fale « ictable feldcn2itcounte cel = new DcicldtableNum(CustTble eld) Ht aaicrelaisyetemo) abe = estab field vale ofthe record wil display iat, ‘ Infos met = 62, lee belo, Feld name wil spay any2stral 4 ference between Array collection lass and x++ any class ‘an Ara clacton cae can hold he objets s+ aay dss holds printve das types suchas stat 5) What should we use te incresseperfarmance wile inserting, undaing or deleting record from a table? ans: ecordSortedhisttss//wnw blogger com nl) Allows yout inset multiple records none database ip. Use the RecrdSortedist consul when you want subee of daa froma pariculr table, ang when you want eorted nah order hat doesnot cuetly exist a an inde, stodent student RocordSontelist recordSortedlist» new RecordSortedlisttablenumistudent recordSortedlistsotrderfieldnamezidrablenum Student Sudert sudan Student "128 sudan FeNane="OM student LastName="FED recordSortedistinsistuden student StudentD="456 student iesName= TOM student LastName="680" recordSoteistinistuden susentcler student Student "789 student FieeName=ROM den LastName" recordSortedit insistent recordSotedistinsetDatabase, Recordinserttist ntos/vnen blogger con/nul: Allows you to inset muliple cords one database. Use the Recordset constuct when you do notes to srt the os, + Insert recordset su blogger com/nul Allows you to copy multiple records fom one or more tables direc into another ‘able ona single dstvase ip undate recordset fuses wu blaggercom/nll:Alows you to update metple rows na able on single dotbase tp delete fom htneddoe bloggercom/eull lows you to date multiple records rom the database on 3 singe abate tip, 6 Difference between update and doupdats ‘The doUpdate tale method updates the cuent record wit he contents ofthe ber This met rod also updates the appropriate system fs ‘The doUpdate method should be used when the update method on the table is to be bypasted, Suppose you nave overridden the update method of the able record of that ble to be updated. such stuaton you should cl the table doupdate method inten of ableundated method 7) Calection Classes you eannot store objects in strays f+ cass or containers. The Most Dynamics AX cllection classes have been designed for storing jets. Below at collection cases: Set, Map Uist, Array (Collection class) A Se used forthe storage and retrieval of dis fom a colton a which the members ara unique The values of the members serve a the key according to which she data is automata ordered Ths, ifs fom a st collection dass where the members ae placed ino a specc poston, and not ordered sutraticaly by ther vale state veld Seuags 2198) ‘ set setOne setset Setenumerator enumerator mevaue: se:ne » new Settypeslteger sesOneadal serne ada snc) enumerator = setOna.geténumartog while (enumerator moveNes) ‘ vale = enumerator current infojsttent61 vale output: 3 4 ‘ ‘List object contains mambers that ate acetsd sguentilly, Lists are tutes that can contain members of any Xe typ. All the mambets nthe same It mst beofthe same He state veld Listas 395) ‘ Ustinegertist new List ypeslntegen Listénumerator enumerator 1/0 some clmets othe ist inragertistsdenai Invegetistacdenai incegeristadena 1 Sethe enumertor enumarator»inagelstgetEnumeratrt 1 Goto begining of enumerator enumaratorrest 1160 the fist element nthe Uist cnumaratormoveNent 1/ Pint contents fest and secon elements infirm, enumeratorcurent enumaratormoveNect Infojstrtnt91, eumeratorcuent enumaratonmoveNent infotstrton91, enumeratorcuret output: 1 ‘A Map object esate one valu the key wth anaher value, Both the key and vale can be f any val Xe typ ncuang abet, The types of the key and value sre pected inthe dedarstion ofthe map. The way in hich maps are nolemented means that access to the vale is vey fst Napttgs 93) Mopnumerter enum ImapTest = new MaprTypesting.ypeslntege ImapTestineeCOne" ImapTestinserT4e" 2 mages gatEnumertod while enumeratormoveNexco) ‘ infotstrt Key = 1 le «12 enumerator curenKey0.enumertercumentabe ‘output Key -One, Value = Key Two, Vale -2 1 Difference between Containers and Temp tables Data in containas ate stored an retrieved sequently but» temporary able enables you to define indexes to speedup cata reveal Containers provi slower data acces you are working nth many records, However, you ae working wth only a fw records, usa a container cal i passe by reference Cntaines se passed by vale ‘+ When s variable passed by reference, only a pointer to the objet is paseedint the mathod, When avaible pasta by value, anew copy of he variable is passed ito the method, the computer has limited amaunt f memery it might start swapping memary to is, swing down application excuson ‘When you pas variable into 3 method temporary able may provide eter performance thin 9consine, 9) Code proier ‘The Code Proflr measures the execution ime af indi ines of code. Use this oa to id performance botenedks ant help understand code that was daveloged by oer. ev Werk space > Tools > Code profiler you dik on Profle Run button, cll tree nd profile ines willbe there 10) Maps (AOT Element) [Maps define X-+ laments that wrap table object at runtime. With a map, you associate a map field with fled in one or more tables. This enables you to use the same feld name to access elds with different names but the same datatype in diferent tables. Map methods enable you te create or medify methods that act on the map feds. [table can be accesed through more than one map. Typically, f more than one map acestes the same table, ach map accests diferent subete of fields in the table Mops don't define dotabase objects and so they arent synchronized withthe datobos The benefits of maps inca: Simplicity - maps provide single inte to lds in tile tables. This meas that ry object referencing the map field cn be ured agsnst mune tables Consistency ~ table elds wth varying names canbe accessed in cde inconsistent manner For example by using a map ells named Zip inane tbl, ZsCede in another, and Postalcoce nyt another table cana be accessed by the name ZipCode Code euse 2 map method enables you to ad cole that runs agains he map eis. single map method prevents the dupleation of methods and code on each ble An example of» map in Micosaft Dynamics AX is the Address map, which can be used to acces els wo ables (among otets) called Address and CostvenaraneporPontine, This enables developers to ve one Adee a object to access common adores fede ans methods. Map Elman: Mirasft Dynamics AX maps ar locate the Applaton Object re (AT) under the Data Dictionan Mags node ach map has feur primary semen Flos Fela Groups Mappings Methods Flas The Fels node contains the map fl elem’. Each eld must be the some data ype 35 the fo which it's assocated, Use the ExtendedDataType property o spec the map Fi’ ast ype ithe map fi setoriates wth 3 table fel that's based onan etanded datatype, Field Groups: The Feld Groups node contsins Fld groups that group together fies that logy belong together File groupsin maps work he same way they do in able For mare information about eld groups sae Best Practice or Fld Groupe, Dafnng Feld Groups, and Howto Creste a Feld Group. Mappings: The Wappngs nodeis where the map fds ae associate wih table elds. Directly under the Mappings node ate the MappingTable objects. Each Mappinglole object spectis table that the map i associated wit Under the MappingTable abject te the fad mappings that assoclate a mp ld ith table old. ld ess in the map with no associated Feld aparcur table just leave the MapFilo property blank “Methods: Ths node ciplays all the method avaible fom a mop In this node you can add» new method eryou can oveide methods onthe aRecors kernal ass anl add your own code Map maths are uefa because code tht act onthe map fel ean be encapsulate in map rathod nstea of beng in multiple table maths. For ample he AldessMap has 3 frratAderess method tht forts the adress consistenly whether the map relerences the Riess tbl o the CustTable tale 11) Temp Tables & From a developers perspective, temporary tbls sore dats the same way a nema physical ables, except ha the dat i automaticly dropped when 20 longer required ‘They ate useftin tae conan stations 1. Atthe datasource fra frm or port wher the aiginal daa to completa be easly quared 2. As temporary storage during complied processing, to holt the resus midway through the proces. ro snap com/index chs? Temporaytabesuaton=edkteelo 18 of temporary tables Prieto Dynami Ax version Ax 2012, only one typeof temporary ble was sible. nx 2012, however, the Temporary property on tables wa replaced with 3 new property: TableType, wich has thee possible values § Ragular- tana physical able § InMemory - the ype of temporary table which ented in the previous versions of Dynamics Ax Such tables ar held in amy nd writen to lca elk he ‘once they grow beyond a certain pont 5 TempDB - naw option in Ax 2012. They ar "physical temporary ables held in the SOL. Serve database. ‘The nen Tmp0 tables operate in sinlr manner to InMerory tables bt support more festues from standard physical tables. 5 More powerful joins wih physical ables are possible andar properly supported bythe database 5 Can be per-compary or global static vod conFindbamplelcgs args ‘ container c= (item "tema tems connate, “tar2; = coatinde “tema Print "Poston of tema" in continrie » inst Prin "Position of ena incontinent pase Conpeeke-we can get the item in a particular position stati vod conPeskExampltArg_sa} = conto tem, “tam2h 1 for = 1:1 <= conten ske=) prin conPesk passe 2) Method ovetoading and Method avending suppotsoveriing, but does net support overloading Overiding » Method [AX 2012] ‘The methods ina dass are inherited by any clas that extends You can alter the functionality ofan inherited method by creating a methed inthe sulle withthe same name and parameters as inthe superclass. Thi is called overriding the method. For example 1 Supercs: bate public css Arbute inc obectaisble void methoaaro {ome statements 1) Subcss Coloratebute public les ClorAtibuteecende Abate inc addedonjectarible ‘Same statements Coleraribute ls subclass of Atibute and therfore inherts the method methedAt However, because Colertibute defines a method wh the same name and the same number of arguments the method inthe susercssiseverien Preventing Method Oveiing tts vawablaggeccom/nulb ‘Satie method cannot be overdn cecasethey ois per clas To protec other sensitve methods, or core methods ftom beng overidden, se thetinal most. Inthe example below, method i dectred a fn and s cannot be overidden in any ce hat eatends Atrbate public css Abate in: objectariable final void methoseey {Home satemants pecty new of fralze mated a fl lance inX+4, se Casing» Subdae itpd/micn microcoltconVEN-USiban/ss636326 280) ing bos blogger com nu ‘overloading is where there is more than one method wth the ame name, but he methads have deren Sgnatresratum typ or paramater sor both ‘oveidng is whate the sypercls's implementation of a method is aered by the subclass implementation ofthe method, but the signatures ofboth methods ae thesame, 3) Dictnble and Dict Dictable clas i ured to acess information ralated to table (you want o access the flds of recor, where you donot know the fll names = , DicFeld class is wed to access information rated to table fads ssobae9s 298) Dictable detTble = new DitabetableNumCustTble, Int courte elt Ccstable cutTable anyype vate selec fstonty usta for (counter = 1; counter <= dtTableieldCnt counter») ( tT eldcntdounte ised = new DictFeldtableNum(ustabl, eld it yaiareldiesyetemo) ae = establ lly value ofthe record il splay ‘ infotertme1 = 2" tee belo, Ges mame wl spay any2straleh 4 Difference between Array cllecton class and x++ ary clase, ‘an Ara clacton eae can hold he objets se aay les holds primitive das types sucha stint '5) What should we use te incresse perfor ance while inserting, updating or deleting records from a table? ans: ecordSortediisttss//waw blaggecom Jnl) Allows yout inset mule tecotds in ene database tip. Use the RecrdSortedst constuet whe you want subse of data oma paricubr tale ane when you want sorted in an order hat does not curently ext 2 an inde. Stadent det RocordSortelist recordSrtedlist» new RecordSortedisttablenumistudent) recordSortedistsorderfieldnamezidablenum Student Seen studenten: student Student "128 sudan Fistanie=DOM" student LastName" FED recordSorteistinistuen student lea student Student "56 student FieetName=TOM student LastNamne-"68D" recordSorteistinistuden sudentcler student Student "789 student FietName=ROM student LastName recordSortedist insite recordSetedisinsenDatabase, ecordnsetist tsz/vnen blogger con/nul: Allows yu to inset multiple ecrds in one database lp, Use the Recordset constuct when you do not need to srt the as Insert recordset esos blnggezcom/ul) Allows you to copy multiple records rom one or more ables ct into another table ona single dataset undate recordst sos blaggercom/nll:Afows you to update multiple rows na table on single database tp delete fom htpeddoen bloggercom/eull lows you to delat mulipl records rom the database on 2 singe abate tip 6) Difference between update a oupdate ‘The doUpdate table method updates he cuent record with he contents ofthe buffer: This method also wndstes the appropriate sytem fl The daUpdate method should be used when the update method on the abe is oe bypassed, Suppose you have ovrden the update method of the able record of that lable to be updated. In suchstuaton you should cl the table doupdate method ten of ableundated method 7) Collection Classes you cannot stote obs in attays f+ ass x contsinets. The Mlcosoft Dynamics AX callecton classes have been designed for storing jets. Below af collection csses: Set, Map Uist, Array (Collection class) A Sat ie used forthe tage and retrieval of data from 9 colton in which the members ar unique The values of he members sve asthe key acoring to which se data is automata ordered Ths, it fers fom a st collection ass where the members ae placed ino a spec poston, and not ordered stomatal by ther vale state veld Sexags 2138) ‘ set setOne: setseti setenumerstorenamerato, Inevaue: 100 new Setypesiotagar serone aa snc adal serOne ade enumerator» setOne gaténumertort while fenumeratormoveNen fi vale = enumerator current infin 61 vale ‘List object contains members hat re acessed saquetily, Lise are sttures that can contain members of any Xe fp. Al the members inthe same Ist must be ofthe sme 3p static veld Listas 95) ‘ List integertit» new Lit hypesneger Usténumeater enumerator 1/4 some cements othe st invageristacdena invgeristacdena invari 1 Set he erameroter incageistgetinumeratort 1/60 begining of enumerator enumaratonreset; 600 the fst element in thelist enumaratormoveNent 1/ Pint content fst ond second elements iofoto, enumeratoccuent enumaratormoveNent infor, eumeratoccuent eoumaratormoveNent infojstetot961, enumeratorcuent output: 1 ‘A Map object associates one val the key wth another value, Soth he Key and value canbe of any vad X++ type, ncluing abject. The ype of he key and value ae speed inthe cedaration of he map. The way in Which maps are implemented means hat a¢css othe values is very fst MootArgs ars) op mates ImapTest = new Maprtypesting.Typesinege Imaplestinsen?One ImapTestinser Two" 2 enumarator » mapTes.getEnmeratort while enumerator moveNexeo) infottrt Key - 1, Vl ~ $2 enumerator cuenKey0.anumertorcutenVale ‘output Key -One, Value = ey Two, vale -2 £8 Difference between Containers and Temp tables Dota in contsiners ate stored an retveved sequently but 3 temporary able enables you to define indexes to speed up ota revo Containers prove slower dat acces ou are working wth many records, However, you ae working wth onl few records, ut 3 container + Another impecant ference between temporary ables and containers is how they at sed in method call When you passa temporary table nto a method cal iis passe by reference Containers ae passed by vale + When avaiable passed by reference, only a pointer to the objects assent the method When avaiable passd by value anew copy ofthe varable is pasad int the method, the computerha ited srount of memory it might start swapping memory to dt, sowing dow sppitin execon, 9) Code proier he Cade Profle massutes the extcton tna of vil of cade Use this oot find pararmance daveoaed by omer enecks and to help understand cde that was Dev Werk space > Tools > Code profiler you click on Profle Run button, call ee and pri ines willbe there 10) Maps (AOT Element) [Maps define X=+ elements that wrap table object at runtime. With a map, you associate a map field witha field in one or more tables. This enables you te use the same fed name to access elds with different names but the same datatype in diferent tables. Map methods enable you te create or medily methods that act on the map feds [table can be accessed through more than one map, Typically if mere than one mi the same table fields in the table Mops don't define dotabase objects and so they arent synchronized withthe database. ‘The bonfts of maps ince: Simplicity - maps provide a single interface to leds in multiple tables. This mess tha any objet referencing the map field en be uted apna mutipe tables vethour changing any ld names CCanaetancy- table eld wth varying names canbe accesed in code ina content manner For example by ung map fields named Zip hone tbl, ZpCade in another, and PostalCode nyt another table canal be accessed by the name ZipCode Code reuse 2 map method enables youo ad code that runs agains the map felis. single map method prevents the duplcation of methods and code on each ble ‘An example ofa map in Micosoft Dynamics AX isthe Address map, which can be used to acces lel wo ables mong otets) called Ades and CostvensrangporPontine, This enables developers to ve one Ades a object to access common adores fede tno methods. Map Elman: Mirasoft Dynamics AX maps ar locate the Applaton Object re (AT) under the Data Dicionan.Mags node ach map has feur primary ements: Flos Fela Groups Mappings Methods Flas: The Fils node contains the map fl elemen's. Each eld must be the some data ype 35 the fd o which it's asocated, Use the ExtendedDataType property o speci the map Fils asta type ithe map fi strates wth 3 table fel that's based onan extended datatype, Field Groups: The Feld coups node contsins fl groups that group together festa logically belong together Fle groupsin maps work he same way they don ables For mare information about ld groups, see Best Practice or Field Groupe, Defining Feld Groups, and How ta Create a Feld Group. Mappings: The Wappngs nodeis where the map fds ae associate wih table elds. Direct under the Mappings node ate the MappingTable objects Each Mappingloble object specties stable that the map asocated with Under the MappingTable abject te the fal mappings that assoclatea map eld ith stable old. eld ex in the map with no associated Feld a parcur table just leave the MapFielo property blank “Methods: Ths node displays al the methods avaible fom a mop. In this node you can add » new method oryou cn overide method onthe aRecors kernal lass andl add your own code Map methods are useful because code that acts onthe map fl canbe encapsulates in a map mathod nse of being in multiple table methods For example, the AddressMfsp has 3 forrstAdaress method tht fonts the adress consistently whether the map ferences the Ades table othe Custable tale 11) Temp Tables & From a developers perspective, temporary tbls store data the same way a noel physical ables, except ha the dat i sutomsticaly dropped when 20 longer required ‘They ate useftin tae conan stations 1. Asthe datasource fra frm or report whee the original das sto compet been queried 2. As temporary storage during complisted procesing to holt the resus midway through the process. et ht one aaptaoedi com/index sha ile= Temporary tblesactons edituecion=2)Types of temporary tables Prieto Dynamics Ax version Ax 2012, only one typeof temporary ible was sible. nx 2012, however, the Temporary property on tables was replaced with 3 new property: TableType, wich has vee possible values § Ragular- tanea phyal able § nMemany the ype of emgorary table which ented in the previous versions of Dynamics Ax Such tables ar held in aay nd wit to lca ele he ‘once they grow beyond «certain point 5 TempDB - naw options Ax 2012 They are "physical temporary ables held in the SOL. Sere database ‘The nen TempDd tables operate in sir manner to InMemory tbls bt support more features from standard physical tables: 5 More powerful joins wih physical ables are possible andar properly suopore by the database 5 can beper-compary or global ‘Support for normals wansactons comments “This post is locked for comments [News and Announcements ‘Community blag subscition ae now enabled! Ulogs/oos/ poi 4214839-8776-e1-840b-002248700598) i-am-ax-pankaj 25 809s Posed 23 Nov 022 LAM AKAMA) alse 0579 5.21 97 OOESA48) 8 ome a Posted 21 Sep 2022 LAM AK NA fe sed ANSNT 3 SNL APT- SORIA 9 ome a Posed 2 Sep 202 LAM AX at afar S079 13 31a GORDAEEA Otte a PurchaseOrderCancel X+-+ AX 2012 (blogs/post/?postid= 3c1Sff06-9b6f-4022-a801-0efS7ceS Saab) Posed 22 un 2002 AM Ak BAMA) flee BAT 65-1 HT OOO, Ou oF Quick Links ‘Community Spotlight ofthe Month /blogs/post/?postid=fladc}-c2-f-040b- 00033167396) Faliow ou verte Hoge TechTalk: How Datavese and Microsoft Fabre powers. /logs/pas/?past E Med eee ne nee 4 Leaderboard Top community members by points yng Metta ec. omer xe @ ae {Ye8 ovens ow ‘log subscriptions now enabled! /bogs/post/?postid=béObdd82-672e-ft-8403-S04SbddSBI8e) T8911. 102a-ef-840b-Tete5219bcT) comets na exer a eration wen ‘more Community News blogs/?logid=89¢27582-7219-sbbb-bObt-e44et0640643) Lealrboand_ > (eaderboad/enapshotType=

You might also like