tag:blogger.com,1999:blog-75486102003550608002024-02-08T06:19:37.640+11:00Microsoft Dynamics AX is the ultimate frontier of ERP.....My blog is dedicated to an awesome product and ERP technology by Microsoft called Dynamics AX. My blog covers every aspect, technical and functional, of the product. Microsoft Dynamics AX is the complete ERP solution for enterprises covering Financial, Supply Chain, Manufacturing, HR, CRM, etc. Microsoft Dynamics AX enables your people to work more effectively and your organization to rapidly change to meet emerging opportunities.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.comBlogger49125tag:blogger.com,1999:blog-7548610200355060800.post-37577370019073150072013-03-04T14:35:00.002+11:002013-03-04T14:35:56.363+11:00Microsoft Dynamics AX 2012 R2 - cosh Function<br />
<span style="color: black;">Retrieves the hyperbolic cosine of a real number. <br /><br />Argument values outside of the range –250 to 250 result in the following run-time error: "Argument for trigonometric function out of range."</span><br />
<br />
<br />
<h3 style="color: black;">
Function</h3>
<ul>
<li><span style="color: black;">real cosh(real arg)</span></li>
</ul>
<br />
<h3 style="color: black;">
Parameters</h3>
<ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> arg</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> The hyperbolic number for which to calculate the cosine.</span></li>
</ul>
<br />
The value of the arg parameter must be in radians.<br />
<br />
<br />
<h3 style="color: black;">
Return Value</h3>
<ul>
<li>The hyperbolic cosine of the specified number. <span style="color: black;"> </span></li>
</ul>
<br />
<h3 style="color: black;">
Example</h3>
<ul>
<li><b style="color: magenta;">X++</b></li>
</ul>
<blockquote class="tr_bq">
static void coshExample(Args _arg)<br />{<br /> real r;<br /> ;<br /> r = cosh(0.1);<br /> print "The hyperbolic cosine of 0.1 is " + num2Str(r, 2, 2, 1, 1);<br /> pause;<br />}</blockquote>
<br />
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - cosh Function' was informative. Please feel free to leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com0tag:blogger.com,1999:blog-7548610200355060800.post-43357672590717274232013-03-04T14:20:00.000+11:002013-03-04T14:20:18.279+11:00Microsoft Dynamics AX 2012 R2 - cos Function<br />
<span style="color: black;">Retrieves the cosine of a real number.</span><br />
<br />
<br />
<h3 style="color: black;">
Function</h3>
<ul>
<li><span style="color: black;">real cos(real arg)</span></li>
</ul>
<br />
<h3 style="color: black;">
Parameters</h3>
<ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> arg</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> The number of which to find the cosine.</span></li>
</ul>
<span style="color: black;"> </span><br />The value of the arg parameter must be in radians.<br />
<br />
<br />
<h3 style="color: black;">
Return Value</h3>
<ul>
<li>The cosine of the specified number.<span style="color: black;"></span></li>
</ul>
<br />
<h3 style="color: black;">
Example</h3>
<ul>
<li><b style="color: magenta;">X++</b></li>
</ul>
<blockquote class="tr_bq">
static void cosExample(Args _arg)<br />{<br /> real r;<br /> ;<br /> r = cos(15);<br /> print strFmt("Cos of 15 is %1", r);<br /> pause;<br />}</blockquote>
<br />
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - cos Function' was informative. Please feel free to leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com0tag:blogger.com,1999:blog-7548610200355060800.post-26971964396614288072013-03-04T14:10:00.000+11:002013-03-04T14:10:34.667+11:00Microsoft Dynamics AX 2012 R2 - corrFlagSet Function<br />
<span style="color: black;">Controls the correction flag for a real number.</span><br />
<br />
<br />
<h3 style="color: black;">
Function</h3>
<ul>
<li><span style="color: black;">real corrFlagSet(real real, int arg)</span></li>
</ul>
<br />
<h3 style="color: black;">
Parameters</h3>
<ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> real</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> The number in which to set the correction flag on or off.</span></li>
</ul>
<span style="color: black;"> </span><ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> arg</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> 0 to set the flag to off; a non-zero value to set the flag to on.</span></li>
</ul>
<span style="color: black;"></span><br />
<h3 style="color: black;">
Return Value</h3>
<ul>
<li>0 if the flag is now off; otherwise, a nonzero value if the flag is now on.<span style="color: black;"></span></li>
</ul>
<br />
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - corrFlagSet Function' was informative. Please feel free to leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com0tag:blogger.com,1999:blog-7548610200355060800.post-51692026463209691582013-03-04T13:55:00.000+11:002013-03-04T13:55:30.298+11:00Microsoft Dynamics AX 2012 R2 - corrFlagGet Function<br />
<span style="color: black;">Retrieves the state of the correction flag for a real number.</span><br />
<br />
<br />
<h3 style="color: black;">
Function</h3>
<ul>
<li><span style="color: black;">int corrFlagGet(real arg)</span></li>
</ul>
<br />
<h3 style="color: black;">
Parameters</h3>
<ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> arg</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> The flag for which to retrieve the state.</span></li>
</ul>
<br />
<h3 style="color: black;">
Return Value</h3>
<ul>
<li>A non-zero value if the flag is set; zero if it is cleared.<span style="color: black;"></span></li>
</ul>
<br />
<h3 style="color: black;">
Example</h3>
<ul>
<li><b style="color: magenta;">X++</b></li>
</ul>
<blockquote class="tr_bq">
The following example displays 1. </blockquote>
<blockquote class="tr_bq">
static void corrFlagGetExample(Args _args)<br />{<br /> real rr;<br /><br /> rr = corrFlagSet(0.36,2);<br /> print(corrFlagGet(rr));<br />}</blockquote>
<br />
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - corrFlagGet Function' was informative. Please feel free to leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com0tag:blogger.com,1999:blog-7548610200355060800.post-13930288661305872422013-03-04T13:39:00.001+11:002013-03-04T13:39:41.975+11:00Microsoft Dynamics AX 2012 R2 - conPoke Function<br />
<span style="color: black;">Modifies a container by replacing one or more of the existing elements.</span><br />
<br />
<h3 style="color: black;">
Function</h3>
<ul>
<li><span style="color: black;">container conPoke(container container, int start, anytype element, ...)</span></li>
</ul>
<br />
<h3 style="color: black;">
Parameters</h3>
<ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> container</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> The container to modify.</span></li>
</ul>
<span style="color: black;"> </span><ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> start</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> The position of the first element to replace.</span></li>
</ul>
<span style="color: black;"> </span><ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> element</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> One or more elements to replace, separated by commas.</span></li>
</ul>
<span style="color: black;"></span><span style="color: black;"></span><br />
The first element of the container is specified by the number 1.<br />
<br />
<h3 style="color: black;">
Return Value</h3>
<ul>
<li>The new container with the new elements.<span style="color: black;"></span></li>
</ul>
<br />
<h3 style="color: black;">
Example</h3>
<ul>
<li><b style="color: magenta;">X++</b></li>
</ul>
<blockquote class="tr_bq">
static void conPokeExample(Args _arg)<br />{<br /> container c1 = ["item1", "item2", "item3"];<br /> container c2;<br /> int i;<br /><br /> void conPrint(container c)<br /> {<br /> for (i = 1 ; i <= conLen(c) ; i++)<br /> {<br /> print conPeek(c, i);<br /> }<br /> }<br /> ;<br /> conPrint(c1);<br /> c2 = conPoke(c1, 2, "PokedItem");<br /> print "";<br /> conPrint(c2);<br /> pause;<br />}</blockquote>
<br />
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - conPoke Function' was informative. Please feel free to leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com1tag:blogger.com,1999:blog-7548610200355060800.post-43831717882338473242013-03-04T13:21:00.001+11:002013-03-04T13:21:10.299+11:00Microsoft Dynamics AX 2012 R2 - conPeek Function<br />
<span style="color: black;">Retrieves a specific element from a container.</span><br />
<br />
<br />
<h3 style="color: black;">
Function</h3>
<ul>
<li><span style="color: black;">anytype conPeek(container container, int number)</span></li>
</ul>
<span style="color: black;"></span><br />
<h3 style="color: black;">
Parameters</h3>
<ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> container</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description: </span></b>The container to return an element from.</span></li>
</ul>
<span style="color: black;"> </span><ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> number</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:<span style="color: black;"> </span></span></b><span style="color: magenta;"><span style="color: black;">The position of the element to return. Specify 1 to get the first element.</span></span></span></li>
</ul>
<span style="color: black;"></span><br /><span style="color: black;"></span>The conPeek function automatically converts the peeked item into the expected return type. Strings can automatically be converted into integers and real numbers, and vice versa.<br />
<br />
<br />
<h3 style="color: black;">
Return Value</h3>
<ul>
<li>The element in the container at the position specified by the number parameter.<span style="color: black;"></span></li>
</ul>
<br />
<h3 style="color: black;">
Example</h3>
<ul>
<li><b style="color: magenta;">X++</b></li>
</ul>
<blockquote class="tr_bq">
static void conPeekExample(Args _arg)<br />{<br /> container c;<br /> int i;<br /> ;<br /><br /> c = conIns(["item1", "item2"], 1); <br /> for (i = 1 ; i <= conLen(c) ; i++) <br /> {<br /> print conPeek(c, i);<br /> }<br /> pause;<br />}</blockquote>
<br />
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - conPeek Function' was informative. Please feel free to leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com0tag:blogger.com,1999:blog-7548610200355060800.post-6221016712054672962013-03-04T12:41:00.000+11:002013-03-04T12:41:03.066+11:00Microsoft Dynamics AX 2012 R2 - conNull Function<br />
<span style="color: black;">Retrieves an empty container.</span><br />
<br />
<br />
<h3 style="color: black;">
Function</h3>
<ul>
<li><span style="color: black;">container conNull()</span></li>
</ul>
Use this function to explicitly dispose of the contents of a container.<br />
<br />
<br />
<h3 style="color: black;">
Return Value</h3>
<ul>
<li>An empty container.<br />
<span style="color: black;"> </span></li>
</ul>
<br />
<h3 style="color: black;">
Example</h3>
<ul>
<li><b style="color: magenta;">X++</b></li>
</ul>
<blockquote class="tr_bq">
static void conNullExample(Args _arg)<br />{<br /> container c = ["item1", "item2", "item3"];<br /> ;<br /><br /> print "Size of container is " + int2str(conLen(c));<br /> // Set the container to null.<br /> c = conNull(); <br /> print "Size of container after conNull() is " + int2Str(conLen(c));<br /> pause;<br />}</blockquote>
<br />
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - conNull Function' was informative. Please feel free to leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com0tag:blogger.com,1999:blog-7548610200355060800.post-56724487057234905012013-02-21T14:26:00.000+11:002013-02-21T15:03:19.752+11:00Ashish, congratulations! You have one of the top 1% most viewed LinkedIn profiles for 2012.<b>I just received an email from LinkedIn:</b><br />
<br />
<h3>
"Ashish, congratulations! You have one of the top 1% most viewed LinkedIn profiles for 2012"</h3>
<br />
It is good to know that my LinkedIn profile is in top 1% most viewed profiles for 2012. <br />
<br />
<b><u><a href="http://www.linkedin.com/in/ashishmahajan74" target="_blank">Click here to view my LinkedIn profile</a>.</u></b><br />
<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://www.linkedin.com/in/ashishmahajan74" target="_blank"><img alt="My LinkedIn profile is in top 1% most viewed profiles for 2012" border="0" height="375" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfzQ-CUtJ9kL855tyQIxADCBhQJ4bJ0qu2CphU6K-uvoUSKzk9kmul3xF16O08MlCS_732PSeVa1nY2EvQTXsWiLMyUwVYl29RR9X0B118K6fBmJ7TOMtIzRgjhjUTkVVR5igGcRErghw/s640/Capture.JPG" title="My LinkedIn profile is in top 1% most viewed profiles for 2012" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><a href="http://www.linkedin.com/in/ashishmahajan74" target="_blank">My LinkedIn profile is in top 1% most viewed profiles for 2012</a></td></tr>
</tbody></table>
<br />
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
Please feel free to leave your comments.</div>
Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com0tag:blogger.com,1999:blog-7548610200355060800.post-51741751143509086122013-02-04T12:34:00.000+11:002013-02-04T12:34:15.393+11:00Microsoft Dynamics AX 2012 R2 - conLen Function<br />
<span style="color: black;">Retrieves the number of elements in a container.</span><br />
<br />
<br />
<h3 style="color: black;">
Function</h3>
<ul>
<li><span style="color: black;">int conLen(container container)</span></li>
</ul>
<br />
<h3 style="color: black;">
Parameters</h3>
<ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> container</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> The container in which to count the number of elements.</span></li>
</ul>
The <span class="parameter">object</span> parameter can be of most data types, but useful output is obtained when it is of the <span class="code">str</span> or <span class="code">int</span> type. Inappropriate content generates a run-time error.<br />
<br />
<h3 style="color: black;">
Return Value</h3>
<ul>
<li>The number of elements in the container.<span style="color: black;"></span></li>
</ul>
<br />
<h3 style="color: black;">
Example</h3>
<ul>
<li><b style="color: magenta;">X++</b></li>
</ul>
<blockquote class="tr_bq">
static void conLenExample(Args _arg)<br />{<br /> container c;<br /> int i;<br /> ;<br /><br /> c = conins(["item1", "item2"], 1); <br /> for (i = 1 ; i <= conLen(c) ; i++)<br /> {<br /> print conPeek(c, i);<br /> }<br /> pause;<br />}</blockquote>
<br />
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - conLen Function' was informative. Please feel free to leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com2tag:blogger.com,1999:blog-7548610200355060800.post-1074434747940914022013-02-04T12:29:00.001+11:002013-02-04T12:29:27.895+11:00Microsoft Dynamics AX 2012 R2 - conIns Function<br />
<span style="color: black;">Inserts one or more elements into a container.</span><br />
<br />
<br />
<h3 style="color: black;">
Function</h3>
<ul>
<li><span style="color: black;">container conIns (container container, int start, anytype element, ... )</span></li>
</ul>
<br />
<h3 style="color: black;">
Parameters</h3>
<ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> container</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> The container into which to insert elements.</span></li>
</ul>
<span style="color: black;"> </span><ul>
</ul>
<ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> start</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> The position at which to insert elements.</span></li>
</ul>
<span style="color: black;"> </span><ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> element</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> One or more elements to insert, separated by commas.</span></li>
</ul>
<span style="color: black;"></span><span style="color: black;"></span><br />
The first element of the container is specified by the number 1. To insert after the n element, the start parameter should be n+1.<br /><br />You can also use the += operator to add values of any type into a container. For example, to create a container that contains the squared values of the first 10 loop iterations:<br />
<br />
<ul>
<li><b><span style="color: magenta;">X++</span></b></li>
</ul>
<blockquote class="tr_bq">
int i;<br />container c;<br /><br />for (i = 1; i < = 10; i++)<br />{<br /> c += i*i;<br />}</blockquote>
<br />
<h3 style="color: black;">
Return Value</h3>
<ul>
<li>The new container with the inserted elements.<span style="color: black;"></span></li>
</ul>
<br />
<h3 style="color: black;">
Example</h3>
<ul>
<li><b style="color: magenta;">X++</b></li>
</ul>
<blockquote class="tr_bq">
static void conInsExample(Args _arg)<br />{<br /> container c;<br /> int i;<br /> ;<br /><br /> c = conIns(c,1,"item1"); <br /> c = conIns(c,2,"item2");<br /> for (i = 1 ; i <= conLen(c) ; i++) <br /> {<br /> // Prints the content of a container.<br /> print conPeek(c, i);<br /> <br /> }<br /> pause;<br /><br />}</blockquote>
<br />
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - <span style="color: black;">conIns Function</span>' was informative. Please feel free to leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com0tag:blogger.com,1999:blog-7548610200355060800.post-65534207133377344372013-02-04T12:06:00.000+11:002013-02-04T12:06:41.425+11:00Microsoft Dynamics AX 2012 R2 - conFind Function<br />
<span style="color: black;">Locates the first occurrence of an element or a sequence of elements in a container.</span><br />
<br />
<h3 style="color: black;">
Function</h3>
<ul>
<li><span style="color: black;">int conFind (container container, anytype element,... )</span></li>
</ul>
<br />
<h3 style="color: black;">
Parameters</h3>
<ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> container</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> The container to search.</span></li>
</ul>
<span style="color: black;"> </span><ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> element</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> One or more elements to search for, separated by commas.</span></li>
</ul>
<span style="color: black;"></span><ul>
</ul>
If several elements are specified in the sequence, they must be separated by commas and specified in the correct sequence. The elements can be of any data type.<br />
<br />
<h3 style="color: black;">
Return Value</h3>
<ul>
<li>Returns 0 if the item was not found; otherwise, the sequence number of the item.<span style="color: black;"></span></li>
</ul>
<br />
<h3 style="color: black;">
Example</h3>
<ul>
<li><b style="color: magenta;">X++</b></li>
</ul>
<blockquote class="tr_bq">
static void conFindExample(Args _args)<br />{<br /> container c = ["item1", "item2", "item3"];<br /> int i;<br /> int j;<br /> ;<br /><br /> i = conFind(c, "item2");<br /> j = conFind(c, "item4");<br /> print "Position of 'item2' in container is " + int2Str(i);<br /> print "Position of 'item4' in container is " + int2Str(j);<br /> pause;<br />}</blockquote>
<br />
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - conFind Function' was informative. Please feel free to leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com0tag:blogger.com,1999:blog-7548610200355060800.post-40080284609906482132013-01-18T15:46:00.001+11:002013-01-18T15:46:55.556+11:00Microsoft Dynamics AX 2012 R2 - configurationKeyStr Function<br />
Retrieves the name of a configuration key as a string.<br />
<br />
<h3 style="color: black;">
Function</h3>
<ul>
<li><span style="color: black;">str configurationKeyStr(str keyname)</span></li>
</ul>
<br />
<h3 style="color: black;">
Parameters</h3>
<ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> keyname</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> The name of the configuration key.</span></li>
</ul>
Use this function instead of literal text to retrieve a string that contains the configuration key name. If the key does not exist, the function generates a syntax error at compile time.<br />
<br />
<h3 style="color: black;">
Return Value</h3>
<ul>
<li>The name of the configuration key.<span style="color: black;"></span></li>
</ul>
<br />
<h3 style="color: black;">
Example</h3>
<ul>
<li><b style="color: magenta;">X++</b></li>
</ul>
<blockquote class="tr_bq">
static void configurationKeyStrExample(Args _args)<br />{<br /> str s;<br /> ;<br /> s = configurationKeyStr(AIF);<br /> print s;<br /> pause;<br />}</blockquote>
<br />
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - configurationKeyStr Function' was informative. Please feel free to leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com1tag:blogger.com,1999:blog-7548610200355060800.post-14152185001944318932013-01-11T11:14:00.000+11:002013-01-11T11:14:45.093+11:00Microsoft Dynamics AX 2012 R2 - configurationKeyNum Function<br />
Retrieves the ID of the specified configuration key.<br />
<br />
<br />
<h3 style="color: black;">
Function</h3>
<ul>
<li><span style="color: black;">int configurationKeyNum(str keyname)</span></li>
</ul>
<br />
<br />
<h3 style="color: black;">
Parameters</h3>
<ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> keyname</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> The configuration key for which to return the ID. </span></li>
</ul>
<br />
<br />
<h3 style="color: black;">
Return Value</h3>
<ul>
<li>The ID of the specified configuration key. <span style="color: black;"> </span></li>
</ul>
<br />
<br />
<h3 style="color: black;">
Example</h3>
<ul>
<li><b style="color: magenta;">X++</b></li>
</ul>
<blockquote class="tr_bq">
static void configurationKeyNum(Args _args)<br />{<br /> int i;<br /> ;<br /> i = configurationKeyNum(AIF);<br /> print i;<br /> pause;<br />}</blockquote>
<br />
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - configurationKeyNum Function' was informative. Please feel free to leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com0tag:blogger.com,1999:blog-7548610200355060800.post-91193632795630567242013-01-10T10:45:00.000+11:002013-01-10T10:45:26.124+11:00Microsoft Dynamics AX 2012 R2 - conDel Function<br />
Removes the specified number of elements from a container.<br />
<br />
<br />
<h3 style="color: black;">
Function</h3>
<ul>
<li><span style="color: black;">container conDel(container container, int start, int number)</span></li>
</ul>
<br />
<br />
<h3 style="color: black;">
Parameters</h3>
<ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> container</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description: </span></b>The container from which to remove elements.</span></li>
</ul>
<span style="color: black;"> </span><ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> start</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> The one-based position at which to start removing elements.</span></li>
</ul>
<span style="color: black;"> </span><ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> number</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> The number of elements to delete.</span></li>
</ul>
<span style="color: black;"> </span><span style="color: black;"></span><br />
<br />
<h3 style="color: black;">
Return Value</h3>
<ul>
<li>A new container without the removed elements.<span style="color: black;"> </span></li>
</ul>
<br />
<br />
<h3 style="color: black;">
Example</h3>
<ul>
<li><b style="color: magenta;">X++</b></li>
</ul>
<blockquote class="tr_bq">
static void conDelExample(Args _args)<br />{<br /> container c = ["Hello world", 1, 3.14];<br /> ;<br /> // Deletes the first two items from the container.<br /> c = conDel(c, 1, 2);<br />}</blockquote>
<br />
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - conDel Function' was informative. Please feel free to leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com0tag:blogger.com,1999:blog-7548610200355060800.post-87635893011542372062013-01-10T09:34:00.000+11:002013-01-10T09:34:49.653+11:00Microsoft Dynamics AX 2012 R2 - classStr Function<br />
<span style="color: black;">Retrieves the name of a class as a string.</span><br />
<br />
<br />
<h3 style="color: black;">
Function</h3>
<ul>
<li><span style="color: black;">str classStr(class class)</span></li>
</ul>
<br />
<br />
<h3 style="color: black;">
Parameters</h3>
<ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> class</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> The name of the class to return.</span></li>
</ul>
<div style="text-align: justify;">
Use this function instead of literal text to retrieve a string that contains the class name. If the class does not exist, the function generates a syntax error at compile time.</div>
<br />
<br />
<h3 style="color: black;">
Return Value</h3>
<ul>
<li>The name of the class.<span style="color: black;"> </span></li>
</ul>
<br />
<br />
<h3 style="color: black;">
Example</h3>
<ul>
<li><b style="color: magenta;">X++</b></li>
</ul>
<blockquote class="tr_bq">
static void clStrExample(Args _args)<br />{<br /> str s;<br /> ;<br /> s = classStr(Global);<br /> print s;<br /> pause;<br />}</blockquote>
<br />
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - classStr Function' was informative. Please feel free to leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com0tag:blogger.com,1999:blog-7548610200355060800.post-45482805486891576022013-01-10T09:30:00.000+11:002013-01-10T09:30:56.651+11:00Microsoft Dynamics AX 2012 R2 - classNum Function<br />
<span style="color: black;">Retrieves the ID of the specified class.</span><br />
<br />
<br />
<h3 style="color: black;">
Function</h3>
<ul>
<li><span style="color: black;">int classNum(class class)</span></li>
</ul>
<br />
<br />
<h3 style="color: black;">
Parameters</h3>
<ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> class</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> The class for which to retrieve the ID.</span></li>
</ul>
<br />
<br />
<h3 style="color: black;">
Return Value</h3>
<ul>
<li>The ID of the specified class.<span style="color: black;"> </span></li>
</ul>
<br />
<br />
<h3 style="color: black;">
Example</h3>
<ul>
<li><b style="color: magenta;">X++</b></li>
</ul>
<blockquote class="tr_bq">
static void classNumExample(Args _args)<br />{<br /> int i;<br /> ;<br /> i = classNum(Global);<br /> print i;<br /> pause;<br />}</blockquote>
<br />
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - classNum Function' was informative. Please feel free to leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com0tag:blogger.com,1999:blog-7548610200355060800.post-30711229071842377972013-01-09T15:49:00.000+11:002013-01-09T15:49:10.581+11:00Microsoft Dynamics AX 2012 R2 - classIdGet Function<div style="color: black;">
<span style="color: black;"><br /></span>
<span style="color: black;">Retrieves the numeric identifier (the class ID) for the class of which the object is initialized.</span><br />
<br />
<h3 style="color: black;">
Function</h3>
<ul>
<li><span style="color: black;">int classIdGet(class object)</span></li>
</ul>
<br />
<h3 style="color: black;">
Parameters</h3>
<ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> object</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description: </span></b>The object for which to get the class ID.</span></li>
</ul>
<br />
<h3 style="color: black;">
Return Value</h3>
<ul>
<li>The class ID of the specified object.
<span style="color: black;"> </span></li>
</ul>
<br />
<h3 style="color: black;">
Example</h3>
<ul>
<li><b style="color: magenta;">X++</b></li>
</ul>
<blockquote class="tr_bq">
static void classIdGetExample(Args _args)<br />{<br /> int i;<br /> WorkTimeCheck w;<br /> ;<br /> i = classIdGet(w);<br /> print "Class ID for object is " + int2Str(i);<br /> pause;<br />}</blockquote>
</div>
<br />
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - classIdGet Function' was informative. Please feel free to
leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com0tag:blogger.com,1999:blog-7548610200355060800.post-7873731589200310942013-01-09T15:27:00.000+11:002013-01-09T15:27:11.849+11:00Microsoft Dynamics AX 2012 R2 - X++ Functions<div style="text-align: justify;">
<br />
In Microsoft Dynamics AX, the X++ language provides more than 100 system functions that are not part of any class. <b>The two types of functions are as follows:</b></div>
<ul>
<li><b><span style="color: magenta;">Run time -</span></b> functions that are executed during run time.</li>
</ul>
<ul>
<li><b style="color: magenta;">Compile time -</b> functions that are executed during compile time.</li>
</ul>
<div style="color: black;">
<br /></div>
<h3>
Run Time Functions</h3>
<div style="color: black;">
<br /></div>
<div style="text-align: justify;">
Run time functions used for data type conversions, mathematical operations, and so on. <b>Some common run time functions are as follows:</b></div>
<ul>
<li><b><span style="color: magenta;">str2Int -</span></b> creates an int value from a str value.</li>
</ul>
<ul>
<li><b style="color: magenta;">abs -</b> creates a positive real value from a real value that is either positive or negative.</li>
</ul>
<ul>
<li><b style="color: magenta;">conFind -</b> retrieves the location of an element in a container.</li>
</ul>
<div style="color: black;">
<br />
<b>Call Run Time Functions from .NET</b></div>
<ul style="text-align: justify;">
<li><b>The logic of the X++ run time functions is also implemented in the following .NET assembly:</b></li>
</ul>
<blockquote class="tr_bq">
Microsoft.Dynamics.AX.Xpp.Support.DLL</blockquote>
<ul style="text-align: justify;">
<li><b>Inside the previous assembly, the X++ run time functions are implemented as static methods of the following class:</b></li>
</ul>
<blockquote class="tr_bq">
<div style="color: black;">
Microsoft.Dynamics.AX.Xpp.PredefinedFunctions</div>
</blockquote>
<div style="color: black;">
<br /></div>
<h3>
Compile Time Functions</h3>
<div style="color: black; text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Compile time functions are executed early in the compile of X++ code. Most of these functions retrieve metadata about items that are in the Application Object Tree (AOT). <b>Some common compile time functions are as follows:</b></div>
<ul style="text-align: justify;">
<li><b style="color: magenta;">classNum -</b> retrieves the ID of a class.</li>
</ul>
<ul style="text-align: justify;">
<li><b style="color: magenta;">classStr -</b> verifies during compile time that a class by that name exists. This is better than discovering the error later during run time.</li>
</ul>
<ul style="text-align: justify;">
<li><b style="color: magenta;">evalBuf -</b> evaluates the input string of X++ code, and then returns the results as a string.</li>
</ul>
<ul style="text-align: justify;">
<li><b style="color: magenta;">literalStr -</b> retrieves a label ID when given the string representation of a label, such as the string "@SYS12345". For example, myLabel.exists(literalStr("@SYS12345"));. </li>
</ul>
<div style="color: black;">
<br />
<b style="color: magenta;">Note:</b> Compile time functions are sometimes called intrinsic functions.</div>
<div style="color: black;">
<br /></div>
<b style="color: magenta;">Note:</b> X++ compile time functions cannot be called from a .NET program. <b style="color: red;"> </b><br />
<br />
<br />
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - X++ Functions' was informative. Please feel free to
leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com0tag:blogger.com,1999:blog-7548610200355060800.post-88365355944825836322013-01-09T15:06:00.000+11:002013-01-09T15:08:26.298+11:00Microsoft Dynamics AX 2012 R2 - Intrinsic Functions<div style="color: black;">
Intrinsic functions are metadata assertion functions. They take arguments that represent entities in the Application Object Tree (AOT), and validate these arguments at compile time. They have no effect at run time. Intrinsic functions are a subgroup of the X++ system functions, and typically have names ending in Num or Str, for example: classNum and formStr.</div>
<div style="text-align: justify;">
<br />
Intrinsic functions should be used wherever possible in X++ code to make the code resilient to changes to the metadata stored in the AOT.<br />
<br />
You will get a best practice warning if you use the for identifierStr function. This is because no existence checking is carried out for identifierStr. Try to use a more specific intrinsic function if one is available.<br />
<br />
<b style="color: magenta;">The following list contains the intrinsic functions in MorphX.</b></div>
<div style="color: black;">
<br /></div>
<h3>
Validation of Table Metadata</h3>
<ul>
<li>tableCollectionStr</li>
<li>tableFieldGroupStr</li>
<li>tablePName</li>
<li>tableNum</li>
<li>tableMethodStr</li>
<li>tableStaticMethodStr</li>
<li>tableStr </li>
</ul>
<div style="color: black;">
<br /></div>
<h3>
Validation of Field Metadata</h3>
<ul>
<li>fieldNum</li>
<li>fieldPname</li>
<li>fieldStr </li>
</ul>
<div style="color: black;">
</div>
<h3>
Validation of Index Metadata</h3>
<ul>
<li>indexNum</li>
<li>indexStr </li>
</ul>
<div style="color: black;">
<br /></div>
<h3>
Validation of Data Type Metadata</h3>
<ul>
<li>enumCnt</li>
<li>enumNum</li>
<li>enumStr</li>
<li>extendedTypeNum</li>
<li>extendedTypeStr</li>
<li>typeId </li>
</ul>
<div style="color: black;">
</div>
<h3>
Validation of Configuration Key Metadata</h3>
<ul>
<li>configurationKeyNum</li>
<li>configurationKeyStr </li>
</ul>
<div style="color: black;">
<br /></div>
<h3>
Validation of License Metadata</h3>
<ul>
<li>licenseCodeNum</li>
<li>licenseCodeStr </li>
</ul>
<div style="color: black;">
<br /></div>
<h3>
Validation of Class Metadata</h3>
<ul>
<li>classNum</li>
<li>classStr</li>
<li>methodStr</li>
<li>staticMethodStr </li>
</ul>
<div style="color: black;">
<br /></div>
<h3>
Validation of Form, Report, Query, and Menu Metadata</h3>
<div style="color: black;">
<br />
Where possible, use the AutoDeclaration property on controls.</div>
<ul>
<li>formStr </li>
</ul>
<div style="color: black;">
<b style="color: magenta;">Note:</b> In forms, control:: controlName returns the ID of the control.</div>
<ul>
<li>formControlStr</li>
<li>menuItemActionStr</li>
<li>menuItemDisplayStr</li>
<li>menuItemOutputStr</li>
<li>menuStr</li>
<li>reportStr</li>
<li>queryStr</li>
<li>queryDataSourceStr </li>
</ul>
<div style="color: black;">
</div>
<h3>
Validation of Web Metadata</h3>
<ul>
<li>webActionItemStr</li>
<li>webDisplayContentItemStr</li>
<li>webletItemStr</li>
<li>webOutputContentItemStr</li>
<li>webpageDefStr</li>
<li>webReportStr</li>
<li>websiteDefStr</li>
<li>websiteTempStr</li>
<li>webStaticFileStr</li>
<li>webUrlItemStr</li>
<li>webWebpartStr </li>
</ul>
<div style="color: black;">
<br /></div>
<h3>
Other</h3>
<ul>
<li>identifierStr</li>
<li>literalStr</li>
<li>maxDate</li>
<li>maxInt</li>
<li>minDate</li>
<li>minInt</li>
<li>resourceStr</li>
<li>varStr </li>
</ul>
<div style="color: black;">
<br /></div>
<span style="color: black;"></span><b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - Intrinsic Functions' was informative. Please feel free to
leave your comments.<br />
<br />Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com0tag:blogger.com,1999:blog-7548610200355060800.post-60873112369290475882013-01-09T14:43:00.001+11:002013-01-09T14:43:34.417+11:00Microsoft Dynamics AX 2012 R2 - Functions<div style="color: black;">
<br /></div>
<div style="color: black; text-align: justify;">
Most of the functions are executed when your application runs, but some are executed earlier by the compiler.<br /><br />The Global Class contains a set of methods that are generally useful throughout the application. These methods can be considered an extension to the built-in functions in the X++ language. The DateTimeUtil Class also contains methods of general use for manipulating a utcdatetime value. </div>
<div style="color: black;">
<br /></div>
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - Functions' was informative. Please feel free to
leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com0tag:blogger.com,1999:blog-7548610200355060800.post-74441026260550118992013-01-09T14:38:00.000+11:002013-01-09T14:38:04.020+11:00Microsoft Dynamics AX 2012 R2 - X++ Function Categories and their Functions<br />
This blog lists every X++ built-in function by category.
<br />
<br />
<h3>
Descriptions of Categories</h3>
<br />
<div style="text-align: justify;">
The following 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. </div>
<br />
<b style="color: magenta;">Category:</b> Business<br />
<b style="color: magenta;">Description:</b> Functions that input financial data and calculate formulas.<br />
<br />
<b style="color: magenta;">Category:</b> Compiler Verified (also named Intrinsic)<br />
<div style="text-align: justify;">
<b style="color: magenta;">Description:</b> 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.</div>
<br />
<b style="color: magenta;">Category:</b> Container<br />
<b style="color: magenta;">Description:</b> Functions that operate on the container data type of X++.<br />
<br />
<b style="color: magenta;">Category:</b> Convert<br />
<b style="color: magenta;">Description:</b> Functions that translate data of one type into data of another type.<br />
<br />
<b style="color: magenta;">Category:</b> Date<br />
<b style="color: magenta;">Description:</b> Functions that operate on the date data type.<br />
<br />
<b style="color: magenta;">Category:</b> Enum<br />
<b style="color: magenta;">Description:</b> Functions that operate on enum objects.<br />
<br />
<b style="color: magenta;">Category:</b> Math<br />
<b style="color: magenta;">Description:</b> Functions that perform mathematical calculations.<br />
<br />
<b style="color: magenta;">Category:</b> Miscellaneous<br />
<b style="color: magenta;">Description:</b> Functions that do not belong to any specific category.<br />
<br />
<b style="color: magenta;">Category:</b> Reflection<br />
<b style="color: magenta;">Description:</b> Functions that access the metadata about objects and return other metadata about them.<br />
<br />
<b style="color: magenta;">Category:</b> Session<br />
<b style="color: magenta;">Description:</b> Functions that change or report on the context of the current user connection.<br />
<br />
<b style="color: magenta;">Category:</b> String<br />
<b style="color: magenta;">Description:</b> Functions that operate on the str data type. <br />
<br />
<br />
<h3>
Categorization of X++ Functions</h3>
<br />
The following lists the X++ functions that belong in each previous category.<br />
<br />
<b><span style="color: magenta;">Category:</span></b> <b>Business</b><br />
<b style="color: magenta;">X++ function:</b><br />
<ul>
<li>cTerm</li>
<li>ddb</li>
<li>dg</li>
<li>fv</li>
<li>idg</li>
<li>intvMax</li>
<li>intvName</li>
<li>intvNo</li>
<li>intvNorm</li>
<li>pmt</li>
<li>pt</li>
<li>pv</li>
<li>rate</li>
<li>sln</li>
<li>syd</li>
<li>term</li>
</ul>
<br />
<b><span style="color: magenta;">Category:</span> Compiler Verified (also named Intrinsic) </b><br />
<div style="color: magenta;">
<b>X++ function:</b></div>
<ul>
<li>attributeStr</li>
<li>classNum</li>
<li>classStr</li>
<li>configurationKeyNum</li>
<li>configurationKeyStr</li>
<li>datasetStr</li>
<li>enumNum</li>
<li>enumStr</li>
<li>evalBuf</li>
<li>extendedTypeNum</li>
<li>extendedTypeStr</li>
<li>fieldNum</li>
<li>fieldPName</li>
<li>fieldStr</li>
<li>formControlStr</li>
<li>formStr</li>
<li>identifierstr</li>
<li>indexNum</li>
<li>indexStr</li>
<li>licenseCodeNum</li>
<li>licenseCodeStr</li>
<li>literalStr</li>
<li>menuItemActionStr</li>
<li>menuItemDisplayStr</li>
<li>menuItemOutputStr</li>
<li>menuStr</li>
<li>methodStr</li>
<li>perspectiveNum</li>
<li>perspectiveStr</li>
<li>queryDataSourceStr</li>
<li>queryStr</li>
<li>reportStr</li>
<li>resourceStr</li>
<li>runBuf</li>
<li>securityKeyNum</li>
<li>securityKeyStr</li>
<li>ssrsReportStr</li>
<li>staticMethodStr</li>
<li>tableCollectionStr</li>
<li>tableFieldGroupStr</li>
<li>tableMethodStr</li>
<li>tableNum</li>
<li>tablePName</li>
<li>tableStaticMethodStr</li>
<li>tableStr</li>
<li>varStr</li>
<li>webActionItemStr</li>
<li>webDisplayContentItemStr</li>
<li>webFormStr</li>
<li>webletItemStr</li>
<li>webMenuStr</li>
<li>webOutputContentItemStr</li>
<li>webPageDefStr</li>
<li>webReportStr</li>
<li>webSiteDefStr</li>
<li>webSiteTempStr</li>
<li>webStaticFileStr</li>
<li>webUrlItemStr</li>
<li>webWebpartStr</li>
<li>workflowApprovalStr</li>
<li>workflowCategoryStr</li>
<li>workflowTaskStr</li>
<li>workflowTemplateStr</li>
</ul>
<br />
<b><span style="color: magenta;">Category:</span> Container</b><br />
<div style="color: magenta;">
<b>X++ function:</b></div>
<ul>
<li>conDel</li>
<li>conFind</li>
<li>conIns</li>
<li>conLen</li>
<li>conNull</li>
<li>conPeek</li>
<li>conPoke</li>
</ul>
<br />
<b><span style="color: magenta;">Category:</span> Convert</b><br />
<div style="color: magenta;">
<b>X++ function:</b></div>
<ul>
<li>any2Enum</li>
<li>any2Date</li>
<li>any2Guid</li>
<li>any2Int</li>
<li>any2Int64</li>
<li>any2Real</li>
<li>any2Str</li>
<li>char2Num</li>
<li>Date2Num</li>
<li>Date2Str</li>
<li>Datetime2Str</li>
<li>formattedStr2Num</li>
<li>guid2Str</li>
<li>int2Str</li>
<li>int642Str</li>
<li>num2Char</li>
<li>num2Date</li>
<li>num2Str</li>
<li>str2Enum</li>
<li>str2Date</li>
<li>str2Datetime</li>
<li>str2Guid</li>
<li>str2Int</li>
<li>str2Int64</li>
<li>str2Num</li>
<li>str2Time</li>
<li>time2Str</li>
<li>uint2Str</li>
</ul>
<br />
<b><span style="color: magenta;">Category:</span> Date</b><br />
<div style="color: magenta;">
<b>X++ function:</b></div>
<ul>
<li>dayName</li>
<li>dayOfMth</li>
<li>dayOfWk</li>
<li>dayOfYr</li>
<li>endMth</li>
<li>maxDate</li>
<li>mkDate</li>
<li>mthName</li>
<li>mthOfYr</li>
<li>nextMth</li>
<li>nextQtr</li>
<li>nextYr</li>
<li>prevMth</li>
<li>prevQtr</li>
<li>prevYr</li>
<li>timeNow</li>
<li>today</li>
<li>wkOfYr</li>
<li>year</li>
</ul>
<br />
<b><span style="color: magenta;">Category:</span> Enum</b><br />
<div style="color: magenta;">
<b>X++ function:</b></div>
<ul>
<li>enum2Str</li>
<li>enumCnt</li>
</ul>
<br />
<b><span style="color: magenta;">Category:</span> Math</b><br />
<b><span style="color: magenta;">X++ function:</span> </b> <br />
<ul>
<li>abs</li>
<li>acos</li>
<li>asin</li>
<li>atan</li>
<li>corrFlagGet</li>
<li>corrFlagSet</li>
<li>cos</li>
<li>cosh</li>
<li>decRound</li>
<li>exp</li>
<li>exp10</li>
<li>frac</li>
<li>log10</li>
<li>logN</li>
<li>power</li>
<li>round</li>
<li>sin</li>
<li>sinh</li>
<li>tan</li>
<li>tanh</li>
<li>trunc</li>
</ul>
<br />
<b><span style="color: magenta;">Category:</span> Miscellaneous</b><br />
<div style="color: magenta;">
<b>X++ function:</b></div>
<ul>
<li>beep</li>
<li>classIdGet</li>
<li>dimOf</li>
<li>getPrefix</li>
<li>max</li>
<li>maxInt</li>
<li>min</li>
<li>minInt</li>
<li>newGuid</li>
<li>setPrefix</li>
<li>sleep</li>
<li>systemDateget</li>
<li>systemDateset</li>
</ul>
<div style="color: magenta;">
<b><br /></b></div>
<b><span style="color: magenta;">Category:</span> Reflection</b><br />
<div style="color: magenta;">
<b>X++ function:</b></div>
<ul>
<li>fieldId2Name</li>
<li>fieldId2PName</li>
<li>fieldName2Id</li>
<li>indexId2Name</li>
<li>indexName2Id</li>
<li>refPrintAll</li>
<li>tableId2Name</li>
<li>tableId2PName</li>
<li>tableName2Id</li>
<li>typeOf</li>
</ul>
<br />
<b><span style="color: magenta;">Category:</span> Session</b><br />
<div style="color: magenta;">
<b>X++ function:</b></div>
<ul>
<li>curExt</li>
<li>curUserId</li>
<li>getCurrentPartition</li>
<li>getCurrentPartitionRecId</li>
<li>SessionId</li>
<li>funcName</li>
<li>prmIsDefault</li>
<li>runAs</li>
</ul>
<br />
<b><span style="color: magenta;">Category:</span> String</b><br />
<div style="color: magenta;">
<b>X++ function:</b></div>
<ul>
<li>match</li>
<li>strAlpha</li>
<li>strCmp</li>
<li>strColSeq</li>
<li>strDel</li>
<li>strFind</li>
<li>strFmt</li>
<li>strIns</li>
<li>strKeep</li>
<li>strLen</li>
<li>strLine</li>
<li>strLTrim</li>
<li>strLwr</li>
<li>strNFind</li>
<li>strPoke</li>
<li>strPrompt</li>
<li>strRem</li>
<li>strRep</li>
<li>strRTrim</li>
<li>strScan</li>
<li>strUpr</li>
<li>subStr</li>
</ul>
<br />
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - X++ Function Categories and their Functions' was informative. Please feel free to leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com0tag:blogger.com,1999:blog-7548610200355060800.post-44192422870758740612013-01-09T13:57:00.000+11:002013-01-09T13:57:44.779+11:00Microsoft Dynamics AX 2012 R2 - Functions and Macros<div style="color: black; text-align: justify;">
<br /></div>
<div style="color: black; text-align: justify;">
<b>X++ provides str2Int and many other functions that are routinely needed for programming tasks such as the following:</b></div>
<ul>
<li>Mathematical functions</li>
</ul>
<ul>
<li>Data type conversions</li>
</ul>
<ul>
<li>Validation of Application Object Tree (AOT) arguments</li>
</ul>
<div style="color: black; text-align: justify;">
<br />X++ also provides #define and other precompiler directives that provide a mechanism for declaring constant values and other items. </div>
<br />
<br />
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - Functions and Macros' was informative. Please feel free to leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com0tag:blogger.com,1999:blog-7548610200355060800.post-58696855168590473812013-01-09T13:39:00.001+11:002013-01-09T13:39:54.676+11:00Microsoft Dynamics AX 2012 R2 - char2Num Function<br />
<span style="color: black;">Converts a character in a string to the ASCII value of the character.</span><br />
<br />
<br />
<h3 style="color: black;">
Function</h3>
<ul>
<li><span style="color: black;">int char2Num(str text, int position)</span></li>
</ul>
<br />
<h3 style="color: black;">
Parameters</h3>
<ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> text</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> The string that contains the character.</span></li>
</ul>
<br />
<ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> position</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> The position of the character in the string.</span></li>
</ul>
<span style="color: black;"></span><br />
<h3 style="color: black;">
Return Value</h3>
<ul>
<li>The ASCII value of the character as an int object.<span style="color: black;"></span></li>
</ul>
<br />
<h3 style="color: black;">
Example</h3>
<ul>
<li>char2Num("ABCDEFG",3); //Returns the numeric value of C, which is 67.</li>
</ul>
<ul>
<li>char2Num("ABCDEFG",1); //Returns the numeric value of A, which is 65.</li>
</ul>
<br />
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - char2Num Function' was informative. Please feel free to leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com0tag:blogger.com,1999:blog-7548610200355060800.post-33858920567554192362013-01-09T13:26:00.001+11:002013-01-09T13:26:37.940+11:00Microsoft Dynamics AX 2012 R2 - beep Function<br />
<span style="color: black;">Emits a short sound from the speakers on the computer.</span><br />
<br />
<br />
<h3 style="color: black;">
Function</h3>
<ul>
<li><span style="color: black;">void beep()</span></li>
</ul>
<span style="color: black;"><br /></span><h3 style="color: black;">
Example</h3>
<ul>
<li><b style="color: magenta;">X++</b></li>
</ul>
<blockquote class="tr_bq">
static void beepExample(Args _args)<br />{<br /> ;<br /> beep();<br />}</blockquote>
<br />
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - beep Function' was informative. Please feel free to leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com0tag:blogger.com,1999:blog-7548610200355060800.post-46148318675679317302013-01-09T13:23:00.000+11:002013-01-09T13:23:12.259+11:00Microsoft Dynamics AX 2012 R2 - attributeStr Function<br />
Validates that the specified attribute class exists in the AOT; if not, a compiler error occurs. <br />
<br />
<br />
<h3 style="color: black;">
Function</h3>
<ul>
<li><span style="color: black;">str classStr(class class)</span></li>
</ul>
<br />
<h3 style="color: black;">
Parameters</h3>
<ul>
<li><span style="color: black;"><b style="color: magenta;">Parameter:</b> class</span></li>
</ul>
<ul>
<li><span style="color: black;"><b><span style="color: magenta;">Description:</span></b> The name of the attribute to validate.</span></li>
</ul>
<br />
<br />
<h3 style="color: black;">
Return Value</h3>
<ul>
<li>The name of the attribute.<span style="color: black;"></span></li>
</ul>
This function is an intrinsic function, which is a metadata assertion function. Intrinsic functions take arguments that represent entities in the Application Object Tree (AOT) and validate these arguments at compile time. They have no effect at run time.<br /><br />Attributes are classes that inherit from the SysAttribute class.<br />
<br />
<br />
<h3 style="color: black;">
Example</h3>
<ul>
<li><b style="color: magenta;">X++</b></li>
</ul>
<blockquote class="tr_bq">
static void attributeStrExample(Args _args)<br />{<br /> str s;<br /> ;<br /> s = attributeStr(AifDocumentOperationAttribute);<br /> print s;<br /> pause;<br />}</blockquote>
<br />
<b style="color: red;">My above blog is based on Microsoft's Official information.</b><br />
<br />
I
hope this blog about 'Microsoft Dynamics AX 2012 R2 - attributeStr Function' was informative. Please feel free to leave your comments.Ashish Mahajanhttp://www.blogger.com/profile/03986967030244458728noreply@blogger.com0