Forum Discussion
I think you have a misunderstanding in how the NoCalculate event handler works. The event handler gets invoked for EACH applicable entity in the Calculation Definition Entity column. For example, If Entity="M_ARGENTINA", as it would appear in your example, then the event handler is invoked just once for that entity. If Entities="(Assigned Entities)", the event hander is invoked for each of the entities that have been assigned to the WF. Given that, I think you might now understand why setting the DM Package Step Entity Filter=E#Root.WFProfileEntities might be problematic, beyond the error you received.
What you need to do is pass CalcInfo.DataUnitNames.EntityName as a Dashboard Parameter to the Data Management Package Sequence, to be used wherever an Entity Filter is required. If you are intending it to run for all WFEntities, then that is probably what the Entity column should be defined as in the NoCalculate definition.
- Marco2 months agoContributor II
Hi Rhankey.
Could you please provide an example of how I could implement what you mentioned? I do not fully understand the part about using CalcInfo.DataUnitNames.EntityName in my process.
- rhankey2 months agoContributor
Dim CalcInfo As DataUnitInfo=DirectCast(args.Inputs(2),DataUnitInfo)
Dim ParamsDict As New Dictionary(Of String,String)
ParamsDict.Add("EntityParam",CalcInfo.DataUnitNames.EntityName)
BRApi.Utilities.ExecuteDataMgmtSequence(si,DMSequenceName,ParamsDict)
In the Data Management Package Step, you would set the EntityFilter=|!EntityParam!|
- Marco2 months agoContributor II
args.Inputs(2) - What value should go in inputs(2)? In my BR, which is a Dashboard Extender, this is marked as an error.
Related Content
- 2 years ago
- 8 months ago
- 3 years ago
- 10 months ago