How to Split Single Record Values Using the 'For Each' Rule
KBS100112
PRODUCTK2 smartforms 4.6.11 to 4.7
BASED ONK2 smartforms 4.7
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.
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.
Objective
How to select multiple users from the picker control and then save them each individually into their own records using the 'for each' rule.Before You Begin
Make sure that you have created the SmartObject to which your data will be saved as this article does not cover creation of SmartObjects, due to the SmartObject being different from scenario to scenario.How-to Steps
1. Create a view containing a picker control and a button.2. Bind the picker control to the SmartObject you would like to save the values to.
3. Next, configure the button with the below rule construction.
When Button is Clicked
For Selected items in Picker list control
Then on View101 SmartObject, execute its Create method (configure)
4. You can now configure the "Then on View101 SmartObject, execute its Create method
(configure)" rule with the below properties: