Adding a Dynamic Hyperlink
Now you'll create a hyperlink that returns the user to the Main page.
- Place the cursor below the submit button (outside the rectangle of its containing form).
- Choose from the Elements pop-up list and click .
- Double-click the text "Hyperlink" and type Return to Sign-in Page.
- Inspect the hyperlink.
- Select the pageName attribute, then double-click in the Binding column and type (including the quotes) "Main".
- Save the GuestList component.
- Test your application.
Note: You must specifically type the quotation marks in "Main", because you are specifying a string representing the name of the page to be returned. If you left off the quotes, you would be specifying a variable or method called Main.
Note: In this case, you don't have to rebuild and relaunch your application in order to test it. Building is only required when you have made changes to Java or Objective-C code. If you modify a component or WebScript code only, the changes take effect even if the application is already running.
The GuestList page should now look like this: