Using Your First ApplicationA Dataface application, at its core, provides 4 standard operations: Add new records, edit existing records, delete records, and find records. This section gives a brief overview of how to use your first Dataface application.
When you first create your Dataface application and there are no
records in the database, the application will look quite plain.
If you point your web browser to your newly created application it will
look something like: You may be wondering why it says "No records matched your request"
when you haven't even really made a request. This is because the
'default' request that is performed if no other request is specified is
to show the first record from the first table in the navigation
menu. Since there are no records, it is true that there are NO
records matching the default request. So what can you do with this application anyways? Essentially there are 4 operations you will want to perform:
Basic NavigationThe navigation menu on the left contains a list of tables in your
database. You can navigate to any of the tables in this list by
clicking on that table:
![]() The "Found Set"Throughout this tutorial you will see the phrase "found set" an awful lot, so it is important to understand just what this means. A "found set" is the set of all records in the current table that match the current "find criteria". This begs the question, "what is 'find criteria'?". By default there is no find criteria. When you perform a search or a find on the current table, you add "find criteria" so that only the records satisfying these criteria will be included in the "found set". For example, if you click on the "find" tab, you will get a search
form that allows you to search for records that match certain
criteria. The "find" tab for the "Course" table in our
application looks like: If you type in "English" in the "Subject" field and click "Find",
then the "found set" will consist of only records that contain the word
"English" in their subject fields. The Actions MenuThe "actions to be performed" menu is always available at the top
right of the application window. It allows you to perform basic
actions such as creating new records for the current table, deleting
records for the current table, or clearing the "find" criteria (Show
all records).
Creating new recordsThe basic FacultyOfWidgetry application that we created in the
previous section isn't very interesting when it doesn't contain any
records, so let's create some Program records.
Editing an existing recordThe "details" view allows you to edit the current record. The form is identical to the "create new record" form. Deleting recordsYou can either delete the current record that you are viewing, or
you can delete all of the records in the current "found set".
Both options are available from the "actions to be performed" menu in
the upper right: Other topicsThis short section is only intended to get you acquainted with the basics of Dataface applications. As your application becomes more complex with relationships and value-lists, there will be other usage scenarios of interest.
|