Problem with Master and Child table

Hi,
Working in jdev 11.1.1.2.0. I have one strange issue. i have master and child tables, the model is working fine with the view link. but when drag drop the same into my jsff. when i query the result 1st time 2 tables are refershing properly and data is coming. but the when i trying to select another row in the 1st table my 2nd table(child table) is not refreshing.
i put partial trigger of the 2nd table as 1st table id.
can any one help wht is issue here.
Edited by: user5802014 on Jul 15, 2010 3:44 PM

Check this post might help you
http://baigsorcl.blogspot.com/2010/03/creating-master-detail-form-in-adf.html

Similar Messages

  • Problem with trigger and mutating table

    Hello,
    I have a problem with the following trigger. Everytime it starts I got an error message:
    ORA-04091: table ccq_test.QW_QUALIFIER is mutating, trigger/function may not see it
    ORA-06512: at "QW_AFTER_UPDATE_ALL", line 3
    ORA-06512: at "QW_AFTER_UPDATE_ALL", line 10
    ORA-04088: error during execution of trigger 'QW_AFTER_UPDATE_ALL'
    Here is the trigger:
    CREATE OR REPLACE TRIGGER qw_after_update_all
    AFTER UPDATE ON ccq_test.QW_QUALIFIER FOR EACH ROW
    DECLARE
         CURSOR c1 IS SELECT id AS mx FROM QW_QUALIFIER_LOG WHERE msgid = :NEW.msgid AND messagedate BETWEEN SYSDATE - (1 / (24 * 60 * 6)) AND SYSDATE AND transfer = 1;
         CURSOR c_qwprod IS SELECT value FROM ccq_test.QW_QUALIFIER WHERE msgid = :NEW.msgid AND name = 'product';
         CURSOR c_qwgesch IS SELECT value FROM ccq_test.QW_QUALIFIER WHERE msgid = :NEW.msgid AND name = 'geschaeftsfall';
         qw_rec c1%ROWTYPE;
         qw_prod c_qwprod%ROWTYPE;
         qw_gesch c_qwgesch%ROWTYPE;
    BEGIN
    OPEN c1;
    OPEN c_qwprod;
    OPEN c_qwgesch;
         FETCH c1 INTO qw_rec;
         FETCH c_qwprod INTO qw_prod;
         FETCH c_qwgesch INTO qw_gesch;
         IF c1%NOTFOUND THEN
              IF (:NEW.name = 'product') THEN
                   INSERT INTO QW_QUALIFIER_LOG VALUES (QW_QUALIFIER_LOG_SEQ.NEXTVAL, :NEW.msgid, :NEW.value, qw_gesch.value, SYSDATE, 1);
              ELSE
              INSERT INTO QW_QUALIFIER_LOG VALUES (QW_QUALIFIER_LOG_SEQ.NEXTVAL, :NEW.msgid, qw_prod.value, :NEW.value, SYSDATE, 1);
         END IF;
         ELSE
              IF (:NEW.name = 'product') THEN
                   UPDATE QW_QUALIFIER_LOG SET product=:NEW.value, messagedate=SYSDATE WHERE id = qw_rec.mx;
              ELSE
                   UPDATE QW_QUALIFIER_LOG SET geschaeftsfall=:NEW.value, messagedate=SYSDATE WHERE id = qw_rec.mx;
         END IF;
         END IF;
    CLOSE c1;     
    END;
    Can anyone help me?

    You are trying to lookup data from qw_qualifier you are currently modifying. You could see the data in a inconsistent way and Oracle is protecting you from it.
    You could read here about how to program around this problem.
    But: your table design seems questionable. You have two records for qw_qualifier and you are trying to log it into one qw_qualifier_log record. Maybe you could fix that, and the need for querying the same table as you are updating is removed.
    Regards,
    Rob.

  • Problems with layout and printing tables

    Hello,
    my first ADOBE-Form "projekt" makes more problems than expected, especially with the layout.
    Layout Problem 1:
    I want to print the data of a table (thats my only parameter in the interface and the table itself is deep structures with other tables). So I have bound the "standard" subform (the one ADOBE inserts automatically" to the table and selected that the subform is repeated after every record.
    Anyhow ADOBE processes only the first record of this table.
    Maybe the reason is, that I need to display the data of one record on two pages. So I created two pages each with the "standard" subform and bounded both to the table.
    What am I doing wrong? Do i have to do the page split another way?
    Layout Problem 2:
    I have a text field with multiple lines allowed. But it overwrites the content of the object, that comes below.
    Its the same with my other subforms for table data.
    How can I tell the system, that an object needs to be pushed downside on the page, if the context above needs more space?
    Thanks in advance for your answers!
    Regards,
    Frank

    Yeah, you say it
    subforms and they "flowing" etc. properties are killing me, but after some hours I think I got the concept.
    The form looks quite well, everything is pushed downwards if an item above gets expanded.
    But one problem remains: this form only prints the very first record of my table.
    I have no problems with the tables nested inside the main table. They work perfectly and everything is fine there!
    But I cant tell the form to print my other records...
    I somehow played around and made it work, but then the next record was not on the next page but directly after the subform created by the context area (if this terminology is correct).
    I played around even further and created a paging with reference to the context area, but then the first page looked quite odd (page 2, 3, 4... looks perfect).
    I tried to fix also this and then I somehow messed up my form and could not undo my changes (it was only a "to play with" copy...)
    Just to explain it again:
    I have one table (lets call it the "main table" because its the import parameter of the interface) and inside this table are other nested tables.
    I want to print one record of the "main table" across 2 pages and after that the next record of the "main table" should be printed beginning at the 3rd page.
    As I said, the two pages look wonderful (even though I have not yet covered the issue of what should happen, two pages are not enough for one record of the "main table"). but as soon as I try to display the next records of the "main table" as well, i am stucked in unpredictable layout problems.
    I cant believe that I try anything extraordinary. Lets hope that I can solve this with your very appreciated help.
    Thanks in advance Otto!!!
    And kind regards, Frank

  • Issue with Master and child relationship,viewlink

    Hi Frnds,
    In one of our custom pages we have Master child relationship between Invoice lines and their distributions.
    Things work absolutely fine when total no of distributions(say 10) are equal to max no of distributions that can be shown on 1st page(i.e equal to advancetable property value 'Records displayed'..say set as 10)
    What happens is when in advance table I click on next button to navigate to next set of records and then edit some field that have any event..ppr or lov my control by default gets transferred to very first set of records.
    !!!!!!!!!!!!!! Also this happens only when no of invoice lines are more than 1.
    I not sure whether the issue is with VL,VO,AO or the advance table property.
    One simple solution that I have tried is...getting back the focus to the row that is updated but it causes some other problem.
    Any pointers will be very helpful
    Thanks in advance.

    Hi any help???

  • Problem with parameters and non table based items

    Hi,
    I have a situation where I have some not table based items on a page (shuttles and select lists). It is parameters that the end user inputs. I have another page with the same items just here they are Display Only and also not table based. When the user press a button I branch from page 1 to page 2 and set the items on page 2. My problem is that the input the user keys in are not copied to the items on page 2. I can see the data in the session state.
    I assume that this is a silly question and I have just set Source Used or Source Type wrong one one of the items but I can not get it working. Can anybody help?
    It works fine if I use a Application Item and creates a process on page 1 where I copy the item value from the session state but that should be needed right?
    Regards Pete

    Thanks Scott,
    I think I got it working. If I remove all the colons from the data it works. I select several entries in a Shuttle and the result is a colon delimited string of values. If I remove these in a process it works fine. Is there a way of escaping the output from a Shuttle?
    Regards Pete

  • Problem with RFC and empty table

    Hi,
    I have a problem using and RFC function module. The problem is that the RFC returns a table type, but even though the table is emtpy the tag is returned. I have this target structure who has a required subsstructure:
    Input:
    <RFC_function_module>
    <customers>
      <customer1>   
        <table1>  (0..1)
          <item>  (0..Unbounded)
           <salesorder>
      <customer2>   
        <table1>
          <item>
             <salesorder>
        <table2>     
           <item>        
              <accountdoc>
    result:
    <customers>
      <list1> (0..1)
        <table1> (1..Unbounded)
      <list2> (0..1)
        <table2> (1..Unbounded)
    The problem is that if i just do at simpel mapping the mapping returns error because the missing table2 in the result. Then i have tried with an Exists function but it seems like the mapping program searches the hole file for just one occurences. Not record by record.
    Do anyone understand my problem an has a solution?
    /Jakob

    OK - what do you mean by to level of mapping? Mapping to an "internal" structure first and then for the final output?
    The reason i do not whant to change the External defintions is because of changes. If the ones who have designet the external defintions ie.  adds a field or something like that, we should remember to change this kind of thing before updating.
    Jakob

  • Problems with ReportDocument and multi-table dataset...

    Hi,
    First post here and hoping someone can help with me with this problem.
    I have an ASP.NET app running using CR 2008 Basic to produce invoices - these are fairly complex and use multiple tables - data used is provided in lists and they work fine when displayed/printed/exported from the viewer.
    My client now wants the ability to batch print these so I'm trying to develop a page which will use create a ReportDocument object and then print/export as required.
    As soon as I started down this path I received the 'invalid logon params problem' - so to simplify things and to get past this I've developed a simple 1 page report with which takes data from a dataset I've populated and passed to it.
    Here's the problem:
    1) If I put one table in the dataset and add a field from that table to the report it works OK.
    2) If I use a second table and field (without the first) it works OK.
    3) as soon as I have both tables and the report has field from each I get the 'Invalid logon parameters' error.
    The tables are fine (since I can use each individually), the report is find (only has 1 or 2 fields and works with individual tables) ... it's only when I have both tables that I get problems...
    ... this is driving me up the wall and if CR can't handle this there's no way it's going to handle the more complex invoices with subreports.
    Can anyone suggest what I'm doing wrong ... or tell me whether I'm just pushing CR beyond it's capabilities?
    The code I'm using to generate the ReportDocument is:
    List<Invoice> rinv = Invoice.SelectOneContract(inv.Invoice_ID);
    List<InvoiceLine> rline = InvoiceLine.SelectInvoice(inv.Invoice_ID);
            DataSet ds = new DataSet();
            ds.Tables.Add(InvoiceLineTable(rline));
            ds.Tables.Add(InvoiceTable(rinv));
            rdoc.FileName = Server.MapPath("~/Invoicing/test.rpt");
            rdoc.SetDataSource(ds.Tables);
            rdoc.ExportToDisk(ExportFormatType.PortableDocFormat, "c:
    test
    test.pdf");
    ... so not rocket science and the error is always caused at the 'ExportToDisk' line.
    Thanks in advance!

    I've got nowhere trying to create a reportdocument and pass it a multi-table dataset, so decided to do it the 'dirty' way by adding all the controls to an aspx page and referring to them.
    I know I can do this because the whole issue is printing a report that is currently viewed.
    So ... I've now added the ObjectDataSources to the page as well as the CrystalReportSource and the CrystalViewer ...
    .. I've tested the page and the report appears within the viewer with all the correct data ...
    ...so with a certain amount of excitement I've added the following line to the code behind file:
    rptSrcContract.ReportDocument.PrintToPrinter(1, true, 1, 1);
    ... then I run the page and predictably the first thing that comes up is:
    Unable to connect: incorrect log on parameters.
    .. this is madness!
    1) The data is retrieved and is in the correct format otherwise the report would not display.
    2) the rptSrcContract.ReportDocument exists ... otherwise it would not display in the viewer.
    So why does this want to logon to a database when the data is retrieved successfully and the security is running with a 'Network Services' account anyway????? (actually I know it has nothing to do with logging onto the database this is just the generic Crystal Reports 'I have a problem' message)
    ... sorry if this is a bit of an angry rant .. didn't get much sleep last night because of this ... all I want to be able to do is print a report from code .... surely this should be possible??

  • Problem with CASE and Object tables.

    Hi guys,
    Have a problem which I am unable to understand how to solve.
    I have the following object
    create type obj_numeric_id_table as table of number(30);
    create type obj_search_rec as object
    ( zones number(4),
      locs obj_numeric_id_table
    create type obj_search_tbl as table of obj_search_rec;
    /Now this object Obj_search_tbl is being passed as an IN parameter to a procedure...actually the object has many more columns but the problem at hand is with the locs column.
    The problem is - if I use the count for the locs column in an IF statement, then all works fine, but if I use it inside a CASE statement in the SELECT clause, it gives me an error.
    create proc proc_1 (abc obj_search_tbl) .....
    L_search obj_search_rec;
    begin
    L_search_rec := abc(1); -- for the moment there is only one record.
    IF L_search_rec.locs.count() > 0 then -- this works perfectly
    END IF;
    select (case when L_search_rec.locs.count() > 0 then 1 end) from some_table;
    -- now this case statement gives me the following error
    "PL/SQL: ORA-00904: "L_SEARCH_REC"."LOCS"."COUNT": invalid identifier"Am I doing something wrong....am unable to understand why this is so...
    Thanks,

    Other possibility:
    select count(t.column_value) from
    (select obj_search_rec(1, obj_numeric_id_table(1,2)) obj_search_rec from dual) l,
    table(l.obj_search_rec.locs) t;

  • Problem with panelbox and af:table scrollbar issue and panelstretchlayout

    Hi,
    <af:panelStretchLayout >
    <f:facet name="center">
    <af:panelSplitter orientation="vertical" positionedFromEnd="true" inlineStyle="vertical-align:inherit;">
    <f:facet name="first">
    <af:subform default="false" id="xyz">
    <af:panelBox background="light" text="Advance Search" inlineStyle="color:InactiveCaption;" type="default">
    <af:panelGroupLayout layout="scroll">
    <af:commandButton text="Search" id="advSearch" actionListener="#{ADFStandardsLeftMenu.getAdvancedSearchData}"/>
    <af:spacer width="20"/>
    <af:commandLink text="Search Tips" id="searchtips2" inlineStyle="font-weight:bold;" partialSubmit="true" clientComponent="true">
    <af:showPopupBehavior triggerType="click" align="afterEnd" popupId="advSearchPopupId"/>
    </af:commandLink>
    </af:panelGroupLayout>
    </af:panelBox>
    </af:subform>
    </f:facet>
    <f:facet name="second">
    <af:panelBox background="light" text="Basic Search" inlineStyle="color:InactiveCaption;" type="default">
    <af:spacer height="20"/>
    <af:panelGroupLayout layout="scroll" >
    --- some inputtext command buttion, dropdowns...selectonechoice..are there inside this
    </af:panelGroupLayout>
    </af:panelBox>
    </f:facet>
    </af:panelSplitter>
    </f:facet>
    </af:panelStretchLayout>
    problem:
    (we have 2 panels) of vertical
    when i run this application it is working fine. But when we minimise the browser(half size) or if we add more no of toolbars in browser (important) obviously browser size will decrease,
    that time 1 panel getting decreased second panel is maintaing fixed size, not resizing.
    I tried to give fixed size (percentage) for both panels wt ever the operation does.
    and 2nd issue
    ========
    <af:panelStretchLayout>
    <f:facet name="center">
    <af:panelSplitter orientation="vertical"
    positionedFromEnd="true" >
    <af:panelBox background="light" text="Search For Standards" inlineStyle="color:InactiveCaption;vertical-align:50%;" >
    <af:table value="#{ADFStandardsLeftMenu.mostCommonAgencySelectedList}"
    id="t1" width="100%" var="stdURL"
    emptyText="<html><b><font color='red'><center>No Records Found</center></font></center></b></html>"
    disableColumnReordering="true"
    columnSelection="multiple"
    rowSelection="multiple"
    inlineStyle="text-align:left;"
    verticalGridVisible="true"
    horizontalGridVisible="true">
    <af:column>
    </af:column>
    ---- we have more 8-10 columns
    </af:table>
    </af:panelbox>
    </af:panelsplitter>
    </f:facet>
    </af:panelstretchlayout>
    problem: that time im getting by default horizontal and vertical scrollbar, but if user add toolbars in browser (view->customize)add toolbar no of say 10-15 that time window size decreasing
    so, table size is crossing panelbox size, and bottom scrollbar is not visible (hiding under site bottom layout say site is divided into 4 parts (leftmenu, body(2 panels), right, bottom) (im not using any right layout)
    regards,
    sandeep

    Hi,
    if minimises browser window(half) or by adding more no of toolbars, i given an option as panelgrouplayout layout=scroll.
    it is working fine for 1st panel.
    but 2nd panel scrollbar not coming.
    thanks in adv.
    regards,
    sandeep

  • Problem with jspf and html table

    hi
    i want to create a single table in a jsp fragment file. the table should have
    letter A_Z which should be command link components. my problem
    is the html part of it. here is my code
    <table width="600" border="0">
        <TR>
            <%for(char i='A';i<='Z';i++)%>
              <TD><%i%></TD>
        </TR>
    </table>my netbeans highlights the line <TD><%i%></TD> and says = not a statement ';' expected. adding ; doesnt solve it. any idea or approach

    SomeBody_Else wrote:
    Change this line
    <TD><%i%></TD>to this
    <TD><%= i%></TD>
    That won't compile. You would need:
    <%for(char i='A';i<='Z';i++) {%>
      <TD><%=i%></TD>
    <%}%>

  • Building index from multiple master and child relationship tables

    Hello,
    My question is:
    Is it possible to create the index for master and child tables?
    If yes, can you please point me out to any links or give me an example.
    Actually i just followed this below link to create the index using multiple tables
    Building index from multiple tables for text search
    I am able to create the index using above link,but problem accured , when i search for one master data column value then it is returning many rows with same master data for each child row.
    for example
    SELECT
    a.conc_program_name,
    a.conc_program_desc,
    b.param_name
    FROM a_master a, b_child b
    WHERE b.report_dtls_id = a.report_id
    AND CONTAINS (a.dummy, 'PAY') > 0
    Which retruns
    PAY Master A
    PAY Master B
    PAY Master C
    Please let me know is there any way i can restrict this to single row with concatination of child data like
    PAY Master A B C
    Another doubt is ,i have the column value like p_consolidation_set_id,when i give this in CONTAINS (a.dummy, 'p_consolidation_set_id') > 0 ,then not able to get the any results.
    please let me what shall i do for this issue.
    Thanks
    Message was edited by:
    user496798

    There are various ways to concatenate the values. One nice generic solution is to use Tom Kyte's stragg function:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:2196162600402
    If p_consolidation_set_id is a variable name, not a value, then do not put quotes around it.
    Message was edited by:
    Barbara Boehmer

  • Problems with retrieving data from tables with 240 and more records

    Hi,
    I've been connecting to Oracle 11g Server (not sure exact version) using Oracle 10.1.0 Client and O10 Oracle 10g driver. Everything was ok.
    I installed Oracle 11.2.0 Client and I started to have problems with retrieving data from tables.
    First I used the same connection string, driver and so on (O10 Oracle 10g) then I tried ORA Oracle but with no luck. The result is like this:
    I'm able to connect to database. I'm able to retrieve data but from small tables (e.g. with 110 records it works perfectly using both O10 and ORA drivers). When I try to retrieve data from tables with like 240 and more records retrieval simply hangs (nothing happens at all - no error, no timeout). Application seems to hang forever.
    I'm using Powerbuilder to connect to Database (either PB10.5 using O10 driver or PB12 using ORA driver). I used DBTrace, so I see that query hangs on the first FETCH.
    So for the retrievals that hang I have something like:
    (3260008): BIND SELECT OUTPUT BUFFER (DataWindow):(DBI_SELBIND) (0.186 MS / 18978.709 MS)
    (3260008): ,len=160,type=DECIMAL,pbt=4,dbt=0,ct=0,prec=0,scale=0
    (3260008): ,len=160,type=DECIMAL,pbt=4,dbt=0,ct=0,prec=0,scale=1
    (3260008): ,len=160,type=DECIMAL,pbt=4,dbt=0,ct=0,prec=0,scale=0
    (3260008): EXECUTE:(DBI_DW_EXECUTE) (192.982 MS / 19171.691 MS)
    (3260008): FETCH NEXT:(DBI_FETCHNEXT)
    and this is the last line,
    while for retrievals that end, I have FETCH producing time, data in buffer and moving to the next Fetch until all data is retrieved
    On the side note, I have no problems with retrieving data either by SQL Developer or DbVisualizer.
    Problems started when I installed 11.2.0 Client. Even if I want to use 10.0.1 Client, the same problem occurs. So I guess something from 11.2.0 overrides 10.0.1 settings.
    I will appreciate any comments/hints/help.
    Thank you very much.

    pgoel wrote:
    I've been connecting to Oracle 11g Server (not sure exact version) using Oracle 10.1.0 Client and O10 Oracle 10g driver. Everything was ok.Earlier (before installing new stuff) did you ever try retrieving data from big tables (like 240 and more records), if yes, was it working?Yes, with Oracle 10g client (before installing 11g) I was able to retrieve any data, either it was 10k+ records or 100 records. Installing 11g client changed something that even using old 10g client (which I still have installed) fails to work. The same problem occur no matter I'm using 10g or 11g client now. Powerbuilder hangs on retrieving tables with more than like 240 records.
    Thanks.

  • Master and Document Tables ...

    What relation do Master and Document tables have to parent and child tables?
    Should I declare all my created tables master and master details ? 
    how can I establish my relationships, foreign keys and primary keys with all these fields created by SAP ?

    Hi Neftali,
    You can create UDOs by using DI API, you have many threads talking about it in this forum.
    If you don't want to use UDOs (which are very useful) then you should not use MasterData,... tables because this tables shouldn't be modified by using SQL queries. These kind of tables are designed for use with UDOs to avoid the whole management of the Forms for the Add/Update/Find/Delete,... actions.
    Have you had a look to B1DE? You can download it from main B1 page in SDN for free and it generates for you the code of your addon for managing many of the aspects of the B1 SDK. You can maybe give it a try!
    You can block users from viewing/using specific menus in B1 by using the UI API.
    Regards
    Trinidad.

  • Problems with SharePoint2010 and Adobe Reader X

    hi all,
    i have a big problem with SharePoint2010 and Adobe Reader x. We can open .pdf Files from SharePoint but not Safe. The Error Message is "
    SharePoint, SQL and OS are installed in English. The problem is that the site was probably created from a German template. One would have to create the site from an English template and then add the other languages by MUI. It is a matter which language site in the settings under Language Settings is uppermost to:
    how can the problem be solved?it looks like here, the reader still an error..
    andre

    Hi,
    Could you repost the error-message that you see in Adobe Reader? The problem might be because of a known bug in Microsoft SharePoint server 2010. Certain required field types are missing in the German/French site templates which cause a SOAP request on the server to fail. A workaround is to add these field types to the library. You could add these fields manually or using a script. You could look for following field types which might be missing from the site template.
    "Content Type ID","Approver Comments","Name","Document Modified By","Document Created By","File Type","HTML File Type","Source URL","Shared File Index","Title","Template Link","HTML File Link","Is Signed", "Document ID Value", "Document ID", "Content Type", "Created", "Created By", "Modified", "Modified By", "Has Copy Destinations", "Copy Source", "Approval Status", "URL Path", "File Size", "Item Type","Sort Type", "Effective Permissions Mask", "ID of the User who has the item Checked Out", "Is Checked out to local", "Checked Out To", "Unique Id", "Client Id", "Virus Status", "Check In Comment", "Edit Menu Table Start", "Edit Menu Table End", "Server Relative URL", "Encoded Absolute URL", "Property Bag", "Level", "Is Current Version", "Item Child Count", "Folder Child Count", "Select", "Edit", "UI Version", "Instance ID", "Order", "Workflow Version", "Workflow Instance ID", "Source Version (Converted Document)", "Source Name (Converted Document)", "Document Concurrency Number","Relink", "Merge", "Path"
    Thanks,
    Richa

  • Problem with trigger and entity in JHeadsart, JBO-25019

    Hi to all,
    I am using JDeveloper 10.1.2 and developing an application using ADF Business Components and JheadStart 10.1.2.27
    I have a problem with trigger and entity in JHeadsart
    I have 3 entity and 3 views
    DsitTelephoneView based on DsitTelephone entity based on DSIT_TELEPHONE database table.
    TelUoView based on TelUo entity based on TEL_UO database table.
    NewAnnuaireView based on NewAnnuaire entity based on NEW_ANNUAIRE database view.
    I am using JHS to create :
    A JHS table-form based on DsitTelephoneView
    A JHS table based on TelUoView
    A JHS table based on NewAnnuaireView
    LIB_POSTE is a :
    DSIT_TELEPHONE column
    TEL_UO column
    NEW_ANNUAIRE column
    NEW_ANNUAIRE database view is built from DSIT_TELEPHONE database table.
    Lib_poste is an updatable attribut in TelUo entity, DsitTelephone entity, NewAnnuaire entity.
    Lib_poste is upadated in JHS table based on TelUoView
    I added a trigger on my database shema « IAN » to upadate LIB_POSTE in DSIT_TELEPHONE database table :
    CREATE OR REPLACES TRIGGER “IAN”.TEL_UO_UPDATE_LIB_POSTE
    AFTER INSERT OR UPDATE OFF lib_poste ONE IAN.TEL_UO
    FOR EACH ROW
    BEGIN
    UPDATE DSIT_TELEPHONE T
    SET t.lib_poste = :new.lib_poste
    WHERE t.id_tel = :new.id_tel;
    END;
    When I change the lib_poste with the application :
    - the lib_poste in DSIT_TELEPHONE database table is correctly updated by trigger.
    - but in JHS table-form based on DsitTelephoneView the lib_poste is not updated. If I do a quicksearch it is updated.
    - in JHS table based on NewAnnuaireView the lib_poste is not updated. if I do a quicksearch, I have an error:
    oracle.jbo.RowAlreadyDeletedException: JBO-25019: The row of entity of the key oracle.jbo. Key [null 25588] is not found in NewAnnuaire.
    25588 is the primary key off row in NEW_ANNUAIRE whose lib_poste was updated by the trigger.
    It is as if it had lost the bond with the row in the entity.
    Could you help me please ?
    Regards
    Laurent

    The following example should help.
    SQL> create sequence workorders_seq
      2  start with 1
      3  increment by 1
      4  nocycle
      5  nocache;
    Sequence created.
    SQL> create table workorders(workorder_id number,
      2  description varchar2(30),
      3   created_date date default sysdate);
    Table created.
    SQL> CREATE OR REPLACE TRIGGER TIMESTAMP_CREATED
      2  BEFORE INSERT ON workorders
      3  FOR EACH ROW
      4  BEGIN
      5  SELECT workorders_seq.nextval
      6    INTO :new.workorder_id
      7    FROM dual;
      8  END;
      9  /
    Trigger created.
    SQL> ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YYYY HH24:MI:SS';
    Session altered.
    SQL> insert into workorders(description) values('test1');
    1 row created.
    SQL> insert into workorders(description) values('test2');
    1 row created.
    SQL> select * from workorders;
    WORKORDER_ID DESCRIPTION                    CREATED_DATE
               1 test1                          30-NOV-2004 15:30:34
               2 test2                          30-NOV-2004 15:30:42
    2 rows selected.

Maybe you are looking for

  • Problem with twitter - Virus?

    It seems like a small problem but I'm working on my masters dissertation and I really could do without and virus and not knowing whats going on. I got a DM from someone I knew and opened it, realised it was fake and closed the tab immedaitely. Nothin

  • Forms 6i issues on an IBM T20

    Is anyone out there running Forms 6i on an IBM T20? Whenever I load a large form and try to view a canvas Forms crashes out. I've tried this on several IBM T20s and they all behave the same way. I've since tried it on a lower spec Samsung laptop and

  • Securities - effective corporate tax rate to OCI balance

    Has anyone been able to figure out the effective corporate tax rate application to the OCI balance so that the equity is reported net of tax for the securities module? If so, how?

  • Loading video from a mini-DVD

    If I have video that was shot using a camcorder that records on small DVDs, is it possible to load those small DVD's into the slot on the side of an iMac?

  • Comment récupérer des photo supprimée sur un Iphone 5 sans les avoir sauvée ??

    comment récupérer les photo supprimée sur iphone 5 sans les avoir sauvée ??