Contents tagged with PXSelector
today I want to leave a short notice on how to manage order of columns in Selector of Acumatica. Quite often customers has desire to manage default order of columns in selector. That is very easy to achieve with new Type parameter added to your selector. Take a look on how I've managed list of columns for Carrier with help of new Type:
[PXDBString(15, InputMask = ">aaaaaaaaaaaaaaa", IsKey = true, IsUnicode = true)]
[PXUIField(DisplayName = "Ship Via", Visibility = PXUIVisibility.SelectorVisible)]
[PXSelector(typeof(Search<Carrier.carrierID>), new Type
typeof(Carrier.description), typeof(CarrierExt.usrDeliveryLength), typeof(Carrier. … more
Today I want to describe PXDimensionSelector attribute usage in Acumatica. According to manual PXDimensionSelector attribute has following purpose:
Defines an input control that combines the functionality of the PXDimenstion attribute and the PXSelector attribute. A user can view the data set defined by the attribute and select a data record from this data set to assign its segmented key value to the field or to replace it with the surrogate key.
After reading such purpose, I've decided to read purpose of PXDimension attribute:
Defines an input control that formats the input as a segmented key value and displays the list of allowed values for each key segment.
If … more
today I want to write few words how to work with selectors in Acumatica.
So, imagine, you have the following selector in Acumatica:
<px:PXSelector ID="NmbUsrBillPMTask" runat="server" DataField="UsrBillPMTask"/>
In order to make it work as selector, you need to do the following:
if you'll do it, you'll receive following selector:
And if you choose there some value, you'll be able to see id represented as number. In my case it was 727.
But what if you want to make it more readable?
Then you can add following part:
[PXSelector(typeof(Search<PMTask.taskID>), SubstituteKey = typeof(PMTask.taskCD))]
Then instead of … more
today I want to write few words how to work with PXSmartPanel.
One of my clients asked following:
1. Press at button.
2. Pop up should appear with two buttons ( "OK" , "Cancel")
3. At pop up should be also selector of contracts and datetime.
4. Existing screen should be modified.
In order to do this, following actions were implemented:
1. Existing screen was CT301000.
2. If to look in screen source code, following line says about graph:
<px:PXDataSource ID="ds" runat="server" Visible="True" Width="100%" TypeName="PX.Objects.CT.ContractMaint"
3. It means, that we need to create extension class for … more