Loading ...

PXAggregateAttribute usage for saving of your development time

Hi everybody, today I want to share one of the insights from code and code, which was conducted by Stéphane Bélanger, and which seems useful, also may be controversial. But still, you may like it. So let me introduce or re-introduce PXAggregateAttribute .   If to sum up, purpose of...

How to add GI to side panel and Pivot table to side panel

Hello everybody, Today a want to share with you approach how to add GI to Side Panel, add Pivot Table to Side Panel, and how current row (current field value) of screen bounds with filter of GI and PT. Also, I will show how to add all custom features with GI and PT to customization package. As ex...

Usage of SignalR and javascript in Acumatica

Today I want to describe how you can use SignalR and javascript in Acumatica. I will describe following functionality: 1. User 1 opens sales order SO006768 2. User 2 opens sales order SO006768 3. User 1 modifies Sales order, and clicks on Save button 4. User 2 gets following notificatio...

How To Show Tab And Grid Always In Acumatica

Hi everybody, today want to mention following use case: 1. Created Tab or Grid or element in Splitter 2. If View returns zero values 3. Element created at step 1 doesn't appear How to deal with that? Set AllowAutoHide to false, and Visible to true and element will not hide automatically. Struggli...

A DAC Extension Must Include The Publis Static Isactive Method

Hello everybody, today  I want to share one line of code for Acuminator for error message: PX1016 A DAC extension must include the public static IsActive method with the bool return type. Extensions which are constantly active reduce performance. Suppress the error if you need the DAC extens...

How To Get Key Fields Of Dac Class In Acumatica

Hello everybody, recently for me it was needed to find out all key fields of DAC class. Code below does this:   public List<string> GetKeyFieldsOfDAC(Type dacClass) {     var result = new List<string>();    &nb...

How To Avoid Copy Paste With Help Of Attributes In Acumatica

Hello everybody, today I want to leave a short note on how to avoid Copy/paste with help of custom attributes.  Imagine following scenario. You have some set of duplicated code, which you need to apply at FieldSelecting . One of the ways of achieving this can be creation of some class a...

Purpose Of RowPersisting Event

Hello everybody, today I want to leave a note on usage of RowPersisting event. Quite often I see situations, when RowPersisting is used for making additional insertions to database. Also quite often I see cases when some additional inserts being performed to database.  I want to warn against...

Lightweight Persist To Database

Hello everybody, today I want to describe following use case. Quite often it is needed to persist to database one or another DAC class, which is filled by some data.  As usually I see people do this via hard coding of DAC class inside of the Graph. But today I want to share with you a way of...