bigtoe
Posts: 115
|
Posted: 07/03/2004, 4:08 PM |
|
In the mySQL database, I have a table called "items".
I used the CCS application builder to create the 2 default forms:
"items_list.php"
"items_maint.php"
The "items_maint.php" form allows me to add a record (to the
"items" table) when data is entered and the "Add" button
is clicked.
Then the "items_list.php" shows up with the search criteria on
top and a listing of all the records below.
This is all good.
I would like to put one more button at the bottom of the
"items_maint.php" form:
a. Call the button "Report".
b. This button would give a detailed report of the one
record I just added.
c. So it sould take me to a "items_report.php" page.
(A detailed report means that for each field in this
record I see a label and the corresponding data.)
d. So the report page should look very much like
the "items_maint.php" except that all the fields
are read-only because this is a report and not a form.
After reviewing the manuals, I can see that:
This is possible.
I can convert data entry fields to labels so they become
read only, which is what I need for the report.
But I am not sure how to:
1. Make a copy of the "items_maint.php" page and call
it "items_report.php"
2. Make a "Report" button on the "items_maint.php" so that it:
First, adds the new record to the "items" table and
Second, takes me to the "items_report.php" page and show
me the details of this new record
The "items" table is a very simple table so I need some
quick and easy suggestions.
Thank you.
|
|
|
|