Create the Student SmartForms View

  1. Right-click on the Student SmartObject in the Category Tree and select Design View.
  2. On the Introduction step of the View Designer wizard click Next
  3. On the General step of the wizard type Student Form in the Name Field.
  4. Note that the College Category is pre-populated for you, or you can click the ellipsis button to change the category.
  5. The Data Source is also pre-populated with the Student SmartObject.
  6. Select Item View as the View Type.
  7. Click Next.
  8. On the Layout step of the wizard, click on Create Layout Table Only then select 2 Columns and 7 Rows. This will create a blank table for you to design your View from scratch.
  9. Click OK.
  10. To add fields onto the canvas, drag the field from the Toolbox and drop it on the canvas. Drag Last Name to the first cell on the canvas.
  11. Drag First Name to the second cell on the canvas.
  12. Drag Gender to the third cell on the canvas under Last Name.
  13. Select the text box beneath the Gender label. Click on the Change Control icon in the Toolbar and select Radio Button List then click OK.
  14. In Properties for the radio button list, find Data Source and click the ellipsis next to Type.
  15. Select the Use a static list of values in the control radio button.
  16. Click the ellipsis button next to List Items.
  17. Click Add, type Male in the Value and Display fields. Click Add and type Female in the Value and Display fields. Select Male as the default option.
  18. Click OK.
  19. Click OK.
  20. Drag the following fields onto the canvas
    1. Street Address 
    2. City
    3. State 
    4. Postal Code
    5. Phone Number 
    6. E-mail Address
    7. Birth Date
    8. First Language
    9. Course Name ID
  21. With the drop down box selected for the Course Name ID ensure that Data Source in the Properties tab is populated with the Course SmartObject.
  22. Select the Methods tab in the Toolbox.
  23. Drag and drop the Create method to the top open cell on the canvas to add a menu bar button.
  24. With the Create button selected on the canvas change the Text field in the properties to Apply.
  25. Your View will look similar to:
  26. Navigate to the Parameters tab of the View Designer and add the Student Number parameter as shown below.
  27. Click Finish.

We will not test this View yet as this is the main View on the Form and will be tested as part of the Form steps, coming up next.

Adding data to the Course Fees SmartObject using the Course Fees SmartForms View

K2 smartforms Product Documentation: User Guide4.6.10
Video Links Learn Support
No videos found for this article
K2 on YouTube
No Additional links found for this article
No self-learning content for this article
Try some scenarios...
No relevant support links available for this article