From kklein@ix.netcom.com Wed Dec 31 16:00:00 1969
From: kklein@ix.netcom.com (Keith Klein)
Date: Wed, 31 Dec 1969 16:00:00 0000 ()
Subject: [Zope-DB] How to pass variables?
Message-ID: <5300609.1052174950801.JavaMail.nobody@bert.psp.pas.earthlink.net>
Iam a newbies in zope I need some assistance with passing of variables.
Iam connecting to a Msql DB with student table, l need to be able to
display the student, delete and update them. I've several ZSQL and DTML
method as below to assist me to achieve that. The showstudent dtml methord
is refferancing the edit, delete and addstudent DTML Methods. The
Showstudent form has buttons for the above, but when l click on the Edit
or
Delete button l get "error value Student_ID". And both delete and edit
DTML
method gives me an error "Missing input variable Student_ID"
How do l go about doing this? How do l pass the Student_ID variable into
those Dtml method.
I will be grateful for your assistance
DTML Method "ListStudent" to list all student
Listing of Students
Add a New Student
ZSQL Method "SelectAll" to select all from student table
select * from Student
ZSQL Method "SelectStudent" to select one student
select * from Student where
Student_ID=
ZSQL Method "UpdateStudent" to update student
Update Student set
Student_ID=,
Name=,
Advisor_Name=,
Grade=,
Homeroom=
where Student_ID=
DTML Methord "delete" to delete a record
Student record deleted!
View a listing of students or Add another Student
ZSQL Methord to "deleteMethod" one row from student table
Delete from Student where Student_ID=
DTML Method "edit" to edit a record
Record Edited
View Student ListingAdd
another Student
Edit Student Record
DTML Method "ShowStudent" to display all student in a form with
Edit,Delete,Addstudent buttons.
Listing of Students
_______________________________________________
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db