Autor Beitrag
day
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 107



BeitragVerfasst: Mi 20.08.03 13:02 
hallo

Ich habe wie kann ich werte in einer Query ändern die eine readonly berechtigung hat???

Ich habe es so probiert das er zuerst die änderung in die Datenbank schreibt und anschliessend wieder ins Query läd. aber es funktioniert so nicht. ich sehe die änderung in der datenbank nicht und er aktualisiert mir es auch nicht.
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
 TempStr := 'UPDATE INFO SET SELECTED = '''
               + TerminalStr
               + ''' WHERE NR = ''15'';

    // DM.OrderContentQuery.Active := false;
    DM.UpdateSQL.ModifySQL.Clear;
    DM.UpdateSQL.ModifySQL.Add( TempStr );
   
   DM.OrderContentQuery.Edit;

   DM.OrderContentQuery.Post;
   DM.OrderContentQuery.ApplyUpdates;
  //DM.OrderContentQuery.Active := true;
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: Sa 23.08.03 17:46 
da deine Query ReadOnly ist, garnicht. :-(

grez
msch