Question

Adding New Field(Selector) in Physical Inventory Count screen grid.

  • 3 October 2023
  • 6 replies
  • 89 views

Userlevel 4
Badge +1

Hi,

I added new Field (Selector of Inventories/Any Data) in Physical Inventory Count grid.

If I enter Value in one line, remaining Lines Value get Vanishing.

Is there any Base Code affecting this or any approach to do for this screen??

Thanks.


6 replies

Userlevel 6
Badge +3

HI @girik06,

If you can share the implemented code that will be helpful to suggest anything.

Userlevel 4
Badge +1

Hi @praveenpo 
DAC Extension:

 public class INPIDetailExt:PXCacheExtension<INPIDetail>
    {
        
        #region SerialNbr
        [PXDBString(100)]
        [PXUIField(DisplayName = "Serial Nbr", Enabled = true)]
        [PXSelector(typeof(Search<SerialNbr.Nbr, Where<SerialNbr.inventoryID,
            Equal<Current<INPIDetail.inventoryID>>>>),
            SubstituteKey = typeof(SerialNbr.Nbr))]
        public virtual string UsrSerialNbr { get; set; }
        public abstract class usrSerialNbr : PX.Data.BQL.BqlString.Field<usrSerialNbr> { }
        #endregion

    }
 

 

ASPX:
    <px:PXGridColumn DataField="UsrSerialNbr" Width="220" CommitChanges="true" /></Columns>
 

 

Userlevel 2
Badge

Try adding a <px:PXSelector> tag within the gridlevel’s <RowTemplate> tag as well for your new field.  It may offer a different behavior.

Userlevel 4
Badge +1

@jedmunds36 added PXSelector also..same behaviour

Userlevel 2
Badge

We are using a usr Field much like yours and having a PXSelector in the grid markup.  Did you try removing the Substitutekey=  from your selector definition?  Try also adding AutoRefresh=”true” to the rowtemplate markup for the selector.

Userlevel 7
Badge +10

Hi @girik06 ,

You can try removing the "CommitChanges" attribute from your <px:PXGridColumn> element

<px:PXGridColumn DataField="UsrSerialNbr" Width="220" />

If the issue persists, it's possible that there might be base code or other customizations affecting the behavior of the grid.

 

Hope it helps!

 

Regards,

Sweta

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved