Complex property rule question #2660
Unanswered
kcabral817
asked this question in
Questions
Replies: 1 comment
-
Generally the answer is to use the Target property from the context, which (in a sync rule) allows you to access the entire object graph. There is no good answer for this in an async rule. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How do I set the value of a collection row that is determined in the rule?
I have a list of crews that have a list of unit items. I look up the crew, get the correct crew, then look up the unit item. If the unit item is found, update it, if not add it to the collection. This is easy peazy with _crew.CrewUnittemList.Add(upi);
But with the _context.AddOutValue(ConstructionBidInfoPersist.CrewProperty.UnitItemProperty, upi); I'm lost.
Is there an example of how to do this? I've looked through the blogs from Johnny B and the samples, but didn't come across one that address dynamically finding grandchild and setting the properties.
Beta Was this translation helpful? Give feedback.
All reactions