BC4J: embedding Special SQL in View Objects

While BC4J allows for easier development because developers do not need to embed a lot of SQL in Java codes, I wonder how I could embed special SQLs either into my Java code or in the View Object Wizard. For example, the following SQL statement could not be entered into the View Object Wizard:
select key1, key2, SCORE(10),SCORE(20)
from table1
where contains (attrib1, 'apple', 10) >0 OR
contains (attrib1, 'orange', 20) > 0
Order by NVL(SCORE(10),0), NVL(SCORE(20),0);
How can I embed the above SQL statement properly in a View Object? Or do I have to write SQLJ code outside of a View Object?

As you mentioned BC4J gives the flexibility of using all valid SQL statements.
For you query above, you would have to do the following.
You would need to create caluclated attributes for SCore(10) and score(20)
Select the ViewObject in Navigator and edit it (right mouse button)
Select Attributes Tab
Click on New attribute Score(10) and you can give an alias name for that.
same goes for score(20) also.
Select query tab now
Choose expert mode check box
Paste your query in the text box
and Orderby clause in the orderby textbox
click on the test button to test it
raghu

Similar Messages

  • RowSetInfo; bc4j; how to get the View Object

    So I'm trying to get/update/insert/delete records in a database that contain an interMedia image in a blob.
    I've figured out that I can't simply set the ImmediateAccess attribute. It doesn't like that...
    So I'm trying to go after the view object, since the interMedia white paper uses a VO row setAttribute to accomplish the write.
    RowSetInfo extends ResultSetInfo which has a method getViewObject(). Cool.
    So I try it... and get an error that getViewObject() has protected access.
    Anyone know what I am doing wrong? Or should I be even taking this approach?!?!?!
    If I go exclusively with the VO layer... how do I preserve the navigationBar functionality? Or do I need to roll my own?
    ( NOTE: This hilights another example of the perception of 'friction' between rowsetinfos and the view objects/entity objects. An approach that makes "sense" to me as a naive novice didn't pan out. And oddly, most of the bc4j examples go against VOs when, if you are an application programmer, you may never see or use the VO methods ( although it looks like we should be)... we're working at the ResultSetInfo layer. )
    Is the the observation of other folk who are building Java Applications/Applets? Or do you all work directly with VOs instead of going through the ResultSetInfo "layer"?

    Here is some sample code that I am currently working on and will post on OTN when complete. The code shows how to access a BC4J Domain based on an Oracle type. Working with interMedia is similar since interMedia utilizes Oracle Object types. Please note that I have not tested this yet against interMedia, but I'm hoping that you may find the general process useful.
    // Copyright (c) 2000 Oracle Corporation
    package ObjectSampleDAC;
    import oracle.dacf.control.swing.*;
    import javax.swing.*;
    import oracle.dacf.dataset.*;
    import oracle.dacf.dataset.connections.*;
    import java.awt.*;
    import oracle.jdeveloper.layout.*;
    import java.awt.event.*;
    import javax.infobus.*;
    import oracle.jbo.domain.DomainInterface;
    import ObjectSampleBC4J.common.TAddress;
    import java.sql.SQLException;
    * A Frame class.
    * <P>
    * @author Scott Tiger
    public class Frame1 extends InfoFrame {
    * Constructs a new instance.
    public Frame1() {
    super();
    try {
    jbInit();
    sessionInfo1.publishSession();
    // call my initialization method
    bfInit();
    catch (Exception e) {
    e.printStackTrace();
    * Initializes the state of this instance.
    private void jbInit() throws Exception {
    /* All of the following code in this method was added by the designer except where noted below
    EmailrowSetInfo1.setName("Email");
    jPanel3.setLayout(gridBagLayout1);
    StatusrowSetInfo1.setName("Status");
    AddressrowSetInfo1.setName("Address");
    PasswordrowSetInfo1.setName("Password");
    UsernamerowSetInfo1.setName("Username");
    LastnamerowSetInfo1.setName("Lastname");
    FirstnamerowSetInfo1.setName("Firstname");
    IdrowSetInfo1.setName("Id");
    rowSetInfo1.setAttributeInfo( new AttributeInfo[] {
    IdrowSetInfo1,
    FirstnamerowSetInfo1,
    LastnamerowSetInfo1,
    UsernamerowSetInfo1,
    PasswordrowSetInfo1,
    AddressrowSetInfo1,
    StatusrowSetInfo1,
    EmailrowSetInfo1} );
    this.setDataItemName("infobus:/oracle/sessionInfo1");
    this.setTitle("Customer Information");
    this.getContentPane().setLayout(borderLayout1);
    this.setSize(new Dimension(536, 473));
    jPanel1.setLayout(borderLayout2);
    sessionInfo1.setAppModuleInfo(new ModuleInfo("ObjectSampleBC4J", "ObjectSampleBC4JModule"));
    sessionInfo1.setConnectionInfo(new LocalConnection("MyJdbcConn"));
    sessionInfo1.setName("sessionInfo1");
    rowSetInfo1.setQueryInfo(new QueryViewInfo(
    "CustomerView",
    rowSetInfo1.setSession(sessionInfo1);
    rowSetInfo1.setName("rowSetInfo1");
    /* The following listener was added using the event tab in the property inspector in design
    mode. The rowsetPopulated method is called when the rowset is queried/requeried.
    rowSetInfo1.addChangeListener(new oracle.dacf.dataset.ChangeAdapter() {
    public void rowsetPopulated(RowSetChangeEvent e) {
    rowSetInfo1_rowsetPopulated(e);
    textFieldControl1.setText("textFieldControl1");
    textFieldControl2.setDataItemName("infobus:/oracle/sessionInfo1/rowSetInfo1/Firstname");
    textFieldControl2.setText("textFieldControl2");
    textFieldControl3.setDataItemName("infobus:/oracle/sessionInfo1/rowSetInfo1/Lastname");
    textFieldControl3.setText("textFieldControl3");
    textFieldControl4.setDataItemName("infobus:/oracle/sessionInfo1/rowSetInfo1/Username");
    textFieldControl4.setText("textFieldControl4");
    textFieldControl5.setDataItemName("infobus:/oracle/sessionInfo1/rowSetInfo1/Password");
    textFieldControl5.setText("textFieldControl5");
    textFieldControl6.setDataItemName("infobus:/oracle/sessionInfo1/rowSetInfo1/Status");
    textFieldControl6.setText("textFieldControl6");
    textFieldControl7.setDataItemName("infobus:/oracle/sessionInfo1/rowSetInfo1/Email");
    textFieldControl7.setText("textFieldControl7");
    navigationBar1.setDataItemName("infobus:/oracle/sessionInfo1/rowSetInfo1");
    jLabel1.setText("ID:");
    jLabel2.setText("First Name:");
    jLabel3.setText("Last Name:");
    jLabel4.setText("User Name:");
    jLabel5.setText("Password:");
    jLabel6.setText("Status:");
    jLabel7.setText("Email:");
    jLabel8.setText("Address:");
    jPanel4.setLayout(      gridBagLayout2);
    textFieldStreet.setColumns(20);
    textFieldStreet.setText("textFieldStreet");
    /* The following listener (as well as the listeners on textFieldCity, textFieldState, and
    textFieldZipcode were added by the designer, but the focusGained and focusLost methods
    were modified in each case to call a common textField_focusGained method
    textFieldStreet.addFocusListener(new java.awt.event.FocusAdapter() {
    public void focusGained(FocusEvent e) {
    textField_focusGained(e);
    public void focusLost(FocusEvent e) {
    textField_focusLost(e);
    textFieldCity.setColumns(20);
    textFieldCity.setText("textFieldCity");
    textFieldCity.addFocusListener(new java.awt.event.FocusAdapter() {
    public void focusGained(FocusEvent e) {
    textField_focusGained(e);
    public void focusLost(FocusEvent e) {
    textField_focusLost(e);
    textFieldState.setColumns(20);
    textFieldState.setText("textFieldState");
    textFieldState.addFocusListener(new java.awt.event.FocusAdapter() {
    public void focusGained(FocusEvent e) {
    textField_focusGained(e);
    public void focusLost(FocusEvent e) {
    textField_focusLost(e);
    textFieldZipcode.setColumns(20);
    textFieldZipcode.setText("textFieldZipcode");
    textFieldZipcode.addFocusListener(new java.awt.event.FocusAdapter() {
    public void focusGained(FocusEvent e) {
    textField_focusGained(e);
    public void focusLost(FocusEvent e) {
    textField_focusLost(e);
    jLabel9.setText("Street:");
    jLabel10.setText("City:");
    jLabel11.setText("State:");
    jLabel12.setText("Zip Code:");
    textFieldControl1.setDataItemName("infobus:/oracle/sessionInfo1/rowSetInfo1/Id");
    this.getContentPane().add(jPanel1, BorderLayout.CENTER);
    jPanel1.add(jPanel2, BorderLayout.NORTH);
    jPanel2.add(navigationBar1, null);
    jPanel1.add(jPanel3, BorderLayout.CENTER);
    jPanel3.add(textFieldControl1, new GridBagConstraints2(1, 0, 1, 1, 1.0, 0.0,
    GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(37, 11, 0, 0), 0, 0));
    jPanel3.add(textFieldControl2, new GridBagConstraints2(1, 1, 1, 1, 1.0, 0.0,
    GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(7, 11, 0, 0), 0, 0));
    jPanel3.add(textFieldControl3, new GridBagConstraints2(1, 2, 1, 1, 1.0, 0.0,
    GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(7, 11, 0, 0), 0, 0));
    jPanel3.add(textFieldControl4, new GridBagConstraints2(1, 3, 1, 1, 1.0, 0.0,
    GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(6, 11, 0, 0), 0, 0));
    jPanel3.add(textFieldControl5, new GridBagConstraints2(1, 4, 1, 1, 1.0, 0.0,
    GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(6, 11, 0, 0), 0, 0));
    jPanel3.add(textFieldControl6, new GridBagConstraints2(1, 5, 1, 1, 1.0, 0.0,
    GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(7, 11, 0, 0), 0, 0));
    jPanel3.add(textFieldControl7, new GridBagConstraints2(1, 6, 1, 1, 1.0, 0.0,
    GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(6, 11, 0, 0), 0, 0));
    jPanel3.add(jLabel1, new GridBagConstraints2(0, 0, 1, 1, 0.0, 0.0,
    GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(37, 106, 0, 0), 0, 0));
    jPanel3.add(jLabel2, new GridBagConstraints2(0, 1, 1, 1, 0.0, 0.0,
    GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(8, 54, 0, 0), 0, 0));
    jPanel3.add(jLabel3, new GridBagConstraints2(0, 2, 1, 1, 0.0, 0.0,
    GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(8, 54, 0, 0), 0, 0));
    jPanel3.add(jLabel4, new GridBagConstraints2(0, 3, 1, 1, 0.0, 0.0,
    GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(10, 54, 0, 0), 0, 0));
    jPanel3.add(jLabel5, new GridBagConstraints2(0, 4, 1, 1, 0.0, 0.0,
    GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(8, 62, 0, 0), 0, 0));
    jPanel3.add(jLabel6, new GridBagConstraints2(0, 5, 1, 1, 0.0, 0.0,
    GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(9, 83, 0, 0), 0, 0));
    jPanel3.add(jLabel7, new GridBagConstraints2(0, 6, 1, 1, 0.0, 0.0,
    GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(9, 86, 0, 0), 0, 0));
    jPanel3.add(jLabel8, new GridBagConstraints2(0, 7, 1, 1, 0.0, 0.0,
    GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(7, 72, 94, 0), 0, 0));
    jPanel3.add(jPanel4, new GridBagConstraints2(1, 7, 1, 1, 0.0, 0.0,
    GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    jPanel4.add(textFieldZipcode, new GridBagConstraints2(1, 3, 1, 1, 0.0, 0.0,
    GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 10, 0, 0), 0, 0));
    jPanel4.add(textFieldState, new GridBagConstraints2(1, 2, 1, 1, 0.0, 0.0,
    GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 10, 0, 0), 0, 0));
    jPanel4.add(jLabel9, new GridBagConstraints2(0, 0, 1, 1, 0.0, 0.0,
    GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 0, 0, 0), 0, 0));
    jPanel4.add(textFieldStreet, new GridBagConstraints2(1, 0, 1, 1, 0.0, 0.0,
    GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 10, 0, 0), 0, 0));
    jPanel4.add(jLabel10, new GridBagConstraints2(0, 1, 1, 1, 0.0, 0.0,
    GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 0, 0, 0), 0, 0));
    jPanel4.add(jLabel11, new GridBagConstraints2(0, 2, 1, 1, 0.0, 0.0,
    GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 0, 0, 0), 0, 0));
    jPanel4.add(jLabel12, new GridBagConstraints2(0, 3, 1, 1, 0.0, 0.0,
    GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 0, 0, 0), 0, 0));
    jPanel4.add(textFieldCity, new GridBagConstraints2(1, 1, 1, 1, 0.0, 0.0,
    GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 10, 0, 0), 0, 0));
    /* The following vaiable declarations were made by the designer
    BorderLayout borderLayout1 = new BorderLayout();
    JPanel jPanel1 = new JPanel();
    SessionInfo sessionInfo1 = new SessionInfo();
    RowSetInfo rowSetInfo1 = new RowSetInfo();
    AttributeInfo IdrowSetInfo1 = new AttributeInfo(java.sql.Types.NUMERIC);
    AttributeInfo FirstnamerowSetInfo1 = new AttributeInfo(java.sql.Types.VARCHAR);
    AttributeInfo LastnamerowSetInfo1 = new AttributeInfo(java.sql.Types.VARCHAR);
    AttributeInfo UsernamerowSetInfo1 = new AttributeInfo(java.sql.Types.VARCHAR);
    AttributeInfo PasswordrowSetInfo1 = new AttributeInfo(java.sql.Types.VARCHAR);
    AttributeInfo AddressrowSetInfo1 = new AttributeInfo();
    AttributeInfo StatusrowSetInfo1 = new AttributeInfo(java.sql.Types.VARCHAR);
    AttributeInfo EmailrowSetInfo1 = new AttributeInfo(java.sql.Types.VARCHAR);
    JPanel jPanel2 = new JPanel();
    JPanel jPanel3 = new JPanel();
    TextFieldControl textFieldControl1 = new TextFieldControl();
    TextFieldControl textFieldControl2 = new TextFieldControl();
    TextFieldControl textFieldControl3 = new TextFieldControl();
    TextFieldControl textFieldControl4 = new TextFieldControl();
    TextFieldControl textFieldControl5 = new TextFieldControl();
    TextFieldControl textFieldControl6 = new TextFieldControl();
    TextFieldControl textFieldControl7 = new TextFieldControl();
    BorderLayout borderLayout2 = new BorderLayout();
    NavigationBar navigationBar1 = new NavigationBar();
    JLabel jLabel1 = new JLabel();
    JLabel jLabel2 = new JLabel();
    JLabel jLabel3 = new JLabel();
    JLabel jLabel4 = new JLabel();
    JLabel jLabel5 = new JLabel();
    JLabel jLabel6 = new JLabel();
    JLabel jLabel7 = new JLabel();
    JLabel jLabel8 = new JLabel();
    GridBagLayout gridBagLayout1 = new GridBagLayout();
    JPanel jPanel4 = new JPanel();
    JTextField textFieldStreet = new JTextField();
    JTextField textFieldCity = new JTextField();
    JTextField textFieldState = new JTextField();
    JTextField textFieldZipcode = new JTextField();
    JLabel jLabel9 = new JLabel();
    JLabel jLabel10 = new JLabel();
    JLabel jLabel11 = new JLabel();
    JLabel jLabel12 = new JLabel();
    GridBagLayout gridBagLayout2 = new GridBagLayout();
    /* The following declarations were made manually
    /* DomainAccess provides a means for getting and setting values of a column object as domain
    DomainAccess da = null;
    /* TAddress is the domain class
    TAddress addr = null;
    /* Declare variables for determining if JTextField values have been changed by user
    String oldVal = null;
    String newVal = null;
    /* The following method is generated by the wizard when the frame was created
    protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if (e.getID() == WindowEvent.WINDOW_CLOSED) {
    System.exit(0);
    public void bfInit () throws Exception {
    /* To add code to be invoked when the user moves from one row to another, get the
    DataItemChangeManager from the RowSetInfo (via RowsetAccess) and add a
    DataItemChangeListener. The specific method we want to use here is rowsetCursorMoved
    which is invoked when the user moves from one row to another; the other methods are
    defined simply because the interface requires them.
    RowsetAccess ra = rowSetInfo1.getRowsetAccess();
    DataItemChangeManager dcm = (DataItemChangeManager)ra;
    dcm.addDataItemChangeListener(new DataItemChangeListener() {
    public void rowsetCursorMoved(RowsetCursorMovedEvent e) {
    rowSetInfo1_rowsetCursorMoved(e);
    public void dataItemAdded(DataItemAddedEvent e) {
    public void dataItemDeleted(DataItemDeletedEvent e) {
    public void dataItemRevoked(DataItemRevokedEvent e) {
    public void dataItemValueChanged(DataItemValueChangedEvent e) {
    /* This method was generated by the designer. See rowSetInfo1.addChangeListener(...) in jbInit
    above.
    void rowSetInfo1_rowsetPopulated(RowSetChangeEvent e) {
    try {
    /* When the rowset is populated, set the JTextField values based on the domain. See
    updateFields() below.
    updateFields();
    catch (Exception ex) {
    System.out.println("Error occurred while retrieving values");
    ex.printStackTrace();
    /* This method was added manually to track row navigation. See dcm.addDataItemChangeListener(...)
    in jbInit above.
    void rowSetInfo1_rowsetCursorMoved(RowsetCursorMovedEvent e) {
    try {
    /* When the user moves from one row to another, set the JTextField values based on the
    domain. See updateFields() below.
    updateFields();
    catch (Exception ex) {
    System.out.println("Error occured while assigning values");
    ex.printStackTrace();
    /* This method finds the values from each field of the column object by using the domain, then
    sets the values of the JTextFields respectively. It is invoked when the rowset is initially
    populated, and each time the user moves from one row to another.
    public void updateFields () throws Exception {
    /* Get DataItem for the Address column object and cast to DomainAccess for to prepare for
    getting and setting column value as domain.
    da = (DomainAccess)AddressrowSetInfo1.getImmediateAccess();
    /* Get the value of the attribute as a Domain and cast to DomainInterface.
    DomainInterface di = da.getValueAsDomain();
    /* null out addr. Otherwise, if the address column is null for a particular record, when
    the user navigates to the record with the null values, addr will retain the previous record's
    values. This ensures a clean slate.
    addr = null;
    /* Using DomainInterface allows us to cast the domain object to the specific Domain class for
    that type. So, cast the address attribute's value to TAddress, the class that
    represents the T_ADDRESS type created in the database. This provides getters and setters
    for each of the fields of the Object Type.
    if ( di instanceof TAddress ) {
    addr = (TAddress) di;
    /* If the above statement resulted in some non-null object assigned to addr, it is because
    one or more of the fields of the domain contained non-null values. Therefore, if addr is
    not null, get the values from each field of the domain and assign them to their
    respective JTextFields. Otherwise, set each JTextField to an empty string.
    if (addr != null) {
    textFieldStreet.setText(addr.getStreet());
    textFieldCity.setText(addr.getCity());
    textFieldState.setText(addr.getState());
    textFieldZipcode.setText(addr.getZipcode());
    else {
    textFieldStreet.setText("");
    textFieldCity.setText("");
    textFieldState.setText("");
    textFieldZipcode.setText("");
    /* If addr is null, after making sure the JTextFields are cleared, create a new TAddress
    object so that we have something to assign values to if the user edits the JTextFields.
    try {
    addr = new TAddress();
    catch (SQLException ex) {
    System.out.println("Error creating domain TAddress");
    ex.printStackTrace();
    /* The method below is invoked when the user navigates to textFieldStreet, textFieldCity,
    textFieldState, or textFieldZipcode. It's used just to find the value of the field when
    the user enters the field (the "before" value).
    void textField_focusGained(FocusEvent e) {
    Object obj = e.getSource();
    if (obj instanceof JTextField) {
    JTextField field = (JTextField)obj;
    oldVal = field.getText();
    /* The method below is invoked when the user navigates away from textFieldStreet, textFieldCity,
    textFieldState, or textFieldZipcode. It checks to see if the user changes the value of the
    field, and if so, updates the value of the address attribute.
    void textField_focusLost(FocusEvent e) {
    /* Find out the value of the JTextField now that the user is attempting to leave the field.
    Object obj = e.getSource();
    if (obj instanceof JTextField) {
    JTextField field = (JTextField)obj;
    newVal = field.getText();
    /* Compare the new value of the field ("after" value) to the "before" value captured
    in textField_focusGained above. If they are equal, we do nothing. If they are not equal,
    then the user must have changes the value in the field, and we have some work to do.
    if (!oldVal.equals(newVal)) {
    /* Since this same method is called regardless of which JTextField has been left, we find
    out which text field the user is leaving, and then set the value of the appropriate
    element of the addr domain.
    if (obj.equals(textFieldStreet)) {
    addr.setStreet(newVal);
    if (obj.equals(textFieldCity)) {
    addr.setCity(newVal);
    if (obj.equals(textFieldState)) {
    addr.setState(newVal);
    if (obj.equals(textFieldZipcode)) {
    addr.setZipcode(newVal);
    /* So, we've set the value of the appropriate element of the addr domain, but we have not
    "posted" those changes to the BC4J (middle-tier), so if we were to commit at this point
    our changes would not get saved to the database (because BC4J is not aware of these
    changes). The next step is to notify BC4J of the changes.
    try {
    da.setValueAsDomain(addr);
    catch (InvalidDataException ex) {
    System.out.println("Invalid Data assigned to TAddress");
    ex.printStackTrace();
    /* Clear out the oldVal and newVal variable so we are ready to track more changes.
    oldVal = null;
    newVal = null;
    }-- Brian

  • Changed SQL in view object causing problems

    Hi,
    I'm using Jdev 10.1.3.2, oracle 10g, and ADFBC.
    I created a view object by joining three tables and selecting attributes from them in the select clause. Later, I didn't want some of them, so I commented them out in the sql statement. Now when I query the data using either the application module tester, or run a page with the table on it, the data is not returning in the correct columns. For instance my row attribute #{row.UPC} is showing a number from an entirely different column. I looked at the xml, and rowImpl java files and could not find anything that looked wrong, except that the columns I commented out were not showing up with the values indicating that they were transient as outlined in section 6.10.2 of the ADF developers guide for forms/4gl developers, ie column type = $none$ and no table name attribute. I don't know if they should show up that way or not since they do come from a table, but aren't being used at the moment.
    I've checked the froums, just f'n googled it, and checked the dev guide but didn't find anything, so I was hoping someone on here had the same problem. If there is anything else I could post to help, please let me know, though none of it is custom code, and my sql is extremely simple.
    Thank you,
    Eric Liskow

    Well, I didn't find a solution, but I deleted the transient values, redid the view object, and started a new page and it worked. I'd still like to know if anyone knows what happened though. If I have to do that in a production site soon it wouldn't be much fun!

  • JSP/BC4J app: How to get view object row data into a scriplet variable?

    I have a JSP application using BC4J data tags. Within a rowsetiterate tag, how can I get the data value of an attribute for the current row into a scriplet variable?
    Thanks,
    Steve

    Using the <jbo:Row> tag like this:
      <jbo:RowsetIterate .... >
        <%--
         | Establish a scriptable variable "curRow" for the current row
         +-->
        <jbo:Row id="curRow" action="current"/>
        <%
          String foo = (String)curRow.getAttribute("YourAttrName");
        %>

  • JSP, Data Web Bean, BC4J: Setting the where clause of a View Object at run time

    Hi,
    I am trying to develop a data web bean in which the where clause of a View Object will be set at run time and the results of the query then displayed.
    My BC4J components are located in one project while the coding for the data web bean is in another project. I used the following code bu t it does not work. Could you please let me know what I am doing wrong?
    public void populateOSTable(int P_EmpId)
    String m_whereString = "EmpView.EMP_ID = " + P_EmpId;
    String m_OrderBy = "EmpView.EMP_NAME";
    oracle.jbo.ApplicationModule appModule = null;
    ViewObject vo = appModule.findApplicationModule("EMPBC.EMPAppModule").findViewObject("EMPBC.EMPView");
    vo.setWhereClause(m_whereString);
    vo.setOrderByClause(m_OrderBy);
    vo.executeQuery();
    vo.next();
    String empName numAttrs = vo.getAttribute(EmpName);
    System.out.println(empName);
    Thanks.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by JDev Team (Laura):
    Here is how I have usually done mine:
    1. In the JSP, use a RowsetNavigator bean to set the where clause and execute the query.
    2. Use a custom web bean to process the results of the query (print to HTML).
    for example:
    <jsp:useBean class="oracle.jbo.html.databeans.RowsetNavigator" id="rsn" scope="request" >
    <%
    // get the parameter from the find form
    String p = request.getParameter("p");
    String s = request.getParameter("s");
    // store the information for reference later
    session.putValue("p", p);
    session.putValue("s", s);
    // initialize the app module and view object
    rsn.initialize(application,session, request,response,out,"wt_bc_WT_bcModule.wtjoinView");
    // set the where clause string
    String theclause = "presname = '" + p + "' AND slideno=" + s;
    // set the where clause for the VO
    rsn.getRowSet().getViewObject().setWhereClause(theclause);
    rsn.getRowSet().getViewObject().executeQuery();
    rsn.getRowSet().first();
    %>
    </jsp:useBean>
    <jsp:useBean class="wt_bc.walkthruBean" id="wtb" scope="request" >
    <%
    // initialize the app module and VO
    wtb.initialize(application,session, request,response,out,"wt_bc_WT_bcModule.wtjoinView");
    wtb.render();
    %>
    In this case, the render method of my custom web bean mostly gets some session variables, and prints various content depending on the session variable values.
    Hope this helps.
    </jsp:useBean><HR></BLOCKQUOTE>
    Laura can you give the code of your walkthru bean? i wna't to initialize a viewobject, set the where clause and give that viewobject back to initialize my navigatorbar.
    Nathalie
    null

  • How to build sql query for view object at run time

    Hi,
    I have a LOV on my form that is created from a view object.
    View object is read-only and is created from a SQL query.
    SQL query consists of few input parameters and table joins.
    My scenario is such that if input parameters are passed, i have to join extra tables, otherwise, only one table can fetch the results I need.
    Can anyone please suggest, how I can solve this? I want to build the query for view object at run time based on the values passed to input parameters.
    Thanks
    Srikanth Addanki

    As I understand you want to change the query at run time.
    If this is what you want, you can use setQuery Method then use executeQuery.
    http://download.oracle.com/docs/cd/B14099_19/web.1012/b14022/oracle/jbo/server/ViewObjectImpl.html#setQuery_java_lang_String_

  • Using SQL view object to create ADF table

    Hi,
    I have created a column called "Month" (which extracts month from the date column) and another column to count the no. of requests.
    i want to create an ADF table with 2 columns, a column showing the month and another is showing the no. of requests for that month.
    However, now I only managed to achieve the ADF table to show the overall total requests, which means if i add up all the requests for all the months and i get 500
    My ADF table shows this:
    Jan: 500
    Feb: 500
    Mar: 500
    How should I create the view or what should I do to make it such that the no. of request is based on the month?
    Please advice.
    Thanks (:

    Hi,
    For the given situation you can create a Query Based View Object with the following query
    SELECT
    COUNT(TEMP1.DT) REQUEST,
    TO_CHAR(TEMP1.DT, 'Mon') MONTH
    FROM
    TEMP1
    GROUP BY
    TO_CHAR(TEMP1.DT, 'Mon')
    where DT is the date column and temp1 is the name of the database table.
    Following are the steps that i followed to get this query :
    i have taken the following sample table :
    create table temp1
    (srno number primary key,
    dt date)
    *Note you may use any existing column instead of srno or use dt only (i took an extra column as u know we need a primary key /row id)
    the following is the sample data
    insert into temp1 values (1,sysdate);
    insert into temp1 values (2,sysdate);
    insert into temp1 values (3,add_months(sysdate,1));
    insert into temp1 values (4,add_months(sysdate,1));
    insert into temp1 values (5,add_months(sysdate,3));
    insert into temp1 values (6,add_months(sysdate,5));
    the table appears as follows
    SRNO DT
    1 22-JUN-12
    2 22-JUN-12
    3 22-JUL-12
    4 22-JUL-12
    5 22-SEP-12
    6 22-NOV-12
    To start with ADF View Object Creation (Using Jdeveloper 11.1.2):
    Create the view object using Create View Object wizard
    In Step 1. Name window
    set the value for Name : Viewab (you can use any of ur choice)
    In the data source section : select query
    In Step 2. Query window
    a. Click Query builder (it will pop up sql statment window)
    b. In the SQL Statement window
    in quick-pick objects section -> select temp1 table -> shuttle the columns from available list to selected list
    in select clause section -> select srno column from select list-> choose count() function from function drop down list -> insert function -> set alias to REQUEST-> click validate
    now select dt column from select list -> choose to_char() function -> click insert function -> alter the function to to_Char(temp1.DT,'Mon') -> set alias to Month -> click validate
    in the group by clause section -> Click the green symbol to add -> from the expression palette insert dt column -> insert the to_char function -> alter the function to to_char(temp1.DT,'Mon') -> click validate
    in the Entire SQL Query section -> click test query -> in the test query window -> click query result-> you will see the result -> click close -> click ok
    Click next
    Step 3: Bind Variables
    Click Next
    Step 4: Attribute Mappings
    click Finish
    So the view object is ready :)

  • Passing an argument in the SQL Query of a View Object

    Hi,
    It is possible that this question has been asked before, however I have searched for a half an hour in the forums and couldn't find a solution.
    I am also new to using JDeveloper and ADF. Here's the situation:
    I am developing an application that doesn't have to do anything else then displaying data from a database. Pretty straightforward actually.
    Now I have made a vew pages with several collapsible panels (af:showDetailHeader) and have setup the datasources (or so I thought).
    All that remains is:
    - drag & drop a view object, from the application module that I created, onto the collabsible panels, so a child element gets created which displays data from the database.
    - hack the layout so it looks like I want it to.
    The problem that I have is the following:
    I am using a 'User'-class that contains values I need when quering the database.
    That User-object is part of a user-session.
    What I want, for example, is to use the 'getPersonId()' function of that User-object and pass the argument to a SQL-query of a certain view-object.
    The query would become something like:
    'SELECT * FROM people WHERE people.personId = :someNumber'.
    Now I've read some stuff about variable binding, which is complemented by something like (backing bean code):
    getDBTransaction().getRootApplicationModule().getACertainViewObject().setWhereClauseParameter(1, user.getPersonId());
    The examples I have found that might match my wishes are not using business components, but EJB's. I am having difficulty with understanding the 'how'-part of variable binding.
    Also, I do not know enough of ADF to be able to create a situation like:
    'User loads page, collapsible panel 1 is fully shown, the others are undisclosed.'
    (meaning, that for panel1 a query has been executed.)
    'User clicks on collapsible panel 2 which triggers a backingbean that somehow retrieves data from a view object'.
    I would appreciate any help that somebody can give.
    If it is not too much of a problem, please provide code snippets in case you have a solution. I am new to ADF :(.
    -edit
    I am using JDeveloper 10.1.3.3.0 in case that is of any importance.
    Message was edited by:
    Hugo Boog

    Hello Stijn,
    I didn't think about a referenced bean rule in the faces-config.
    I added it right away and I am now able to set parameters of a View-object, not using a page button and before the page loads. You made my day!
    In case anyone ever reads this post again, the summary of how to generate a table based on a View-object using dynamic parameters.:
    1a: Go to faces-config.xml -> Overview tab'
    1b: Go to the menuitem "Referenced Beans"
    1c: Click on 'new' and select the existing bean you want to access data from and input a name. In this example I use name="user"
    2: Create a View-object using the wizard.
    2a: Specify the query you want in the menuitem 'SQL Statement'.
    Add the 'parameters' you want to. You will have something like:
    "SELECT * FROM someTable WHERE table.columnname LIKE :someArgument".
    - hint: if you want the result to become something like:
    "SELECT * FROM someTable WHERE table.columnname LIKE '%someArgument%'" then you have to add the '%'-characters in your code itself (read: someClass.setParameter("%" + someArgument);).
    2b: In the menuitem 'Bind Variables' you have to add the variables you are referring to in the query. If you look at the query in 2a, then you have to add a variable with name "someArgument".
    2c: Add the View-object to a Application Module (create one if nessecairy).
    3a: Open a .jsp(x) file. Drag the View-object created in step 2 from the 'Data Controls'-pane to the page.
    3b: Click on the '+' of the View-object in the 'Data Controls'-pane and open 'Operations' and drag 'ExecuteWithParams' to your page as a button.
    3c: We do not want to use a button, the action has to be executed immediatly. So In the page source remove the lines that were created after dropping 'ExecuteWithParams'.
    3d: Right-click on the page and select "Go to Page Definition".
    3e: Go to the action id that is called 'ExecuteWithParams#', where # is a number.
    Change the id to something useful.
    3f: Change the NDValue so it corresponds with the value you want.
    Example:
    <action id="getAddressData" IterBinding="AddressesView1Iterator"
    InstanceName="MyHRServiceModuleDataControl.AddressView1"
    DataControl="MyHRServiceModuleDataControl" RequiresUpdateModel="true" Action="95">
    <NamedData NDName="someArgument" NDType="java.lang.String"
    NDValue="#{user.personId}"/>
    </action>
    Note: It is possible to use the value of a Backing Bean in NDValue.
    Note 2: user is the bean I referred to in the faces-config.xml!
    3g: Under the executables item, add an 'invokeAction' to pass the parameter to the View-object before your JSP-file loads:
    <executables>
    <invokeAction Binds="getAddressData"
    id="loadAddressDataOfPersonIdInSession"
    Refresh="prepareModel"/>
    Thank Stijn Haus for this :)

  • Inserting a new row in a BC4J View Object with an attribute of type BFileDomain

    Hi all,
    I've to insert a row in a View Object with an attribute of type oracle.jbo.domain.BFileDomain.
    I do this within an Application Module's method, which has an input parameter of type byte[]. This parameter will be the content of the BFILE.
    What's the right way for doing that?
    I've tried with the following code, but I've got an exception in committing the transaction:
    public int serializeDocument(int codDomanda, int codSorgente, byte[] content, String est, int type, int cost, String title, String arg) throws JboException {
    int code = 0;
    //File f;
    DocumentiTwoView = getDocumentiTwoView();
    java.sql.Statement stmt = ((DBTransaction) getTransaction()).createStatement(1);
    try {
    Row docRow = DocumentiTwoView.createRow();
    SequenceImpl seq = new SequenceImpl("documenti_seq", getDBTransaction());
    Integer next = (Integer) seq.getData();
    code = next.intValue();
    docRow.setAttribute("Coddocumento", new Number(code));
    docRow.setAttribute("Titolo", (String) title);
    docRow.setAttribute("Argomento", (String) arg);
    docRow.setAttribute("Costo", new Number(cost));
    docRow.setAttribute("Tipo", new Number(type));
    docRow.setAttribute("Coddomanda", new Number(codDomanda));
    docRow.setAttribute("Codsorgente", new Number(codSorgente));
    //f = new File("Doc" + code + "." + est)
    BFILE src_lob = null;
    ResultSet rset = null;
    rset = stmt.executeQuery ("SELECT BFILENAME('DOC_DIR', 'Doc" + code + "." + est + "') FROM DUAL");
    if (rset.next()) {
    src_lob = ((OracleResultSet)rset).getBFILE(1);
    BFileDomain bfd = new BFileDomain(src_lob);
    bfd.setBytes(content);
    bfd.saveToDatabase(getTransaction());
    docRow.setAttribute("Contenuto", (BFileDomain) bfd);
    catch (Exception ex) {
    getTransaction().rollback();
    throw new oracle.jbo.JboException("Impossibile creare il nuovo documento:\n" + ex.getMessage());
    finally {
    try {
    stmt.close();
    catch (Exception nex) {
    try {
    // Commit the whole transaction
    getTransaction().commit();
    catch (Exception e) {
    e.printStackTrace();
    getTransaction().rollback();
    throw new JboException("Impossibile eseguire il commit della transazione:\n" + e.getMessage());
    return code;
    Thanks a lot in advance!
    Christian
    null

    Odd, have you disabled caching and indirection? (NoIdentityMap, dontUseIndirection, or alwaysRefresh/disableCacheHits). If so, then this could be the issue.
    Otherwise please include the sample code you use to perform this, and verify that you do not have any unusual code in your set/get methods or in descriptor events. Also turn TopLink logging on and include a sample. Also ensure that you do not modify your objects until after registering them in the unit of work, and only modify the unit of work clones.

  • How to change sql expression of SQL-Calculated Attribute of view object ?

    Hi
    jdev 11.1.1.5
    I have a view object with a SQL-Calculated Attribute (sumAnalytic) how can I change sql expression of this attribute in runtime?
    for example in application module method??

    Hi Mr Timo
    Thanks for your reply but I do not need dynamic vo because I can not change all of my vo
    I only need to change expression of SQL-Calculated Attribute of view object in run time.
    For this I set expression in view object something like this 'select 2 from dual' and in run time in my AM method I get the vo query and replace 'select 2 from dual' with something like 'selet sum(amnt) over (partition by 1)' and set new query.
    But I think the better solution must exist
    Thanks

  • SQL Injection when using Search by Example on a View Object

    It seems that the SQL queries generated by "Search by Example" pattern (When you drop a view object as a Search Form) are not using bind parameters, and will be vulnerable to SQL injection attacks. This pattern is very handy and could be very useful to create search pages. Is there a way to avoid SQL Injection and still use this feature in ADF?
    Chandresh

    Hi,
    from a training slide developed by Duncan Mills:
    When the user is in Find mode and enters some information, he or she is constructing a ViewCriteria row. Each attribute in the View object exists in this row and any values that the user enters into the fields are mapped into these attributes.
    In most circumstances, you will only ever have one criteria row, although the developer can allow multiple rows if the Create operation is called during Find mode.
    To parse the entered query values, you need to look at each row, and then at each attribute. Calling getAttribute() returns the value the user entered (if any) for that field. You can then pass that string to a filter routine (shown in the next slide), which inspects this value for errors.
    The filter routine can then change the example value if required and reset the criteria.
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    protected String detectInjection(String criteria) {
      boolean reject = false;
      String testPattern =       "^(>=|<=|=<|=>|<|>|<>|!=|=|BETWEEN|IN|LIKE|IS)";
      String testCriteria = criteria.trim().toUpperCase();
        if (testCriteria != null && testCriteria.length() > 0) {
          Pattern pattern = Pattern.compile(testPattern);
          Matcher matcher = pattern.matcher(testCriteria);
          if (matcher.find())
            reject = true;
        return reject?null:criteria;
      }Frank

  • How to put validation between attributes at View Object level in BC4J

    Hi,
    Is it possible in BC4J to put validation between attributes at View Object level?
    I know that I can do it at Entity Object level in validateEntity method, but I have several View Objects connected with one Entity Object and don't want to have the same validation logic for all View Objects.
    Thanks for any help!

    It returns errorWhat error does it return?
    John

  • Changing SQL Query in View Object during runtime

    Hello everyone,
    I've got some problems with view objects which I dropped on my JSP page.
    1.)
    What I want to do is changing SQL query during running my application. I have view object based on select query: "SELECT * FROM DEPARTMENTS". And after clicking button (or something else) I want to change the query: "SELECT * FROM EMPLOYEES" and I want to see this changes in my JSP page. Setting the query and executing it doesn't work. How can i do it?
    2.)
    I want to create view object programmatically, but I don't know exactly how many columns / attributes it will have. If I know the names of the attributes it's ok, but i don't know it... So I've got function, its body is:
    Row rowForInsert = this.createRow();
    this.addDynamicAttribute("ParamName");
    rowForInsert.setAttribute("ParamName", "asda");
    this.insertRow(rowForInsert);
    but this code doesn't work (I can't see any changes on my JSP Page).

    Thank's a lot!
    But there's another thing to do which I can't deal with.
    I want to create view object in one jspx page, a I don't want to move to another.
    And this method doesn't work.
    What can I do?
    I've got following error (I'm using dynamic table, when I create view object first time it's ok, but when i want to create another, there's execption):
    java.util.NoSuchElementException
    *     at java.util.ArrayDeque.removeFirst(ArrayDeque.java:251)*
    *     at java.util.ArrayDeque.pop(ArrayDeque.java:480)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.removeCachedReadOnly(EditableValueRenderer.java:414)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.afterEncode(LabeledInputRenderer.java:139)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:526)*
    *     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)*
    *     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeChildInContext(RichRenderer.java:3118)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.renderDataCell(BaseColumnRenderer.java:1468)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.encodeAll(BaseColumnRenderer.java:166)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)*
    *     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)*
    *     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.renderDataBlockRows(TableRenderer.java:2803)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:685)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)*
    *     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)*
    *     at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:617)*
    *     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)*
    *     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1677)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:274)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)*
    *     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)*
    *     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1275)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)*
    *     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)*
    *     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)*
    *     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1677)*
    *     at oracle.adfinternal.view.faces.component.AdfViewRoot.encodeAll(AdfViewRoot.java:91)*
    *     at com.sun.faces.application.view.JspViewHandlingStrategy.doRenderView(JspViewHandlingStrategy.java:431)*
    *     at com.sun.faces.application.view.JspViewHandlingStrategy.renderView(JspViewHandlingStrategy.java:233)*
    *     at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:350)*
    *     at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)*
    *     at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)*
    *     at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:165)*
    *     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1032)*
    *     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:339)*
    *     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:237)*
    *     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:509)*
    *     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)*
    *     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)*
    *     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)*
    *     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)*
    *     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)*
    *     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)*
    *     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)*
    *     at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)*
    *     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)*
    *     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)*
    *     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)*
    *     at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)*
    *     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)*
    *     at java.security.AccessController.doPrivileged(Native Method)*
    *     at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)*
    *     at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)*
    *     at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)*
    *     at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)*
    *     at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)*
    *     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)*
    *     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)*
    *     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)*
    *     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)*
    *     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)*
    *     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)*
    *     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)*
    *     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)*
    *     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)*
    *     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)*
    *     at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)*
    *<LifecycleImpl> <_handleException> ADF_FACES-60098:Faces - cykl życia otrzymuje nieobsługiwane wyjątki w fazie RENDER_RESPONSE 6*
    javax.el.PropertyNotFoundException: Target Unreachable, 'bindings' returned null
    *     at com.sun.el.parser.AstValue.getTarget(Unknown Source)*
    *     at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)*
    *     at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:476)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:406)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.beforeEncode(LabeledInputRenderer.java:128)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:510)*
    *     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)*
    *     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeChildInContext(RichRenderer.java:3118)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.renderDataCell(BaseColumnRenderer.java:1468)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.encodeAll(BaseColumnRenderer.java:166)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)*
    *     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)*
    *     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.renderDataBlockRows(TableRenderer.java:2803)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:685)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)*
    *     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)*
    *     at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:617)*
    *     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)*
    *     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1677)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:274)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)*
    *     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)*
    *     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1275)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)*
    *     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)*
    *     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)*
    *     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1677)*
    *     at oracle.adfinternal.view.faces.component.AdfViewRoot.encodeAll(AdfViewRoot.java:91)*
    *     at com.sun.faces.application.view.JspViewHandlingStrategy.doRenderView(JspViewHandlingStrategy.java:431)*
    *     at com.sun.faces.application.view.JspViewHandlingStrategy.renderView(JspViewHandlingStrategy.java:233)*
    *     at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:350)*
    *     at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)*
    *     at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)*
    *     at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:165)*
    *     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1032)*
    *     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:339)*
    *     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:237)*
    *     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:509)*
    *     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)*
    *     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)*
    *     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)*
    *     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)*
    *     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)*
    *     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)*
    *     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)*
    *     at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)*
    *     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)*
    *     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)*
    *     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)*
    *     at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)*
    *     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)*
    *     at java.security.AccessController.doPrivileged(Native Method)*
    *     at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)*
    *     at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)*
    *     at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)*
    *     at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)*
    *     at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)*
    *     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)*
    *     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)*
    *     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)*
    *     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)*
    *     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)*
    *     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)*
    *     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)*
    *     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)*
    *     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)*
    *     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)*
    *     at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)*
    *<2012-10-24 10:16:59 CEST> <Error> <HTTP> <BEA-101020> <[ServletContext@16325184[app:test66 module:test66-ViewController-context-root path:/test66-ViewController-context-root spec-version:2.5]] Servlet failed with Exception*
    javax.el.PropertyNotFoundException: Target Unreachable, 'bindings' returned null
    *     at com.sun.el.parser.AstValue.getTarget(Unknown Source)*
    *     at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)*
    *     at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:476)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:406)*
    *     Truncated. see log file for complete stacktrace*
    *>*
    *<2012-10-24 10:16:59 CEST> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'DefaultServer' has triggered at 2012-10-24 10:16:59 CEST. Notification details:*
    WatchRuleType: Log
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
    *WatchData: DATE = 2012-10-24 10:16:59 CEST SERVER = DefaultServer MESSAGE = [ServletContext@16325184[app:test66 module:test66-ViewController-context-root path:/test66-ViewController-context-root spec-version:2.5]] Servlet failed with Exception*
    javax.el.PropertyNotFoundException: Target Unreachable, 'bindings' returned null
    *     at com.sun.el.parser.AstValue.getTarget(Unknown Source)*
    *     at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)*
    *     at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:476)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:406)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.beforeEncode(LabeledInputRenderer.java:128)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:510)*
    *     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)*
    *     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeChildInContext(RichRenderer.java:3118)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.renderDataCell(BaseColumnRenderer.java:1468)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.encodeAll(BaseColumnRenderer.java:166)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)*
    *     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)*
    *     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.renderDataBlockRows(TableRenderer.java:2803)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:685)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)*
    *     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)*
    *     at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:617)*
    *     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)*
    *     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1677)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:274)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)*
    *     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)*
    *     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)*
    *     at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1275)*
    *     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)*
    *     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)*
    *     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)*
    *     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)*
    *     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1677)*
    *     at oracle.adfinternal.view.faces.component.AdfViewRoot.encodeAll(AdfViewRoot.java:91)*
    *     at com.sun.faces.application.view.JspViewHandlingStrategy.doRenderView(JspViewHandlingStrategy.java:431)*
    *     at com.sun.faces.application.view.JspViewHandlingStrategy.renderView(JspViewHandlingStrategy.java:233)*
    *     at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:350)*
    *     at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)*
    *     at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)*
    *     at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:165)*
    *     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1032)*
    *     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:339)*
    *     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:237)*
    *     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:509)*
    *     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)*
    *     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)*
    *     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)*
    *     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)*
    *     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)*
    *     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)*
    *     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)*
    *     at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)*
    *     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)*
    *     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)*
    *     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)*
    *     at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)*
    *     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)*
    *     at java.security.AccessController.doPrivileged(Native Method)*
    *     at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)*
    *     at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)*
    *     at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)*
    *     at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)*
    *     at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)*
    *     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)*
    *     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)*
    *     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)*
    *     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)*
    *     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)*
    *     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)*
    *     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)*
    *     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)*
    *     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)*
    *     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)*
    *     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)*
    *     at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)*
    *SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101020 MACHINE = JR TXID = CONTEXTID = 1a4c398e070e58ea:-4d4bf6f8:13a91b10737:-8000-000000000000021e TIMESTAMP = 1351066619887*
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000
    and my function which creates view object is:
    ViewObject vo = this.findViewObject("v1");
    vo.remove();
    vo = this.createViewObjectFromQueryStmt("v1", st);
    vo.executeQuery();
    Edited by: 965647 on 2012-10-24 01:18
    Edited by: 965647 on 2012-10-24 03:02

  • How to handle sql error exception in view object

    Guys,
             I have view object (with rows fetched from a sql query).
    Say the query in the VO looks like this..
    select plsql_fun(c) from dual
    (Note : the plsql function in the above query can throw an exception in some cases)
    when the plsql function throws a exception, we get sql exception  (oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation)
    Is there any way i can catch this exception and return -1 in the view object...
    Thanks in advance.

    Check out http://www.oracle.com/technetwork/issue-archive/2013/13-mar/o23adf-1897193.html
    Have you tried to surround hte executeQuery  with a try catch block?
    Timo

  • View Object is invalid due to SYSTEM.MODE is not recognized inside SQL

    Hi All,
    I tried recreating a Oracle form 9i to ADF BC using Jheadstart 10.1.3.3.81, JHS converted the form(converted .xml) generating the Entity and View Objects.
    But among the generated View Objects few are invalid due to which the generated .jspx page is partial in result compared to Original form.
    I have pasted the SQL generated from one of the View Object which is invalid. I tried fixing this SQL from SQL Navigator but I get Invalid function error for SYSTEM.MODE and Not an Object or REF for :INSHST.FACILITY_ID. Can anyone help me out in fixing this Issue?
    SELECT VSLHST.LAST_UPDATE_LOGIN,
    VSLHST.LAST_UPDATE_DATE,
    VSLHST.LAST_UPDATED_BY,
    VSLHST.CREATION_DATE,
    VSLHST.CREATED_BY,
    VSLHST.POST_VOLUME,
    VSLHST.POST_LEVEL_PERCENT,
    VSLHST.POST_TEMPERATURE,
    VSLHST.POST_GAS_PRESSURE,
    VSLHST.POST_LEVEL,
    VSLHST.EQUIPMENT_ID,
    VSLHST.EQUIPMENT_INSTALLATION_ID,
    VSLHST.EQUIPMENT_FACILITY_ID,
    VSLHST.INSTALLATION_HISTORY_ID,
    VSLHST.INSTALLATION_ID,
    VSLHST.FACILITY_ID,
    VSLHST.VESSEL_HISTORY_ID,
    (select DSP_DI_WATER_VOLUME
    from (SELECT EQU.EQUIPMENT_CODE L_EQUIPMENT_CODE,
    EQU.DESCRIPTION DSP_DESCRIPTION,
    EQ.FACILITY_ID L_FACILITY_ID,
    EQ.INSTALLATION_ID L_INSTALLATION_ID,
    EQ.EQUIPMENT_ID L_EQUIPMENT_ID,
    EQ.DI_VESSEL_NUMBER DSP_DI_VESSEL_NUMBER,
    EQ.EQUIPMENT_CODE DSP_EQUIPMENT_CODE,
    EQ.DI_FULL_LEVEL DSP_DI_FULL_LEVEL,
    EQ.CAPACITY_QUANTITY DSP_CAPACITY_QUANTITY,
    EQ.UNIT_OF_MEASURE DSP_UNIT_OF_MEASURE,
    EQ.DI_WATER_VOLUME DSP_DI_WATER_VOLUME
    FROM CP_EQUIPMENTS EQ, CP_X_EQUIPMENT_TYPES EQU
    WHERE (((:SYSTEM.MODE = 'ENTER-QUERY') AND
    ( /* CG$MDTU_QWC_START VSLHST.EQ */
    (EQ.facility_id = :INSHST.FACILITY_ID and
    EQ.installation_id = :INSHST.INSTALLATION_ID and
    (EQ.installed_date <= sysdate and
    (EQ.removal_date is null or
    EQ.removal_date >= sysdate) and
    (EQ.stop_fill_date is null or
    EQ.stop_fill_date >= sysdate))) /* CG$MDTU_QWC_END VSLHST.EQ */
    )) OR ((NOT :SYSTEM.MODE = 'ENTER-QUERY') AND
    ( /* CG$MDTU_VWC_START VSLHST.EQ */
    (EQ.facility_id = :INSHST.FACILITY_ID and
    EQ.installation_id = :INSHST.INSTALLATION_ID and
    (EQ.installed_date <= sysdate and
    (EQ.removal_date is null or
    EQ.removal_date >= sysdate) and
    (EQ.stop_fill_date is null or
    EQ.stop_fill_date >= sysdate))) /* CG$MDTU_VWC_END VSLHST.EQ */
    AND EQ.EQUIPMENT_CODE = EQU.EQUIPMENT_CODE
    ORDER BY L_EQUIPMENT_CODE) LOVQUERY
    where 1 = 1
    and LOVQUERY.L_FACILITY_ID = VSLHST.EQUIPMENT_FACILITY_ID
    and LOVQUERY.L_INSTALLATION_ID = VSLHST.EQUIPMENT_INSTALLATION_ID
    and LOVQUERY.L_EQUIPMENT_ID = VSLHST.EQUIPMENT_ID) AS DSP_DI_WATER_VOLUME,
    (select DSP_UNIT_OF_MEASURE
    from (SELECT EQU.EQUIPMENT_CODE L_EQUIPMENT_CODE,
    EQU.DESCRIPTION DSP_DESCRIPTION,
    EQ.FACILITY_ID L_FACILITY_ID,
    EQ.INSTALLATION_ID L_INSTALLATION_ID,
    EQ.EQUIPMENT_ID L_EQUIPMENT_ID,
    EQ.DI_VESSEL_NUMBER DSP_DI_VESSEL_NUMBER,
    EQ.EQUIPMENT_CODE DSP_EQUIPMENT_CODE,
    EQ.DI_FULL_LEVEL DSP_DI_FULL_LEVEL,
    EQ.CAPACITY_QUANTITY DSP_CAPACITY_QUANTITY,
    EQ.UNIT_OF_MEASURE DSP_UNIT_OF_MEASURE,
    EQ.DI_WATER_VOLUME DSP_DI_WATER_VOLUME
    FROM CP_EQUIPMENTS EQ, CP_X_EQUIPMENT_TYPES EQU
    WHERE (((:SYSTEM.MODE = 'ENTER-QUERY') AND
    ( /* CG$MDTU_QWC_START VSLHST.EQ */
    (EQ.facility_id = :INSHST.FACILITY_ID and
    EQ.installation_id = :INSHST.INSTALLATION_ID and
    (EQ.installed_date <= sysdate and
    (EQ.removal_date is null or
    EQ.removal_date >= sysdate) and
    (EQ.stop_fill_date is null or
    EQ.stop_fill_date >= sysdate))) /* CG$MDTU_QWC_END VSLHST.EQ */
    )) OR ((NOT :SYSTEM.MODE = 'ENTER-QUERY') AND
    ( /* CG$MDTU_VWC_START VSLHST.EQ */
    (EQ.facility_id = :INSHST.FACILITY_ID and
    EQ.installation_id = :INSHST.INSTALLATION_ID and
    (EQ.installed_date <= sysdate and
    (EQ.removal_date is null or
    EQ.removal_date >= sysdate) and
    (EQ.stop_fill_date is null or
    EQ.stop_fill_date >= sysdate))) /* CG$MDTU_VWC_END VSLHST.EQ */
    AND EQ.EQUIPMENT_CODE = EQU.EQUIPMENT_CODE
    ORDER BY L_EQUIPMENT_CODE) LOVQUERY
    where 1 = 1
    and LOVQUERY.L_FACILITY_ID = VSLHST.EQUIPMENT_FACILITY_ID
    and LOVQUERY.L_INSTALLATION_ID = VSLHST.EQUIPMENT_INSTALLATION_ID
    and LOVQUERY.L_EQUIPMENT_ID = VSLHST.EQUIPMENT_ID) AS DSP_UNIT_OF_MEASURE,
    (select DSP_CAPACITY_QUANTITY
    from (SELECT EQU.EQUIPMENT_CODE L_EQUIPMENT_CODE,
    EQU.DESCRIPTION DSP_DESCRIPTION,
    EQ.FACILITY_ID L_FACILITY_ID,
    EQ.INSTALLATION_ID L_INSTALLATION_ID,
    EQ.EQUIPMENT_ID L_EQUIPMENT_ID,
    EQ.DI_VESSEL_NUMBER DSP_DI_VESSEL_NUMBER,
    EQ.EQUIPMENT_CODE DSP_EQUIPMENT_CODE,
    EQ.DI_FULL_LEVEL DSP_DI_FULL_LEVEL,
    EQ.CAPACITY_QUANTITY DSP_CAPACITY_QUANTITY,
    EQ.UNIT_OF_MEASURE DSP_UNIT_OF_MEASURE,
    EQ.DI_WATER_VOLUME DSP_DI_WATER_VOLUME
    FROM CP_EQUIPMENTS EQ, CP_X_EQUIPMENT_TYPES EQU
    WHERE (((:SYSTEM.MODE = 'ENTER-QUERY') AND
    ( /* CG$MDTU_QWC_START VSLHST.EQ */
    (EQ.facility_id = :INSHST.FACILITY_ID and
    EQ.installation_id = :INSHST.INSTALLATION_ID and
    (EQ.installed_date <= sysdate and
    (EQ.removal_date is null or
    EQ.removal_date >= sysdate) and
    (EQ.stop_fill_date is null or
    EQ.stop_fill_date >= sysdate))) /* CG$MDTU_QWC_END VSLHST.EQ */
    )) OR ((NOT :SYSTEM.MODE = 'ENTER-QUERY') AND
    ( /* CG$MDTU_VWC_START VSLHST.EQ */
    (EQ.facility_id = :INSHST.FACILITY_ID and
    EQ.installation_id = :INSHST.INSTALLATION_ID and
    (EQ.installed_date <= sysdate and
    (EQ.removal_date is null or
    EQ.removal_date >= sysdate) and
    (EQ.stop_fill_date is null or
    EQ.stop_fill_date >= sysdate))) /* CG$MDTU_VWC_END VSLHST.EQ */
    AND EQ.EQUIPMENT_CODE = EQU.EQUIPMENT_CODE
    ORDER BY L_EQUIPMENT_CODE) LOVQUERY
    where 1 = 1
    and LOVQUERY.L_FACILITY_ID = VSLHST.EQUIPMENT_FACILITY_ID
    and LOVQUERY.L_INSTALLATION_ID = VSLHST.EQUIPMENT_INSTALLATION_ID
    and LOVQUERY.L_EQUIPMENT_ID = VSLHST.EQUIPMENT_ID) AS DSP_CAPACITY_QUANTITY,
    (select DSP_DI_FULL_LEVEL
    from (SELECT EQU.EQUIPMENT_CODE L_EQUIPMENT_CODE,
    EQU.DESCRIPTION DSP_DESCRIPTION,
    EQ.FACILITY_ID L_FACILITY_ID,
    EQ.INSTALLATION_ID L_INSTALLATION_ID,
    EQ.EQUIPMENT_ID L_EQUIPMENT_ID,
    EQ.DI_VESSEL_NUMBER DSP_DI_VESSEL_NUMBER,
    EQ.EQUIPMENT_CODE DSP_EQUIPMENT_CODE,
    EQ.DI_FULL_LEVEL DSP_DI_FULL_LEVEL,
    EQ.CAPACITY_QUANTITY DSP_CAPACITY_QUANTITY,
    EQ.UNIT_OF_MEASURE DSP_UNIT_OF_MEASURE,
    EQ.DI_WATER_VOLUME DSP_DI_WATER_VOLUME
    FROM CP_EQUIPMENTS EQ, CP_X_EQUIPMENT_TYPES EQU
    WHERE (((:SYSTEM.MODE = 'ENTER-QUERY') AND
    ( /* CG$MDTU_QWC_START VSLHST.EQ */
    (EQ.facility_id = :INSHST.FACILITY_ID and
    EQ.installation_id = :INSHST.INSTALLATION_ID and
    (EQ.installed_date <= sysdate and
    (EQ.removal_date is null or
    EQ.removal_date >= sysdate) and
    (EQ.stop_fill_date is null or
    EQ.stop_fill_date >= sysdate))) /* CG$MDTU_QWC_END VSLHST.EQ */
    )) OR ((NOT :SYSTEM.MODE = 'ENTER-QUERY') AND
    ( /* CG$MDTU_VWC_START VSLHST.EQ */
    (EQ.facility_id = :INSHST.FACILITY_ID and
    EQ.installation_id = :INSHST.INSTALLATION_ID and
    (EQ.installed_date <= sysdate and
    (EQ.removal_date is null or
    EQ.removal_date >= sysdate) and
    (EQ.stop_fill_date is null or
    EQ.stop_fill_date >= sysdate))) /* CG$MDTU_VWC_END VSLHST.EQ */
    AND EQ.EQUIPMENT_CODE = EQU.EQUIPMENT_CODE
    ORDER BY L_EQUIPMENT_CODE) LOVQUERY
    where 1 = 1
    and LOVQUERY.L_FACILITY_ID = VSLHST.EQUIPMENT_FACILITY_ID
    and LOVQUERY.L_INSTALLATION_ID = VSLHST.EQUIPMENT_INSTALLATION_ID
    and LOVQUERY.L_EQUIPMENT_ID = VSLHST.EQUIPMENT_ID) AS DSP_DI_FULL_LEVEL,
    (select DSP_DESCRIPTION
    from (SELECT EQU.EQUIPMENT_CODE L_EQUIPMENT_CODE,
    EQU.DESCRIPTION DSP_DESCRIPTION,
    EQ.FACILITY_ID L_FACILITY_ID,
    EQ.INSTALLATION_ID L_INSTALLATION_ID,
    EQ.EQUIPMENT_ID L_EQUIPMENT_ID,
    EQ.DI_VESSEL_NUMBER DSP_DI_VESSEL_NUMBER,
    EQ.EQUIPMENT_CODE DSP_EQUIPMENT_CODE,
    EQ.DI_FULL_LEVEL DSP_DI_FULL_LEVEL,
    EQ.CAPACITY_QUANTITY DSP_CAPACITY_QUANTITY,
    EQ.UNIT_OF_MEASURE DSP_UNIT_OF_MEASURE,
    EQ.DI_WATER_VOLUME DSP_DI_WATER_VOLUME
    FROM CP_EQUIPMENTS EQ, CP_X_EQUIPMENT_TYPES EQU
    WHERE (((:SYSTEM.MODE = 'ENTER-QUERY') AND
    ( /* CG$MDTU_QWC_START VSLHST.EQ */
    (EQ.facility_id = :INSHST.FACILITY_ID and
    EQ.installation_id = :INSHST.INSTALLATION_ID and
    (EQ.installed_date <= sysdate and
    (EQ.removal_date is null or
    EQ.removal_date >= sysdate) and
    (EQ.stop_fill_date is null or
    EQ.stop_fill_date >= sysdate))) /* CG$MDTU_QWC_END VSLHST.EQ */
    )) OR ((NOT :SYSTEM.MODE = 'ENTER-QUERY') AND
    ( /* CG$MDTU_VWC_START VSLHST.EQ */
    (EQ.facility_id = :INSHST.FACILITY_ID and
    EQ.installation_id = :INSHST.INSTALLATION_ID and
    (EQ.installed_date <= sysdate and
    (EQ.removal_date is null or
    EQ.removal_date >= sysdate) and
    (EQ.stop_fill_date is null or
    EQ.stop_fill_date >= sysdate))) /* CG$MDTU_VWC_END VSLHST.EQ */
    AND EQ.EQUIPMENT_CODE = EQU.EQUIPMENT_CODE
    ORDER BY L_EQUIPMENT_CODE) LOVQUERY
    where 1 = 1
    and LOVQUERY.L_FACILITY_ID = VSLHST.EQUIPMENT_FACILITY_ID
    and LOVQUERY.L_INSTALLATION_ID = VSLHST.EQUIPMENT_INSTALLATION_ID
    and LOVQUERY.L_EQUIPMENT_ID = VSLHST.EQUIPMENT_ID) AS DSP_DESCRIPTION,
    (select DSP_DI_VESSEL_NUMBER
    from (SELECT EQU.EQUIPMENT_CODE L_EQUIPMENT_CODE,
    EQU.DESCRIPTION DSP_DESCRIPTION,
    EQ.FACILITY_ID L_FACILITY_ID,
    EQ.INSTALLATION_ID L_INSTALLATION_ID,
    EQ.EQUIPMENT_ID L_EQUIPMENT_ID,
    EQ.DI_VESSEL_NUMBER DSP_DI_VESSEL_NUMBER,
    EQ.EQUIPMENT_CODE DSP_EQUIPMENT_CODE,
    EQ.DI_FULL_LEVEL DSP_DI_FULL_LEVEL,
    EQ.CAPACITY_QUANTITY DSP_CAPACITY_QUANTITY,
    EQ.UNIT_OF_MEASURE DSP_UNIT_OF_MEASURE,
    EQ.DI_WATER_VOLUME DSP_DI_WATER_VOLUME
    FROM CP_EQUIPMENTS EQ, CP_X_EQUIPMENT_TYPES EQU
    WHERE (((:SYSTEM.MODE = 'ENTER-QUERY') AND
    ( /* CG$MDTU_QWC_START VSLHST.EQ */
    (EQ.facility_id = :INSHST.FACILITY_ID and
    EQ.installation_id = :INSHST.INSTALLATION_ID and
    (EQ.installed_date <= sysdate and
    (EQ.removal_date is null or
    EQ.removal_date >= sysdate) and
    (EQ.stop_fill_date is null or
    EQ.stop_fill_date >= sysdate))) /* CG$MDTU_QWC_END VSLHST.EQ */
    )) OR ((NOT :SYSTEM.MODE = 'ENTER-QUERY') AND
    ( /* CG$MDTU_VWC_START VSLHST.EQ */
    (EQ.facility_id = :INSHST.FACILITY_ID and
    EQ.installation_id = :INSHST.INSTALLATION_ID and
    (EQ.installed_date <= sysdate and
    (EQ.removal_date is null or
    EQ.removal_date >= sysdate) and
    (EQ.stop_fill_date is null or
    EQ.stop_fill_date >= sysdate))) /* CG$MDTU_VWC_END VSLHST.EQ */
    AND EQ.EQUIPMENT_CODE = EQU.EQUIPMENT_CODE
    ORDER BY L_EQUIPMENT_CODE) LOVQUERY
    where 1 = 1
    and LOVQUERY.L_FACILITY_ID = VSLHST.EQUIPMENT_FACILITY_ID
    and LOVQUERY.L_INSTALLATION_ID = VSLHST.EQUIPMENT_INSTALLATION_ID
    and LOVQUERY.L_EQUIPMENT_ID = VSLHST.EQUIPMENT_ID) AS DSP_DI_VESSEL_NUMBER
    FROM DI_VESSEL_HISTORIES VSLHST
    WHERE exists
    (select 1
    from CP_EQUIPMENTS EQ
    where (VSLHST.EQUIPMENT_FACILITY_ID = EQ.FACILITY_ID)
    and (VSLHST.EQUIPMENT_ID = EQ.EQUIPMENT_ID)
    and (VSLHST.EQUIPMENT_INSTALLATION_ID = EQ.INSTALLATION_ID)
    and EQ.FACILITY_ID = :b_INSHST_FACILITY_ID
    and EQ.INSTALLATION_ID = :b_INSHST_INSTALLATION_ID
    and (EQ.INSTALLED_DATE <= sysdate and
    (EQ.REMOVAL_DATE is null or EQ.REMOVAL_DATE >= sysdate) and
    (EQ.STOP_FILL_DATE is null or EQ.STOP_FILL_DATE >= sysdate)))
    Thanks In Advance,
    --Muniraj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

    Muniraj,
    System.mode is forms specific, the Forms2ADFGenerator should convert this part of the SQL statement and put it between brackets.
    For references to block.item, it creates bind variables. Apparently, that did not happen. Can you send the <form_name>_
    extracted.xml file that is located in the root Java source direvtory of the model project to [email protected]?
    Thanks,
    Steven Davelaar,
    JHeadstart Team.

Maybe you are looking for