Print Thread
Work with outer-join based views
#3170 03/07/02 09:56 PM
Joined: Mar 2002
Posts: 2
R
redskin Offline OP
Member
OP Offline
Member
R
Joined: Mar 2002
Posts: 2
When trying to insert/update OraDataSet retrieving data from outer-join based view i get error message that rowid for such view can't be retrieved. For all iserts and updates i wrote triggers instead of, and from SQL environment they work perfect.
How can i with minimal coding work with such type views? I tried to use UniqueFiels property but the problem remaind.

Re: Work with outer-join based views
#3171 03/08/02 04:14 PM
Joined: Aug 1999
Posts: 22,228
Member
Offline
Member
Joined: Aug 1999
Posts: 22,228
You must include the rowid in the query, and specify the column(s) that identify a record in the UniqueFields property.

------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations
Re: Work with outer-join based views
#3172 03/10/02 08:32 PM
Joined: Mar 2002
Posts: 2
R
redskin Offline OP
Member
OP Offline
Member
R
Joined: Mar 2002
Posts: 2
I tried to use rowid in select statement of view but i got error msg that for rowid i have to specify column name in quotes "".
But specifying "ROWID" name (in capitals, of course) gives the same error and specifying any other name (for example, "Rowid") doesn't give any positive results.
All necessary unique fields are in view select statement.

Re: Work with outer-join based views
#3173 03/11/02 04:50 PM
Joined: Sep 2000
Posts: 52
London, UK
J
Member
Offline
Member
J
Joined: Sep 2000
Posts: 52
London, UK
I've been using the following for views (including those with outer joins) without any problems:

CREATE OR REPLACE VIEW xxx AS
SELECT
x.rowid as "rowid",
x.y,
...

Re: Work with outer-join based views
#3174 08/24/06 05:08 PM
Joined: Aug 2006
Posts: 1
S
Member
Offline
Member
S
Joined: Aug 2006
Posts: 1
I'm having the same problem. I want to insert/delete and update in a view, but I don't get work. Just to remenber in my VIEW have a union table.
Ever happened the same error ORA-01446. I put ROWID in the view and set the UniqueFields but I don't work. If you have a solutions, can you help me.

Thanks

Angelo Andrade

Re: Work with outer-join based views
#3175 08/24/06 06:04 PM
Joined: Aug 1999
Posts: 22,228
Member
Offline
Member
Joined: Aug 1999
Posts: 22,228
If a record cannot uniquely be identified, then you cannot insert, update or delete records with standard dataset processing. It would require an OnApplyRecord event handler.

Is the union from 2 different tables? Or from 2 subsets of the same table?


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.041s Queries: 13 (0.009s) Memory: 2.5184 MB (Peak: 3.0418 MB) Data Comp: Off Server Time: 2024-06-08 16:26:21 UTC
Valid HTML 5 and Valid CSS