In a TUniQuery when I try to edit a field value, I get an exception saying "Cannot modify a read-only dataset" while I call DataSet.Edit. There are no custom fields and no persistent fields. I have set up SQLUpdate to edit a specific row based on a key value. Here's the query:
Code: Select all
SELECT * FROM
(SELECT *
FROM current_context
WHERE contract_number IS NOT NULL
AND contract_signed IS NULL
UNION
SELECT *
FROM future_context
WHERE contract_number IS NOT NULL
AND contract_signed IS NULL
UNION
SELECT *
FROM context
WHERE effective_date > SYSDATE
AND contract_number IS NOT NULL
AND contract_signed IS NULL
)
ORDER BY contract_number DESC
Code: Select all
SELECT *
FROM current_context
WHERE contract_number IS NOT NULL
AND contract_signed IS NULL
UNION
SELECT *
FROM future_context
WHERE contract_number IS NOT NULL
AND contract_signed IS NULL
UNION
SELECT *
FROM context
WHERE effective_date > SYSDATE
AND contract_number IS NOT NULL
AND contract_signed IS NULL