Main Menu
Lecture 1
Lecture 2
Lecture 4
Lecture 5
Lecture 6
Lecture 7
 

 

 

Adding variables to our Tute 3 site

Add the following variables for use by WOPopup

  1. studentlist - an array of Students to store all students fetched from the database
  2. selected student - an instance of a Student - store the student selected by the user
  3. currentStudent - an instance of a Student - store current item in student list

Four variables have to be bound to the WOpopup

  1. studentList to popup->list
  2. currentStudent to popup->item
  3. selectedStudent to popup->selection
  4. currentStudent.lastname to popup->displayString

Also bind the Name of the selected Student to the WOString

The submit button reloads the current page when clicked.

Add a Reload action and bind it to the submit button.

We have finished the View part of the application.