AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Everything Else
Extending a UI Exte...
 
Notifications
Clear all

Questions Extending a UI Extension

 
Everything Else
Last Post by Wyatt.ERP 5 years ago
3 Posts
3 Users
1 Reactions
2,597 Views
RSS
Shawn Hawkins
Posts: 8
 Shawn Hawkins
Topic starter
August 14, 2020 4:54 pm
(@shawn328)
Active Member
Joined: 5 years ago

I have a client that has Manufacturing installed.  On the Stock Item Screen the MFG code adds a Manufacturing tab. I want to add a new field to the Manufacturing tab, but I do not want to update the MFG customization package as it will cause issues when a new MFG build comes out.  How can I extend the screen extensions of another customization package?

Others have suggested copying the MFG code to another Customization Project and modifying that, but that would mean that I am constantly having to maintain third party code every time they have a new build.

Please note I am using MFG as the example as I have run into this issue a few times with various third party software.


Topic Tags
Code Code Extension development
2 Replies
Tim Rodman
Posts: 3199
 Tim Rodman
Admin
September 29, 2020 3:24 pm
(@timrodman)
Famed Member
Joined: 10 years ago

You can create a separate Customization Project. Just make sure to set the Level on each Customization Project so Acumatica can know which one wins if there is a conflict. 1 means 1st priority, 2 means 2nd priority, etc.

image

Reply
Wyatt.ERP
Posts: 128
 Wyatt.ERP
September 30, 2020 8:12 am
(@wyatt-erp)
Estimable Member
Joined: 6 years ago

@shawn328

You can extend an extension like this:

public class ZXXXMyExtension: PXGraphExtension<FirstGraphExtension, BaseGraph>

 

These can be chained like this:

public class ZXXXMySecondExtension: PXGraphExtension<ZXXXMyExtension, FirstGraphExtension, BaseGraph>
public class ZXXXMyThirdExtension: PXGraphExtension<ZXXXMySecondExtension, ZXXXMyExtension, FirstGraphExtension, BaseGraph>

 

To see this in action with a real sample (2019 R1+), this is how you can override SOOrderEntryExternalTax

//DEFINITION: public class SOOrderEntryExternalTax : ExternalTax<SOOrderEntry, SOOrder>
// ExternalTax is inherited from ExternalTaxBase<TGraph> : PXGraphExtension<TGraph>.
// We should treat it like SOOrderEntryExternalTax : PXGraphExtension<SOOrderEntry>
public class ZXXXSOTaxTweak_SOOrderEntryExternalTaxExt : PXGraphExtension<SOOrderEntryExternalTax, SOOrderEntry>
{
public delegate GetTaxRequest BuildGetTaxRequestDelegate(SOOrder order);
[PXOverride]
public virtual GetTaxRequest BuildGetTaxRequest(SOOrder order, BuildGetTaxRequestDelegate baseMethod)
{
//Call original to get request.
GetTaxRequest request = baseMethod.Invoke(order);

//Your code here, alter request.
//request.___ = ___

//Return request.
return request;
}
}

Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Related Topics
  • Managing the Scope of Evaluation for Prepare Replenishment, Screen ID : IN508000
    2 years ago
  • The Acumatica Recruitment Assistance Program (ARAP) is looking for an available, independant Acumatica Certified Developer contractor (c#, .net, etc).
    6 years ago
  • Any suggestions for performance testing in Acumatica?
    6 years ago
Topic Tags:  Code (1) , Code Extension (1) , development (4) ,
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,527 Topics
  • 10.9 K Posts
  • 17 Online
  • 2,412 Members
Our newest member: Peter Paasch
Latest Post: Can't export GI's to excel that contain the FATrans DAC after upgrade to 2025 R1 in less than 25 min
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2026 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×