Home » Developer & Programmer » Forms » Need help...really easy
Need help...really easy [message #120294] Wed, 18 May 2005 18:09 Go to next message
elMiMi
Messages: 5
Registered: May 2005
Location: QTR
Junior Member
Hey, i'm totally clueless with the whole pl/sql stuff and i need to hand in an application by monday

my questions are really simple
if i have a form to enter information into multiple tables
for instance enter:
ID into table Student
SID into table supervisor

what should the code be?

and if i want to delete a row by the id number, what should the code be as well?

Thanx
ElMiMi
Re: Need help...really easy [message #120295 is a reply to message #120294] Wed, 18 May 2005 18:26 Go to previous messageGo to next message
danosw
Messages: 20
Registered: May 2005
Location: California
Junior Member
Forms will do it all for you... These isn't any code (PL/SQL) to write.

It's all done in the block properties:
Query Allowed, Insert Allowed, Update Allowed, Delete Allowed...

So to delete, you first query by the User ID, then delete.

Re: Need help...really easy [message #120313 is a reply to message #120294] Wed, 18 May 2005 23:57 Go to previous messageGo to next message
elMiMi
Messages: 5
Registered: May 2005
Location: QTR
Junior Member

That doesn't work when i'm entering different infomation to different tables, or does it?

Thanx
Re: Need help...really easy [message #120316 is a reply to message #120313] Thu, 19 May 2005 00:31 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
You have one block per table. Start with one block per canvas. Then later build a master/detail one a third canvas. Join the two blocks using the 'relationship' between the two blocks.

Search in this forum for master/detail to see examples.

David
Re: Need help...really easy [message #120435 is a reply to message #120294] Thu, 19 May 2005 13:55 Go to previous message
RAY_HT
Messages: 155
Registered: May 2005
Location: Giza
Senior Member
i think the solution is to build master/details form
which handel the relation between more than one table
when u want to delete master record it will delete detail record if the relation property "delete record behavior set to cascading"

best regards

hany
Previous Topic: Text_item visualisation
Next Topic: ORA-12154 TNS: Could not resolve the service name
Goto Forum:
  


Current Time: Thu Sep 19 19:09:53 CDT 2024