Oops

 Variable: 4 types:    static variables, instance variables, method parameters and local variables.

1: should declare with static word

Object: object is the instance of class.

  • Instance means allocating memory space for instance variables.
  • Wherever we create object then memory will allocate for instance variables.

 

Characteristics of an Object:

  • 1.       State                Variable
  • 2.       Behaviour       Method
  • 3.       Identity           Object name or reference variable.

 

Create object:

Class name   object name =  new    classname();



 






 

X++ Function Categories and their Functions AX 2012

This topic lists every X++ built-in function by category.

Descriptions of Categories 


The following table lists only the categories of X++ functions. Each category is described. These categories help people to understand the many functions, but the categories do not represent any formal construct in Microsoft Dynamics AX.

Category

Description

BusinessFunctions that input financial data and calculate formulas.
Compiler Verified(also named Intrinsic)Functions that have their input value verified by the compiler. If the input value is not found to match any existing object in the Application Object Tree (AOT), the compiler issues an error. The inputs to these functions must be literals, because the compiler cannot determine the value that a variable contains at run time.
ContainerFunctions that operate on the container data type of X++.
ConvertFunctions that translate data of one type into data of another type.
DateFunctions that operate on the date data type.
EnumFunctions that operate on enum objects.
MathFunctions that perform mathematical calculations.
MiscellaneousFunctions that do not belong to any specific category.
ReflectionFunctions that access the metadata about objects and return other metadata about them.
SessionFunctions that change or report on the context of the current user connection.
StringFunctions that operate on the str data type.
 
Categorization of X++ Functions

The following table lists the X++ functions that belong in each previous category.

Category

X++ function

Business
  • cTerm
  • ddb
  • dg
  • fv
  • idg
  • intvMax
  • intvName
  • intvNo
  • intvNorm
  • pmt
  • pt
  • pv
  • rate
  • sln
  • syd
  • term
Compiler Verified(also named Intrinsic)
  • attributeStr
  • classNum
  • classStr
  • configurationKeyNum
  • configurationKeyStr
  • datasetStr
  • enumNum
  • enumStr
  • evalBuf
  • extendedTypeNum
  • extendedTypeStr
  • fieldNum
  • fieldPName
  • fieldStr
  • formControlStr
  • formStr
  • identifierstr
  • indexNum
  • indexStr
  • licenseCodeNum
  • licenseCodeStr
  • literalStr
  • menuItemActionStr
  • menuItemDisplayStr
  • menuItemOutputStr
  • menuStr
  • methodStr
  • perspectiveNum
  • perspectiveStr
  • queryDataSourceStr
  • queryStr
  • reportStr
  • resourceStr
  • runBuf
  • securityKeyNum
  • securityKeyStr
  • ssrsReportStr
  • staticMethodStr
  • tableCollectionStr
  • tableFieldGroupStr
  • tableMethodStr
  • tableNum
  • tablePName
  • tableStaticMethodStr
  • tableStr
  • varStr
  • webActionItemStr
  • webDisplayContentItemStr
  • webFormStr
  • webletItemStr
  • webMenuStr
  • webOutputContentItemStr
  • webPageDefStr
  • webReportStr
  • webSiteDefStr
  • webSiteTempStr
  • webStaticFileStr
  • webUrlItemStr
  • webWebpartStr
  • workflowApprovalStr
  • workflowCategoryStr
  • workflowTaskStr
  • workflowTemplateStr
Container
  • conDel
  • conFind
  • conIns
  • conLen
  • conNull
  • conPeek
  • conPoke
Convert
  • any2Enum
  • any2Date
  • any2Guid
  • any2Int
  • any2Int64
  • any2Real
  • any2Str
  • char2Num
  • Date2Num
  • Date2Str
  • Datetime2Str
  • formattedStr2Num
  • guid2Str
  • int2Str
  • int642Str
  • num2Char
  • num2Date
  • num2Str
  • str2Enum
  • str2Date
  • str2Datetime
  • str2Guid
  • str2Int
  • str2Int64
  • str2Num
  • str2Time
  • time2Str
  • uint2Str
Date
  • dayName
  • dayOfMth
  • dayOfWk
  • dayOfYr
  • endMth
  • maxDate
  • mkDate
  • mthName
  • mthOfYr
  • nextMth
  • nextQtr
  • nextYr
  • prevMth
  • prevQtr
  • prevYr
  • timeNow
  • today
  • wkOfYr
  • year
Enum
  • enum2Str
  • enumCnt
Math
  • abs
  • acos
  • asin
  • atan
  • corrFlagGet
  • corrFlagSet
  • cos
  • cosh
  • decRound
  • exp
  • exp10
  • frac
  • log10
  • logN
  • power
  • round
  • sin
  • sinh
  • tan
  • tanh
  • trunc
Miscellaneous
  • beep
  • classIdGet
  • dimOf
  • getPrefix
  • max
  • maxInt
  • min
  • minInt
  • newGuid
  • setPrefix
  • sleep
  • systemDateget
  • systemDateset
Reflection
  • fieldId2Name
  • fieldId2PName
  • fieldName2Id
  • indexId2Name
  • indexName2Id
  • refPrintAll
  • tableId2Name
  • tableId2PName
  • tableName2Id
  • typeOf
Session
  • curExt
  • curUserId
  • getCurrentPartition
  • getCurrentPartitionRecId
  • SessionId
  • funcName
  • prmIsDefault
  • runAs
String
  • match
  • strAlpha
  • strCmp
  • strColSeq
  • strDel
  • strFind
  • strFmt
  • strIns
  • strKeep
  • strLen
  • strLine
  • strLTrim
  • strLwr
  • strNFind
  • strPoke
  • strPrompt
  • strRem
  • strRep
  • strRTrim
  • strScan
  • strUpr
  • subStr

Sequence of calling form and table methods in AX 2012


1. Sequence of Method calls while Opening the Form 

Form — init ()
Form — Datasource — init ()
Form — run ()
Form — Datasource — execute Query ()
Form — Datasource — active ()

1.2 Sequence of Methods calls while closing the form
Form — canClose ()
Form — close ()

 

2.1 Sequence of Methods calls while creating the record in the Form

Form — Datasource — create ()
Form — Datasource — initValue ()
Table — initValue ()
Form — Datasource — active ()

 

2.2 Sequence of Method calls while saving the record in the Form

Form — Datasource — ValidateWrite ()
Table — ValidateWrite ()
Form — Datasource — write ()
Table — insert ()

2.3 Sequence of Method calls while deleting the record in the Form

Form — Datasource — validatedelete ()
Table — validatedelete ()
Table — delete ()
Form — Datasource — active ()

3. Sequence of Methods calls while modifying the fields in the Form

Table — validateField ()
Table — modifiedField ()

Table Browser in Dynamics 365FO

Copy D365FO Table Browser URL /?cmp=usmf&mi=SysTableBrowser&tablename= URL :  https://usnconeboxax1aos.cloud.onebox.dynamics.com...