IsTrueForAllChildren
4 min
evaluates the childpredicateexpression for each business object instance related to (child of) a parent business object and returns true only if the childpredicateexpression returns true for all children syntax istrueforallchildren(parentobjectname, recid, childrelationshipref, childpredicateexpression) enabled for for a description of the business object categories, see notes on "enabled for" docid\ u26v9fecfs6ilwa0 pvjd business object category yes/no business rules before save rules yes business rules calculation rules (after save, with or without also recalculate on load) yes business rules calculation rules (before save or always, without also recalculate on load) yes business rules calculation rules (before save or always, with recalculate on load) yes business rules editing rules yes1 business rules initialization rules yes business rules read only rules no business rules required rules yes business rules validation rules yes client expressions no object permissions no services yes ldap yes mobile yes quick actions (except ui quick actions) yes ui quick actions no reports yes search/dashboard without field references yes search/dashboard with field references no except when this field appears on a form or is triggered by such a field parameters parameter description parentobjectname the name of the parent business object recid the recid of the parent business object childrelationshipref the name of the child business object, including the relationship tag childpredicateexpression the boolean child search expression evaluates all child business objects for the condition return value boolean value returns true if all child business objects satisfy the condition defined by the childpredicateexpression parameter; otherwise, returns false example use the following example to check if an incident has any open tasks $((status != "closed" && status != "resolved") || istrueforallchildren("incident#", recid, "task#assignment rev3", "$(status == 'completed' || status == 'cancelled')")) istrueforallchildren() example
