Edit Renderer for Date columns

I tried to use EditRenderer for a column that is a Date. BC4J automatically renders this as DateField, but I don't want this, so I set the EditRenderer to something else. But it seems BC4J ignores this and renders it as DateField (for Varchar fields it works well).
I use JDev 9.0.3.3 and UIX+JSP.

I found it out: on the Control Hints tab change the Control type from "default" to "edit" and the EditRenderer works

Similar Messages

  • APEX_UTIL.IR_FILTER with BETWEEN operator for date columns

    Hi,
    when I run my application I can set a BETWEEN-filter for date columns. I can't find a way how to use it with the APEX_UTIL.IR_FILTER function. Maybe I miss something?
    Documentation: http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/apex_util.htm#CHDDDFBF
    Tobias

    Tobias,
    If you think about it, a "Between" is nothing more than a single line way to say
    WHERE :X >= :Y
    AND :X <= :Z
    So you should be able to apply two filters to the report using the LTE and GTE operators
    Hope this helps
    Doug Gault
    www.sumneva.com

  • Using number datatype for date column

    Hi
    Is there a side effect for using "number" datatype for "date" column?
    If so, what is the disadvantage?
    Many thanks

    Hi,
    Ora_83 wrote:
    Hi
    Is there a side effect for using "number" datatype for "date" column?
    If so, what is the disadvantage?Yes, there's a definite disadvantage.
    Oracle provides date arithmetic and a number of functions for manipulating DATEs. None of them work with numbers.
    For example,
    SELECT    TRUNC (order_date, 'MONTH')     AS order_month
    ,       AVG (ship_date - order_date)     AS avg_delay
    FROM       orders
    GROUP BY  TRUNC (order_date, 'MONTH')
    ;order_month involves a DATE function; it's pretty easy to find the month that conatins order_date.
    avg_delay involves date arithmetic. It's extrememly easy to find how much the time passed between order_date and ship_date.
    Depending on how you code dates as numbers, doing either one of the above may be just as easy, but doing the other will be very difficult. You'll waste a lot of effort converting the NUMBERs to real DATEs whenever you need to manipulate them.
    Validation can be very difficult for NUMBERs, also.
    Watch this forum. It's a rare day when there's not some question about how to get around a problem caused by storing dates in a NUMBER (or VARCHAR2) column. Don't add to that. Always use DATE columns for dates.

  • JQuery format mask for date columns in tabular form

    Hi,
    How can I apply jQuery format mask for date columns in a tabular form?
    Thanks.
    Andy

    OK, I realized I didn't choose the default type as "Pl/SQL Expression", now it's working correctly.
    Thank you very much!

  • IFNULL Equivalent for Date Columns

    Hello experts,
    is it possible to have an ifunull like function for dates that aren't there in the DB on 10g. For example I get the date format in 00/00/00 and I want it to show 'N/A' instead.
    Best Regards

    Hi zaid,
    Write a case function on the date column f(x) like this,this will work
    case when date='00/00/00' then 'N/A' else date end;
    UPDATE POST
    check your date column data type....if its date or varchar.....change according to your requirment by using it in RPD
    like cast(date as varchar) then at answers end you apply this case function in f(x)
    Hope answers your question.
    Cheers,
    KK
    Edited by: Kranthi on Feb 8, 2011 2:41 AM

  • Attached document for data column in BPS Web application

    Hi,
       I have created layout for a BPS application, the layout has been configured to have the ability to allow the used to create the attached documentd for the data column. when the user open the layout through the planning profile, the icon for those documents is displayed and can be open by click those icons. After we generated the Web applicatios, those icons are gone and the user can not open them any more.
      I notice that there is document subcomponent under BPS-WB, I added that subcomponent to my web layout, it still not work.Anybody know how to display the attached documents on the Web, Is this doable?

    Hi Marc,
       I did exactly what you mention in your responce e-mail, but it still not work coreectly.
    following is my propperty configuration for layout and documents:
    Planning layout (layout_lay01)
    Only ready for output: True
    Row/Cell Selection: Cell
    Event on selection: true
    Document on planning layout (Document1)
    Layout: = layout_lay01
    Only ready for output: false
    When I launch the application through the Tcode BPS_WIF0
    There is no document icon display for each data columns which can been in UPSPL. Instead there is a generic document input/display space under the lauout,however there is no any document display within the box, and I can not input anything within the document box. I changes some of the property for the layout and document, but it not work.
    Did I forget some thing?

  • 'id' attribute is not rendered for h:column tag in datatable

    Hello Everyone,
    There is a problem with rendering 'id' attribute for <h:column> tag. I'm using jsf 1.2_07.
    Here is source code:
    <h:dataTable id="reportList" var="item" cellpadding="1" cellspacing="0" border="0" value="#{myBean.reportList}">
    <h:column id="column1">
    <f:facet name="header">
    <h:outputText value="#{textProps.selected}" style="white-space:nowrap;"/> </f:facet>
    <h:selectOneRadio id="radio" onclick="javascript:setselected(this);">
    <f:selectItem itemValue="#{item.id}"/>
    </h:selectOneRadio>
    </h:column>
    <h:column id="column2">
    <f:facet name="header">
    <h:outputText value="#{textProps.name}" style="white-space:nowrap;"/>
    </f:facet>
    <h:outputText value="#{item.name}" style="white-space:nowrap;"/>
    </h:column>
    </h:dataTable>
    Thanks for your help,
    Sergei

    The attribute "id" is set properly but isn't shown in html
    because there is no html-element corresponding to UIColumn.

  • Performance question for date column

    Hi All,
    I have a select query which joins two tables with more than 20 million records each based on a where condition of year = 2006. Would creating an function based index on the date column help improve the performance. Please suggest any other alternatives. The query is supposed to return about 10 million records which is taking about 10 hrs right now. How can I improve the performance.
    Thanks

    Rob, Here is the explain plan. Any suggestions based on this information. Please refer me to any information on how to interpret this information. Thanks
    | Id  | Operation            |  Name                      | Rows  | Bytes |TempSpc| Cost  | Pstart| Pstop |
    |   0 | SELECT STATEMENT     |                            |   101K|    10M|       |   173K|       |       |
    |   1 |  HASH JOIN           |                            |   101K|    10M|  3088K|   173K|       |       |
    |   2 |   PARTITION RANGE ALL|                            |       |       |       |       |     1 |     9 |
    |   3 |    TABLE ACCESS FULL | Table A                    |   101K|  1888K|       | 87464 |     1 |     9 |
    |   4 |   PARTITION RANGE ALL|                            |       |       |       |       |     1 |     9 |
    |   5 |    TABLE ACCESS FULL | Table B                    |   156K|    13M|       | 85454 |     1 |     9 |

  • Which type of index is useful for date columns with time stamp

    Hi all,
    I am using date column in the where clause of an SQL Query. The values stored in the date column are includes timestamp. The query is very slow and there is no index on the date column.
    Can any body suggest which index is better on date columns
    Thanks

    I am using date column in the where clause of an SQL Query.Dates a re hard queries to tune. This ...
    WHERE start_date BETWEEN to_date('01-SEP-05') AND to_date('02-SEP-05')...probably requires a very different execution plan to this...
    WHERE start_date BETWEEN to_date('01-JAN-01') AND to_date('02-SEP-05')Just bunging an index on the date column may speed up your specific query but break something else. So be careful.
    Cheers, APC

  • Multi-Use Item Renderer for DataGrid Column

    I have a dataGrid where the first column of the grid displays
    an icon for the 'type' of item in the row. I created a custom
    itemRenderer component which I reference in its own namespace, and
    everything works great. Since this is a pretty common concept, I'd
    thought that I'd be able to re-use that itemRenderer throughout the
    application, but everytime I try to call the itemRenderer in
    another dataGrid, I get 2 errors saying "the inlineComponent could
    not be found" and then because of that "Access of undefined
    property".
    It doesn't make sense for an itemRenderer to be only good for
    one use, so I'm obviously missing some fundamental issue. Can
    someone enlighten me?

    Hah, found it. It is an mxml example, and implements
    IDropInListItemRenderer. It for an image renderer, but you will be
    able to see what to do.
    Tracy
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    horizontalAlign="center" verticalAlign="middle"
    width="16" height="16"
    implements="mx.controls.listClasses.IDropInListItemRenderer"
    >
    <mx:Script><![CDATA[
    import mx.controls.listClasses.IDropInListItemRenderer;
    import mx.controls.listClasses.BaseListData;
    import mx.controls.dataGridClasses.DataGridListData;
    import mx.controls.DataGrid;
    [Bindable]
    private var source:String;
    private var _listData:BaseListData;
    public function get listData():BaseListData
    return _listData;
    public function set listData(value:BaseListData):void
    _listData = value;
    invalidateProperties();
    override protected function commitProperties():void
    super.commitProperties();
    if (_listData is DataGridListData)
    var dgld:DataGridListData = _listData as DataGridListData;
    source =
    data[DataGrid(dgld.owner).columns[dgld.columnIndex].dataField];
    ]]></mx:Script>
    <mx:Image source="{source}"/>
    </mx:VBox>

  • Customizing JTree data rendering for Dates

    I have a JTree that has different data types in each column that I'm sorting. I'd like to be able to control the String that appears in the table cell(s) based on the value in the model. I'm trying to make it so that if a Date is less than some predeterminded Date value that a custom string is output to the Table cell instead of the normal Date string.
    I thought a JTable took the toString() of the Date object for its value and that I could just subclass the java.util.Date object and override the toString() with a conditional. such as (toString() in my CustomDate subclass that extends java.util.Date):
    public String toString() {
        defaultDate = new java.util.Date();
        if (defaultDate.getTime()>this.getTime()){
            return "Date entered in the past";
        } else { //get the normal Date toString
            return new String(super.toString());
    }I'm not so much asking what is wrong with my code, but how to accomplish this task, the code is simply to show the direction I've taken. Am i close, or way out in left field?
    Thanks for any help guys!

    Zulfi100 needs a BrainCellRenderer.He is strangely disturbing yet amusing at the same time. It worries me that he is going to use the skills he learns here to teach.

  • Help ! for date column type

    Hi,
    I am having two tables tdz12 and tdf31. TDF31 is a date field. and TDZ12 is transactions history table. If I do
    11:30:39 SQL> alter session set nls_date_format='DD-MON-RRRR HH24:MI:SS';
    11:30:57 SQL> select c65201 from tdf31;
    C65201
    30-NOV-2006 00:00:00
    11:46:48 SQL> select distinct a9000 from tdz12 where a9000 >= '01-NOV-06';
    A9000
    01-NOV-2006 00:00:00
    02-NOV-2006 00:00:00
    03-NOV-2006 00:00:00
    04-NOV-2006 00:00:00
    06-NOV-2006 00:00:00
    07-NOV-2006 00:00:00
    08-NOV-2006 00:00:00
    09-NOV-2006 00:00:00
    10-NOV-2006 00:00:00
    11-NOV-2006 00:00:00
    13-NOV-2006 00:00:00
    14-NOV-2006 00:00:00
    15-NOV-2006 00:00:00
    16-NOV-2006 00:00:00
    17-NOV-2006 00:00:00
    18-NOV-2006 00:00:00
    20-NOV-2006 00:00:00
    21-NOV-2006 00:00:00
    22-NOV-2006 00:00:00
    23-NOV-2006 00:00:00
    24-NOV-2006 00:00:00
    25-NOV-2006 00:00:00
    27-NOV-2006 00:00:00
    28-NOV-2006 00:00:00
    29-NOV-2006 00:00:00
    30-NOV-2006 00:00:00
    26 rows selected.
    If I do
    11:26:39 SQL> select sum(a9060)
    11:27:52 2 from tdz12
    11:27:52 3 where A9000>=(select to_date(to_char(C65201,'YYYYMM')||'01','YYYYMMDD') FROM TDF31);
    SUM(A9060)
    0
    Why I am getting 0 records ? ( Pl tell me the reason, not alternate way to get records )
    thanks & regards
    PJP

    TRUNC(c65201,'MONTH')is a simpler alternative to
    TO_DATE(TO_CHAR(c65201,'YYYYMM')||'01','YYYYMMDD')although it will give the same result here.

  • Generated schema on a query returns xsd:string for date data type

    I'm a complete newbie to oracle's xml generation and have encountered the following problem. But first the important details:
    select * from v$version
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod
    PL/SQL Release 10.2.0.2.0 - Production
    "CORE     10.2.0.2.0     Production"
    TNS for Linux: Version 10.2.0.2.0 - Production
    NLSRTL Version 10.2.0.2.0 - Production
    We have a large number of dynamic queries that we would like to generate xml for. I'm currently using the dbms_query.getXML(context, 2) to generate the schema definition for the columns as well as the xml row data. Currently, the problem I have is that the schema definition for date columns is being returned as xsd:string rather than xsd:date. I've no idea why it is coming back that way, and haven't found anything to point me in the direction of any configuration data where this can be changed. Here is the table and code I'm using:
    query: select dbms_xmlquery.getxml('select * from clh_xml_test',2) from dual
    table definition:
    create table CLH_XML_TEST
    ID NUMBER not null,
    NAME VARCHAR2(50) not null,
    DATE_COL DATE,
    EMAIL_ADDRESS VARCHAR2(100) not null,
    URL VARCHAR2(100) not null,
    TIMESTAMP_COL DATE
    Sample results:
    <?xml version="1.0"?>
    <DOCUMENT xmlns:xsd="http://www.w3.org/2001/XMLSchema">
         <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
              <xsd:element name="ROWSET">
                   <xsd:complexType>
                        <xsd:sequence>
                             <xsd:element name="ROW" minOccurs="0" maxOccurs="unbounded">
                                  <xsd:complexType>
                                       <xsd:sequence>
                                            <xsd:element name="ID" type="xsd:double" minOccurs="0"/>
                                            <xsd:element name="NAME" nillable="true" minOccurs="0">
                                                 <xsd:simpleType>
                                                      <xsd:restriction base="xsd:string">
                                                           <xsd:maxLength value="50"/>
                                                      </xsd:restriction>
                                                 </xsd:simpleType>
                                            </xsd:element>
                                            <xsd:element name="DATE_COL" type="xsd:string" nillable="true" minOccurs="0"/>
                                            <xsd:element name="EMAIL_ADDRESS" nillable="true" minOccurs="0">
                                                 <xsd:simpleType>
                                                      <xsd:restriction base="xsd:string">
                                                           <xsd:maxLength value="100"/>
                                                      </xsd:restriction>
                                                 </xsd:simpleType>
                                            </xsd:element>
                                            <xsd:element name="URL" nillable="true" minOccurs="0">
                                                 <xsd:simpleType>
                                                      <xsd:restriction base="xsd:string">
                                                           <xsd:maxLength value="100"/>
                                                      </xsd:restriction>
                                                 </xsd:simpleType>
                                            </xsd:element>
                                            <xsd:element name="TIMESTAMP_COL" type="xsd:string" nillable="true" minOccurs="0"/>
                                       </xsd:sequence>
                                       <xsd:attribute name="num" type="xsd:integer"/>
                                  </xsd:complexType>
                             </xsd:element>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:element>
         </xsd:schema>
         <ROWSET xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="#/DOCUMENT/xsd:schema[not(@targetNamespace)]">
              <ROW num="1">
                   <ID>779451193</ID>
                   <NAME>Clh Test</NAME>
                   <DATE_COL>1/1/2001 0:0:0</DATE_COL>
                   <EMAIL_ADDRESS>[email protected]</EMAIL_ADDRESS>
                   <URL>http://www.google.com</URL>
                   <TIMESTAMP_COL>7/8/2004 10:7:4</TIMESTAMP_COL>
              </ROW>
         </ROWSET>
    </DOCUMENT>
    Thank you for your help, let me know if I can provide any additional information.
    Chris
    Message was edited by:
    user538302

    use DBMS_XMLGEN.

  • ORA-01841 Error when value for date col is NULL in .dat (using SQL Loader)

    Hello Gurus,
    I have some data in .dat file which needs to be loaded into oracle table. I am using SQL * Loader to do the job. Although "NULLIF col_name =BLANKS" works for character datatype, but when value for date col is NULL then I get ORA-01841 error. I have to make NULL for all rows withour value for date column
    Early reply will be highly appreciated
    Farooq

    Hi,
    May be this problem is not with the NULLIF. The value for the date column is not in proper date format.
    create table:
    create table kk (empno number, ename varchar2(20), deptno number, hiredate date)
    Control file:
    LOAD DATA
    INFILE 'd:\kk\empdata.dat'
    insert into TABLE kk ( empno position (1:2) integer external,
    ename position(4:5) char NULLIF ename=BLANKS,
    deptno position (7:8) integer external NULLIF deptno=BLANKS,
    hiredate position (10:20) date NULLIF hiredate=BLANKS)
    data file:
    10 KK 01-jan-2005
    20 10
    SELECT * FROM KK;
    EMPNO ENAME DEPTNO HIREDATE
    10 KK 01-JAN-05
    20 10
    Verify the data file.
    Hope it will help

  • Custom Cell Renderer for JTable

    Help, I'm trying to write a custom renderer for a column of my JTable but can't get it to work.
    Want I want is a cell in that column to be a label with an Icon and text.
    Trying to test with something simple, just changing colors but even that doesn't work. Can anyone see where I've gone wrong.
    table = new JTable(tableModel);
    table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    table.setShowGrid(false);
    TableColumn tc = table.getColumnModel().getColumn(0);
    tc.setCellRenderer(new DefaultTableCellRenderer() {
       public Component getTableCellRendererComponent(JTable table,
                                                   Object value,
                                                   boolean isSelected,
                                                   boolean hasFocus,
                                                   int row,
                                                   int column)
             JLabel label = (JLabel)
                super.getTableCellRendererComponent
                   (table, value, isSelected, hasFocus, row, column);
                label.setForeground(Color.red);
                label.setBackground(Color.black);
                System.out.println("Object: "+ value);
                return label;
    });Thanks,
    Derek

    Hi
    For colors try :
    all your code
    but where you call super.getTableCellRendererComponent(......
    do only setText(value.toString());
    I supose it is Ok just for changing the colors. If you want render
    an Icon plus some text you can put at your model a JLabel and at this
    render do
    setText((JLabel)value.getText());
    setIcon((JLabel)value.getIcon());
    inside a try/catch clause becasue you can put other kind of object at
    model level
    Or pass instances of an special Class with Icon/Text with publics members set/get to acces to text/icon.
    Hope this help

Maybe you are looking for

  • Mba-11,mini dp to hdmi adapter =sound not working.

    its a moshi bought from apple store,the picture is fine,but im not getting sound out,into 40"lcd,yes ive changed sound prefs,funny thing it works in vista on bcamp,ive heard 10.6.4 broke compatibility from 10.6.3,anyone else had this problem?anyone h

  • How to restore a SharePoint server on a development machine - how it was after a fresh installation

    Hi I have installed SharePoint server on my machine.  The thing is, I have created some custom web parts and made some modification to the sites, how do I restore back the sharepoint server to how it was when I first installed it.

  • Pages not loading properly?

    opening up www.trident-gaming.net when i open a thread i get half of my screen black ive tried re installing and installing different versions of firefox

  • Free space in specific table

    Hi all, i am oracle dba, so can anyone tell me that any command or query to know the free and used space in a paticular table.quick response will higly appreciate. Regards

  • Insert serial number at save of delivery

    Hi experts.. i need to insert the serial number when i'm saving the delivery. i've tried with exit MV50AFZ1 but without success.. somebody can help me? regards Marco Edited by: Menegazzo Marco on Apr 19, 2010 4:26 PM