Oracle adf - popup table's record get empty after any database tranasction.

Hi,
I am using Oracle jDev 11.1.1.4.0.
In my application i have find button in my jspx.
On click of find button i have shown popup with table.
As user selects record from popup table that record get displayed in form fields of jspx
and user can edit that record and save it in the database.
Suppose I have edited a record and saved the same in database.
Now, when I click on that find button, pop up opens but the record which I have just edited is not getting displayed correctly in the table.
Some fields are getting emptied.
I have set the property of entity object's attribute, refresh after update and insert.
But still selected record get empty in popup table after database transaction.
appreciate your help..
thanks
Rupa

By the sounds of it you are in the wrong forum :)
Cheers
John
http://john-goodwin.blogspot.com/

Similar Messages

  • Oracle ADF -  popup table's record gets empty or blank after any db action.

    Hi,
    I am using Oracle jDev 11.1.1.4.0.
    In my application i have find button in my jspx.
    On click of find button i have shown popup with table.
    As user selects record from popup table that record get displayed in form fields of jspx
    and user can edit that record and save it in the database.
    Suppose I have edited a record and saved the same in database.
    Now, when I click on that find button, pop up opens but the record which I have just edited is not getting displayed correctly in the table.
    Some fields are getting emptied.
    I have set the property of entity object's attribute, refresh after update and insert.
    But still selected record get empty in popup table after database transaction.
    appreciate your help..
    thanks
    Rupashree
    Edited by: 888077 on Sep 28, 2011 5:54 AM

    By the sounds of it you are in the wrong forum :)
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Input Text in a row of a table is not getting focused after PPR

    Hi All,
    I have a use case where the form will have a table and one of the columns will have inputtext and the other column will have outputtext. Once the user enters some data in inputtext and presses the down arrow, i am using autosubmit and valuechangelistener to call some method in bb which will show popup in the page. And after selecting some value from popup, i close the popup by setting the first row's outputtext with some data and wants to make the cursor focus to the next row's inputtext.
    Its working without PPR, but when we use PPR to set the outputtext component, its failing the focus is getting lost. Any ideas would be helpful.
    Regards,
    N

    Hi,
    Check following will helpul
    http://blogs.oracle.com/jdevotnharvest/entry/how_to_programmatically_set_focus

  • Table space not getting cleaned after using free method (permanent delete)

    Hi ,
    We are using the free method of the LIB OBJ, to permanently delete the objects. As per documentation, the ContentGarbageCollectionAgent will be cleaning the database which runs in a scheduled mode. But the log of that ContentGargabageCollectionAsgent shows, all zero for objects without reference, objects cleared,etc. I.e the table space remains the same before and after deleteing all the contents in the cmsdk database. But the agent is running as per the schedule but just comes out doing nothing.
    Can anbody put some light on this issue.
    thanks
    Raj.

    Hi Matt,
    Thanks for replying. It's been a very long time waiting for you ;)
    ---"Are you running the 9.2.0.1, 9.2.0.2, or 9.2.0.3 version of the Database?"
    we are using 9.2.0.1
    ---"If you installed the CM SDK schema in the "users" tablespace ......."
    Yes we are using USERS tablespace for our Development.
    I ran the query. The result is:
    SYSTEM MANUAL NOT AFFECTED
    USERS MANUAL NOT AFFECTED
    CTXSYS_DATA MANUAL NOT AFFECTED
    CMSDK1_DATA MANUAL NOT AFFECTED
    (USERS belongs to develpoment cmsdk schema. And CMSDK1 for Prod CMSDK schema)
    From the results I see only "Manual", but still I don't see the tablespace size being coming down. Both table space sizes (USER and CMSDK1) always grows higher and higher.
    Also to let you know, We use ORACLE EM Console (Standalone) application to see the oracle databse information online. Will there be any thing to do with the tool we use to see the table space sizes. We make sure we always refresh it before making a note.
    So is there anything else I can see. Once I saw the ContentGarbageCollection agent to free 1025 objects and deleted 0 objects. But I don't see any change in the table space size. I am little confused b/w freed and deleted.
    thanks once again for your response Matt.
    -Raj.

  • Payment terms and Due date field gets emptied after residual clearing

    Hi
    There is advance of Rs.50000 in Vendor ledger and Invoice of Rs.200000 (with payment term - G019)
    I cleared these two line items (residual clearing). One new line item got created of Rs.150000. When i saw that line item, i saw that there payment term field and due date field got emptied. My requirement is that the original payment term entered in initial invoice document (of Rs.200000) should automatically get populated in new line item of Rs.150000.
    How to fulfill this requirement?

    Thanks for the prompt reply.
    I wanted to ask one more thing. Same way when i do partial clearing (not residual), is it possible to populate the invoice's due date in advance line item. One link is that my invoice reference gets populated advance line item. So i want due date (not payment term) also to get populated in advance line item.
    Please help.
    Edited by: Deepak Agrawal on Jul 29, 2011 11:43 AM

  • ADF Popup for adding a new Row in  table

    Hi All,
    I have VO which is rendering as table on my jsff.I created a button of createInsert to add a new row and after commit it saves the values in Table in DB.
    Works abst fine.
    Now i want to change this feature to that when a New Row should be Added, a pop up should appear in the format of a form, and at the click of OK it should save the data and on Cancel go back to Page.
    What i did was i added a pop up, in the pop up body i again dropped my VO as a form and added a dialoglistener to the pop up which commits on click of OK and Rollback on click of Cancel.
    I am not getting any exception but The Db is not modified with my entries.
    So its simple that i am commiting but nothing is changed till that time.
    How can i get the Task done?????
    Regards
    User

    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/77-ok-cancel-support-in-dialog-351871.pdf
    insert operation using popup
    http://andrejusb.blogspot.com/2009/11/crud-operations-in-oracle-adf-11g-table.html
    Edited by: Erp on Oct 20, 2011 6:47 AM

  • [SOLVED] Multiple Dynamic View Objects and View Links - ADF Tree Table

    Hi all,
    I've got a method that creates 3 dynamic viewobjects using this:
                ViewDefImpl Level1ViewDef = new ViewDefImpl("Level1View");
                Level1ViewDef.addViewAttribute("LevelDescription","LEVEL1_DESCRIPTION",String.class);
                Level1ViewDef.addViewAttribute("SetOfBooksId","SET_OF_BOOKS_ID",Number.class);
                Level1ViewDef.addViewAttribute("CodeCombinationId","CODE_COMBINATION_ID",Number.class);
                Level1ViewDef.addViewAttribute("Level1","LEVEL1",String.class);
                Level1ViewDef.addViewAttribute("AccountType","ACCOUNT_TYPE",String.class);
                Level1ViewDef.addViewAttribute("PeriodYear","PERIOD_YEAR",Number.class);
                Level1ViewDef.addViewAttribute("PeriodNum","PERIOD_NUM",Number.class);
                Level1ViewDef.addViewAttribute("PeriodName","PERIOD_NAME",String.class);
                Level1ViewDef.addViewAttribute("PtdActual","PTD_ACTUAL",Number.class);
                Level1ViewDef.addViewAttribute("YtdActual","YTD_ACTUAL",Number.class);
                Level1ViewDef.addViewAttribute("LtdActual","LTD_ACTUAL",Number.class);
                Level1ViewDef.addViewAttribute("BudgetName","BUDGET_NAME",String.class);
                Level1ViewDef.addViewAttribute("BudgetVersionId","BUDGET_VERSION_ID",Number.class);
                Level1ViewDef.addViewAttribute("PtdBudget","PTD_BUDGET",Number.class);
                Level1ViewDef.addViewAttribute("YtdBudget","YTD_BUDGET",Number.class);
                Level1ViewDef.addViewAttribute("LtdBudget","LTD_BUDGET",Number.class);
                Level1ViewDef.addViewAttribute("EncumbranceType","ENCUMBRANCE_TYPE",String.class);
                Level1ViewDef.addViewAttribute("EncumbranceTypeId","ENCUMBRANCE_TYPE_ID",Number.class);
                Level1ViewDef.addViewAttribute("PtdCommitment","PTD_COMMITMENT",Number.class);
                Level1ViewDef.addViewAttribute("YtdCommitment","YTD_COMMITMENT",Number.class);
                Level1ViewDef.addViewAttribute("LtdCommitment","LTD_COMMITMENT",Number.class);
                Level1ViewDef.setQuery(sql_level1);
                Level1ViewDef.setFullSql(true);
                Level1ViewDef.setBindingStyle(SQLBuilder.BINDING_STYLE_ORACLE_NAME);
                Level1ViewDef.resolveDefObject();
                Level1ViewDef.registerDefObject();
                ViewObject vo1 = createViewObject("Level1View",Level1ViewDef);I can create the view objects fine and create a single viewlink between two of them, however i'm getting problems with 2 view links.
    This is how I'm creating a view link:
                ViewLink Level2Level1FKLink = createViewLinkBetweenViewObjects("Level2Level1FKLink1",
                                                        "Level2View",
                                                        vo1,
                                                        new AttributeDef[]{
                                                          vo1.findAttributeDef("Level1")
                                                        vo2,
                                                        new AttributeDef[]{
                                                          vo2.findAttributeDef("Level1")
                                                        "LEVEL1 = :Bind_Level1");
                ViewLink Level3Level2FKLink = createViewLinkBetweenViewObjects("Level3Level2FKLink1",
                                                        "Level3View",
                                                        vo2,
                                                        new AttributeDef[]{
                                                          vo2.findAttributeDef("Level2")
                                                        vo3,
                                                        new AttributeDef[]{
                                                          vo3.findAttributeDef("Level2")
                                                        "LEVEL2 = :Bind_Level2");I can get the data to display on an adf tree table if i'm only using a single view link, but when i try and implement 2 view link (for 3 levels on the adf tree table) i'm getting problems displaying the data.
    I'm getting the following error:
    Aug 10, 2007 2:44:39 PM oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer encodeAll
    SEVERE: Error during partial-page rendering
    oracle.jbo.NoDefException: JBO-25058: Definition Level3View of type Attribute not found in Level2View_Level2Level1FKLink1_Level2ViewThe thing is, Level3View isn't in the Level2Level1FKLink viewlink.
    I've been reading about something similar here
    BC4J Master-Detail-Detail
    but I am still unsure of what the problem is.
    Thanks in advance.

    I found the answer here:
    http://radio.weblogs.com/0118231/stories/2004/06/10/correctlyImplementingMultilevelDynamicMasterDetail.html

  • Crud-operations-in-oracle-adf

    hi, I am using 11g 1.2 and ADF BC
    I followed the sample "http://andrejusb.blogspot.com/2010/05/crud-operations-in-oracle-adf-11g-table.html" and built a same thing in my bound task-flow.
    the 'Edit' , 'Insert' , 'Save' and 'Undo' button worked perfectly, but the 'Delete' button is not. let say I have three lines in the table, If I click a row and click the 'Delete' button, then all three lines are disapear, May I know why? Thanks for your guide!
    Rgds!

    But I do have the af:form in the page level. My table is inside the region which is in the page.
    I have added a af:Subform around my af:PanelCollection, but the result is worse, even when I click 'INSERT' button, the all three lines are disapear!!!
    May this sample and code can not work properly inside the region?
    Edited by: xsyang on Jul 19, 2011 4:42 AM
    finally I understand that the solution in the sample is for bindings in the page, but my af:table component in the page fragment. may not directly coding like sample. am i worng? can anybody guide me how to refer to binding in the fragment. Thanks!
    Edited by: xsyang on Jul 19, 2011 8:06 AM

  • RW_SERVER_JOB_QUEUE  table empty after running the report in 11g

    Hello,
    I set up Job StatusRepository in our environment ( Fusion Middleware 11.1.1.4 Win 2008 x32) as explained in Oracle Support note "How to Setup jobStatusRepository Feature in Reports 11g? [ID 858200.1]"
    The table RW_SERVER_JOB_QUEUE is always empty after running the report.
    I have checked another note "RW_SERVER_JOB_QUEUE table is empty [ID 1200613.1]" but the user who is running the report is the same as the user who " the user name where you run $ORACLE_HOME\reports\admin\sql\rw_server.sql script" so there is no grant problem to write to this table.
    Here is the excerpt of rwserver.conf file:
    <demo:jobStatusRepository class="oracle.reports.server.JobRepositoryDB">
    <demo:property value="csf:reports:repo" name="dbpassword"/>
    <demo:property value="blvdev" name="dbconn"/>
    <demo:property value="pdmain" name="dbuser"/>
    </demo:jobStatusRepository>
    I n log file there is an error:
    Apr 11, 2012 10:29:13 AM oracle.security.jps.internal.credstore.ssp.CsfWalletManager openWallet
    WARNING: Opening of wallet based credential store failed. Reason java.io.IOException: PKI-02002: Unable to open the wallet. Check password.
    Have anybody had the same issue in 11g?
    Thanks,
    Alex

    Here is the solution I found and I would like to share if anybody is interested :
    Check the following Oracle Support Notes:
    ALERT - After Applying Patchset 11.1.1.4, Fusion Middleware Control Inserts "demo:" Tags in Conf Files of Reports Server- ENVID Section Stops Working [ID 1298701.1]
         After applying patchset 11.1.1.4 to Reports Server, any configuration changes through Fusion Middleware Control inserts "demo:" tags in the beginning of each line in conf file of Report Server.
         The behaviour is described in the following bug :
         Bug:11784251 MBEAN BROWSER ADDS A DEMO TAG IN RWSERVER.CONF AT EACH LINE
    So you I removed all demo tags in rwserver.conf
    <jobStatusRepository class="oracle.reports.server.JobRepositoryDB">
    <property value="csf:reports:jobrepo" name="dbpassword"/>
    <property value="repteam.us.oracle.com" name="dbconn"/>
    <property value="jobrep11g" name="dbuser"/>
    </jobStatusRepository>
    Regarding : PKI-02002 error:
    Error PKI-02002: Unable to open the wallet. Check password When Starting a Reports Server [ID 1316651.1]
    Temporary file cannot be created in temporary directory.
    After checking the wallet I simply changed the following lines
         <variable id="TEMP" value="C:\Users\oracle\AppData\Local\Temp\2"/>
         <variable id="TMP" value="C:\Users\oracle\AppData\Local\Temp\2"/>
    to
         <variable id="TEMP" value="C:\TEMP"/>
         <variable id="TMP" value="C:\TEMP"/>
    because the folder C:\Users\oracle\AppData\Local\Temp\2 was not created.
    Regards,
    Alex
    Edited by: user12019587 on 11-Apr-2012 2:50 PM

  • ADF data table with Add,Edit,Delete functionality

    Hi Experts,
    I have a adf page where I need to implement add,edit,delete button. The table was bind with the Webservice obj call.I need to have one single button as "Add" which should add an inline row at end of the table.When I ll double click on the row I should have the in-line edit of the row.And for delete functionality,there should be delete button on each row which should delete the correspond row.Please help me to solve my problem.Please share the code to meif u ve any.my email: [email protected]
    Thanx
    Aswini

    Can you check the below links
    http://andrejusb.blogspot.com/2010/05/crud-operations-in-oracle-adf-11g-table.html
    http://andrejusb.blogspot.com/2009/11/crud-operations-in-jdeveloperadf-11g-r1.html
    ~Abhijit

  • Stretching problem in Oracle ADF..

    Hi All...
    Oracle ADF Inline Frame is not stretching properly. Any solution...
    The following code for your reference...
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1">
    <af:panelStretchLayout id="rengacont1" styleClass="AFStretchWidth"
    startWidth="0px" endWidth="0px" topHeight="0px"
    bottomHeight="0px" dimensionsFrom="children">
    <f:facet name="center">
    <af:panelSplitter orientation="horizontal" splitterPosition="400"
    id="jsffPanSpt"
    dimensionsFrom="children">
    <f:facet name="first">
    <af:panelStretchLayout id="psl0" startWidth="0px" endWidth="0px"
    topHeight="0px" bottomHeight="0px"
    styleClass="AFStretchWidth"
    dimensionsFrom="children">
    <f:facet name="center">
    <af:group id="rengasamygroup1">
    <af:chooseDate id="cd1"/>
    <af:chooseColor id="cc1"/>
    <af:image source="/Visit-Srirangam-Temple-in-Trichy.jpg"
    id="i1"/>
    </af:group>
    </f:facet>
    </af:panelStretchLayout>
    </f:facet>
    <f:facet name="second">
    <af:panelStretchLayout id="pgHelp" startWidth="0px" endWidth="0px"
    topHeight="0px" bottomHeight="0px"
    styleClass="AFStretchWidth">
    <f:facet name="center">
    <af:inlineFrame source="http://www.google.com" id="jsffILFrame"
    inlineStyle="border-color:Navy;border-width:thin;border-style:solid;"
    shortDesc="Help"/>
    </f:facet>
    </af:panelStretchLayout>
    </f:facet>
    </af:panelSplitter>
    </f:facet>
    </af:panelStretchLayout>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Thanks & Regards,
    Vass Lee

    Hi Vass,
    please use the proper tags so that it will be easy to understand.
    thanks

  • Oracle ADF / Tomcat error

    Hi
    Scenario:
    Oracle JDeveloper 10.1.3.3.0
    Oracle ADF Installer 10.1.3.3 (Successfully Installed)
    Tomcat 5.0.27
    Error:
    org.apache.jasper.JasperException: java.lang.UnsupportedClassVersionError: view/XMLMenuDefinition (Unsupported major.minor version 49.0)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
         oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
         oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
         oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
         oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
         oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
    root cause
    javax.faces.el.EvaluationException: java.lang.UnsupportedClassVersionError: view/XMLMenuDefinition (Unsupported major.minor version 49.0)
         com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:190)
         com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
         oracle.adf.view.faces.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:55)
         oracle.adf.view.faces.component.UIXComponentBase.getProperty(UIXComponentBase.java:1021)
         oracle.adf.view.faces.component.UIXPage.getValue(UIXPage.java:212)
         oracle.adf.view.faces.component.UIXCollection._flushCachedModel(UIXCollection.java:965)
         oracle.adf.view.faces.component.UIXCollection.encodeBegin(UIXCollection.java:443)
         oracle.adfinternal.view.faces.renderkit.RenderUtils.encodeRecursive(RenderUtils.java:39)
         oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:242)
         oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeAllChildren(CoreRenderer.java:265)
         oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:65)
         oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:117)
         oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:147)
         oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:60)
         oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:169)
         oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
         javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:645)
         javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:568)
         oracle.adf.view.faces.webapp.UIXComponentTag.doEndTag(UIXComponentTag.java:100)
         org.apache.jsp.Admin_jspx._jspx_meth_afh_body_0(Admin_jspx.java:207)
         org.apache.jsp.Admin_jspx._jspx_meth_afh_html_0(Admin_jspx.java:162)
         org.apache.jsp.Admin_jspx._jspx_meth_f_view_0(Admin_jspx.java:135)
         org.apache.jsp.Admin_jspx._jspService(Admin_jspx.java:88)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
         oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
         oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
         oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
         oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
         oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
    Any ideas?

    If you are using JDev 10g - you use the ADF installer
    If JDev 11g, see http://blogs.oracle.com/dana/2009/01/how_to_deploy_a_11g_adf_applic_1.html

  • Whether the table 'B' will get update

    Hi Guys,
    In forms 6i , i have code like, when hitting the save button, on-insert trigger in block 'A' should insert data into table 'A' and the same time on-insert trigger in block 'B' should update data in table 'B' . The question is whether the table 'B' will get update, if any exception occured in table 'A' through any database trigger on table 'A'. there is no rollback on block 'B' , but exception is handling in blcok 'A'.
    please help me.
    thanks
    Seban

    You Need to define seperate session by using autonomous transactions,it allows you to leave the context of the calling transaction, perform an independant transaction, and return to the calling transaction without affecting it's state.
    SQL> CREATE TABLE a (id   NUMBER(2))
      2  /
    Table created.
    SQL> CREATE TABLE b (id   NUMBER(6))
      2  /
    Table created.
    --Table a column id has 2 digit constraint
    SQL>
    SQL> CREATE OR REPLACE PROCEDURE test (p_a NUMBER)  AS
      2    PRAGMA AUTONOMOUS_TRANSACTION;
      3  BEGIN
      4    INSERT INTO b (id)  VALUES (p_a);
      5    COMMIT;
      6  END;
      7  /
    Procedure created.
    SQL> SELECT * FROM a
      2  /
    no rows selected
    SQL> SELECT * FROM b
      2  /
    no rows selected
    Here i am forcly inserting 3 digit number into table a column ,which will raise exception and the same will allow in table b which has 6 digit number.
    SQL> BEGIN
      2    INSERT INTO a VALUES (100);
      3  EXCEPTION WHEN OTHERS THEN
      4    test(100);
      5  END;
      6  .
    SQL> /
    PL/SQL procedure successfully completed.
    SQL> SELECT * FROM a
      2  /
    no rows selected
    SQL> SELECT * FROM b
      2  /
           ID
          100
    SQL>
    -------------------------One more example---------------
    SQL> DELETE b
      2  /
    4 rows deleted.
    SQL> COMMIT;
    Commit complete.
    SQL> CREATE OR REPLACE PROCEDURE test (p_a NUMBER)  AS
      2    PRAGMA AUTONOMOUS_TRANSACTION;
      3  BEGIN
      4    INSERT INTO b (id)  VALUES (p_a);
      5    COMMIT;
      6  END;
      7  /
    Procedure created.
    SQL> BEGIN
      2    INSERT INTO a VALUES (10);
      3    INSERT INTO a VALUES (100);
      4  EXCEPTION WHEN OTHERS THEN
      5    test (100);
      6    ROLLBACK;
      7  END;
      8  .
    SQL> /
    PL/SQL procedure successfully completed.
    SQL> SELECT * FROM a
      2  /
    no rows selected
    SQL> SELECT * FROM b
      2  /
           ID
          100
    SQL> BEGIN
      2    INSERT INTO a VALUES (10);
      3    INSERT INTO a VALUES (100);
      4  EXCEPTION WHEN OTHERS THEN
      5    test (100);
      6  END;
      7  .
    SQL> /
    PL/SQL procedure successfully completed.
    SQL> SELECT * FROM a
      2  /
           ID
           10
    SQL> SELECT * FROM b
      2  /
           ID
          100
          100
    SQL> Khurram

  • File Browse is emptied after failed validation

    Why does the file browse text box get emptied after a failed validation? Is there any way to prevent this?
    To further explain, create a form on a page with two page items, a text box and a file browse item, then put a not null validation on the text box. When you submit the page with a null text box, but with a file selected for the browse button, then validation catches and throws the error message back to the user when the page refreshes. However, the file browse text box is emptied, and the user has to reselect the file before resubmitting the page.
    Is this a bug, or just the way it is supposed to work? Any way around it?
    Thanks,
    Kris
    Edited by: kshenn on Oct 31, 2008 7:06 AM

    Hello,
    >> Is this a bug, or just the way it is supposed to work?
    This is not a bug. Actually, it has nothing to do with APEX. The behavior of the file browse item is controlled by the HTML standard, which clears the field for security reasons.
    If you pay close attention to Denes example, you’ll see that even when the validation error page is displayed, the file browse item itself is being cleared. The JavaScript generated file path is the one that retain its value. I don’t have access to Denes code, but I’m assuming that in his uploading procedure he’s using the JavaScript generated path.
    >> Any way around it?
    Where the file browse item is concern, no workaround.
    In your specific case, where the validation you need is “not null”, you can create a JavaScript validation, and fire it before submitting the page (as part of the submit button). That way, the browser will not clear the file browse item, because the page will not be submitted without proper values in your items.
    Regards,
    Arie.

  • How to refresh Adf  table from Adf popup

    Hi all,
    i have and adf query panel with table. On this table for each record, there is a button to perform some operations. When i click this button i am launching an adf popup. Inside this popup i have used a adf dialog of type yes/no. i am using this as a confirmation. (ex- Are you sure you want to change (ex- deactivate) this record?) If yes is clicked i change only one field. Suppose the record belongs to a client. On click of yes, i change the status to some value. ex- deactivate. so with the dialog's button click, i change the table data. but it is not reflected unless i made a query. i want to automatically refresh this table on click of dialog button's yes. I hope i made my self clear. Can this be done with Jdev. Im using Jdev 11.1.1.0.1. Pls help me with this.
    Thanks in advance,
    Nad

    Hi Maxi, Timo, i tried the solutions by both of you. Thanks alot for replying. But i get an error. This is what i did. for Deactivate btn in the table, i have added the below return listerner code.
    public void onReturnFromDialog(ReturnEvent returnEvent) {
    if (returnEvent.getReturnValue() != null) {
    refreshCurrentPage();
    protected void refreshCurrentPage() {
    FacesContext context = FacesContext.getCurrentInstance();
    String currentView = context.getViewRoot().getViewId();
    ViewHandler vh = context.getApplication().getViewHandler();
    UIViewRoot x = vh.createView(context, currentView);
    x.setViewId(currentView);
    context.setViewRoot(x);
    but i noticed that both these methods are not invoked. So i added the below dialoglistener code to the af:dialog that is inside my popup. This popup is shown when the deactivate btn is clicked.
    public void DialogListenAction(DialogEvent dialogEvent) {
    if(dialogEvent.getOutcome().toString().equals("yes"))
    DCIteratorBinding iter = ADFUtils.getIterator("MembersVO3");
    String des = (String) iter.getCurrentRow().getAttribute("MemberCode");
    service.deactivateMember(des); //This is where i update the record and set the attribute value to des
    System.out.println("suspect1");
    RequestContext.getCurrentInstance().returnFromDialog(des,null);
    //AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    //afContext.getCurrentInstance().returnFromDialog(des, null);
    System.out.println("suspect2");
    //ifCancel Do nothing
    when i add 'RequestContext.getCurrentInstance().returnFromDialog(des,null);'
    OR
    'AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    afContext.getCurrentInstance().returnFromDialog(des, null);'
    i get the error - java.lang.IllegalStateException: popView(): No view has been pushed.
    i cant figure out what is the wrong here. Can some one pls suggest how to resolve this?
    Thanks alot.

Maybe you are looking for