I have 2 scenarios :-
1. How to get the total number of instances of the node in a BO?
eg :
businessobject BO1 {
element BO_ID;
node NODE1 [0..n]
{
element Node_ID;
element Status ;
element value:
}
}
I want to get total number of the NODES instances in the particular instance of the BO1. !!!?????
2. I want to make some calculations based on the attributes of the NODE1 , in the BeforeSave .absl of the Business Object BO1.
eg:
something like this :-
In BeforeSave of BO1.absl -
for ( all the instances in NODE1 )
{ if (NODE1.status == true)
{
sum = sum + NODE1.value
}
}
Please help !!!!