john r.
|
| Posted: 03/27/2002, 4:28 AM |
|
Hi, I'm new to CodeCharge and find it to be potentially very useful. I'm having a problem I can't seem to get past, though. I have a db from which I am trying to display records from a single table. Everything seems to be set up correctly because when I create a grid form, it shows all of the records when I go 'live'. However, I wanted to display single records at a time, and don't need to be able to insert, delete, or update. So I've created a 'record form' (several times), based on the very same db and table, but when I go 'live' it shows nothing. What's the difference here between how these two form types display data? What do I have to do have it display records? Thanks for the help.
|
|
|
 |
Nicole
|
| Posted: 03/27/2002, 4:48 AM |
|
Hello,
here is some explanation that will help you.
CodeCharge Record form could be in two modes:
1. insert mode. You see Insert and Cancel buttons on the form. The form is ready to insert new record into table. No primary key value is passed to the form.
2. update mode. You pass primary key value of particular record to the form and you see fields on the Records form filled with the values of table fields of particular record. Now can edit only this record and you see Update, Delete and Cancel buttons on the form.
To set form in update mode you should pass primary key to it. It can be done by passing primary key through URL. See any CC example Grid form to find it.
You can set page navigator to display one record per page (see form properties->common tab).
|
|
|
 |
|