"Ivo Looser" <[EMAIL PROTECTED]> writes:

I will have two HTML Pages one for Add Records in Table1 and one for Edit
Records in Table1.�Both pages should be a Form to edit the Values the
Textvalues. The�Add Page shouldn't display a Upload Possibility. The Edit
Page support a FileField for Uploads.

So you have to either suppress the upload field somehow (e.g. by deleting its
entry from the DOM tree using JavaScript) and make it an optional field on
your validation schema / form or you'll have to have two different forms.

You can also share the form and use differente validation schemas.

Associating a file with a non-existent record at the form submitting time is
not hard: you first create the record then associate the file to it.
Transactions will guarantee that everything will either succed or fail.

Below of the FileFiled are a HTML-Table with all already Uploadet Files.

This is just presentational...  You'll have to populate something like a
DataGrid.

--
Jorge Godoy      <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to