This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
Actions specified inside of the "For each item in a list control on a subview" condition block are not being executed when this block contains actions from the parent view or on form level. (You can see that you have these by the green plus sign icon for such actions in the rules editor and by the presence of a configurable action when you edit this actions block from form or parent view level).
Actions specified inside of the "For each item in a list control on a subview" condition block are not being executed after upgrading to 5.2.
For example, the following scenario does not work in K2 5.2 but works in 4.7:
When a control on the subview raises an event, configured as -> On "Item View-(when edit toolbar Button is Clicked)" subview, when "btnOpen" is "Clicked."
"For each item in a list control on a subview", configured as -> for "All" items on "Item view" subview, in "Picker" list control.
"then show a message to the user", configured to use the SmartObject expanded from the context browser under the picker control.
Remove the actions from this block that are configured from form or parent view level, or move them outside of this block.
The block of actions following after the "For each item in a list control on a subview" condition should only contain actions defined on a subview level (the item view in the example mentioned above).
[As soon as you add actions to this block from the parent view or form level (note the green plus sign icon and the presence of configurable actions), all actions within the block will not be executed.]