Page 1 of 1

SmartQuery1->Edit();

Posted: Fri 18 Aug 2006 09:33
by niniramos
I hav two diferent windows, in each windows i use one SmartQuery. the two SmartQuery use the same session object.

each SmartQuery make a Select from a Diferent Table.

In the first window i make SmartQuery1->Edit();


then I try in the second window SmartQuery1->Edit();

but i can“t make that because in the first window the object is in edit mode, if I cancel the edit mode in the first window and then i try to make SmartQuery1->Edit() now i can.

the problem is tha i need to make edit in the diferents windows. how can I make?


Thanks, i hope that you can understand me, because my english i so sort.

Posted: Fri 18 Aug 2006 10:58
by niniramos
the problem is that the tow SmartQuerys are in se same transaction, when i cancel in the first i cancel in the second

Posted: Mon 21 Aug 2006 09:30
by Plash
You should use different TOraSession components for each TSmartQuery. Otherwise only one TSmartQuery can be in edit mode at the same time.

Posted: Mon 21 Aug 2006 11:46
by niniramos
sorry i new in oracle DB, and i think that when I have, for example, five licenses i only have five simultaneous session with the data base. if i have for example 6 diferents windows with 6 diferents session I have one problem, no??

sorry but i am not a native english speaker.

thanks

Posted: Mon 21 Aug 2006 11:51
by niniramos
and i think that my application i exect it slowly. but if I have one session that is faster, no??

Posted: Tue 22 Aug 2006 09:52
by Plash
Send to ODAC support address complete sample that demonstrates the problem and include script to create server objects. Then we'll see if the problem can be solved using one TOraSession component.