To JDev Team:  Sorting in oracle.dacf.control.swing.GridControl ?!!

My customers want to get caseInsensytive sorting in
GridControl.
Is it possible and what should I do for it?
Thank you.
[email protected]

Thank you very much for you help. But it was a litle late.
Because yesterday I had found this way and did it myself.
But nevertheless thank you indeed.
And I met a litle problem wneh I tried change this method.
I need define type of column. Because I wont make
Caseinsensitive sort only for string fields.
It looks like simle but I have only ScrollableRowsetAccess and
ResultSetInfo. And they give me type only by index of field.
I try to find index by ColumnName parameter. But its name very
different with name of ScrollableRowsetAccess and ResultSetInfo.
Could you give me advice for solve this problem.
Thank you again.
Yuri

Similar Messages

  • Oracle.dacf.control.swing.GridControl Sorting

    Is there an easy way (as with borland.jbcl.swing.GridControl) to
    add a listener to oracle.dacf.control.swing.GridControl (or call
    a method) such that it will re-sort the table based on the column
    header that a user clicks?
    I think the equivalent property in borland.jbcl.swing.GridControl
    is "sortOnHeaderClick"
    Thanks,
    Matt
    null

    Thank you very much for you help. But it was a litle late.
    Because yesterday I had found this way and did it myself.
    But nevertheless thank you indeed.
    And I met a litle problem wneh I tried change this method.
    I need define type of column. Because I wont make
    Caseinsensitive sort only for string fields.
    It looks like simle but I have only ScrollableRowsetAccess and
    ResultSetInfo. And they give me type only by index of field.
    I try to find index by ColumnName parameter. But its name very
    different with name of ScrollableRowsetAccess and ResultSetInfo.
    Could you give me advice for solve this problem.
    Thank you again.
    Yuri

  • Picklists when using oracle.dacf Textfield or gridcontrols

    Hi
    I was previously using Jdev1.0 and I was able to have a picklist
    Lov using JBCL field controls and gridcontrol.All I had to do
    was to map the picklist editor to the Querydata set and bind it
    to a column.
    Now I am using an infobus gridcontrol.How can I have an piclist
    LOv here.What are the dacf controls that support this.
    How do I bind it to the query in the Rowset info??
    Incase I need to code this explicitly to get it working , can
    you just send in a small example on how to do this..
    Thanks
    Ram
    null

    this can happen for several reasons. Based upon the stacktrace and your comments, it looks like the connection.properties file wasn't placed somewhere in the class path. If that is not the case, please make sure that all of the necessary jars are over on linux and that the classpath is identical to the one used under NT. A good way to check this is to take a look at the command line that is displayed in the message window when the application is run from within JDev.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Heikki Vilkkinen ([email protected]):
    ResultSetInfo: ResultSet XxpsError could not be opened because of problems opening one or more attributes.
    [oracle.dacf.dataset.SessionInfo name=Session1]
    [oracle.dacf.dataset.RowSetInfo name=XxpsError]
    8
    [Loracle.dacf.dataset.ColumnInfo;@7b3babc8
    oracle.dacf.dataset.DataSourceOperationException: ResultSetInfo: ResultSet XxpsError could not be opened because of problems opening one or more attributes.
    at oracle.dacf.dataset.ResultSetInfo.openProducerObject(ResultSetInfo.java, Compiled Code)
    at oracle.dacf.dataset.ProducerObject.open(ProducerObject.java, Compiled Code)
    at oracle.dacf.dataset.RowSetInfo.open(RowSetInfo.java, Compiled Code)
    at oracle.dacf.dataset.SessionInfo.openChildren(SessionInfo.java, Compiled Code)
    at oracle.dacf.dataset.ProducerObject.open(ProducerObject.java, Compiled Code)
    at oracle.dacf.dataset.SessionInfo.publishSession(SessionInfo.java, Compiled Code)
    at abc.fabc.<init>(fabc.java, Compiled Code)
    at abc.abc.<init>(abc.java, Compiled Code)
    at abc.abc.main(abc.java, Compiled Code)
    What is the reason for this phenomena?
    Application developed using JDeveloper 3.1
    data form wizard works under NT well but
    when I copy classes and xml-files to Linux
    and run the application it shows standard
    login dialog but after login it fails
    to execute query (rowsetinfo)
    <HR></BLOCKQUOTE>
    null

  • JDev Team - how to add a Data Aware Control to grid control

    The default editor for GridControl cells is a data-aware TextField, but I want to use a ComboBoxControl. If I use the setEditor() method of the TableColumn, the cell is edited using a combo, but there are problems:
    1. Navigated events do not fire when focus is moved in or out of the cell and
    2. When focus moves to another cell in the same column, the cell losing focus is blanked.
    How can I setup/attach a custom editor based on a Data Aware Control to avoid these problems?
    The code I am using
    1. declares combobox controls to be used with grid as member variables of my frame class
    ComboBoxControl comboBoxSrcSystem = new ComboBoxControl();
    ComboBoxControl comboBoxSrcSysVersion = new ComboBoxControl();
    ComboBoxControl comboBoxSrcTable = new ComboBoxControl();
    ComboBoxControl comboBoxSrcColumn = new ComboBoxControl();
    2. sets up the combo in the jbInit method of the frame class :
    // for gridControlMapRuleSrcCols column SystemName
    comboBoxSrcSystem.setListKeyDataItemName("infobus:/oracle/sessionMapTool/rowSetSystemCombo/SystemName");
    comboBoxSrcSystem.setListValueDataItemName("infobus:/oracle/sessionMapTool/rowSetSystemCombo/SystemName");
    comboBoxSrcSystem.setDataItemNameForUpdate("infobus:/oracle/sessionMapTool/rowSetMapRuleSrcCols/SystemName");
    3. In the frame constructor calls a method to add combos to the grid
    addMapSrcColGridCombos();
    which is defined as
    private void addMapSrcColGridCombos() {
    // add combos to gridControlMapRuleSrcCols grid
    JTable mapSrcColTable = gridControlMapRuleSrcCols.getTable(); // access the JTable
    addComboEditor( mapSrcColTable, "SystemName", comboBoxSrcSystem );
    addComboEditor( mapSrcColTable, "SystemVersion", comboBoxSrcSysVersion );
    addComboEditor( mapSrcColTable, "TableName", comboBoxSrcTable );
    addComboEditor( mapSrcColTable, "ColumnName", comboBoxSrcColumn );
    4. It makes use of the following method:
    private void addComboEditor( JTable table, String colName, ComboBoxControl combo )
    TableColumn col = table.getColumn(colName);
    col.setCellEditor( new DefaultCellEditor( combo ) );
    null

    Given the usual deafening silence from the JDev team, I'll post my resolution of the problem.
    I could not find a way of creating an editor directly from a ComboBoxControl which would behave properly in a GridControl. However, JComboBox does work, so I
    1. add a Navigated listener to the GridControl
    2. in the navigatedInColumn event handler I create a JComboBox from a ScrollableRowsetAccess and
    3. use it to create a custom CellEditor for the target column.
    (I also remove the editor in the currently focused column in the navigatedOutColumn, but I don't think this is strictly necessary.)
    This solution also works after a Rollback, when the columns of the gridcontrol are reset/rebuilt, and handles dynamic combos that are dependent on the current row values.
    Unfortunately, unlike ComboBoxControl JComboBox does not allow for a key/value mapping, so the combo editor can only display the values to selected from, not a user-friendly label.
    I attach some code snippets to illustrate the solution:
    1. declare member variables
    // declarations for Custom Grid Editors
    NavigationManager navMgr = NavigationManager.getNavigationManager();
    static String SYS_NAME_COL_NAME = "SystemName";
    static String SYS_VER_COL_NAME = "SystemVersion";
    static String TAB_NAME_COL_NAME = "TableName";
    static String COL_NAME_COL_NAME = "ColumnName";
    RowSetInfo rowSetSystemCombo = new RowSetInfo();
    AttributeInfo SystemNamerowSetSystemCombo = new AttributeInfo();
    ScrollableRowsetAccess sysNameComboRS = (ScrollableRowsetAccess)rowSetSystemCombo.getRowsetAccess();;
    static ImmediateAccess sysNameComboIA = SystemNamerowSetSystemCombo.getImmediateAccess();
    static RowSetInfo rowSetMapTgtColTableCombo = new RowSetInfo();
    static AttributeInfo TableNamerowSetMapTgtColTableCombo = new AttributeInfo(java.sql.Types.VARCHAR);
    static ScrollableRowsetAccess tgtTabNameComboRS = (ScrollableRowsetAccess)rowSetMapTgtColTableCombo.getRowsetAccess();;
    static ImmediateAccess tgtTabNameComboIA = TableNamerowSetMapTgtColTableCombo.getImmediateAccess();
    2. in jbInit() set up the combo rowsets (use Design mode)
    SystemNamerowSetSystemCombo.setName("SystemName");
    rowSetSystemCombo.setAttributeInfo( new AttributeInfo[] {
    SystemNamerowSetSystemCombo} );
    rowSetSystemCombo.setQueryInfo(new QueryViewInfo(
    "SystemComboView",
    rowSetSystemCombo.setSession(sessionMapTool);
    rowSetSystemCombo.setName("rowSetSystemCombo");
    SystemVersionrowSetMapSrcColSysVersionCombo.setName("SystemVersion");
    rowSetMapSrcColSysVersionCombo.setAttributeInfo( new AttributeInfo[] {
    SystemVersionrowSetMapSrcColSysVersionCombo} );
    rowSetMapSrcColSysVersionCombo.setQueryInfo(new QueryViewInfo(
    "SourceSystemVersionComboView",
    "SYSTEM_VERSION DESC"));
    rowSetMapSrcColSysVersionCombo.setMasterLinkInfo
    (new ViewLinkInfo(rowSetMapRuleSrcCols,"MapTool.MapRuleSrcColSysVersionComboLink"));
    rowSetMapSrcColSysVersionCombo.setSession(sessionMapTool);
    rowSetMapSrcColSysVersionCombo.setName("rowSetMapSrcColSysVersionCombo");
    TableNamerowSetMapSrcColTableCombo.setName("TableName");
    rowSetMapSrcColTableCombo.setAttributeInfo( new AttributeInfo[] {
    TableNamerowSetMapSrcColTableCombo} );
    rowSetMapSrcColTableCombo.setQueryInfo(new QueryViewInfo(
    "SourceTableComboView",
    "TABLE_NAME"));
    rowSetMapSrcColTableCombo.setMasterLinkInfo
    (new ViewLinkInfo(rowSetMapRuleSrcCols,"MapTool.MapRuleSrcColTableComboLink"));
    rowSetMapSrcColTableCombo.setSession(sessionMapTool);
    rowSetMapSrcColTableCombo.setName("rowSetMapSrcColTableCombo");
    ColumnNamerowSetMapTgtColColumnCombo.setName("ColumnName");
    rowSetMapTgtColColumnCombo.setAttributeInfo( new AttributeInfo[] {
    ColumnNamerowSetMapTgtColColumnCombo} );
    rowSetMapTgtColColumnCombo.setQueryInfo(new QueryViewInfo(
    "TargetColumnComboView",
    "column_name"));
    rowSetMapTgtColColumnCombo.setMasterLinkInfo
    (new ViewLinkInfo(rowSetMapRuleTgtCols,"MapTool.MapRuleTgtColColumnLink"));
    rowSetMapTgtColColumnCombo.setSession(sessionMapTool);
    rowSetMapTgtColColumnCombo.setName("rowSetMapTgtColColumnCombo");
    3. add methods to handle the Navigated events (use Design mode to ensure add listener code
    is generated)
    void gridControlMapRuleSrcCols_navigatedInColumn(NavigatedEvent e) {
    debug("gridControlMapRuleSrcCols_navigatedInColumn");
    show_nav_info();
    String dataItemName = navMgr.getTargetDataItemName();
    String columnName = dataItemName.substring(dataItemName.lastIndexOf("/")+1);
    JTable table = gridControlMapRuleSrcCols.getTable();
    if ( SYS_NAME_COL_NAME.equals( columnName)) {
    addComboEditor( table, columnName, dbMapTool.sysNameComboRS, dbMapTool.sysNameComboIA );
    else if ( SYS_VER_COL_NAME.equals( columnName)) {
    addComboEditor( table, columnName, dbMapTool.srcSysVerComboRS, dbMapTool.srcSysVerComboIA );
    else if ( TAB_NAME_COL_NAME.equals( columnName)) {
    addComboEditor( table, columnName, dbMapTool.srcTabNameComboRS, dbMapTool.srcTabNameComboIA );
    else if ( COL_NAME_COL_NAME.equals( columnName)) {
    addComboEditor( table, columnName, dbMapTool.srcColNameComboRS, dbMapTool.srcColNameComboIA );
    void addComboEditor
    ( JTable table
    , String colName
    , ScrollableRowsetAccess rs
    , ImmediateAccess ia
    // note must get TableColumn afresh each time because when grid is reset
    // on rollback the Table ColumnModel is rebuilt
    TableColumn tc = table.getColumn(colName);
    debug("add JComboBox as editor");
    Vector v = new Vector();
    try {
    // Retrieve and store values for JComboBox using the InfoBus API.
    boolean moreRows = rs.first();
    while (moreRows) {
    // stores value in vector
    v.addElement(new String(ia.getValueAsString()));
    moreRows = rs.next();
    // make column Cell Editor a JComboBox with retrieved values
    tc.setCellEditor(new DefaultCellEditor(new JComboBox(v)));
    catch (Exception e0) {
    e0.printStackTrace();
    void show_nav_info() {
    debug( "Focused Data Item = " + navMgr.getFocusedDataItemName() );
    debug( "Target Data Item = " + navMgr.getTargetDataItemName() );
    void debug(String s)
    System.out.println(s);
    void gridControlMapRuleSrcCols_navigatedOutColumn(NavigatedEvent e) {
    debug("gridControlMapRuleSrcCols_navigatedOutColumn");
    show_nav_info();
    String dataItemName = navMgr.getFocusedDataItemName();
    String columnName = dataItemName.substring(dataItemName.lastIndexOf("/")+1);
    JTable table = gridControlMapRuleSrcCols.getTable();
    if ( SYS_NAME_COL_NAME.equals( columnName)) {
    removeComboEditor(table, columnName);
    else if ( SYS_VER_COL_NAME.equals( columnName)) {
    removeComboEditor( table, columnName );
    else if ( TAB_NAME_COL_NAME.equals( columnName)) {
    removeComboEditor( table, columnName );
    else if ( COL_NAME_COL_NAME.equals( columnName)) {
    removeComboEditor( table, columnName );
    void removeComboEditor ( JTable table, String colName ) {
    debug("remove JComboBox as editor");
    TableColumn tc = table.getColumn(colName);
    tc.setCellEditor(null);
    4. Note that when navigated event code is added through the designer, jbInit() is
    amended to add a Navigated Listener to the grid
    gridControlMapRuleSrcCols.addNavigatedListener(new oracle.dacf.control.NavigatedAdapter() {
    public void navigatedInColumn(NavigatedEvent e) {
    gridControlMapRuleSrcCols_navigatedInColumn(e);
    public void navigatedOutColumn(NavigatedEvent e) {
    gridControlMapRuleSrcCols_navigatedOutColumn(e);
    null

  • FocusLost event/navigatedOutColumn to non-DACF controls

    In the textAreaControl source I see:
    // Focus Listener implementation
    * This method is an implementaion side effect
    public void focusLost(FocusEvent event)
    When I do a focus lost event off the property panel in Designer... and add code to simply do a System.out.println("Focus Lost") on the control... nothing happens when I move to another control and the textareacontrol lost focus.
    The correct approach seems to be use the NavigatedOutColumn event which does fire. ( hurrah! )...
    BUT.... as I had a suspicion... if I enter into a DACF control, and then click in a NON-DACF control ( in this case, a secondary plain jtextfield password confirmation field )... neither FocusLost nor NavigatedOutColumn fires.
    It sorta makes sense, because we haven't navigated into a new Column. ( Is this a terminology conflict/level mix problem? It seems to be relating Column to a rowSetInfo AttributeInfo / EO/VO attribute?
    Note that, at least in my case, there are PLENTY of non DACF controls. Particularly JButtons.
    As mentioned before, I avoided ButtonControls because I had no DataItemName to associate with 'em... which seemed to cause grief in other places ( in my memory using 3.O ). I actually went back and changed all the ButtonControls I had to JButtons.
    This puts me into a rather interesting quandary... or is it safe in 3.2/JRE1.3 to use ButtonControls with no property set for the DataItemName()?
    TIA

    You are being tripped up by two things. One is a bug and the other is a difference between the 3.2 and 9i (aka 5.0) versions of the NavigationManager. The ComponentNavigationMonitor is OK though. Both of these can be worked around using the ComponentNavigationManager though the resultant code will not be compatible with the code released in the next version of JDeveloper. The solution is to rewrite the focusGained() method and write the new method _applyEdits(). The rewritten and new methods are below in a new version of the class. Notice the package name change; it is now in a new package called oracle.dacf.unsupported. This way, you can just change the package name when the next version is released:
    <code>
    // oracle/dacf/unsupported/ComponentNavigationMonitor.java
    // Oracle JDeveloper
    // Copyright (c) 2001 by Oracle Corporation
    // All rights reserved.
    package oracle.dacf.unsupported;
    // imports
    import java.awt.Component;
    import java.awt.event.FocusAdapter;
    import java.awt.event.FocusEvent;
    import java.awt.event.FocusListener;
    import javax.swing.SwingUtilities;
    import oracle.dacf.control.ApplyEditsListener;
    import oracle.dacf.control.ApplyEditsValidationException;
    import oracle.dacf.control.Control;
    import oracle.dacf.control.NavigationManager;
    ** The ComponentNavigationMonitor allows a Component, AWT or Swing,
    ** to be used in an application and still have the DAC navigation and
    ** validation event framework generate the proper events at the
    ** appropriate times. Normally, non-Control components can not
    ** participate in the DAC navigation and validation event framework
    ** because they don't have the mechanisms to notify the framework that
    ** the focus has moved.
    ** This class is implemented as a singleton and could be hooked into every
    ** non-Control Component that is displayed on the screen. It should not be
    ** attached to DAC Controls because these classes already contain the
    ** functionality contained in this class. Attaching this class to a DAC
    ** Control will minimally result in double navigation and validation
    ** eventing with the resultant performance degradation. Redundant
    ** navigation and validation could also result in anomalous application
    ** behavior.
    ** The DAC design-time and runtime framework does not automatically
    ** register non-Controls with the ComponentNavigationMonitor because of
    ** the ambiguity surrounding when this should be done. If the components
    ** are constructed using a Factory design pattern, then the factory would
    ** be the optimal place to attach this listener. If your application
    ** doesn't use this approach then you will have to individually hook each
    ** component. (Sorry, but there is no way around this fact.) You might
    ** try something like what the following code fragment illustrates in the
    ** method that instantiates the component:
    ** <blockquote>
    ** <code>
    ** TextField dateWidget =
    ** new TextField((new Date()).toLocaleString());
    ** ComponentNavigationMonitor.observe(dateWidget);
    ** </code>
    ** </blockquote>
    ** For example, if JDeveloper was used to generate code, via either the
    ** DAC wizards or the visual designer, then you would place this code in
    ** the jbInit() method of the panel or frame.
    ** @author Donald King
    public class ComponentNavigationMonitor
    extends FocusAdapter
    private NavigationManager nm;
    private static ComponentNavigationMonitor monitor;
    private static Object observeGate = new Object();
    private static final boolean _DEBUG = true;
    private ComponentNavigationMonitor()
    } // ComponentNavigationMonitor
    ** Responds to the gaining of focus by a component.
    ** This method is responsible for causing validation to be performed and
    ** restoring forcus to the proper control if validation fails.
    public void focusGained(FocusEvent evt)
    Control ctrl;
    if (nm == null)
    nm = NavigationManager.getNavigationManager();
    ctrl = nm.getFocusedControl();
    // the getChangeLevel() parameters are reversed to workaround
    // bug 1678351; fixed for 9i (aka 5.0)
    if (ctrl != null &&
    !_applyEdits(ctrl) &&
    !nm.validateFocusedControl(nm.getChangeLevel(null,ctrl)))
    Component c = ctrl.getComponent();
    // Paranoia is a good thing; the following is expensive, only do
    // it if we must
    if (c != null)
    SwingUtilities.invokeLater(new DelayedFocus(c));
    else
    // move the NavigationManager into the proper state so that it
    // can properly respond to the next control that gains focus
    nm.validateFocusChange(null);
    ** This functionality is embedded in the 9i (aka 5.0) version of
    ** NavigationManager.validateFocusedControl(int changeLevel)
    private boolean _applyEdits(Control ctrl)
    boolean ok = true;
    if (ctrl instanceof ApplyEditsListener)
    try
    ((ApplyEditsListener)ctrl).applyEdits();
    catch(ApplyEditsValidationException aeve)
    ok = false;
    return(ok);
    ** Registers the ComponentNavigationMonitor as a FocusListener.
    public static void observe(Component c)
    synchronized(observeGate)
    if (monitor == null)
    monitor = new ComponentNavigationMonitor();
    c.addFocusListener(monitor);
    ** Unregisters the ComponentNavigationMonitor as a FocusListener.
    public static void unobserve(Component c)
    synchronized(observeGate)
    if (monitor == null)
    monitor = new ComponentNavigationMonitor();
    c.removeFocusListener(monitor);
    private class DelayedFocus
    implements Runnable
    private Component pending;
    DelayedFocus(Component c)
    pending = c;
    public void run()
    if (pending != null)
    pending.requestFocus();
    private void _debug(String s)
    if (_DEBUG)
    System.out.println("ComponentNavigationMonitor: " + s);
    } // _debug
    } // ComponentNavigationMonitor
    // oracle/dacf/unsupported/ComponentNavigationMonitor.java
    // Oracle JDeveloper
    // Copyright (c) 2001 by Oracle Corporation
    // All rights reserved.
    </code>

  • To JDev Team : SQL generated, Struts, BC4J Admin, ...

    Hi,
    I've followed the Tutorial 'Generating a Struts-based JSP Application for an
    Application Module', where I'm working with only one table.
    When I run the 'main.html', on the left side ( navigator ), there are 'Browse' and 'Query' options.
    Every time I click on 'Browse', I always have this error :
    Error Message: JBO-26044: Error while getting estimated row count for view object TimesheetView1, statement
    SELECT count(1) FROM (SELECT Timesheet.ts_id, Timesheet.ts_user, Timesheet.ts_code, Timesheet.ts_date, Timesheet.ts_hour
    FROM timesheet Timesheet) ESTCOUNT
    My config are :
    * Win2K
    * JAVA_HOME set to j2sdk1.4.1_01
    * mySQL 3.23.49 with JDBC driver mysql-connector-java-2.0.14-bin.jar
    * I use ultraDevHack=true as parameter within the URL
    Even with 'ultraDevHack=true' parameter, the subselect still not working.
    I've seen in the forum that JDev Team have tried with that parameter, and it worked,
    but it didn't mention with which version of mySQL and which JDBC driver.
    I would like to modify the above SQL into a simpler one 'SELECT COUNT(*) FROM timesheet'.
    Anybody know how ?
    The View Object Wizard didn't help me at all for the above SQL.
    In fact I would like to fully controled, modified, or cuztomised all SQL generated.
    Back to main.html, the header contains two buttons 'BC4J Admin' and 'Help'.
    When I click on 'BC4J Admin', I have this :
    500 Internal Server Error
    OracleJSP: oracle.jsp.provider.JspCompileException:
    Errors compiling:C:\usr\J2EE\JDEV\system9.0.3.1035\oc4j-config\application-deployments\bc4j\webapp\persistence\_pages\_wm\_bc4j.java
    error: Invalid class file format in C:\j2sdk1.4.1_01\jre\lib\rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand.
    C:\usr\J2EE\JDEV\system9.0.3.1035\oc4j-config\application-deployments\bc4j\webapp\persistence\_pages\_wm\_bc4j.java:0: Class java.lang.Object not found in class com.orionserver.http.OrionHttpJspPage.
    package _wm;
    ^
    2 errors
    Why is that ?
    Out of scope, sometimes it's very slow accessing this forum ( 'Connection timed out' or 'The specified network name is no longer available' ...).
    Any of you have the same problem ?
    Is it possible to put some criterias within the Search, i.e. Sort by Date ?
    Any help would be appreciated.

    Hi,
    I've followed the Tutorial 'Generating a Struts-based JSP Application for an
    Application Module', where I'm working with only one table.
    When I run the 'main.html', on the left side ( navigator ), there are 'Browse' and 'Query' options.
    Every time I click on 'Browse', I always have this error :
    Error Message: JBO-26044: Error while getting estimated row count for view object TimesheetView1, statement
    SELECT count(1) FROM (SELECT Timesheet.ts_id, Timesheet.ts_user, Timesheet.ts_code, Timesheet.ts_date, Timesheet.ts_hour
    FROM timesheet Timesheet) ESTCOUNT
    My config are :
    * Win2K
    * JAVA_HOME set to j2sdk1.4.1_01
    * mySQL 3.23.49 with JDBC driver mysql-connector-java-2.0.14-bin.jar
    * I use ultraDevHack=true as parameter within the URL
    Even with 'ultraDevHack=true' parameter, the subselect still not working.
    I've seen in the forum that JDev Team have tried with that parameter, and it worked,
    but it didn't mention with which version of mySQL and which JDBC driver.
    I would like to modify the above SQL into a simpler one 'SELECT COUNT(*) FROM timesheet'.
    Anybody know how ?
    The View Object Wizard didn't help me at all for the above SQL.
    In fact I would like to fully controled, modified, or cuztomised all SQL generated.
    Back to main.html, the header contains two buttons 'BC4J Admin' and 'Help'.
    When I click on 'BC4J Admin', I have this :
    500 Internal Server Error
    OracleJSP: oracle.jsp.provider.JspCompileException:
    Errors compiling:C:\usr\J2EE\JDEV\system9.0.3.1035\oc4j-config\application-deployments\bc4j\webapp\persistence\_pages\_wm\_bc4j.java
    error: Invalid class file format in C:\j2sdk1.4.1_01\jre\lib\rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand.
    C:\usr\J2EE\JDEV\system9.0.3.1035\oc4j-config\application-deployments\bc4j\webapp\persistence\_pages\_wm\_bc4j.java:0: Class java.lang.Object not found in class com.orionserver.http.OrionHttpJspPage.
    package _wm;
    ^
    2 errors
    Why is that ?
    Out of scope, sometimes it's very slow accessing this forum ( 'Connection timed out' or 'The specified network name is no longer available' ...).
    Any of you have the same problem ?
    Is it possible to put some criterias within the Search, i.e. Sort by Date ?
    Any help would be appreciated.

  • Need Help from JDev Team

    Hi,
    I posted a question here early yesterday and I haven't received any kind of reply yet!!! I understand if someone from this forum cannot help me... but I need the Jdev team to respond to me ASAP!!!!
    I'm using JDev 3.2, trying to use the Source Control feature to connect to Repository 6i. I can connect without any trouble and I can see the work area and navigate through the folders (that were created by the owner), however when I try to click on any of the 'files' branches of the folder/file tree - I get this error.
    ckron61.exe has generated errors and will be closed by Windows. You will need to restart the program. An error log is being created.
    There are 3 of us who are trying to connect, one can do it successfully... two of us cannot. I also tried to connect and access those files on another machine and it worked as well.
    All of our systems have been imaged the exact same way.
    What could the problem be...
    I appreciate your help.... thanks.

    Hi Jolene,
    I would recommend upgrading to the latest release of Repository, since it contains many bug fixes. I'm afraid I'm not sure what is causing your specific problem.
    It's also worth making sure your OS is patched up to the latest service pack.
    Oracle9i JDeveloper's support for Oracle SCM (aka Repository) is far more comprehensive than 3.2, so this is a good upgrade to make as well :)
    About UIX, the best thing is probably to post a new message to the 9i JDeveloper forum. It's not an area I'm overly familiar with, but I'm sure someone else on that forum will be able to help you out.
    Thanks,
    Brian
    JDeveloper Team

  • JDev web resources besides OTN & JDev team blogs?

    Gang,
    Besides OTN, the OTN forums and the Oracle JDeveloper development team blogs, has anybody found any other JDeveloper resources on the 'Net?
    I know Paul Dorsey, part author of the "Oracle JDeveloper 10g Handbook" has a website and a few presentations somewhere that was okay..... but are there any other rich sites I'm not visiting?... Or is Oracle it?
    It would be nice to know what others have found.
    Cheerio,
    CM.

    Shay, I'd like to stick my foot in (my mouth?) too with my opinion.
    (Apologies but I didn’t have a lot of time to draft this message so please ignore any typos and poor grammar)
    Let me start by saying I'm an Oracle programmer with 10 years experience, having coded using Designer, (-J)Headstart, Forms, Reports, database modelling, PLSQL everywhere you can possible stick it.... etc etc etc. I infrequently teach week courses on Forms, SQL, PLSQL etc. My point being is I'm no monkey in appreciating technology. I’m not brilliant but you can call me Mr Average Programmer – if it makes sense I’ll work out how to use it.
    I'm also on the Australian Oracle User Group committee, have been for several years, have meet and talked to several other senior consultants who have used JDeveloper who have extensive Oracle experience.
    And the general consensus is that the JDeveloper documentation is of poor quality.
    Now I’d like to substantiate my claims by giving evidence rather than just expressing an opinion. For a minor documentation bug I’ve recently raised, see TAR 4212035.995 bug 4058863. I’ve found more documentation errors, but after a while I always become worn down through the tedious TAR process, and just prey it will be improved in the next release.
    This bug, as you’d appreciate is a rather minor issue, but boy do I waste a lot of time working out how to use JDeveloper without the correct and complete documentation. I spend time having to search the OTN examples, forums etc, then posting to the Forums and Oracle Support for help. So much for “productivity” with choice.
    As another example, do a search in JDeveloper for “uixState”. Most UIX LOVs are useless without it in the partialtargets element….. but it’s another undocumented feature that I only found out about via the forums. Another, the javaType field within the UIX <invoke> tag: exactly what data types are allowed? If I’m not mistaken (I might be, I’m still learning my way around Java), “string” is not a valid Java type…. isn’t it “String”? See my confusion, and the documentation doesn’t say much at all. Does this mean if I return a “Number” I should use “number”.
    Would you like to get away from UIX documentation errors? Well try bringing up the help for the “Pooling and Scalability” tab, under the Configurations sub-menu option for an Application Module (the help page is entitled “Configuration Manager – Pooling and Scalability”). See all those “text” comments and “to be included in future release” comments. Not much use are they?
    Moving on to your question about “how-to”s we’d like to see is a relevant one. I can only talk from my personal experience, but what I’d like to see relevant to my current project is (or would have been useful in the past):
    1)     UIX lov – returning multiple fields.
    2)     UIX lov – using lovUpdate event with multiple LOVs on the screen.
    3)     UIX lov – a complete example that allows the user to “type” in a value to a <messageLovInput>, validates the entry against a database table via some exposed AM/VO method, clears and displays the LOV if the user enters an invalid value.     
    4)     UIX trees – proper discussion on setting up hierarchical VOs and associations.
    5)     UIX trees – example of programming insert and delete node functionality, with the example showing how to write the values through to the database.
    6)     UIX hgrids – example derived from database, where the user can insert/delete values through to the database.
    You’ll notice I’m focusing on the UIX technology. Simply put it’s what we’re using at my current site.
    2 other issues I’d like to point out too though. Notice the focus on LOVs? Well I’m an ex-Forms programmer who knows the power of the Forms LOV control. I’ve been confused, annoyed then resigned to the fact that you’ve got a hell of a lot to do yourself with JDeveloper LOVs, unlike Oracle Forms LOVs where so much functionality is built into the control. In return you might argue “this is JDeveloper Chris, not Oracle Forms”. You’re right of course, and I can accept that I have to learn the JDev way of doing things. But, and “big” but here, there are no detailed how-tos comparing the features of Oracle Forms LOVs and how to do the same thing in JDeveloper. And I mean complete examples.... which check values against the database, pop-up the LOV as described above list.
    So in your how-tos, try to think about what Forms programmers can do, and show how you would do it in JDeveloper. We need more than the simple examples because we’re learning your tool, we’re not experts in JDeveloper, and we can’t read your mind when you give (what I consider to be) overly simple examples where the author assumes given a little headstart that everyone else will be able to run with it. It took me ages to work out how to return multiple fields from a LOV (and my implementation probably s*cks).... call me stupid, but a complete how-to would have saved me lots of time.... and other people too (ie. Forms programmers) because I see the same questions appear on OTN again and again.
    To reiterate, think about the productive functionality Forms provides you, and provide how-tos on what to do in JDeveloper. Simple really.
    The 2nd point I’d like to make is you need to give complete examples. To give an example of a poor-example, recently Steven Muench (or was it Jones Jacob, sorry I forget) published a ‘how-to’ on his blog on populating a UIX tree. What was missing? Firstly documentation (though a promise of some in the future was given). Secondly how to allow the user to add/delete entries from the tree. Thirdly how to add/delete those entries from the underlying table. Fourthly dealing with updating the underlying iterators and web page given the users actions. And so on....
    I can hear you asking “what? You want us to do everything for you!?” No, but more complete examples would be great. Without a doubt in my opinion, the best example of this would be the “Building Oracle ADF Applications: A Comprehensive Workshop” tutorial. Obviously a lot of effort was put into that tutorial, but if all tutorials were written with this level of detail, I don’t think I’d be writing this post, the JDeveloper team wouldn’t be spending so much time answering queries on the Forums, and the Oracle Support team could spend more time doing training.
    Hear me out on my next comment – I’m not Oracle bashing! Just making a point.
    With regards your comments about writing blogs, and increasing the JDeveloper web-community, thinking about it logically I just can’t see it happening. The basic problem is you’re “Oracle Corporation” (aka the Other Microsoft). You’re not an Open Source **community** group. So people don’t have much reason to write blogs to the benefit of essentially Oracle.... unless they can make money out of it. They don’t get the kudos or just the good vibes of writing for the effort of everybody (essentially why Open Source exists – for the benefit of all – communism, power to the people, etc). This leads onto my second point. The people who work with Oracle tools, in complex-detail, besides Oracle’s own staff, are being paid far too much money working with your tools to waste time working on blogs. I’d love to write one, but time evades me and I’d rather make money out of the exercise. (I gotta feed my kids somehow - or maybe have some, either one ;)
    This puts you, the JDeveloper team in an interesting position. I know you’re really keen to get your tool used outside Oracle. Why do I think this? Basically your implementation of the Struts diagram tool and huge focus on JSF (aka ADF Faces) – I haven’t seen the other IDEs provide such functionality yet and I think you’ve tried very hard to provide these new features to beat the competition. But, unlike the Open Source efforts like Eclipse and Net Beans (etc), as I just mentioned, I don’t think you’ll ever get much support from the JDeveloper community in assisting your documentation efforts with this tool. So what have you got to do to increase market share besides great new features like the Struts diagrammer??....
    Well I hope’s it’s obvious after typing all of this......as there is little activity in the Internet regarding your product and how to use it besides OTN, and given complaints about your poor level of documentation, this means you should focus heavily on documentation in each release. Make sure it’s up to date. Make sure it’s complete. Review it all each time. Make plans for how it could be improved and expanded.... don’t just focus on the tool.
    I think I can hear you screaming “but we do you bl**dy idi*t!” But I’ll answer in turn.... the perception is you don’t, and the evidence in front of me shows you haven’t..... so my conclusion is I think valid.
    Also let me place a warning that the risk is if you don’t provide better documentation, my peer-consultants will not recommend JDeveloper. I know of 2 specifically who will have a very hard look at JDeveloper a 2nd time before recommending it to a client, because of their experience with the tool – in particular there frustration with the poor documentation. If they’re making such decisions, I bet others are too.
    With all the above in mind please note my goal of this whole post, and I know I’ve posted a lot, is not to be exceptionally critical of JDeveloper and the JDeveloper team. However I thought it was worthwhile writing a comprehensive message to the forum for you to look at... rather than the 1 or 2 liners you usually get.
    Gee, I should have started a blog and posted this entry I think.
    I’ll finish this post by saying that I’m thankful that the JDev team monitors this forum and puts in a good effort in supporting us, your clients, saving us a TAR or 2 and probably going bald.
    Regards,
    CM.
    PS. If you’d like to contact me for further information, you can find my current email address associated with the TAR mentioned above.
    Also please note the “standard disclaimer”, that none of the above is my employer’s or clients’ opinions; it is all totally of my own opinion.

  • TO JDEV TEAM: JBO-28020/JBO-28006 ERRORS

    Hi,
    I deploy a BC4J application (made with Jdev official) on an OC4J container 9.0.2. the application use a 9i data base.
    frequently, when we try to insert or update rows in viewObject, we have the following error :
    Application Error
    Return
    Error Message: JBO-28020: Erreur de passivation pour l'objet collection GrandeurView, ID de noeud 45
    Error Message: JBO-28006: Criation impossible de la table de persistance PS_Bdcorrel_BC4JModule_1
    oracle.jbo.PCollException: JBO-28020: Erreur de passivation pour l'objet collection GrandeurView, ID de noeud 45
    <>
    ## Detail 0 ##
    oracle.jbo.PCollException: JBO-28006: Criation impossible de la table de persistance PS_Bdcorrel_BC4JModule_1
    <>
    ## Detail 0 ##
    java.sql.SQLException: ORA-00955: Ce nom d'objet existe dij`
    <>
    This is a pressing issue, and I'd need an answer asap. Could anyone from the JDEV team please help me on this?
    Thanks a lot!

    Stephane:
    Could you send me the entire stack trace?
    It would also help if you can translate some of the "important" exception messages into English for me (sorry).
    Thanks.
    Sung

  • Jdev Team - Frustrated with Simple UIX-XML test case

    Why can't I get a simple UIX-XML test case to run? Better still why can't I get a response as to why it won't run? This is my second attempt at a post as the other was just left hanging. Iwas asked for more info, I provided it and that ended that.
    Again, I created a workspace. Used the scott schema and created a project with a set of VO's (and took the ALL defaults). I have created a UIX-JSP and BC4J-JSP projects that both run fine (taking all the defaults). In that same workspace without any modifications to the VO's I created a UIX-XML project. The main menu runs fine. None of the forms will run. I get the following error if I choose ANY form from the menu or I get the same error if I just run any form from Jdeveloper (except main.uix of course):
    Servlet error: Renderer failed: java.lang.ArrayIndexOutOfBoundsException: -10
    What is happening? Why cant I get this to run. Is this a failed technology? I can't seem to find any working UIX samples.
    TIA,
    Ed.
    PS. A footnote: * It seems if you don't get an answer from the Jdev team inside of two days your post is toast (unless it's a rant in which case everyone seems to jump on the band wagon). :-) :-) :-) ;-)

    Hmmmmm...... did I mention I was on Internet Explorer 6.0.2600.0000 ? Probably does not matter.
    Also, although I loaded the full 9i Developer suite, I also loaded (in a seperate directory), Sun's J2DKSE 1.3.1_03 and J2DKEE 1.3.1 and have the following local environment variables set:
    JAVA_HOME = d:\java\j2sdk
    JDK_HOME = d:\java\j2sdk
    J2EE_HOME = d:\java\j2sdkee
    JDEV_HOME = d:\oracle\9iDS\jdev
    Are any of these redundant or are they clobbering something for UIX-XML?
    TIA,
    Ed.

  • Happy Christmas and thank you for JDEV Team for great job this year

    We got one of the best development from Oracle with JDEV and a TP3 for Christmas ... even i will go skiing too and may be sailing a little bit depending on weather, i will for sure go in depth into TP3 these holidays.
    Thank you
    Have nice holidays
    Greetings

    Thanks alot for this gift Oracle Jdev Team!
    Greetings from Spain!
    Westh

  • To thank from JDev team.

    Thanks all JDev team, which improved
    findDialog to accept Date conditions in 3.2.
    (It was not acceptable in 3.1)
    I ever trust and appreciate and your effort.
    Ali

    Make a connection named "Oracle" in JDeveloper and when you deploy "jdbc/OracleDS" will be there. We make 1 DS per each JDeveloper connection defined.
    The formula is "jdbc/" + ConnectionName + "DS"
    (same applies to hrDS)
    Hope this helps,
    Rob

  • New to Oracle grid control

    Hi,
    I'm a newbies in Oralce grid control. next month I will be start my new job which will involved in deploy and administer oracle grid control release 3.
    I try to performed some setup just to have an initial idea how the grid control works. I have an Oracle RAC database (10.2.0.3) running on RHEL 4, 2 nodes.
    Is grid control come together with the Oracle database software installation? or I have to download separately?
    How is the grid control installation should be in place? Installation on the same database server or separate server? If both are allow which is the common approach?
    Since my RAC database running in Linux, is it a must to have the grid control for Linux version? can I install into a windows server and managing all linux databases? Which should be the common approach?
    Appreciate of any feedback given.
    Many Thanks
    best regards,
    chong

    Gridcontrol is separate software,don't confuse it with standalone DBConsole,which is part of a database creation. The latter can serve this particular database only.
    If you have the resources, install gridcontrol separately. It needs some resources and may interfere with the monitored database(s).
    You can install gridcontrol (more exactly the management services) everywhere, on Windows,Linux,Solaris .... .
    What you need on the monitored machines is the correct agent for the platform. So you don't need gridcontrol for Linux, but you need the agent for Linux.
    Werner

  • Need information on Installing oracle grid control on 11g R2

    Hi,
    i am new oracle grid control and its installaion.
    I dont have any idea abt OMS and Agent.
    following steps i have perfomed.
    1) I have 1 DB on my machine.
    2) download Grid software linux.x64_11gR2_grid.zip.
    3) run the runinstaller.
    4) while opening GUI of run installer there are 4 options.i have selected option no 4 - install grid software only.
    Now please help me what is next step which i have to perform.How will I up My grid control .How will I register My DB in Grid.
    I am using grid control because i have to configure EM plug in for Times Ten.
    Regards,

    Hi,
    If you want to use EM 11g Grid Control on 64-bit Linux, you should install version 11.1.0.1.0, which is available from here:
    http://www.oracle.com/technetwork/oem/grid-control/downloads/linuxx8664soft-085949.html
    Note that the latest version of EM is 12c; however, if you still want to go with EM 11g, the following Support note documents the installation steps and has references to other helpful notes:
    Step by Step Installation of Enterprise Manager Grid Control 11.1.0.1 (Doc ID 1059516.1)
    By the way, the Concepts guide below has information about the EM 11g components including the OMS and agent:
    http://docs.oracle.com/cd/E11857_01/em.111/e11982/overview.htm#CEGBFJIC
    Regards,
    - Loc

  • T.code FS00: changing the SORT KEY in the 'Control data'

    Hi All,
    I need to change the SORT KEY in the 'Control data' of a G/L master data.
    Is there a SAP standard program by which the field 'Assignment' is updated.
    Thanks
    Gandalf

    Sorry,
    i did't mean updating a field ...
    I meant:
    is there a program which changes the content of the field 'Assignment' according to the new content of the field 'Sort key'?
    Thanks

Maybe you are looking for

  • Open url from applets

    Hello friends i have one very important job to do i would like my applet to open a browser window with the url that i specify in the textfield of my applet this is how it starts i open the applet that has a textfield and a button i enter the url in t

  • Report parameters

    Ive developed a report using Report Builder. I used a simple query to get all the records from one table (select account_no, name, address from Masterlist_table). My problem is, the end-user needs to exclude some account_nos which are in his excel fi

  • Unable to download Flash Player Plugin 11.7.700.224

    Cannot play games due to inability to update Flash Player Plugin in Firefox. Firefox notes that I need to update, but will not let me do it. Every time I click "Update Now" or type "unable to update Adobe Flash Player Plugin 11.7.700.224", another Fi

  • RSCRM_BAPI in Process Chain

    Hi, We are having a RSCRM_BAPI which extracts data from a report and push it to a table. We need to include this process in our process chain. We are running on BI 7.0. How? regards, Sanjai

  • Flash Player update 10.3 unable to download and save flv files

    Hello, Since the Flash Player update to 10.3.183.10 it is no longer possible for me to download and save *.flv files. A file of only 2320 kb is saved along with a meta file of 1 kb. The 2320 kb file has a flv extension but the file will not play in a