Posts

Showing posts from August, 2018
Insert  Data into CustomTable(Based purch ID) static void dLSPurchOrderDetails(Args _args) {     PurchId                             purchId;     PurchTable                         purchtable;      PurchLine                          purchline;     DLSPurchaseorderDetails1_1016       dLSPurchOrderDetails;      LogisticsPostalAddress              logisticsPostalAddress;     DimensionAttribute                  DimensionAttribute;     DimensionAttributeValueSetItemView  DimensionAttributeValueSetItemView;      delete_from dLSPurchOrderDetails;      while sele...
To Find Financial Dimension Relation with Purchtable throw Job s tatic void FindFinanceDimension(Args _args) {   DimensionAttribute   DimensionAttribute;   DimensionAttributeValueSetItemView DimensionAttributeValueSetItemView;     select DisplayValue from DimensionAttributeValueSetItemView       join DimensionAttribute       where DimensionAttributeValueSetItemView.DimensionAttributeValueSet == 22565422232             && DimensionAttribute.Name == "BusinessUnit"             && DimensionAttribute.RecId == DimensionAttributeValueSetItemView.DimensionAttribute;     info(DimensionAttributeValueSetItemView.DisplayValue +"----" +DimensionAttribute.Name); }
Some Basic Jobs i) To get Today or SysDate static void Job10(Args _args) {     info(strFmt("%1",systemDateGet())); } ii) Count(Recid) static void CountRecID_1016(Args _args) {     DLSProjectmanagment1016 dLSProjectmanagment1016;      InventTable                     inventTable;     InventTrans                         inventtrans;     DLSInventoryTable               dls1017; //     //SELECT count(Recid) FROM inventTable; //     //info(strFmt("%1",inventTable.recid)); // //      //SELECT count(Recid) FROM dLSProjectmanagment1016; //     //info(strFmt("%1",dLSProjectmanagment1016.RecId)); //     //SELECT count(Recid) FROM dls1017; //     //info(strFmt("%1",dls1017.recid));   ...
Image
Based On FromDate ,ToDate and WareHouse Show the Records For this Scenario we should insert data into Two table based on Two  Jobs one table for( DLSProjectManagment6_1016        ) all data and another one( DLSProjectManagment7_1016    ) is for Consolidation .. i write one code i) static void WareID(Args _args) {    InventTrans                      inventtrans;     InventDim                       inventDim;     DLSProjectManagment6_1016       dLSWarehoseTable;    // delete_from dLSWarehoseTable;     while select InventLocationId from inventDim         join inventTrans              where inventTrans.inventDimId == inventDim.inventDimId            && ((in...
Image
Based on Ware House Show the Required Fields Records write Two Methods In Button Ok i)Clicked ii) WareHouseDetails WareHouseDetails private void wareHouseDetails(InventLocationId _wareHouse) {         InventTrans                      inventTrans;         InventDim                        inventDim;         DLSProjectManagment5_1016        dLSWarehoseTable;     delete_from dLSWarehoseTable;     while select InventLocationId from inventDim         join inventTrans              where inventTrans.inventDimId == inventDim.inventDimId            && ((inventTrans.StatusIssue == StatusIssue::Sold) || (inventTrans.StatusReceipt == StatusReceipt::Purchased))    ...
Image
Insert Data into Custom Table  (Based On Given Condition Like itemNumber,WareHouse,LocationId,Site ):  static void ProjectManagment1016(Args _args) {     ItemId                          itemid;     InventTable                     inventTable;     InventTrans                     inventtrans;     InventSum                       inventSum;     InventDim                       inventDim;     EcoResProductTranslation        ecoResProductTranslation;     EcoResProduct                   ecoResProduct;     DLSProjectmanagment1016 ...
Image
Import Excel Data into Standard Tables (LedgerJournalTables , LedgerJournalTrans) 1)First Create Records In Excel JournalNum field  Is aNumSeq--  we can find  out    workspace>>GeneralLedger>>Setup>>GeneralLedgerParameters.(open) RightClick On NumberSeqCode>>click on ViewDetails we can see Format, and Next value means in x-cel we can create JournalNum from392 onwords ex: INMF-00392 Then only it allows record otherwise record not insertd.. 2)write code In Job: static void ImportLedgerJournalData(Args _args) {              SysExcelApplication          application;         SysExcelWorkbooks            workbooks;         SysExcelWorkbook             workbook;         SysExcelWorksheets           worksh...
Image
AX 2012 - sysOperation Framework [Example] Insert Records from 1 Table to another Table (sysOperation) Key points RunBase/RunBaseBatch Vs sysOperation Frameworks 1.     The sysOperation framework is an implementation of the  MVC pattern  (Model-View-Controller) 2.     Model - parameters [contract class] 3.     View - Dialog [contract class] 4.     Controller - Process (the code that runs in the essence of pattern) 5.     The framework influence the Services framework, whereas a service in AX has a data contract with some special attributes 6.     Data Member attributes in contract class take the entered values in parameters (dialog fields) to the process (aka "operations")   Let’s jump into example now, we are going to looks like this; Based On Dates ( from Date to To Date ) I take three parameter custid,fromdate,Todate We have to take EDT’s ...
Image
Header and Line Data will be shown in new form By using Button in Standard form.. Note:whenever I click on new record same lines data will be display in new form..         And if we insert same record the related lines will not be inserted agian it will show  1) Create a New Table Related to Header and Lines fields       for Ex: LedgerJournal Table,                   LedgerJournal Trans. I have Taken Two tables 2)create one form Based on Table 3)In form Data source methods ..override the init method. write below code Here I m taking LedgerJournalId is the common field in both the tables 5)And Now customize standard form LedgerjournalTable add one button (menu Item Button) for this we create display menu button for our form creation.. i Now write Clicked Method above shown fig.. Now compile and run the form you get ... Ax technical