Commit 7bec5d9b authored by O'Reilly Media, Inc.'s avatar O'Reilly Media, Inc.
Browse files

Initial commit

parents
Loading
Loading
Loading
Loading

README.md

0 → 100644
+15 −0
Changes for README.md: 15 added lines, 0 removed lines.
Original line number Diff line number Diff line
## Example files for the title:  
	  
# Microsoft Dynamics AX 2012 R3 Development Cookbook, by Mindaugas Pocius
	  
[![Microsoft Dynamics AX 2012 R3 Development Cookbook, by Mindaugas Pocius](http://akamaicovers.oreilly.com/images/9781785284304/cat.gif)](https://www.safaribooksonline.com/)
	  
The following applies to example files from material published by O’Reilly Media, Inc. Content from other publishers may include different rules of usage. Please refer to any additional usage rights explained in the actual example files or refer to the publisher’s website.
	  
O'Reilly books are here to help you get your job done. In general, you may use the code in O'Reilly books in your programs and documentation. You do not need to contact us for permission unless you're reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from our books does not require permission. Answering a question by citing our books and quoting example code does not require permission. On the other hand, selling or distributing a CD-ROM of examples from O'Reilly books does require permission. Incorporating a significant amount of example code from our books into your product's documentation does require permission.
	  
We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN.
	  
If you think your use of code examples falls outside fair use or the permission given here, feel free to contact us at <permissions@oreilly.com>.
	  
Please note that the examples are not production code and have not been carefully testing. They are provided "as-is" and come with no warranty of any kind.
+5429 −0

File added.

Preview size limit exceeded, changes collapsed.

+55 −0
Changes for code bundle/1693_01_Code/Cookbook_01_02_PrimaryKeyRename.xpo: 55 added lines, 0 removed lines.
Original line number Diff line number Diff line
Exportfile for AOT version 1.0 or later
Formatversion: 1

***Element: JOB

; Microsoft Dynamics AX Job: VendAccountRename unloaded
; --------------------------------------------------------------------------------
  JOBVERSION 1
  
  SOURCE #VendAccountRename
    #static void VendAccountRename(Args _args)
    #{
    #    VendTable vendTable;
    #
    #    select firstOnly vendTable
    #        where vendTable.AccountNum == 'US-101';
    #
    #    if (vendTable.RecId)
    #    {
    #        vendTable.AccountNum = 'US-101_';
    #        vendTable.renamePrimaryKey();
    #    }
    #}
    #
  ENDSOURCE
  PROPERTIES
    Origin              #{5A14ED70-579C-4DCC-B976-61BDEE4258DA}
  ENDPROPERTIES
  

***Element: PRN

; Microsoft Dynamics AX Project : Cookbook_01_02_PrimaryKeyRename unloaded
; --------------------------------------------------------------------------------
  PROJECTVERSION 2
  
  PROJECT #Cookbook_01_02_PrimaryKeyRename
  SHARED
  PROPERTIES
    Name                #Cookbook_01_02_PrimaryKeyRename
    Origin              #{7E81DD7A-ADC5-4DEA-B5EF-04A867AC67F4}
  ENDPROPERTIES
  
    PROJECTCLASS ProjectNode
    BEGINNODE
      FILETYPE 0
      UTILTYPE 5
      UTILOBJECTID 0
      NODETYPE 215
      NAME #VendAccountRename
    ENDNODE
  ENDPROJECT
  

***Element: END
+61 −0
Changes for code bundle/1693_01_Code/Cookbook_01_03_RecordMerge.xpo: 61 added lines, 0 removed lines.
Original line number Diff line number Diff line
Exportfile for AOT version 1.0 or later
Formatversion: 1

***Element: JOB

; Microsoft Dynamics AX Job: LedgerReasonMerge unloaded
; --------------------------------------------------------------------------------
  JOBVERSION 1
  
  SOURCE #LedgerReasonMerge
    #static void LedgerReasonMerge(Args _args)
    #{
    #    ReasonTable reasonTableDelete;
    #    ReasonTable reasonTable;
    #
    #    ttsBegin;
    #
    #    select firstOnly forUpdate reasonTableDelete
    #        where reasonTableDelete.Reason == 'ADJ';
    #
    #    select firstOnly forUpdate reasonTable
    #        where reasonTable.Reason == 'OTHER';
    #
    #    reasonTableDelete.merge(reasonTable);
    #    reasonTable.doUpdate();
    #    reasonTableDelete.doDelete();
    #
    #    ttsCommit;
    #}
    #
  ENDSOURCE
  PROPERTIES
    Origin              #{227FD7D9-2D91-4BE7-8743-49F221D750E5}
  ENDPROPERTIES
  

***Element: PRN

; Microsoft Dynamics AX Project : Cookbook_01_03_RecordMerge unloaded
; --------------------------------------------------------------------------------
  PROJECTVERSION 2
  
  PROJECT #Cookbook_01_03_RecordMerge
  SHARED
  PROPERTIES
    Name                #Cookbook_01_03_RecordMerge
    Origin              #{B64CF7C1-B386-42B5-8F4C-9B5F7891ED25}
  ENDPROPERTIES
  
    PROJECTCLASS ProjectNode
    BEGINNODE
      FILETYPE 0
      UTILTYPE 5
      UTILOBJECTID 0
      NODETYPE 215
      NAME #LedgerReasonMerge
    ENDNODE
  ENDPROJECT
  

***Element: END
+57 −0
Changes for code bundle/1693_01_Code/Cookbook_01_04_Docu.xpo: 57 added lines, 0 removed lines.
Original line number Diff line number Diff line
Exportfile for AOT version 1.0 or later
Formatversion: 1

***Element: JOB

; Microsoft Dynamics AX Job: VendAccountDocu unloaded
; --------------------------------------------------------------------------------
  JOBVERSION 1
  
  SOURCE #VendAccountDocu
    #static void VendAccountDocu(Args _args)
    #{
    #    DocuRef   docuRef;
    #    VendTable vendTable;
    #
    #    vendTable = VendTable::find('US-108');
    #
    #    docuRef.RefCompanyId = vendTable.dataAreaId;
    #    docuRef.RefTableId   = vendTable.TableId;
    #    docuRef.RefRecId     = vendTable.RecId;
    #    docuRef.TypeId       = 'Note';
    #    docuRef.Name         = 'Imported';
    #    docuRef.Notes        = 'This vendor was imported.';
    #    docuRef.insert();
    #}
    #
  ENDSOURCE
  PROPERTIES
    Origin              #{F8165E63-732B-4D67-A3AB-EAC60B236BFC}
  ENDPROPERTIES
  

***Element: PRN

; Microsoft Dynamics AX Project : Cookbook_01_04_Docu unloaded
; --------------------------------------------------------------------------------
  PROJECTVERSION 2
  
  PROJECT #Cookbook_01_04_Docu
  SHARED
  PROPERTIES
    Name                #Cookbook_01_04_Docu
    Origin              #{B5CCA26E-AFF8-41B6-A809-51B30FA08D7A}
  ENDPROPERTIES
  
    PROJECTCLASS ProjectNode
    BEGINNODE
      FILETYPE 0
      UTILTYPE 5
      UTILOBJECTID 0
      NODETYPE 215
      NAME #VendAccountDocu
    ENDNODE
  ENDPROJECT
  

***Element: END
Loading