Skip to main content
Solved

Delete Row button not visible in 24 R1


Forum|alt.badge.img

Hello All,

 

I have a custom screen that is built with a grid and allows deleting the row of the grid when a condition is met. I have had this code (sample below) for a while which worked fine but when the same code was upgraded to 24 R1 it stopped displaying the delete button on the row entirely. Can you please point out what could have changed with 24 R1?

 

This code is both in the RowSelected of the header DAC and grid DAC:

if (true) {

this.Caches[typeof(DAC)].AllowInsert =
this.Caches[typeof(DAC)].AllowUpdate =
this.Caches[typeof(DAC)].AllowDelete = false;

View.AllowDelete = false;
View.AllowInsert = false;
View.AllowUpdate = false;

}

else {

this.Caches[typeof(DAC)].AllowInsert =
this.Caches[typeof(DAC)].AllowUpdate =
this.Caches[typeof(DAC)].AllowDelete = true;

View.AllowDelete = true;
View.AllowInsert = true;
View.AllowUpdate = true;

}

 

Best answer by vineela95

We were able to figure out the issue to be related to permissions. The access rights for the screen has “Insert” permission but needed to be changed to “Delete”. 
Thanks all for the help.

View original
Did this topic help you find an answer to your question?

Forum|alt.badge.img+5
  • Captain II
  • September 13, 2024

Is the code that you entered above the actual code or did you re-type it? Because the three lines of this.Caches while syntactically will compile, I don’t think it is what you actually meant to write.


Forum|alt.badge.img
  • Jr Varsity II
  • September 13, 2024

Hi @Django the code above is retyped but this.Caches is part of the original where the DAC would be the actual DAC name. This screen is entirely custom. 


Forum|alt.badge.img+5
  • Captain II
  • September 13, 2024

Sorry - just to confirm, your code looks like this:

this.Caches[typeof(DAC)].AllowInsert =
this.Caches[typeof(DAC)].AllowUpdate =
this.Caches[typeof(DAC)].AllowDelete = true;

Or like this:

this.Caches[typeof(DAC)].AllowInsert = true;
this.Caches[typeof(DAC)].AllowUpdate = true;
this.Caches[typeof(DAC)].AllowDelete = true;

Forum|alt.badge.img
  • Jr Varsity II
  • September 13, 2024

@Django  Sorry for the confusion. My code looks like 

this.Caches[typeof(DAC)].AllowInsert =
this.Caches[typeof(DAC)].AllowUpdate =
this.Caches[typeof(DAC)].AllowDelete = true;

I got this reference from standard Acumatica whose code looks like it too.

 


Forum|alt.badge.img+5
  • Captain II
  • September 13, 2024

Good lord. @Dmitrii Naumov find out who wrote that code and tell them off. :)

What is the Skin ID for the grid as shown in the screen designer? And do you have any other properties set in the grid?


Forum|alt.badge.img
  • Jr Varsity II
  • September 13, 2024

I tried changing the code style for the boolean setting and it still was the same result.

Skin ID for the grid is DetailsInTab. Below is all I have set for the grid:

<px:PXGrid ID="detgrid" runat="server" Style="z-index: 100;" Width="100%" Height="300px" SkinID="DetailsInTab" PageSize="100" AllowPaging="True">


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • November 13, 2024

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


Forum|alt.badge.img
  • Jr Varsity II
  • December 2, 2024

@Chris Hackett  Unfortunately no, the issue still continues. I tried a few things that were suggested above and by Acumatica support and I still cannot see the delete buttons. Upgrade to 24R2 has the same issue.


mvolshteyn
Acumatica Moderator
Forum|alt.badge.img+3
  • Technical Account Manager in the ISV Team
  • December 11, 2024

@vineela95 , consider creating the Acumatica Development Support case if you need assistance here


Forum|alt.badge.img
  • Jr Varsity II
  • December 12, 2024

We were able to figure out the issue to be related to permissions. The access rights for the screen has “Insert” permission but needed to be changed to “Delete”. 
Thanks all for the help.


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • December 13, 2024

Thank you for sharing your solution with the community ​@vineela95!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings