Blog

Here I document some issues for searching of which I spent more then 15 minutes

  • Simplest cachinng explanation

    Hello everybody,

    today I want to give one more explanation of how to use caching and slots for caching purposes. Also there are plenty of articles on the subject,  I want to give one more with simplest recipe. So, if you need to cache something, you'll need to follow this procedure:

    declare you class as something that inherits IPrefetchable

    Create some placeholder in your class for storing items in the cache

    Implement Prefetch

    Implement GetSlot

    Take a look on the code below, how it can be done:

    public class ArTranFetcher : IPrefetchable

    {

    private List<ARTran> _arTranList = new List<ARTran>();

    public void Prefetch()

    {

    _configurableList = new List<ARTran>(); … more

  • Acumatica Page Missing under Google Chrome Browser

    Hello everybody,This one is a hot topic, recently chrome team released some changes to the Chrome Browser, so that some PAGES could get missing.You still see Menu, still see screen list but the page itself is gone, blank, empty.How to fix?Just change settings in the Chrome:1. Type chrome://flags/ in the browser address bar and press Enter.

    2. You should see the list of options:

    3. In the search bar type Lazy Frame or just Lazy:

    4. Under Enable lazy frame loading choose Disabled:

    5. Press Relaunch Now at the right bottom corner:

    more

  • Four types of programmers

    Hi.It is first time I write on topic of management and recruitment. Question is about one way of classifying your programmers, who work with you now or will come in a future. My main thesis is: all developers, roughly speaking, are divided into 4 large types and each of these types has its own application area.Attempting to send the wrong type to solve inappropriate tasks leads to a failure ( inefficient work, or the employee leaves the team ). If you want to know why, you are welcome. Get ready, we have a lot of information. Basicallly what I say is my perception of world of programmers.

    It is important to understand that there are no "bad" types. If any of the types you think is bad, … more

  • How to modify activities behavior on Business Accounts page

    Hello everybody,

    today I want to write a few words on how to modify behavior of buttons Add task, Add event, Add email, Add activity, ..., Add work item of Business Accounts page, one of which is shown on screenshot below:

    The main issue of chaning it is in the fact, that it is not just ordinary buttons, but separate class, which has injection of logic. Part of it's declaration goes below:

    public class CRActivityList<TPrimaryView> : CRActivityListBase<TPrimaryView, CRPMTimeActivity>

      where TPrimaryView : class, IBqlTable, new()

    {

      public CRActivityList(PXGraph graph)

        : base(graph)

      {

      }

      public CRActivityList(PXGraph graph, Delegate handler)

        : base(graph,  … more

  • How to deal with PX.Data.PXException: Cannot access the uploaded file. Failed to get the latest revision of the file error message

    Hello everybody,

    today I want describe how to deal with following Acumaitca error message: 

    Publish Customization

    Compiled projects: GAPRojectsBusinessAccounts,PayrollV2Acu2018Build20190328,EBizCharge2018R2,GACustomization

    Validation started.

    PX.Data.PXException: Cannot access the uploaded file. Failed to get the latest revision of the file a4353331-8f7f-4b3b-a881-2cdb4d5451e3

    at Customization.CstBinFile.GetFileFromDb() in C:\Bld\AC-FULL2018R226-JOB1\Sources\NetTools\PX.Web.Customization\CstDocumentDOM\CstBinFile.cs:line 120

    at Customization.CstBinFile.SaveFiles(FilesCollection context) in C:\Bld\AC-FULL2018R226-JOB1\Sources\NetTools\PX.Web.Customization\CstDocumentDOM\ … more

  • Strong name validation by pass

    Hello,

    here I want to leave a short notice how to manage strong name validation in Windows. For this purpose you can manage via following keys in regedit:

    To enable the strong-name bypass feature for all applications: switch the value for AllowStrongNameBypass to 1 inHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFrameworkHKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework keys

    With those changes you'll get your validation turn off. If you want to set it on, then set AllowStrongNameBypass to 0 more

  • DashboardPageTitleModule does not implement interface member PX.Web.UI.ITitleModule.GetDefaultVisibility in Acumatica

    Hello everybody,

    today I want to describe how to live with following error message:

    Compilation Error

    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0535: 'DashboardPageTitleModule' does not implement interface member 'PX.Web.UI.ITitleModule.GetDefaultVisibility()'Source Error:

    Line 2: using PX.Web.UI;

    Line 3:

    Line 4: public class DashboardPageTitleModule : ITitleModule

    Line 5: {

    Line 6: public void Initialize(ITitleModuleController controller)

    Source File: c:\Program Files\ … more

  • Merge few customizations into one

    Hello everybody,

    today I want to leave a short notice on how to join few customizations into one. Basically all you need is publish customizations you want to have merged, and then on Customization Projects form ( SM204500 ) click on button View Published and then click on Download package. In that way you'll get Customization.zip which will be merged result of published customizations. more

  • How to modify PXIntList dynamically in Acumatica

    Hello everybody,

    today I want to leave a short code sample on how to modify PXIntList or dropdown list in Acumatica. Below goes code sample of it:

    protected virtual void _(Events.RowSelected<CROpportunity> e)

    {

        if (e.Row == null)

            return;

        var opportunityExtension = e.Row.GetExtension<CROpportunityExt>();

        if (opportunityExtension.UsrProduct == 0)

        {

            var listInts = new List<int>();

            var listStrings = new List<String>();

            listInts.Add(0);

            listInts.Add(1);

            listInts.Add(2);

            listStrings.Add("String 1");

            listStrings.Add("String 2");

            listStrings.Add("String 3");

             … more

  • Creating the new Company, set settings for it from snapshot

    Hello everybody,today I want share with you, how you can create new Company and set it settings.

    For creating new company, we should go to "Tenants" screen:

    Notice, that in old vercions of acumatica instead the "Tenants" was the "Companies":

    Let create new company, and give it name "Exotic Places":

    When process of creation is finished, we'll automatically be logged out:

     

    To fix this, let's copy the settings from existing company to our. First of all let us sign out from "Exotic Places" and sign in to "Company". Then open "Tenants", chose the "Company" and click to "Create Snapshot" button:

    We get a warning message, but it possible easily deal with it, only go … more

General information

Greetings to everybody stopping at my blog. Purpose of this web site is to be google of my brain. Everything I found useful, or of possible beneficial for usage in future I've save here at this blog

Contact information

If you want to contact me more on any subject printed at this web stie, you can email me: zaljur1989(at)gmail.com

Job information

If to speak in general, I'm developer. For now I work as team lead in company GlobalLogic.