Item Views work with a single record of a SmartObject and are bound to the scalar methods of the SmartObject. Item Views can be used to display data (read-only) or capture data for either a new record or edit an existing record.
I have a custom list named “K2 Workflow Tutorials”. We will see how to create an item view using K2 Designer for the “K2 Workflow Tutorials” list.
Navigate to the custom list. Click the List tab and then click on the Application button under the K2 section in the ribbon interface. Click New, then click View.
Click the Next button in the K2 Designer.
Enter the Name, and Description, select Item View as View Type, and then click the Next button.
Click Create Labels and Controls.
Note
- Buttons Standard: Buttons will be placed at the bottom and spread across the columns.
- Toolbar: Buttons will be placed at the top of the toolbar.
Click on OK button. Labels and controls are created. Click the Finish button.
On the K2 application page right click on “My Sample Item View” and then click on Check-In.
Go to K2 Designer and then go to the item view which we have created. Click on Run.
Enter sample data and then click on the “Create List Item” button. Item is created successfully in the list.