Complex view in forms 6i

i have create a complex view
and i want to use this view in oracle form developer 6i
when i try to insert a new record in the view i have this error message frm-40602
in the database i have wire the instead of trigger
so how can i use the form to insert anew record in this view

not all columns can be updated by a view. Those columns, which are not allowed have to be set to "Query Only". try this property

Similar Messages

  • How to update or delete records in a Complex View in Forms?

    Hi,
    I have a requirement to create a Form by using Complex View. Insertion is possible but updation and deletion is not working properly . I got FRM-40501 Error. I need How to update or delete records in a Complex View in Forms?
    Thanks & Regards,
    Hari Babu

    Depending on how complex your view is, forms is not able to determine how to appropiately lock a record, when you try to update or delete a record.
    One approach to using complex views in forms:
    1. Set the Key-mode of the block to "Non-Updateable"
    2. Mark the column which can be used to build the WHERE-condition to uniquely identify a record with "Primary Key" = "Yes"
    3. For doing INSERT, UPDATE and DELETE, create an INSTEAD-OF-trigger on the view.
    4. Create your own ON-LOCK-trigger in forms which does the locking of the records to update.

  • View based form updation in 6i and 10g forms.

    Hi All,
    I am facing a strange problem.
    I created a form based on a view, which is based on a single table. i made a copy of the form and converted it to 10g.
    When running in 6i, i can update the data through forms. But in 10g, its showing FRM-40602: Cannot insert into or update data in a view.
    Can anyone tell what is wrong?
    Thanks & Regards,
    Manu.

    hi Manu
    How to insert new record or update existing record using a complex view?
    to make dml against a complex view with instead of triggers a reality. There should be no need to write an on-update trigger in your form. Indeed, the reason for a view and instead-of-trigger on that view is so that you do not require additional coding in your form.
    1) you need the instead-of-trigger on the view (confirm it is there)
    2) you need to change the locking mode in the form for the block based on your view so that it uses the logical key for locking purposes. There is a lock mode setting somewhere in the block properties page, find it, understand the differences and pick the righ tone (I forget at this moment which on it is, try them all if necessary).
    3) #2 will involve selecting those fields that map to the business identifier/primary key you want to you use for finding rows. You need to visit each field's property page and set the appropriate attribute to indicate that is is part of the key used to find rows. It is there on the properties page but not having forms available at the moment I cannot give you the property name. You will have to do a little exploring to find it.
    If you do these things, the error should go away and the view become updatable via oracle forms without the need to write any on-update trigger.
    Do some testing at the database level first. Make sure you can update the view directly via sqlplus first with the instead-of-trigger before you attempt it in the form. This will ensure that your issue is forms related and not database related. This is an important step because the database will return a similar error to what you have reported if the instead-of-trigger does not exist on the view.
    sarah

  • Updates to a complex view

    SQL Developer version 3.0.04 on XP Pro
    We are able to use the data grid to update the values of views that are inherently updatable, no problem.
    We have a complex view with an associated instead-of-update trigger. We are able to update this complex view using an UPDATE statement, no problem.
    We would like to be able to update the complex view using the data grid (just in case I am mixing up the terminology, by "data grid" I mean the interface you get when you select the view from the navigation pane and then click the "Data" tab), but the fields are read only.
    Is there a configuration option that we can use to enable this? Or, some sort of workaround? Or, are we simply not able to update complex views using the data grid?
    Thanks!
    -Tom

    i think u need to change ur application structurei don't think so. Create an INSTEAD-OF-trigger on your view and manage the splitting there. In forms, you wil have to set the property "Primary Key" for the pk-item's to "Yes" and eventually you have to create an ON-LOCK-trigger

  • How to insert new record or update existing record using a complex view?

    Currently I created this screen, there is no problems on display data, only on the update funtionality (it means insert / update / delete on the table for which the view is based on).
    I have a table and a complex view in order to display the information from the table in a tabellar form (i.e up to 70 record in same "record" in the form, one for each item)
    The view is like this
    select a.f1, a.f2, get_value(a.pk1,1) a1, get_value(a.pk1,2) a2, get_value(a.pk1,3) a3............
    from my_table a
    where a.proj_id = user
    and I want to permit the update of the field a1, a2, a3 in a multiposition canvas (tabellar).
    I created an INSTEAD-OF trigger.
    But it not work only in the form. I receive the error FRM-40654 when I try to change the existing value in the running form based on that view.
    The view is woking and updatable using sql-plus.
    If I query
    select * from ALL_UPDATABLE_COLUMNS where table_name = 'SPV_BOQ_BOM_POS_ACTIVITIES';
    in which 'SPV_BOQ_BOM_POS_ACTIVITIES' is the name of my view.
    The question is: why if the view is updatable using SQL*Plus, is not updatable using Oracle Form 10gR2 ?
    Someone could help me asap?
    Thanks

    I removed on the datablock three items that are not showed, one of this is the Sysdate of update on the table for which the view is based.
    I removed also the on-lock trigger and the update from the form is NOT working fine.
    But for now I can still mantaing the ON-LOCK trigger.
    Is not a priority to remove this trigger.
    I still have the problem when the field is null, it mean that in the table SP_BOQ_BOM_POS_ACTIVITIES the record not exist.
    I try now to explayn better.
    SPV_BOQ_BOM_POS_ACTIVITIES is the name of the view.
    SP_BOQ_BOM_POS_ACTIVITIES is the name of the table.
    This are the desc
    desc SPV_BOQ_BOM_POS_ACTIVITIES
    Describing SPV_BOQ_BOM_POS_ACTIVITIES....
    NAME Null? Type
    BOQ_HEADER_ID NOT NULL NUMBER(12,0)
    BB_ID NOT NULL NUMBER(12,0)
    BOQ_ID NOT NULL NUMBER(12,0)
    PROJ_ID NOT NULL VARCHAR2(10)
    ACT_GROUP_CODE VARCHAR2(30)
    TOTAL_QTY NUMBER
    ACT_CODE_1 VARCHAR2(4000)
    QTY_1 NUMBER
    ACT_CODE_2 VARCHAR2(4000)
    QTY_2 NUMBER
    ACT_CODE_3 VARCHAR2(4000)
    QTY_3 NUMBER
    ACT_CODE_4 VARCHAR2(4000)
    QTY_4 NUMBER
    ACT_CODE_5 VARCHAR2(4000)
    QTY_5 NUMBER
    ACT_CODE_6 VARCHAR2(4000)
    QTY_6 NUMBER
    USR_ID NOT NULL VARCHAR2(10)
    LMOD NOT NULL DATE
    INT_REV NOT NULL NUMBER(6,0)
    The field QTY_1, QTY_2.... QTY_6 are calculated with a customer stored function from the table SP_BOQ_BOM_POS_ACTIVITIES.
    Also the field ACT_CODE_1, ACT_CODE_2, .... ACT_CODE_6 are calculated with a customer stored function from the table SP_BOQ_BOM_POS_ACTIVITIES.
    desc SP_BOQ_BOM_POS_ACTIVITIES
    Describing SP_BOQ_BOM_POS_ACTIVITIES....
    NAME Null? Type
    BBPA_ID NOT NULL NUMBER(12,0)
    BOQ_HEADER_ID NOT NULL NUMBER(12,0)
    BB_ID NOT NULL NUMBER(12,0)
    BOQ_ID NOT NULL NUMBER(12,0)
    PROJ_ID NOT NULL VARCHAR2(10)
    ACT_GROUP_CODE NOT NULL VARCHAR2(30)
    ACT_CODE NOT NULL VARCHAR2(30)
    QTY NUMBER(12,0)
    FLG_MANUAL_CHANGE VARCHAR2(1)
    USR_ID NOT NULL VARCHAR2(10)
    LMOD NOT NULL DATE
    INT_REV NOT NULL NUMBER(6,0)
    If I use SQL Navigator this insert working fine
    insert into SPV_BOQ_BOM_POS_ACTIVITIES
    (BOQ_HEADER_ID, BB_ID, BOQ_ID, PROJ_ID, ACT_GROUP_CODE, ACT_CODE_1, QTY_1)
    values (5050, 5015, 30486, 'B39368', 'TEST', '0101010101010101', 1709)
    1 row(s) inserted
    Instead using the Screen, at runtime, I receive the message:
    FRM-40400 Transation Complete: 1 records applied and saved
    but nothing is saved in the table SP_BOQ_BOM_POS_ACTIVITIES, and the view SPV_BOQ_BOM_POS_ACTIVITIES contain the calculated QTY_1 for the 'key', with null value.
    Moreover If in the field QTY_1 (NUMBER) I put a character, instead a Number, just to see if the Screen attempts or not an UPDATE or AN INSERT, the message is FRM-40509: Oracle Error. UNABLE TO UPDATE RECORD. Why happen an Update and not an INSERT using the Screen?
    In effect, the trial using SQL navigator of the following statement
    insert into SPV_BOQ_BOM_POS_ACTIVITIES
    (BOQ_HEADER_ID, BB_ID, BOQ_ID, PROJ_ID, ACT_GROUP_CODE, ACT_CODE_1, QTY_1)
    values (5050, 5015, 30486, 'B39368', 'TEST', '0101010101010101', 'r');
    I got Invalid Number and it's ok as answer from the database.
    Edited by: fmariani on 30-apr-2009 1.51

  • View and Form

    Hi All,
    Apex 4.0
    I have created a page (form with report) based on a complex View. So when time to create or update the form it wont allow me :(.
    How do I point or change the form to point to the table instead of the view at "create"/"edit" module?
    Thanks a lot,
    Kinz

    See what you think of the code below. The beauty of this is that you can change your view and your api as much as you like without affecting the calls your apex application makes, so long as you retain your primary and foreign keys. If you do make a change to the view, you will need to recompile your trigger also. I've only demonstrated for DELETE - you can do this virtually the same for INSERT and UPDATE also.
    create table a (a_id int, a_text varchar2(20));
    create table b (b_id int, ref_id int, b_text varchar2(20));
    begin
    insert into a values(1,'Alpha');
    insert into a values(2,'Charlie');
    insert into a values(3,'Echo');
    insert into a values(4,'Golf');
    insert into b values(1,1,'Bravo');
    insert into b values(2,3,'Delta');
    insert into b values(3,3,'Foxtrot');
    insert into b values(4,4,'Hotel');
    end;
    create or replace view a_and_b
    as
    select a_id
          ,a_text
          ,b_text
    from  a, b
    where a_id = ref_id (+);      
    create or replace procedure a_and_b_delete_api (p_id in int)
    is
    begin
    dbms_output.put_line('p_id is '||p_id);
    delete from a where a_id = p_id;
    delete from b where ref_id = p_id;
    end a_and_b_delete_api;
    create or replace trigger a_and_b_t
    instead of delete on a_and_b
    for each row
    declare
    begin
    a_and_b_delete_api
    (   :OLD.a_id
    END a_and_b_t;
    delete from a_and_b where a_id = 3;
    select * from a_and_b;

  • Attachments are missing in form later when you view the form

    Hi All,
    we have developed the application with webdynpro java with adobe interactive forms, we have implemented adding attachment to adobe form . I have two problems related to adobe attachments.
    1)  once files are attached to form and submitted the form data. Later when you view same form , if you look at the attachments . Files are available. But in the same webdynpro form where the adobe form is rendering has back button.
    Once you click on the back button and again if you display the same adobe form and try to look at the attachments. But attachments are missing. the attachments not able to see till i close that browser and open the the application in new browser. Some thing causing the issue click on back button and try to revisit the same adobe form to see the attachments in file.
    2) Another problem is  file names with attachments. once files are attached to form and submitted the form data. Later when you view same form again attachments are missing. In case, if any of the file name have the special characters like " %, $, &". for example if i attached three files to form , but only one of the file names has the special characters, then the whole three files are missing when you look at the attachments in the form.
    Please let me know what could be the issue. How to resolve it.
    One quick solution for the 2nd problem is , Prompting the user with warning message, while attaching any files to form have the special characters to file name.  what is the logic need to be write, where need to write.
    Please answer to this

    John,
    thanks for the reply, can Please elaborate  your question.
    How i will add the attachments to the form means, we have online forms for submit the data , while submitting the data , all the relevant documents or files  related to request will be attached to the adobe form , click on  attache icon available in adobe form.
    thanks
    vijay

  • Problem during view Adobe Form in Web Request

    Hi All,
    I am facing problem while viewing the adobe form inside the Web Request form.
    Let me describe the issue clearly.
    I need to have a table in Adobe Form.So i created one table type and bind it to the table structure created, in Adobe Form.
    Then i uploaded the form as web request successfully.
    Now when i m trying to view the form from web ui, its unable to assign child node data at runtime.so dump is coming.
    Can anyone show light on this....i have tried all the possibilities.
    Unfortunately there is no standrad scenario available for reference.
    Regards,

    Hi Satish,
    Thanks for your reply.But this is not my requirement.
    If you will go to tcode CRM_UI and log in using business role CRMGRMPRGMAN, then go to Application and open one application.Here there is one assignment block called 'Application Form'. Here i have uploaded my Adobe Form as web request.
    This is working fine when i have simple linear form.
    But when i am using table inside the form and doing binding for it, Application is getting created with that form but while openning it here in the assignment block, dump is coming as below.Its not able to assign the child node.
    The ABAP call stack was:
    Method: NODE_ELEM_2_STRUCT of program CL_WD_ADOBE_SERVICES==========CP
    Method: NODE_2_DDIC of program CL_WD_ADOBE_SERVICES==========CP
    Method: DATASOURCE_2_FM_PARAMS of program CL_WD_ADOBE_SERVICES==========CP
    Method: CREATE_PDF_DDIC of program CL_WD_ADOBE_SERVICES==========CP
    Method: CREATE_PDF of program CL_WD_ADOBE_SERVICES==========CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/CADOBE==================CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/CADOBE==================CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Regards...

  • Why we cannot perform DML operations against complex views directly.

    hi
    can any tell me why we cannot perform DML operations against complex views directly.

    Hi,
    It is not easy to perform DML operations on complex views which involve more than one table as said by vissu. The reason being you may not know which columns to be updated/inserted/deleted on the base tables of the views. If it is a simple view containing a single table it is as simple as performing actions on the table.
    For further details visit this
    http://www.orafaq.com/wiki/View
    cheers
    VT

  • IPhone viewing PDF forms

    Hi guys,
    I have a PDF form that was filled out and saved with Acrobat Premium and then e-mailed. I can view the form attachment normally on a PC, but the iPhone merely shows the PDF without any of the form data filled in.
    Am I missing something or is the iPhone missing form support?

    In case anyone else has this problem, I fixed it...
    Situation: I made the fillable form with an existing PDF document, I did not start from scratch.
    Solution: I saved the original PDF as a Word document, and then turned on the "paragraph marking" tool in Word.  This revealed that there was a text box hidden at the bottom of the document.  Once I removed the text box, I re-saved the document as a PDF and recreated the form again.  It was kind of a pain, but it solved the problem!

  • How to open each View/Edit Form in a modal dialog?

    Hi,
    I have the user requirement to modify the UI to open each view/edit form in a modal dialog instead of showing it inside the content area.
    Any idea how to implement this?
    Thanks
    Sven

    Open list/library settings -> Advanced Settings -> set  "Launch forms in a dialog?"
    - Yes.
    [custom.development]

  • Cannot view oracle form on the browser... pls help...!

    hi guys..
    am new to oracle forms..
    ma prob is that i've created 4 oracle forms using oracle 9i and i can perfectly run and view 3 forms. but when i compile and run the other form it does not display on the browser window. it displays just the java applet (which is just a gray area). i cannot c any components... pls could any one help me on this prob....???
    appreciate ya earliest response.
    tnx
    Anushka

    hi tony,
    tnx 4 replying.... i checked the log stack. but it doesn't show any errors. here i hv quoted wt the stack gave4 ya reference.
    QUOTE
    Oracle JInitiator: Version 1.3.1.9
    Using JRE version 1.3.1.9 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\UserProxy Configuration: no proxyJAR cache enabled
    Location: C:\Documents and Settings\User\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0----------------------------------------------------
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    ----------------------------------------------------Loading http://cpstl-4d98172e1:8888/forms90/java/f90all_jinit.jar from JAR cacheconnectMode=HTTP, native.Forms Applet version is : 90290connectMode=HTTP, native.Forms Applet version is : 90290
    UNQUOTE
    pls gv me a suggestion. if u want i can send you the .fmb file.
    tnx & rgds
    anushka

  • Cannot view PDF forms (with Signature) in Workspace Error : "SigDict/Contents illegal data"

    Hello,
    With Jasmin's help, I am able to import a PDF form which is digitally signed >> view it in Workspace >> click Approve/Decline for archiving. Thanks Jasmin !
    When I view the form in workspace, I get a "Atleast one signature is invalid" prompt on the top left corner of the window. Upon clicking the "Signature Panel", it says "The Signature is invalid" with a description of "SigDict/Contents illegal data"
    Once the process is complete, I am unable to open the same form. I get an error message in Adobe Reader (within workspace).
    "Adobe Reader could not open '_7358722841708390983-102[1]' because it is either not a supported file type or because the file has been damaged ( for example, it was sent as an email attachments and wasn't correctly decoded)"
    Any help will be highly appreciated.
    Aditya

    For everyone's reference.
    I figured out the "Signature is Invalid" message.
    This was my fault as I used a Form Augmenter (insert form bridge) to a signed form which broke the PDF.
    After removing that module, I no longer got that message. However, once I approve the form I could no loner view it and I would still get an error.
    "Adobe Reader could not open '_7358722841708390983-102[1]' because it is either not a supported file type or because the file has been damaged ( for example, it was sent as an email attachments and wasn't correctly decoded)"
    Anyone know why ?
    Aditya

  • Viewing completed forms on iPad

    I have several people who I work with that are having issues with viewing a form they have filled out on an iPad.  When they open it on a Mac or PC, they can view what they have filled out.  But, when they open it either from the Dropbox App or Adobe Reader, the textboxes are empty.  Has anyone else had this problem or can offer any advice?

    Since iOS and android devices does not support JavaScript, which is used for all computations in PDF forms, there are problems right out of the box. I have no problem with Adobe Mobile Reader or EZ Pdf entering data into forms but getting calculations and other scripts is problematic because even if the app does some JavaScript there are a number of JS features not implemented.

  • Complex Views

    I'm trying to figure out how to build a complex view. Right now I have a textfield and button that are tied to a search function. I have a SearchController class that is tied to a SearchView.xib. The textfield and search button are for specific keyword searching
    I want to add a table view to this search view for canned searches by category. Should I create another controller just for this sub-part to the view or should I just implement the methods for a UITableViewController within the Search Controller?

    I understand that a UITableViewController is just a dummy interface. That's not exactly what I'm getting at...
    I do have my controllers separated into a SearchController and a ResultsController with different xib view files associated with each of them. What I'm struggling with is trying to add a UITableView to the search view which is owned by SearchController which is a UIViewController.
    It seems like it would be a bad idea to have two controllers, one referencing the larger part of a view and a subpart of that view being controlled by a second controller, so I'm trying to add a UITableView as a member variable of the SearchController and making the SearchController a UITableViewDelegate. I just want to make sure I'm approaching this problem with the best practices. Apple has provided some great examples about Table Views themselves, and other views, but there is no example out there that has multiple types of views in one given view.

Maybe you are looking for

  • StarSuite will not start up - help! Changed paths from one drive to another

    Hi all, I am using: StarSuite 8 On an: ASUS eePC 900 OS: Windows XP This is my partner's computer. StarSuite 8 came with it the machine, but as yet she has not even gotten a chance to use it. It has two hard drives: C: drive is 4GB (with 500MG free),

  • Down payment request for asset-based Purchase order

    Please Help! I have a PO for an Asset for 10000$. down payment need to be paid for $5000. I went to f-47 to create down payment request BASED ON PO and there is no field to put the PO number. What am i missing? Is there config need to be done? or any

  • How do you know if someone is hacking into your internet services

    I found several websites that I have never been to under settings in safari advanced settings. How did these get here and what can I do to stop it.

  • Pros & Cons for having multiple AS for the same VRF

    Hi, I just wonder if there is any added value of having mutiple private AS numbers for a single VRF, compared to the usual practise of having one single AS for the entire enterprise network of a give customer. The solution provider is setting a requi

  • Left Outer Join in BMM layer

    Hi All, while building the RPD we have to use the join as Left outer join for two tables , we added join condition in BMM layer like evey table we have three tabs like General,Column Maooing and Content. In General tab we have to sections like map to