Actions from the: "For each item in a list control on a subview" action, do not fire after upgrade to 5.2

  • 16 February 2021
  • 0 replies
  • 11 views

Userlevel 5
Badge +20
 

Actions from the: "For each item in a list control on a Subview" action, do not fire after upgrade to 5.2

kbt162980

PRODUCT
K2 Five 5.2
BASED ON
K2 Five 5.2
TAGS
SmartForms Designer
Rules
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.

Issue

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).

Symptoms

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:

Event:
-------
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."

Condition:
-----------
"For each item in a list control on a subview", configured as -> for "All" items on "Item view" subview, in "Picker" list control.

Action:
--------
"then show a message to the user", configured to use the SmartObject expanded from the context browser under the picker control.

Resolution

 

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.]


0 replies

Be the first to reply!

Reply