I installed CAP::Bread and would like to use it for some editing until the 
"real" application has 
runmodes to edit all the tables.
Now after some experimenting I got it to work with my SQLite database. There is 
only one 
problem: all fields seem to be mandatory that is I cannot leave any fields 
empty. It doesn't 
help to deactivate javascript to get rid of the error messages. Then the 
changes are not 
saved.
I tried to change from Class::DBI::Loader to self-made Class::DBI classes but 
this didn't work 
for me at all. Are there any examples how do get this setup going?
Another problem is that I cannot edit the primary key which is not a problem 
from the 
commandline (via sqlite3). This could be considered a feature but I would still 
like to be able 
to edit this field.

Here an example of a simple table definition:
create table test (
  nr integer not null primary key,
  name varchar null,
  age integer null
);
As I understand it, the 'null' should be enough to make 'name' and 'age' 
optional.

Thanks for any help
Michael

p.s.: I am very impressed by the advanced perl that is used to make this plugin 
possible.

p.p.s.: there is a problem when $ENV{'SCRIPT_URI'} is not set by the web server 
(as it isn't 
by mine). Then the redirect after an edit leads to an infinite loop.


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to