Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何访问 DAC 和 BLC 的对象?
class BaseDACExtension : PXCacheExtension<BaseDAC> { public void SomeMethod() { BaseDAC dac = Base; } }
假设我正确理解了您的问题,只需调用GetExtension您的基本 DAC 或基本图表...
GetExtension
对于 DAC 扩展:(其中 baseDac 是 BaseDac 的一个实例)
var dacExt = baseDac.GetExtension<BaseDACExtension>();
对于 Graph 扩展:(其中 baseGraph 是 BaseGraph 的一个实例)
var graphExt = baseGraph.GetExtension<BaseGraphExtension>();