Search PalmPower's 487 Palm-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Rapidly developing PalmPilot applications (continued)

Double-click on Form 1 in the Contents of Application window. A blank form appears and the control palette becomes active on the tool bar. Double-click on the form to edit its properties, shown in Figure E. Form properties determine an end-user's ability to enter, edit, and delete data.

FIGURE E


Form properties specify the linked table and user permissions. Roll over picture for a larger image.

Name this form Orders and link it to the Orders table. Add controls by selecting them from the toolbar. You might add a title control, some edit and text controls, a check box, a drop list, and a time/date stamp. Each control has properties that manage its behavior and link it to underlying data. Link some controls to the columns of the Orders table. The drop list control is particularly interesting, and its properties are shown in Figure F. The drop list is dynamic, drawing data from the Customers table, rather than from a static list. It also manages the foreign key relationship between Orders and Customers, displaying customer name, but storing customer number in the Orders table.

FIGURE F


The drop list retrieves data from the Customers table and manages the foreign key relationship with the Orders table. Roll over picture for a larger image.

The simple Orders form is shown in Figure G.

FIGURE G


The Orders form incorporates several different types of controls. Roll over picture for a larger image.

Adding navigation and data manipulation with actions
Many applications consist of multiple forms, and users need the ability to navigate among them. Select Insert Form from the Edit menu to create a second form. This form, Line Items, is shown in Figure H.

FIGURE H


The Line Items form lets users enter the order details Roll over picture for a larger image.

It is linked to the Line Items table and lets users enter the products, prices, and quantities associated with an order. The unbound control, Total, will be calculated later. To enable users to navigate between the forms, add a button to the Orders form and edit its properties, setting "Action when Clicked" to jump to the Line Items form, as shown in Figure I.

FIGURE I


Actions simplify form and record navigation. Roll over picture for a larger image.

In addition to form navigation, actions can perform record navigation (go to first, next, previous, last record) and data manipulation (create, delete record), launch other applications, and run scripts.

Managing data presentation with filters
Often, you may need to manage the data seen by the user. For example, a user who jumps from the Orders form to the Line Items form, should only see line items on the current order, and only add line items to the current order. To include this master/detail functionality, add a filter to the button that performs the jump.

Filters separate data based on specific criteria, limiting the records of a table to those that match the criteria. Figure J illustrates setting a filter on the Line Items table to a dynamic criterion, the current order number from the Orders form. This creates the master/detail relationship. Filters can also be used to initialize records with default values, build linked drop lists, and tailor different data to different users.


« Previous  ·  1  ·  2  ·  3  ·  4  ·  5  ·  Next »
Other articles you might like
Home > Phones and PDAs > Palm and Treo > Software (211 articles)
   TealOS: great Palm software you are prohibited from buying
   CallRec gives your Treo better call recording
   Edit Office files on the go with Documents To Go
Home > Phones and PDAs > Palm and Treo > Programming (24 articles)
   How PDA software is born
   Program with Simplicity
   Kinectivity 2.0 brings enterprise application developers new tools
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Other PalmPower Articles
Palm gets up to date with new Tungsten family of handhelds
Create handwritten email with riteMail
Presenter-to-Go puts PowerPoint presentations on your Palm OS handheld
Looking for the cutting edge
Gain remote access to databases and PLCs
PalmSource Open House showcases what's new in the Palm community
Analysis: handheld market share
More from the ZATZ journals
Computing Unplugged: Make Mafia Wars an offer it can't refuse
David Gewirtz Online: CNN commentary and analysis
DominoPower: Application development, William Shatner, and the origin of the universe
OutlookPower: Removing an Office installation that doesn't want to go away
-- Advertisement --

Sent Items Organizer
When you need to file your sent email into their proper folders based on keywords or who it's to. It's also perfect for shared mailboxes.

It also adds a "Send And File" toolbar button while you're composing (similar to the way Lotus Notes used to work) for quick and easy filing.

Find out more!

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login