TSmartQuery+grid trying to update wrong table
Posted: Thu 10 Aug 2017 20:00
This is a simplified example, but I put this query in a TSmartQuery attached to a grid, then make edits in the grid, the TSmartQuery attempts to update the "Trgt" table, which does not exist, instead of EMP.
Is there something I can do to tell the TSmartQuery to use EMP instead of Trgt? I tried setting the UpdatingTable property, but that just led to a "wrong UpdatingTable value" message.
Code: Select all
with
Trgt as
(SELECT EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO
from EMP)
select Trgt.ROWID, EMPNO, ENAME, JOB, MGR, HIREDATE
, SAL, COMM, DEPTNO
from Trgt