Skip to main content
Solved

How to make Grid DefaultAction work?

  • November 14, 2024
  • 7 replies
  • 59 views

priekenberg40
Varsity I
Forum|alt.badge.img

I’ve build a processing screen for showing log entries and i have an action to show the details.
I am not able to get details shown on double click on a grid row.
 


 


Any ideas?

Best answer by priekenberg40

I’m getting nuts! It seems that DefaultAction only works on a read-only views. After adding

it works as expected. Is there any documentation where i can find such info?

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

7 replies

Nilkanth Dipak
Varsity II
Forum|alt.badge.img+10

Hi ​@priekenberg40,
 

  1. If you want to open this record on new tab , you need to declare an action same as EditDetail declared on the approvals screen . You need to create an action similar to the Edit Detail action in your custom form, allowing you to view the selected record.

 

To open the selected record in a new tab, you can use the following logic:

if (navigate)
helper.NavigateToRow(Records.Current.RefNoteID.Value, PXRedirectHelper.WindowMode.New);

 

Implement the existing code logic of the Edit Detail action from EPApprovalProcess graph in your custom form as per your needs to enable redirection to the selected record.

  1. If you want to open the details in same screen as form after double click, you can set AllowFormEdit Property set to true for that specific Grid.

     

Hope, it helps!


priekenberg40
Varsity I
Forum|alt.badge.img
  • Author
  • Varsity I
  • 39 replies
  • November 14, 2024

@Dipak Nilkanth, thanks but my problem is that the action is not called on double click on a row in the grid. Pressing “View Details” and selecting from context menu works as expected.


Nilkanth Dipak
Varsity II
Forum|alt.badge.img+10

Hi ​@priekenberg40,

Could you please provide your Graph code where you have declared the View Details Action?


priekenberg40
Varsity I
Forum|alt.badge.img
  • Author
  • Varsity I
  • 39 replies
  • November 14, 2024

 


Nilkanth Dipak
Varsity II
Forum|alt.badge.img+10

Hi ​@priekenberg40,

You need to write a logic to go to specific record as below.
if (navigate) helper.NavigateToRow(Records.Current.RefNoteID.Value, PXRedirectHelper.WindowMode.New);


priekenberg40
Varsity I
Forum|alt.badge.img
  • Author
  • Varsity I
  • 39 replies
  • November 14, 2024

@Dipak Nilkanth thanks, but i do not want to redirect, i just open/show a panel (“CurrentLogEntry”) to show the details. As mentioned earlier this works perfect already. I just need to get the DefaultAction of the grid working.
 

 


priekenberg40
Varsity I
Forum|alt.badge.img
  • Author
  • Varsity I
  • 39 replies
  • Answer
  • November 15, 2024

I’m getting nuts! It seems that DefaultAction only works on a read-only views. After adding

it works as expected. Is there any documentation where i can find such info?


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