• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL

Week: 3 At a Glance > Answers for Day 11, “Storing, Editing, and Updating Data ...

Answers for Day 11, “Storing, Editing, and Updating Data from an UltraDev Application”

1: How can you set the size of a form field for design purposes?
A1: The Char Width attribute for text fields can set the width of a field in characters, but there is no cross-platform or cross-browser means of providing perfectly sized input fields.
2: What sorts of applications should check boxes be used for?
A2: Check boxes are best used for selecting multiple attributes of an item on a form (that is, check all that apply). They imply an AND condition and can be either on or off. Check boxes should not be used for OR conditions such as yes or no.
3: When should radio buttons be used?
A3: Radio buttons should be used on forms to create an OR condition between multiple values. If used the same as check boxes, they set up a condition where, after being selected, the buttons cannot be deselected without resetting the form.
4: How can you test dynamic pages, such as detail screens from within the design view?
A4: Pass URL parameters on the Live Data view URL line. These parameters are interpreted by UltraDev in exactly the same way that they would be handled by a Web browser viewing the final application. This lets you quickly test the functionality of a Web-based program without having to launch a Web browser.
5: How many primary key fields can UltraDev work with?
A5: One. If you have more than one primary key field, you'll need to work around the limitations in the software by editing the code manually, or coming up with a workaround.
6: What is one workaround for the multiple field primary key issue?
A6: Using a recordset that only returns a single record eliminates the need for UltraDev to locate a record based on its primary key. When there's only a single record in the recordset, it doesn't matter what UltraDev thinks the primary key should be.
7: Besides server behaviors, what's another way to bind form elements to a database?
A7: The simplest, and ultimately, most flexible means of creating dynamic form elements is to use the Properties palette to bind the elements to the database. Although not offering the pretty interface of the customized server behavior dialogs, this method of adding dynamic bindings is much more streamlined and fits better in the UltraDev interface.
8: How can you quickly create master detail page sets and supporting insert/update pages?
A8: Use the Live Objects category within the Objects palette. These special template objects will automatically generate simple database-driven screens in a matter of seconds.



Not a subscriber?

Start A Free Trial

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint