Database block on remote view on remote database [message #421674] |
Wed, 09 September 2009 13:18 |
bibsdash
Messages: 47 Registered: April 2008
|
Member |
|
|
HI
The form is working and the main block is based on a view.
Now we have to change main block to a new view with same fields instead of the current view which is the base of the block.
I changed it and the block is not populating data for all the fields.I checked some fields donot have any values.
Any idea what may be the issue?
Thanks in advance.
[MERGED by LF]
[Updated on: Mon, 14 September 2009 01:41] by Moderator Report message to a moderator
|
|
|
|
Re: Changing the base view of the database block [message #421818 is a reply to message #421723] |
Thu, 10 September 2009 16:55 |
bibsdash
Messages: 47 Registered: April 2008
|
Member |
|
|
Actually the new view exist in another database.
I have created a synonym like the following for the new view which exist in another database:
create public synonym emp_v for scott.emp@db_link;
I am not sure if the block is based on a view over the db link will it be a problem considering the version of the forms.
But I can query the view from the sqlplus or Toad on the same Oracle home.
Any suggestions?
|
|
|
|
|
|
Database block on remote view on remote database [message #422035 is a reply to message #421674] |
Sun, 13 September 2009 23:36 |
bibsdash
Messages: 47 Registered: April 2008
|
Member |
|
|
This is the Forms version Forms 32 Bit Version 6.0.8.11.3 (Production) on Windows.
I have a database block in a form pointing to a view called 'emp_v' in the local database.We have to change the block to point to a new view 'emp_view' from a remote database having the same database structure.When I changed the view to a new view in a remote database on the block through Layout wizard, it is not working.For the remote view, I created a synonym
create synonym emp_view for scott.emp@db_link)
I could query the view from the SQL Plus or TOAD.
Next, I tried creating another view locally based on the remote database view.Still it didnot work.
As the above action plan didnot succeed, then I tried calling set_block_property('EMP_BLOCK', DML_DATA_TARGET_NAME , 'emp_view') in PRE-QUERY trigger to override the block which has database block set to old view 'emp_v'. It also didnot work, then I tried calling the above set_block_property in NEW-BLOCK-INSTANCE trigger.Still the form is loading data from the old view 'emp_v' instead of looking at remote view 'emp_view'.
Did I miss something here?
Please suggest.
[Updated on: Sun, 13 September 2009 23:40] Report message to a moderator
|
|
|
|
|
Re: Database block on remote view on remote database [message #422053 is a reply to message #422050] |
Mon, 14 September 2009 02:12 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
That's what I understood. However, *perhaps* there's - somewhere - some kind of relationship which you didn't discover (yet) that uses "emp_v" instead of "emp_view". Therefore, remove "emp_v" and form should fail. It might tell you where to look at in order to fix the issue.
|
|
|