Hi experts,
I would like to know, is there any way to add new class attribute on standard class by extension method.
For example, below is the standard implementation of PurchReqDocument class, and now I want to add new attribute ExpressionHierarchyProviderAttribute for my new field of PurchReqLine table which is also referrenced from EcoResCategory.RecId.
[
WorkflowDocIsQueueEnabledAttribute(true,"@SYS152689"),
ExpressionHierarchyProviderAttribute(classStr(PurchReqExpressionProvider), tableStr(PurchReqLine), fieldStr(PurchReqLine,ProcurementCategory)),
ExpressionCurrencyFieldMapAttribute('parmApprovalAmount', 'parmCurrencyCode'),
ExpressionCurrencyFieldMapAttribute('parmApprovalAmountExclTax', 'parmCurrencyCode'),
ExpressionCurrencyFieldMapAttribute('parmSpendingLimit', 'parmCurrencyCode'),
ExpressionCurrencyFieldMapAttribute('parmSpendingLimitPreparer', 'parmCurrencyCode')
]
class PurchReqDocument extends WorkflowDocument implements SysErrorMessageHelpScopeIWorkflow
{
...
...
}
-Thanks