14-10-2010, 02:47 PM
الصفحات : 1 2
14-10-2010, 04:32 PM
وعليكم السلام
بما انه يحتوى على الخصائص Insert و اصدقائه[FONT="Arial Black"] ...
نعم يمكن الاضافة والتعديل على query ... اذا اعطيت القيمة TRUE للخاصية RequestLive .
بما انه يحتوى على الخصائص Insert و اصدقائه[FONT="Arial Black"] ...
نعم يمكن الاضافة والتعديل على query ... اذا اعطيت القيمة TRUE للخاصية RequestLive .
14-10-2010, 05:30 PM
جربت لكن لم ينفع......شكرا على الرد ممكن فكرة ثانية
' query2 cannt modify aread only dataset' هذا هو الخطا
' query2 cannt modify aread only dataset' هذا هو الخطا
14-10-2010, 06:02 PM
السلام عليكم و رحمة الله
- هل غيرت كما ذكر الأخ hanipino ؟؟
- هل غيرت كما ذكر الأخ hanipino ؟؟
إقتباس : نعم يمكن الاضافة والتعديل على query ... اذا اعطيت القيمة TRUE للخاصية RequestLive .بالتوفيق
14-10-2010, 06:03 PM
نعم غيرت لكن بقيت النتيجة نفسها
14-10-2010, 06:08 PM
- ضع(ي) الكود المستعمل في الإضافة / التعديل ..
- و كذلك الإستعلام
بالتوفيق
- و كذلك الإستعلام
بالتوفيق
14-10-2010, 06:37 PM
كود :
begin
Query2.Insert;
Query2.FieldByName('num_emp').AsString := Edit1.Text ;
Query2.Post;كود :
select Ajar_w ,num_emp ,indicatif_chif*45,indicatif_degré*45, ziada*45 ,ajr2007
from employe ,ss14-10-2010, 07:48 PM
السلام عليكم و رحمة الله
حسب ما أراه في الإستعلام هو إستعلام من جدولين كما هو في ADO كذلك في BDE
بالتوفيق
حسب ما أراه في الإستعلام هو إستعلام من جدولين كما هو في ADO كذلك في BDE
إقتباس :If your query uses a SELECT SQL statement, it is sometimes possible to edit the result set. Two conditions must exist in order to edit the result set of a query. The first is that the queries RequestLive property must be set to True. Second, the result set must contains records from a single table, and there must be a one-to-one correspondence between the records in the result set and the queries table. In other words, if the query contains a join between two tables, or makes use of statements such as DISTINCT or SUM, the query cannot be edited (unless the query's CachedUpdates property is set to True. Cached updates will be discussed in detail in a future DBNavigator).
الرابط الأصلي بالنسبة للـ BDE
كود :
[align=center] http://edn.embarcadero.com/article/20564[/align]أي لا تستخدم المناهج Append /Insert /Edit /Post/Delete إذا كنت تستعلم من أكثر من جدول
أو إستعمال دوال SQL aggregateبالتوفيق
14-10-2010, 07:55 PM
الحل باستخدام TUpdateSQL
وربطه مع TQuery إضافة، حذف وتعديل...
وربطه مع TQuery إضافة، حذف وتعديل...
11-11-2010, 06:35 AM
ولكن الخاصية RequestLive ليست موجودة في استعلام aql server
الصفحات : 1 2