Monday 25 November 2013

How add financial dimension on forms inside Ax 2012

Step 1: Form ClassDecleration

public class FormRun extends ObjectRun
      {
     
          DimensionDefaultingController   dimensionDefaultingControllerHeader;
          DimensionDefaultingController   dimensionDefaultingControllerLine;

          DimensionDefaultingController   dimensionDefaultingController;
      }

Step 2: Form Init()

   
      public void init()
      {
          super();
     
          
DimensionDefaultingController::constructInTabWithValues(true,true,true,0, this,DimensionsFastTab,"@SYS14926");
          dimensionDefaultingController.parmAttributeValueSetDataSource(BiddingMainCostSheetTable_ds,fieldstr(BiddingMainCostSheetTable, DimensionDefault));
          dimensionDefaultingController.pageActivated();
      }
   
Step 3: Data source
       
      public void delete()
      {
          ;
     
          ttsbegin;
     
          element.numberSeqFormHandler().formMethodDataSourceDelete();
     
     
          super();
          dimensionDefaultingController.deleted();
          //
          ttscommit;
      }

Step 4: Data source
   
      public void write()
      {
     
          ttsbegin;
                    dimensionDefaultingController.writing();
         
         
          super();
          element.numberSeqFormHandler().formMethodDataSourceWrite();
     
          ttscommit;
          //
     
      }

Step 5: Data source active()

     
      public int active()
      {
          int ret;
     
          ret = super();
     
          
             dimensionDefaultingController.activated();//true);
     
          return ret;
      }

Step 6: Design Tab-> Tabpage
  

      public void pageActivated()
      {
          dimensionDefaultingController.pageActivated();
          super();

      }

No comments:

Post a Comment

SQL/SSRS Interview questions I thought of blogging some SQL/SSRS interview questions.

Below are some. I will add more, when I complete the compilation 1. What is OLTP(Online Transaction Processing)? OLTP stands ...