Refreshing problems with OraQuery / DBGrid
Posted: Wed 30 Nov 2011 06:42
Hi!
I am using ODAC 7.00.03 / Delphi 5 and connected an TOraQuery with TOraDataSource / TOraSession to a dbgrid component. There are some calculated values in the query like "CASH / DECODE(VAL1,NULL,1,0,1,VAL1)"
After entering a new value for "CASH" I want the query / dbgrid to refresh an re-calculate the result. I set the "Refresh Options" of the OraQuery to "afterUpdate" and "BeforeEdit"
With this properties no refresh of the calculated fields will be executed / displayed in the DBGRID. Now I played around with the other options and set the "FullRefresh" Option of the OraQuery to "true". After editing the cash value in the DBGRID I get an error message "Identifier too long" ?!
Whats going wrong here? Or is there another way to add a calculated field ti the OraQuery !! (not OraTable! I am selecting data from different tables, but only a few fields from one table are editable)
Thx in advance
Detlev
I am using ODAC 7.00.03 / Delphi 5 and connected an TOraQuery with TOraDataSource / TOraSession to a dbgrid component. There are some calculated values in the query like "CASH / DECODE(VAL1,NULL,1,0,1,VAL1)"
After entering a new value for "CASH" I want the query / dbgrid to refresh an re-calculate the result. I set the "Refresh Options" of the OraQuery to "afterUpdate" and "BeforeEdit"
With this properties no refresh of the calculated fields will be executed / displayed in the DBGRID. Now I played around with the other options and set the "FullRefresh" Option of the OraQuery to "true". After editing the cash value in the DBGRID I get an error message "Identifier too long" ?!
Whats going wrong here? Or is there another way to add a calculated field ti the OraQuery !! (not OraTable! I am selecting data from different tables, but only a few fields from one table are editable)
Thx in advance
Detlev