I want to get a list of all medini identifiers for the causes to a hazard.
Going through the attributes list the chain would be self.causeRelations->cause-> mediniIdentifier
It works easy until self.causeRelations which I transformed to an array. The next step is the one I have issues with.
Here my approach so far:
///
var result = [];
var connectors = self.causeRelations.toArray();
for (var j = 0; j < connectors.length; j++){
result.push(connectors[j].cause.mediniIdentifier);
}
result;
///
Can you help me to find the mediniItentifiers of each cause relation?
Best regards
Joël