Search This Blog

Friday, July 03, 2015

K2 SmartForms: Checkbox List

The Requirement/Scenario and Solution:

We have 3 SharePoint Lists:

Hardware requirements list, this is the lookup values we populate or check box list dynamically with

IT User Request, list to keep our IT request transactional data in


And The User Hardware list to keep data of selected Hardware per User Request (Linked to IT User Request Id and Hardware to Hardware lookup lists)


I then proceeded to create smart objects for each list by selecting the K2 Application link on the ribbon of each list and create the SMO (SmartObjects)


Once SMO has been created we can build Smart Forms and Views.
Create a view with check box list with data source configure to point to the Hardware Requirement SMO:

Then we build form and add our view i.e.

Configure the Save button as follow:
First we call IT User Request SMO to create list item
Then we add a for condition to “loop” thru checked items and then
Call the User Hardware List SMO to create list item (for each checked item)

The configure for the Create User Hardware list properties as follow:
ID Number - from Id number text box
Hardware – from Checkbox list SMO ID
IT User Request – from IT User Request SMO ID


Then Test IT!!!!

It User Request Entry:


User Hardware List


Boom!


No comments: