Home » Developer & Programmer » Forms » save data in block details
save data in block details [message #562125] Sat, 28 July 2012 18:41 Go to next message
hassan08
Messages: 122
Registered: June 2011
Location: egypt
Senior Member
i have two tables
emp data
emp course
emp data the primary key is emp_no and another table emp course emp_no is foreign key
and desgin
master block and desgin details block
master block programmed list of value to show the employee and make it database item = no
details block show all data i want only save in the details block only
how can make it
Re: save data in block details [message #562132 is a reply to message #562125] Sun, 29 July 2012 03:38 Go to previous messageGo to next message
Littlefoot
Messages: 21813
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
A classic (read: created by Data Block Wizard) master-detail form.

Set master block's INSERT and UPDATE ALLOWED properties to "NO".

Forget about non-database item - you don't want to do that. If you insist on non-database block, then master block doesn't have to be a data block (but control block). This solution is less flexible than usual master-detail one.
Re: save data in block details [message #562141 is a reply to message #562132] Sun, 29 July 2012 11:24 Go to previous messageGo to next message
hassan08
Messages: 122
Registered: June 2011
Location: egypt
Senior Member
thank you but know i converted the items to database block = yes and i want only when delete data from details tables without delete data from master tables
Re: save data in block details [message #562158 is a reply to message #562141] Mon, 30 July 2012 00:55 Go to previous messageGo to next message
Littlefoot
Messages: 21813
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
I'm afraid I don't understand what you are saying.
Re: save data in block details [message #562197 is a reply to message #562158] Mon, 30 July 2012 06:11 Go to previous message
cookiemonster
Messages: 13925
Registered: September 2008
Location: Rainy Manchester
Senior Member
Does the delete_allowed property do what you need?
Previous Topic: data not displaying from main database
Next Topic: Comit in forms
Goto Forum:
  


Current Time: Fri Jul 05 22:40:41 CDT 2024