Skip to main content
Solved

UNABLE TO ADD CUSTOM ACTION USING CODE IN GRAPH EXTENSION


Forum|alt.badge.img
  • Freshman II
  • 28 replies

The below custom code is not working in SOOrderEntry graph extension when I upgraded my customization to 24R1 version, though the same code is working fine in SOInvoiceEntry graph extension in save version


I am trying to add action menu item.

 

public override void Initialize()
{
    base.Initialize();
    this.Base.action.AddMenuAction(recalculateCPPriceAction);            
}

Below is the error and screenshot

Below is my SOOrderEntry graph extension structure

 

Can anyone help me out with this issue, I am confused about its working in anothe graph extension(SOInvoiceEntry) but not working in SOOrdrEntry graph extension in the same project.

 

Thanks and Regards

SD

Best answer by Nilkanth Dipak

Hi @sd79,

I believe you need to replace this.Base.action.AddMenuAction to Base.action.AddMenuAction.

Hope, it helps.

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

2 replies

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

Hi @sd79,

I believe you need to replace this.Base.action.AddMenuAction to Base.action.AddMenuAction.

Hope, it helps.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3393 replies
  • May 2, 2024

Hi @sd79  The below code is not required. This is old version code.

If you wanted to add this actions under different category of Actions, you can simply do this from the Customization Project Editor. Please find the screenshot for reference.

 

//NOT REQUIRED

public override void Initialize()
{
    base.Initialize();
    this.Base.action.AddMenuAction(recalculateCPPriceAction);            
}

 

 

 

 


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