Fails to update data during view object test

Hi, I'm using:
Postgresql w/JDBC drivers
Jdeveloper 10g
I created entities and associations for my tables, and now I created a view object, assigned it to application module and run it.
It shows the data properly, but when I try to commit a change, it gives me:
Business Component Browser - oracle.jbo.DMLException
(oracle.jbo.DMLException) JBO-26041: Failed to post data to database during "Update": SQL Statement "UPDATE PUBLIC.SIGNON Signon SET username=? WHERE username=?".
----- LEVEL 1: DETAIL 0 -----
(java.sql.SQLException) ERROR: parser: parse error at or near "Signon" at character 22
Any idea what I'm doing wrong?

You're hitting Bug# 3537056. Contact worldwide support and they have a one-off patch for this that they can supply for you. The issue is related to lack of support in your database for a table alias in the update statement.

Similar Messages

  • Error while updating data from DataStore object

    Hi,
    Currently we are upgrading BW3.5 to BI7.0 for technical only,
    we found and errors during process chain run in further processing step. This step is basically a delta loading from DSO to Cube.
    The error message are:
    Error while updating data from DataStore object 0GLS_INV
    Message no. RSMPC146
    Job terminated in source system --> Request set to red
    Message no. RSM078
    That's all no further errors message can be explained clearly here from system.
    I have applied SAP note 1152453 and reactivate the datasource, infosource, and data target.
    Still no help here!?
    Please advise if you encountered these errors before.
    Thanks in advance.
    Regards,
    David
    Edited by: David Tai Wai Tan on Oct 31, 2008 2:46 PM
    Edited by: David Tai Wai Tan on Oct 31, 2008 2:50 PM
    Edited by: David Tai Wai Tan on Oct 31, 2008 2:52 PM

    Hi Vijay,
    I got this error:
    Runtime Errors         MESSAGE_TYPE_X      
    Date and Time          04.11.2008 11:43:08 
    To process the problem further, contact you SAP system       
    administrator.                                                                               
    Using Transaction ST22 for ABAP Dump Analysis, you can look  
    at and manage termination messages, and you can also         
    keep them for a long time.                                   
    Short text of error message:                                             
    No start information on process LOADING                                                                               
    Long text of error message:                                              
      Diagnosis                                                               
          For process LOADING, variant ZPAK_0SKIJ58741F4ASCSIYNV1PI9U, the    
          end should be logged for instance REQU_D4FIDCEKO82JUCJ8RWK6HZ9KX    
          under the log ID D4FIDCBHXPLZMP5T71JZQVUWX. However, no start has   
          been logged for this process.                                       
      System Response                                                         
          No log has been written. The process (and consequently the chain)   
          has been terminated.                                                
      Procedure                                                               
          If possible, restart the process.                                   
      Procedure for System Administration                                                                               
    Technical information about the message:                                 
    Message class....... "RSPC"                                              
    Number.............. 004                                                 
    Variable 1.......... "D4FIDCBHXPLZMP5T71JZQVUWX"                         
    Variable 2.......... "LOADING"                                           
    Variable 3.......... "ZPAK_0SKIJ58741F4ASCSIYNV1PI9U"                    
    Variable 4.......... "REQU_D4FIDCEKO82JUCJ8RWK6HZ9KX" 
    Any idea?

  • How to populate data into view object

    Hi all,
    I am quite new with ViewObject.
    I have one data table which is binding with view object.
    I want to populate data into view object from my managed bean.
    how can i achieve this kind of scenario?
    actually i try to get view object as in the following. but i get only null.
    ViewObject viewobject = DCIteratorBinding.getViewObject();
    With Regards,
    Wai Phyo

    Hi,
    You could use the following code snippet to get handle to view object from the iterator.
    FacesContext fc = FacesContext.getCurrentInstance();
    BindingContainer bindings =
    (BindingContainer)fc.getApplication().evaluateExpressionGet(fc,
    "#{bindings}",
    BindingContainer.class);
    DCBindingContainer bc = (DCBindingContainer)bindings;
    DCIteratorBinding iterator =
    bc.findIteratorBinding("<ITERATOR_ID>");
    ViewObject viewObject = iterator.getViewObject();
         // Perform operations on the view objectThanks,
    Navaneeth

  • Fail to Update Data

    I have no idea what is wrong with this code.. Can someone please try to debug this code..
    This is the javabean method declaration
    public void updatePersonalInfo(String FirstName, String LastName, int Age, String Gender, String Address, String City, String State, int ZipCode, String Country, int PhoneNumber, String PhoneType, String Occupation, String pk) throws SQLException, Exception
    if(con!=null)
    try
    PreparedStatement updatepersonal;
    String s = "Update PersonalInfo set FirstName = ?, LastName = ?, Age = ?, Gender = ?, Address = ?, City = ?, State = ?, ZipCode = ?, Country = ?, PhoneNumber = ?, PhoneType = ?, Occupation = ? WHERE pk = ?";
    updatepersonal = con.prepareStatement(s);
    updatepersonal.setString(1,FirstName);
    updatepersonal.setString(2,LastName);
    updatepersonal.setInt(3,Age);
    updatepersonal.setString(4,Gender);
    updatepersonal.setString(5,Address);
    updatepersonal.setString(6,City);
    updatepersonal.setString(7,State);
    updatepersonal.setInt(8,ZipCode);
    updatepersonal.setString(9,Country);
    updatepersonal.setInt(10,PhoneNumber);
    updatepersonal.setString(11,PhoneType);
    updatepersonal.setString(12,Occupation);
    updatepersonal.setString(13,pk);
    updatepersonal.executeUpdate();
    catch(SQLException sqle)
    error = "SQLException: Fail to Update Data";
    throw new SQLException(error);
    else
    error = "Exception: Connection to database was lost.";
    throw new Exception(error);
    And this is the .jsp file
    ad.connect();
    ad.updatePersonalInfo(FirstName, LastName, age, Gender, Address, City, State, zipcode, Country, phonenumber, PhoneType, Occupation, s);
    ad.disconnect();
    I really have no idea what is wrong with this code..
    Everytime i try to run this file, it gives an error that says "Fail to Update Data"..

    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: SQLException: Fail to Update Data
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:471)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
         at java.lang.Thread.run(Thread.java:536)
    root cause
    javax.servlet.ServletException: SQLException: Fail to Update Data
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:497)
         at org.apache.jsp.update_jsp._jspService(update_jsp.java:103)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:471)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
         at java.lang.Thread.run(Thread.java:536)
    this is what the program says

  • Create New Operations for data collection(View Object)

    ADF data collection(View Object) supports Create, CreateInsert, Delete, etc operations.
    And would like to add more operations like clear, etc. How do i create my own operation and add it to data control for all the view objects in the data control.
    Thanks
    JP

    hi esjp2000
    I'm not sure what kind or "clear operation" you are looking for, but I recently asked about a "clear search" in this forum thread:
    " ADF BC : "clear search" using executeEmptyRowSet() "
    ADF BC : "clear search" using executeEmptyRowSet()
    It is about the executeEmptyRowSet() method, and that might not be what you are looking for. (It might not even be what I am looking for because it is undocumented and that is what my question is about and I haven't had an aswer yet.)
    But ... it does provide an example of a "service method" Shay is referring to, in the example application:
    http://verveja.footsteps.be/~verveja/files/oracle/ClearSearchStuff-v0.01.zip
    (So, the specific service method implementation, "ScottServiceImpl.executeEmptyRowSetOnEmpWithParamsVOVI()" in the example, would be different in your case, depending on the specific "clear operation" you are looking for.)
    success
    Jan Vervecken

  • Maintaining data of view objects in cache memory for repeated usage

    Hi,
         We are developing an application which is having around 800 viewobjects that will be used as LOV in different screens. Therefore, it is decided to create a separate project for all such LOV view objects and keep the same in shared scope so that the data can be made availabe across the application.
         The application also communicates with different database schemas based on the logged-in county. For a particular user, LOV view object LovView1 should get the data fetched from Schema1 whereas for user2, the same LovView1 should get the data from Schema2.
         For this, we have created n number of ApplicationModules like AM1, AM2 etc in the project each one being connected to different database. A base application module also has been created and all the county specific AMs extend this base AM. Also all the LOV view object instances are included in this base AM so that they will be available in the county specific AMs also.The entire project is made as an ADF Library jar and this base AM is utilized by other projects for mapping the LOV by attaching the library.
         At runtime, whenever a particular viewobject is accessed, the findViewObject() method of the baseAM has been overridden and the logic is built in such a way to get the logged in user's county code from a session variable and based on the county, the corresponding AM is communicated with and the view object is returned.
         The view objects of the LOV project is used as LOV as well as for doing some other backend processes. In such cases, the view object is obtained and necessary filter conditions are appended to the view criteria and is executed to get the filtered rowset.
    Now, my questions are,
    1. Is it enough to create the jar for the LOVProject and access the view objects from the same baseAM across the application?
    2. I wish to keep all the data in cache memory to avoid repeated DB hits for all the LOV view objects. How it can be achieved? To be more precise, consider two users user1 and user2 logging into the application with different county. When user1 access a LOV viewobject for the first time, data needs to be fetched from the DB, kept in application scoped cache memory and return the rowset. On subsequent calls to the viewobject, the data needs to be retreived from the cache and not from the DB. When user2 also access the same LOV viewobject, the same logic as explained for user1 should happen. How can I achieve this? Actually my doubt is when user2 access, will the data pertaining to user1 remains available in cache? If not, how to make it retain the data in cache?
    3. I also wish to append a particular where condition to a viewobject irrespective of other considerations like logged in county, existing view criteria etc.. How can I do this? A separate thread for this requirement has been posted in the forum Including additional where clause conditions to view criteria dynamically
    Kindly give me your suggessions.
    Thanks in advance.
    Regards.

    Hi Vijay,
    regarding your questions:
    1. What is the difference between "TimesTen In-Memory Database" and
    "In-Memory Database Cache" in terms of features and licensing model?
    ==> Product has just been renamed and integrated better with the Oracle database - Times-Ten == In-Memory-Cache-Database
    2. Is "In-Memory Database Cache" option integrated with Oracle 10g
    installable or a separate installable (i.e. TimesTen installable with only
    cache feature)?
    ==> Seperate Installation
    3. Is "In-Memory Database Cache" option same as that of "TimesTen Cache
    Connect to Oracle" option in TimesTen In-Memory Database?
    ==> Please have a look here: http://www.oracle.com/technology/products/timesten/quickstart/cc_qs_index.html
    This explains the differences.
    4. After integrating "In-Memory Database Cache" option with Oracle 10g, data
    access will happen only through Oracle sqlplus or OCI calls. Am I right here
    in making this statement?
    ==> Please see above mentioned papers
    5. Is it possible to cache the result set of a join query in "In-Memory
    Database Cache"?
    ==> Again ... ;-)
    Kind regards
    Mike

  • To find out the last row that is updated in a View Object

    Hi OAF Gurus,
    I have requirement like,
    I have to find out the last row that is updated on a particular View Object and I have send a mail to the users about the change.
    JegSAMassMobVOImpl vo = getJegSAMassMobVO1();
    JegSAMassMobVO is the View Object Name and it displays certain rows that has already been added to the VO in the Page.
    Now the issue is when a user updates a particular row,I have to find which row gets updated and have to send a email to that particular employee about the change.
    Just want to know,how to find out the last updated row in a particular VO.
    Any Help would be appreciated as this a immediate requirement.
    Regards,
    Magesh.M.K.
    Edited by: user1393742 on May 4, 2011 1:06 AM

    Hi Magesh
    It shoud be a Advanced table ,so when user will update the row ,the specific row will fire the PPR and on that event u can capture the row using row reference ,this is the sample code below
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean); OAApplicationModule am =
    (OAApplicationModule)pageContext.getApplicationModule(webBean);
    String event = pageContext.getParameter("event");
    if ("<ItemPPREventName>").equals(event))
    // Get the identifier of the PPR event source row
    String rowReference =
    pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    Serializable[] parameters = { rowReference };
    // Pass the rowReference to a "handler" method in the application module.
    262
    am.invokeMethod("<handleSomeEvent>", parameters);
    In your application module's "handler" method, add the following code to access the source row:
    OARow row = (OARow)findRowByRef(rowReference);
    if (row != null)
    Thanks
    Pratap

  • How to set updatable property of view object on runtime

    Hello Gurus,
    I am new in adf and using jdev 11.1.2.3.
    I have two view object which has view link and they are based on entity object. In master view i have a column with the name of status. The target is if the value of status is 'active' then i want to allow add rows in detail view and if it is inactive then wants to disable adding or editing in the detail view.
    I don't know how to do this. I don't know how to get the other view object and how to set update able property and where to write code in entity object class or view object class.
    Any advice................
    Thanks in Advance

    There are multiple possible ways to archive this. As the VOs are in a master-detail relationship, you can opt to add a navigation method to the child back to the parent. This method can be accessed via java or groovy to allow the child access to the master row. Once the child has access you can use this to ask the master for it's status and if it's not active disable the edit and update buttons.
    If both master and detail are on the same page in the ui, there is an easier way. Drag the status attribute from the master table onto the page as e.g. inputText. This will create a binding for the attribute which changes if you select a row in the master table. As you don't need to inputtext, switch to the source mode of the page and delete it. This will remove the inputtext put keep the binding. Now you can use hte binding in an EL to set the disable property of other components to true like
    <af:commandButton text="commandButton 1" id="cb1" disabled="#{bindings.masterstatus.inputValue ne 'active'}"/>
    The button will only be active it the binding for masterstatus is active.
    Timo

  • Getting data from view object into backing bean

    Hi,
    My requirement is explained below -
         I have a ADF editable table in a jsf page which is connected to backend database table. In the table there are 6 columns and only 2 are editable. So when user inputs a value in first input column an event is triggered such that the data for all the remaining columns should be fetched from another database table.
    Typically if we are not using ADF development environment. We would have had a simple business method which creates the sql query by taking the input from textbox with simple where clause and I would have got the data. I am not getting any idea how to do this in ADF. I have the second table as view object but how to access the view object from backing bean and get data based on the input given.

    Hi,
    step 1) Expose a method on the ViewObject Impl class
    step 2) define arguments for the method as needed to identify the row to read data from
    step 3) retrieve the row from the VO that holds the data you want to add and return a HashMap with this information
    step 4) expose the method on the client interface (Java menu selection on the View Object)
    step 5) In the PageDef file, create a method binding to the method you exposed on the ViewObjectImpl
    step 6) Call the method binding from the managed bean like
    OperationBinding getDataFromVO = (OperationBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("Name of method binding);
    getDataFromVO.getParamsMap().put("name of arguments1", value1);
    getDataFromVO.getParamsMap().put("name of arguments2", value2);
    Object retData = getDataFromVO.execute();
    if(retData != null && getDataFromVO.getErrors().size()==0){
      HashMap retDataMap = (HashMap) retData;
    ... follow the rest of your logic ....
    Frank

  • Error while writing data to View Object programmetically

    Hi,
    I want to create a poplist with dynamic values.
    For the same,
    I have created a View Object(CustomVO) using the VO wizard.The view object does not have a datasource.I have added 2 transient attributes(TubeCode and TubeName).The viewobject is attached to a poplist.
    The custom method written in the AM is as follows.
    OAViewObjectImpl vo = this.getCustomVO1();
    Row row = vo.createRow();
    row.setAttribute("TubeCode","SS");
    row.setAttribute("TubeName","Stainless Steel");
    vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    I have attached the AM to the PageLayoutRN and display/value attributes to the poplist and the AM custom method is invoked in the controller.(Process Request)
    When I run the page I get the following error and poplist does not contain the values.Please help me to sort it out
    oracle.jbo.ReadOnlyViewObjectException: JBO-25016: View object CustomVO1 is read only.
    thanks,
    Gowtam

    Hi,
    I set the Updateable property of view attributes to "Always".
    It was set to "Never" by default.
    The poplist is populated successfully.
    thanks,
    Gowtam.

  • Cannot display updated data in view

    I am connect to Oracle 10gR2 using SQL Developer 1.2.1 Build Main-32.13
    I have a table Table_A and a sample view View_A which is "select * from table_A".
    Firstly, I open the Table_A and View_A in two tab.
    After I update the record in Table_A using Data Tab (without clicking commit),
    I cannot see the updated record in View_A (even I click the refresh in View_A Data tab).
    Is is a bugs ? Because I think the two tab should share the same session.

    This is the current behaviour; the tab collects all updates until commit.
    I'd like to see the changes posted upon leaving each row too (like Toad does). The only way to be able to rollback changes is not using the Data tab, only the worksheet. And without posting(/committing), there's no way of knowing the outcome of triggers.
    Not a bug, just a missing feature.
    I see 2 possible solutions: an Autopost Changes preference in Database - ObjectViewer Parameters, and/or a Post button next to the Commit and Rollback buttons in the Data tab.
    Adding this to the Exchange in http://htmldb.oracle.com/pls/otn/f?p=42626:39:2374531395921602::NO::P39_ID:8901. Please go vote to get this implemented.
    Thanks,
    K.

  • Update data in view

    I created a view in program unit (procedure).
    when new form instance I call this
    and created a block base with this view
    it has detail block
    I have one column chk varchar2(1)
    it is a check box
    I need when I check this box chk will be 'Y'
    I mean update the view . if I check the box 4 records all the records chk must be 'Y' in view
    I write a code on-update trigger;
    if :challan1_view.chk = 'Y' then
    update challan_view
    set chk ='Y';
    end if;but not saving CHK ='Y'
    Edited by: Kame on Aug 17, 2009 11:15 PM

    Dear Francois
    Answers: 1. this is a procedure
    PROCEDURE so_view IS
    BEGIN
    ---------- Creating First view----------------
    declare
         V_COMMAND  varchar2(5000);
    begin
    V_COMMAND := 'Create or replace view Challan_view as
               select  qry1.dcno,qry1.dcdate,qry1.customername,qry1.perscode,qry1.persname,qry1.commission,qry1.netrate,
            qry1.itemcode,qry1.itemname,qry1.itemunit,qry1.dcrate,qry1.dcqty,qry1.disc_pers,qry1.disc_amount,
            qry1.tax_perc,qry1.tax_amount,qry1.netamount,qry1.chk,
            qry2.idcqty, nvl(qry1.dcqty,0) - nvl(qry2.idcqty,0) Remaining
    from
    (select a.dcno,a.dcdate,a.customername,a.perscode,a.persname,a.commission,a.netrate,
            b.itemcode,b.itemname,b.itemunit,b.dcrate,b.dcqty,b.disc_pers,b.disc_amount,
            b.tax_perc,b.tax_amount,b.netamount,b.chk
            from masterdc a , dc_detail b
            where a.dcno = b.dcno) qry1,
    (select b.dcno, b.dcdate,b.itemcode,b.itemname,
            b.dcqty IDCQTY
            from masterinv a , inv_detail b
            where a.invno = b.invno) qry2
    where qry1.dcno = qry2.dcno (+)
    --and qry1.itemcode = qry2.itemcode(+)
    and nvl(qry2.idcqty,0) < nvl(qry1.dcqty,0)';
    FORMS_DDL(V_COMMAND);
    end;
    declare
         V_COM  varchar2(5000);
    begin
    V_COM := 'Create or replace view challan1_view as
                select dcno,dcdate,customername,perscode,persname,commission,netrate from challan_view
              group by dcno,dcdate,customername,perscode,persname,commission,netrate';
    FORMS_DDL(V_COM);
    end;
    END;Answer 2:
    I have check in list of table/views its created.
    SQL> select * from tab;
    TNAME                          TABTYPE  CLUSTERID
    CHALLAN1_VIEW                  VIEW
    CHALLAN_VIEW                   VIEW
    CITY                           TABLE
    CUSTOMER                       TABLE
    DEPT                           TABLE
    DETAILDC_VIEW                  VIEW
    DETAILSO_VIEW                  VIEW
    ITEM                           TABLE
    MASTERDC_VIEW                  VIEW
    MASTERSO_VIEW                  VIEW
    SOVIEW_DETAIL                  VIEW
    USERS                          TABLE
    SQL> after that I created a block from views.

  • How to block first time loading data in View Object for searching

    hi all,
    I am using jdeveloper ADF 11g 2 release. i am making search page. but i make it manually, not use ADF query pannel.
    I drag and drop the adf read only table. it can execute using Lov and date time range using backing bean.
    eg: vo1.setWhereClause(whereClause);
    vo1.executeQuery();
    where clause can change dynamically.
    But my table indicate vo which load it all data first time page loading. I add all tuning performance,but no data option is for insert only. so like that option can make programmatically and can execute query??
    This method I used because of I can not make searching options what I want in ADF query pannel. Is there any way add 3 options but display all table fields??
    hoping help anyone.,thks

    Akash ,
    thanks ur reply.
    how to call that method? I made this method in my AppImpl class
    public void loaddata(){
    ViewObject viewObject = this.findViewObject("EstimateSearchDet_VO1");
    viewObject.executeEmptyRowSet();
    then in my backing bean make this after phase method..
    public void view_afterPhase(PhaseEvent phaseEvent) {
    // Add event code here...
    EstimateSearch_AMImpl amob= new EstimateSearch_AMImpl();
    amob.loaddata();
    BUT it say loaddata() can not find? what should i do?
    in view property After phase include this..
    #{backingBeanScope.backing_EstimateSearchnew.view_afterPhase}
    it is underline and say After phase is not define property.
    thks

  • Graph which should display the data of a view object not visible

    Hi,
    I have a main page which contains a <af:panelAccordion> component with three <af:showDetailItem> components. Each of these <af:showDetailItem> components contain a page fragment. In each of these page fragments are a <af:table>, <dvt:pieGraph>, <dvt:lineGraph> and a <dvt:areaGraph> which represent data of view objects.
    In the first <af:showDetailItem> window all components are visible. But when I click on another <af:showDetailItem> all components are visible except the <dvt:areaGraph>. Weird is when I insert a <af:commandLink> into the page fragment without any functions. Also the link doesn't invoke any mehtod and partial submit is set to false. Now when I click on this link the <dvt:areaGraph> with its data become visible and show the data.
    The area graph and the line graph have partial triggers set to the table. Because when another row in the table is selected, the area and line graph should show data which is dependent on the selected row of the table.
    Has anybody an idea?
    Thanks in advance!
    Edited by: user13061309 on 27.07.2010 06:53

    Hi Frank,
    thanks for your response.
    I created a fragment-based flow and dragged it onto the main page as a region component. The main page contains the panelAccordian with its showDetailItem's. Each of the showDetailItem components of the panelAccordian contain such a region component.
    Now I set the partial trigger's property of the region component pointing to the showDetailItem component which contains the region but nothing changed. The graph is still not visible at the first click on the detailItem. I also set the trigger's property of the region component pointing to the panelAccordian but also nothing happens.
    Regards
    Michael
    Edited by: user13061309 on 06.08.2010 03:00

  • Setting bind variable for a view object from the Managed Bean

    Hi,
    i am using JDeveloper 11g, i have to create LOV in the JSF. To show the LOV, it has to populate data using View object and its query parameter need to be sent from the Managed Bean.
    For the View object i want to set the bind variable parameter from the managed bean value. bename is stored in a managed bean (session scope)
    #{beantest.bename}
    But it gives the following exception.
    JBO-29000: Unexpected exception caught:
    org.codehaus.groovy.control.MultipleCompilationErrorsException,msg=startup failed, Script1.groovy: 1: expecting '!',found '{'@ line1, column 2.
    I have followed the link http://kr.forums.oracle.com/forums/thread.jspa?threadID=615474 like Frank wrote on 8.2.2008:
    But steps are not clear.
    How to input the VO bind parameter with Managed bean variable?
    Any Help
    Regards
    Raj
    Edited by: user9928180 on Dec 17, 2008 9:51 AM

    Hi,
    a bind variable in a VO needs to be exposed as an executeWithParams operation in the pageDef file. Just add a new action binding to the pageDef file (context menu) and select the executeWithParams operation on teh VO. Then in the argument field, reference the managed bean property for the value
    Frank

Maybe you are looking for

  • Exporting Versions sends master and version files

    For some reason when I try to export versions of my photos instead of exporting just the versions aperture sends both the master and the version. Any ideas of how this can be avoided? Do I have something wrong in a preset or preference?

  • Change/display dialog program

    Hello all, I am using dialog program to display the records on the screen. On screen layout i declared all fields as output fields only. Now I want to add a button (change/display) on to screen so that when ever i press the button the screen has to c

  • Meaning of check boxes "Visible Internally only" in Attachment tab of SC

    Hello Experts, We are in SRM 7.0 What is the meaning of these check boxes (Visible Internally Only & checked out), that can be used in connection to the handling of attachments in SRM 7.0 Portal? Any pointer will be highly appreciated, Regards, RKS

  • Feedback Form Coding

    I have a contact form-to-mail php file with an apparent script error that I can't find. The submission bit works well, meaning it gives the impression that it is sent, but it doesn't get delivered at all. The code is attached.

  • Frame 11 conditional hypertext not handled by Webworks

    Hi all, I realize this forum is not about Webworks -- sorry in advance is this post is against guidelines...but I think a number of us probably do use Webworks for conversions, so it seems useful to cross post this here. After upgrading to Frame 11 t