Contents tagged with Customization

  • Adding report page to customization

    Hello everybody,

    today I want to make post on how to add your report page (.rpx) to customization, so than you will be able to use it in another progect.

    For this purpose open customization window as showed below and click "Reports" button:

    Then click on plus and select report you want to change:

    The name of your report page you can find, when run report from acumatica page in browser:

    If you will follow those steps, you'll be able to add report to customization:

    But this works only if your report is available in database.

    Suppose your report is saved only in file, in ReportsDefault folder of your site. Then you should save it also to database.

    For achieving … more

  • How to interfere with Acumatica after publish of customization

    Hello everybody,

    today I want to tell you about interesting class in Acumatica: CustomizationPlugin. Take a look on how reflector shows it's source code:

    namespace Customization

    {

      public abstract class CustomizationPlugin

      {

        public virtual void OnPublished()

        {

        }

        public virtual void UpdateDatabase()

        {

        }

        public void WriteLog(string msg)

        {

          CstPublishLog.WriteLog(msg);

        }

      }

    }

    As you can see, this class has three methods:

    OnPublished

    UpdateDatabase

    WriteLog

    Each of those events allows you to update Acumatica after some events happening. For example after publish, on stage of updating database, and also you can use it … more

  • Customization internals Part 2

    Hello everybody,

    today I want to continue few more details about customization internals. In one of my long time ago posts I've described how to create customization file by yourself without Acumatica engine. 

    Today I want a bit extend my comment with few more details.

    Quite often it is needed to add sql code to your customization. How to do it? Acumatica customizations allows it with usage of projext.xml file. 

    Take a loot at following example:

    <Customization level="0" description=""> <File AppRelativePath="Bin\Blablabla.Acumatica.dll" FileID="d701b330-7c72-4f51-b1ae-75c4e2c02194" /> <File AppRelativePath="Pages\AP\AP306010.aspx" FileID="b9e88968-7f36-4cfc-9383-caed8363c269" /> < … more