Question

Show Selected records count in the GRID footer

  • 5 September 2022
  • 6 replies
  • 225 views

Userlevel 1
Badge

Hello Everyone,

We have a requirement to show the count of selected records on the processing screen grid footer.

We have used Statusfield of the grid control and added my custom field fieldselecting event to show the selected record count in the code.

The issue is, The total value in the footer in not updating when we select the checkbox in the processing screen result grid. The count value in the footer is updating when we do grid refresh manually on the screen. I have added “commitchanges = true” to the checkbox and other refresh paramaters in the aspx page but stll it is not working.

Below is the code sample.

namespace PX.Objects.AR
{

public class ARDocumentRelease_Extension : PXGraphExtension<ARDocumentRelease>
{
public virtual void BalancedARDocument_Availability_FieldSelecting(PXCache sender, PXFieldSelectingEventArgs e)
{
// Set text that appear in footer
string text;
int selectcount = 0;

foreach (BalancedARDocument resultdata in Base.ARDocumentList.Select())
{
if (resultdata.Selected == true)
{
selectcount++;

}
}
text = "Selected Count: " + selectcount ;
e.ReturnValue = text;
}


public partial class BalancedARDocument_ext1 : PXCacheExtension<BalancedARDocument>
{
#region Availability
public abstract class availability : BqlString.Field<availability> { }
[PXString(4000, IsUnicode = true)]
[PXUIField(DisplayName = "Availability")]
public virtual string Availability
{
get;
set;
}
#endregion

}
}
}

 

                    <px:PXGridColumn DataField="Selected" TextAlign="Center" Type="CheckBox" AllowCheckAll="True" AllowSort="False" CommitChanges="true" AllowMove="False" />
 

What else we need to provide to the selected checkbox or grid to update the count automatically? 

 

Thanks

 

 

 


6 replies

Userlevel 1
Badge

Also, Attached file is the cusotmizaiton package for this requirement. 

 

Any suggestions to resolve this issue?

 

Thanks

Userlevel 7
Badge +17

Hi @rajeshvemunoori31  Which version you worked on this customization?

Userlevel 1
Badge

Hello @Naveen Boga 

20R2

Version: 20.210.0044

 

 

Userlevel 7
Badge +17

Hi @rajeshvemunoori31  I have deployed and verified it. It is working as expected.

 Please find the attached package and screenshot.

 

 

Userlevel 1
Badge

Hello @Naveen Boga ,

 

I have published your package in my local instance, but still I’m getting the same issue. Count value is not updating when we select the checkbox. I’m using 20.210 acumatica version.

 

Please check the attached clip.

Thanks

Userlevel 7
Badge

Hi @rajeshvemunoori31 - were you able to find a solution? Thank you!

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