Home » Developer & Programmer » Forms » Update View (Form Bulider 6i)
Update View [message #322841] Mon, 26 May 2008 07:04 Go to next message
smitha_priya
Messages: 1
Registered: May 2008
Junior Member
Hi,
I have created a view like below and used in a data block.

create view po_view as
select ood.organization_code,pov.segment1,pov.vendor_name,pvs.vendor_site_code,tsh.vendor_id,
tsh.subinventory_code from org_organization_definitions ood, po_vendors pov,
po_vendor_sites_all pvs ,tab_smi_hubs tsh
where
pov.vendor_id = pvs.vendor_id
and pvs.vendor_site_id = tsh.vendor_site_id
and ood.organization_id = tsh.organization_id

The Find Block Displays the Column's as expected using WHEN_BUTTON_PRESSED Trigger.
But now I also need to update & delete from the View.

I've checked the Insert Allowed, update Allowed and Query Allowed properties on all items to Yes. I get a message
FRM -40602 : Cannot insert or update in a View.

From this Forum I got a Message saying "check view USER_UPDATABLE_COLUMNS and it will tell you whether your view supports update, insert, or delete". but i dont have such column on view. I’m not sure where i need to check

Thank for your help in advance.

Thanks,
Priya
Re: Update View [message #322912 is a reply to message #322841] Mon, 26 May 2008 18:20 Go to previous messageGo to next message
vamsi kasina
Messages: 2112
Registered: October 2003
Location: Cincinnati, OH
Senior Member
You can't insert, update or delete the Complex views.
For this purpose you have to use INSTEAD OF trigger in database operations.

From Forms you can use ON-INSERT, ON-UPDATE and ON-DELETE triggers.

Have you tried them?

By
Vamsi
Re: Update View [message #322931 is a reply to message #322912] Mon, 26 May 2008 21:20 Go to previous messageGo to next message
wency
Messages: 450
Registered: April 2006
Location: Philippines
Senior Member

search for materialized view, you can update it but it does not automatically refreshed
Re: Update View [message #331563 is a reply to message #322841] Fri, 04 July 2008 00:40 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
If ALL the fields of ALL the primary keys are referenced in the view then it should work.

David
Previous Topic: list item
Next Topic: Disable the form
Goto Forum:
  


Current Time: Sun Feb 09 06:22:07 CST 2025