80312a-enus_error_log.docx
TRANSCRIPT
-
8/11/2019 80312A-ENUS_Error_Log.docx
1/10
Error Log for Product 80312A, Development III in Microsoft Dynamics AX 2012
Contents
Send Feedback to [email protected] ....................................................................................... 1
Provide Product and Contact Information ................................................................................................ 1
Describe Errors and Suggested Changes .................................................................................................. 1
How to Complete the Error Log ............................................................................................................... 1
For More Information ............................................................................................................................... 1
Instructor Notes ............................................................................................................................................. 2
PowerPoint Slide Decks ................................................................................................................................ 2
Classroom Setup Guide ................................................................................................................................. 2
Trainer Materials DVD ................................................................................................................................. 2
Student Materials .......................................................................................................................................... 2
-
8/11/2019 80312A-ENUS_Error_Log.docx
2/10
Error Log for Product 80312A,Development III in Microsoft Dynamics 2012
1
Send Feedback to [email protected] Send all courseware feedback to [email protected]. You can send feedback in the
body of an e-mail message or by attaching this error log to an e-mail message. Use thiscourseware support alias to report any of the following issues: Error log submissions, including suggestions
Classroom setup issues Presentation problems, such as broken build slides or animations Missing files
Provide Product and Contact Information When providing feedback, include the product number and product title in the subject line of youre-mail message. So that we can contact you with questions about your feedback, include thefollowing information in your e-mail message: Name Company MCP ID number
Describe Errors and Suggested Changes When you report errors or send comments, include the following information either in your e-mail message or in the error log, as described on the following page: Part number of the document or compact disc, if available and relevant Page number or location of error or suggested change Complete description of the error or suggested change
Some feedback may require research or reproduction of specific conditions in a lab environment.Please provide any details that are necessary to help quickly research or verify the error.
How to Complete the Error Log To use this document to record your feedback: Locate the section for the component that you want to comment on. Enter reference information, describe the error or suggested change, and enter the appropriate
type code. Select from the following type codes:1 = Technical error or technical change2 = Clarification or simplification3 = Typographical error4 = Other
To add more rows, position your cursor in the last column of the last row, and then press the
tab key. Send the completed form to the courseware support alias at [email protected].
For More Information For other issues, or for more information regarding the courseware support program, visitCourseware Support Web site.
To view the current error log for this product, visit the MCT Download Center, and then navigateto the appropriate product folder, and then product name.
-
8/11/2019 80312A-ENUS_Error_Log.docx
3/10
Error Log for Product 80312A,Development III in Microsoft Dynamics 2012
2
Instructor Notes Date added Page # Topic Name Error or suggested change Type
PowerPoint Slide Decks Dateadded
DocumentName
Slide # Topic Name Error or suggested change Type
Classroom Setup Guide Date added Page # Topic Name Error or suggested change Type
Trainer Materials DVD Date added Page # Topic Name Error or suggested change Type
Student Materials Date added Page # Topic Name Error or suggested change Type
06 Jun 2013 All All 1. Use AX2012 R2 Appendix.zip for updated procedures and labs for AX 2012 R2. Use this asa companion to the core training manual.
1
04-Jun-2012 1-11 Lab 1.1 Create a TestCase
Section: Step by Step
2. Open the AOT .3. Create a new class.4. Rename the class to MyTestSuite .5. Edit the ClassDeclaration so that it extends the
SysTestCase class, and add a variablelogisticsPostalAddress of typeLogisticsPostalAddress. Attribute the class with
SysTestTargetAttribute, specifyingMyTestSuite as the object name andUtilElementType::Class as the type of the object.
6. Add a public method called testCity . Attribute itwith SysTestMethodAttribute to show that it is atest method.
7. Add a line of code to the method:this .assertEquals("New York" ,
-
8/11/2019 80312A-ENUS_Error_Log.docx
4/10
Error Log for Product 80312A,Development III in Microsoft Dynamics 2012
3logisticsPostalAddress .City) ;
8. Override the setUp method on the class. It shouldlook like the following code.
Reason for the update: Steps 4 and 5 need to be updated
because the Attributes are missing. The attributes areshown on earlier pages but omitted on step 4 and 5 .
25-nov-2011 2-3 Chapter 2: Working withData
Lesson: While Select
Topic: GeneralOptimization
Sub-topic: Aggregation
select sum(qty) from inventTrans;
qty = inventTrans.qty;
select count(recID) from inventTrans;
countInventTrans = inventTrans.recId;
Reason for the update : missing information in the code
1
25-nov-2011 2-4 Chapter 2: Working withData
Lesson: While SelectTopic: GeneralOptimization
Sub-topic: Join
The following information needs to be removed:
This is the default behavior in all "join" statements involving
more than one table from the following table groups: Miscellaneous
Main
Transaction
Worksheet Header
Worksheet Line
Reason for the update : this information was removedbecause it is not the default behavior any longer.
2
25-nov-2011 2-8 Chapter 2: Working with
DataLesson: While Select
Topic: Access PlanRepair
Sub-topic:ForceNestedLoop
The keyword is ForceNestedLoop NOT ForceNestedLoops. 3
25-nov-2011 2-13 Chapter 2: Working withData
Lab 2.1 Fetching Data
Name of Figure 2.1 is QUERY IN AOT 2
25-nov-2011 2-32 Chapter 2: Working withData
Lesson: Parm tables
The following sentence has been updated:
In the SalesFormLetterParmData .CreateParmLine() method the SalesParmLine record is set from SalesLine table by use of the SalesParmLine .initFromSalesLine() method
Reason for the update: the methodSalesFormLetter.CreateParmLine() no longer exists onSalesFormLetter class.
2
25-nov-2011 2-34 Chapter 2: Working with select validTimeState(asAtDate) 1
-
8/11/2019 80312A-ENUS_Error_Log.docx
5/10
Error Log for Product 80312A,Development III in Microsoft Dynamics 2012
4Data
Lesson: DateEffectiveness
Topic: Selecting DateEffective Data
exchangeRates;
select validTimeState(fromDate, toDate)exchangeRates;
Reason for the update: the code in the first box does notcompile. The from keyword must be removed.
25-nov-2011 2-38 Chapter 2: Working withData
Lesson: Data Integration
Topic: FileIO
TextIO
The TextIO class provides support for file input and outputoperations of non-ANSI code page.
The TextIO.new method has an optional argument thatspecifies the code page of the file. The default value isUTF-16LE (the Microsoft Windows native Unicoderepresentation). It is best to use this most of the time,especially if end-users might modify the file in a text editoroutside Microsoft Dynamics AX.
When files are read, the TextIO class examines the firstfew bytes of the file for a byte-order mark (BOM) andautomatically handles UTF-8, UTF-16LE, and UTF-16BE. Ifno BOM is found, the file is assumed to be in the ANSICode Page (ACP) format.
There are three methods typically used to write data to aTextIO object:
TextIO .write() - writes the specified value to thefile.
TextIO .writeExp(container) - writes the contents
of a container. Elements are separated bycharacter defined in TextIO.outFieldDelimiter().
TextIO .writeChar(int) - writes a unicodecharacter represented by an integer.
The following is sample code which writes a simple stringto a text file:
FileName fileName = 'c:\\test.txt';FileIoPermission permission;TextIO textIO;str outputText;#File;
permission= newFileIoPermission(filename,#io_write);permission.assert();
textIO= new TextIO(filename, #io_write,#utf8Format);
1
-
8/11/2019 80312A-ENUS_Error_Log.docx
6/10
Error Log for Product 80312A,Development III in Microsoft Dynamics 2012
5if (textIO){
outputText = "text that will gointo the text file.";
textIO.write(outputText); //writethe text to the file.
textIO = null; //Close the file.}Reason for the update: FileIO class no longer exists in AX2012.
25-nov-2011 2-39 Chapter 2: Working withData
Lesson: Data Integration
Topic: Creating XML
static void XMLWriteEmplAddr(Args_args){
FileIoPermission permission;XMLDocument xmlDoc =
XMLDocument::newBlank();XMLNode rootNode;XMLNode NodeEmpl, NodeName,
NodeAddr;XMLElement xmlElement;XMLText xmlText;HCMWorker hcmWorker;;
permission= newFileIoPermission('c:\\Empl_Address_List.xml','w');
permission.assert();
xmlDoc = XMLDocument::newBlank();
// Create first line containing version
inforootNode =
xmlDoc.documentElement();xmlElement =
xmlDoc.createElement(EmployeeList); rootNode =
xmlDoc.appendChild(xmlElement);while select hcmWorker
{// Create a node for the
Employee recordxmlElement =
xmlDoc.createElement(Employee); NodeEmpl =
rootNode.appendChild(xmlElement);
// Create a node for the namexmlElement =
xmlDoc.createElement(EmplName); NodeName =
NodeEmpl.appendChild(xmlElement);xmlText =
xmlDoc.createTextNode(hcmWorker.Name());
1
-
8/11/2019 80312A-ENUS_Error_Log.docx
7/10
Error Log for Product 80312A,Development III in Microsoft Dynamics 2012
6NodeName.appendChild(xmlText);
// Create a node for theaddress
xmlElement =xmlDoc.createElement(EmplAddr);
NodeAddr =NodeEmpl.appendChild(xmlElement);
xmlText =xmlDoc.createTextNode(hcmWorker.primaryAddress());
NodeAddr.appendChild(xmlText);}
// Save the file
xmldoc.save('c:\\Empl_Address_List.xml');}
Reason for the update: the EmplTable no longer exists in AX 2012 . The code is updated with hcmWorker.
25-nov-2011 2-42 Chapter 2: Working withData
Lesson: Data Integration
Topic: ODBC
sql = "SELECT * FROM MYTABLE WHEREFIELD =" + criteria + " ORDER BYFIELD1,FIELD2 ASC";
Reason for the update : missing semicolon at end of SQLending in ASC.
1
25-nov-2011 2-43 Chapter 2: Working withData
Lesson: Data Integration
Topic: Microsoft Excel
// Creates the instanceExcelApp.workbooks().open('c:\\test.xlsx');
Reason for the update: the code to extract a cell fromExcel must open the workbook with a double backslash (\\)and the file extension for the image needs to be xlsx.
3
25-nov-2011 3-5 Chapter 3: Classes
Lesson: CollectionClasses
Topic: Map
while (enumerator.moveNext()){
info(strfmt("%1 customers arelocated in %2.",enumerator.currentValue(),enumerator.currentKey()));}
Reason for the update: One right parenthesis is missing
at end of info statement near end of code.
3
25-nov-2011 3-30 Chapter 3: Classes
Lesson: RunBaseFramework
Topic: Run
where custTrans.AccountNum ==custAccount
Reason for the update : The run method should insteaduse custAccount rather than ledgerAccount.
1
25-nov-2011 4-19 Chapter 4: Forms This sentence was changed to: 1
-
8/11/2019 80312A-ENUS_Error_Log.docx
8/10
Error Log for Product 80312A,Development III in Microsoft Dynamics 2012
7Lesson: Form Controls
Topic: Edit Methods The following example is from the form CustOpenTranswhich is used to settle transactions against each other.This method is used to mark which transactions are to besettled.
The code was changed to:
// BP Deviation documented
public edit NoYeseditMarkTrans(boolean _set,CustTransOpen _custTransOpen, NoYes_markTrans)
{
NoYes returnMarkTrans;
if (_set)
{
if(!custInterestWriteOffUnPostedJournal.RecId || _markTrans == NoYes::Yes ||
Box::yesNo("@SYS328999",DialogButton::No) ==DialogButton::Yes)
{
manager.updateTransMarked(_custTransOpen, _markTrans);
if(SysCountryRegionCode::isLegalEntityInCountryRegion([#isoTH, #isoSA, #isoGB,#isoIE])
&& _markTrans ==NoYes::Yes
&& originator.TableId== tableNum(LedgerJournalTrans)
&& taxWithhold !=null)
{
taxWithhold.createTaxWithholdTrans_TH(
-
8/11/2019 80312A-ENUS_Error_Log.docx
9/10
Error Log for Product 80312A,Development III in Microsoft Dynamics 2012
8
manager.getSpecTrans(_custTransOpen),
manager.getSpecTrans(_custTransOpen).CrossRate);
}
element.updateDesignDynamic();
if(SysCountryRegionCode::isLegalEntityInCountryRegion([#isoTH, #isoSA, #isoGB,#isoIE]))
{
taxWithholdTrans_ds.executeQuery();
}
// Enable/Disable 'Marktransactions' button
element.updateMarkTransactionsButton();
if(manager.getTransMarkedByOtherSpec(custTransOpen))
{
markInvoiceLines.enabled(false);
}
else
{
markInvoiceLines.enabled(CustOpenTransLineManager::setMarkInvoiceButton(element.makeArgs()));
}
custInterestWriteOffUnPostedJournal.re
-
8/11/2019 80312A-ENUS_Error_Log.docx
10/10
Error Log for Product 80312A,Development III in Microsoft Dynamics 2012
9read();
element.markWithBillingClassification(_custTransOpen);
}
}
returnMarkTrans =manager.getTransMarked(_custTransOpen);
return returnMarkTrans;
Reason for the update: The CustTransOpen form doeshave the editMarkTrans method on dataSourceCustTransOpen.
25-nov-2011 6-6 Chapter 6: Workflow public static void main(Args args){
SalesCreditLimitApprSubmitManagermClass = newSalesCreditLimitApprSubmitManager();
mClass.submit(args);
Reason for the update: Code is missing.
2
25-nov-2011 Atseveralinstances
Short-cut key to compile Press F7 to compile, not F8 as it is stated in severalsections in this course.
1