How to insert row where DB date field has default value.

APEX 4.1, Oracle 11.2
I'm trying to insert a row using "javascript:addRow();" where the report query is an SQL Query (Updateable Report).
1)  Several of the fields are display-only with defaulted values.
2)  No problem with the VARCHAR2 fields.
3)  And if RUN_DT is a text field, the insert works.
4)  But I get errors when trying to make RUN_DT (DD-MON-YYYY) display-only and default it to P63_RUN_DT.  I display P63_RUN_DT so I see it is correct.
Now, this is not a new question.  See:
Error inserting sysdate with time in tabular form region  https://forums.oracle.com/thread/2551916  (Not answered)
Date value in tabular form  https://forums.oracle.com/thread/2478358 (Not answered)
Help! Unable to set default date value for Tabular form DB date field! https://forums.oracle.com/thread/2473208  (Not answered)
Default Value Date Picker Field https://forums.oracle.com/thread/2468973  (Not answered)
Tabular Form Default Value PL/SQL https://forums.oracle.com/thread/2464192  (Not answered)
Display 1st region invoice date into tabular form invoice date column. https://forums.oracle.com/thread/2458561  (Not answered)
Default System date and time in Tabular form https://forums.oracle.com/thread/2449615 (Not answered)
Setting default value of Tabular form item is not working https://forums.oracle.com/thread/2396024 (Not answer)
apex tabular form https://forums.oracle.com/thread/2337098 (Not answered)
Various folks recommended using Default PL/SQL and SYSDATE when SYSDATE was the desired default value.  That worked for some and not for others.  I could not get it to work for me.  The errors I receive are "•Column must have a value. (Row 1) " and "ORA-01410: invalid ROWID".   I believe the ROWID error is an example of spurious error cascade caused by the RUN_DT problem.   I believe it will disappear once the RUN_DT problem is solved.
I will try to replicate on apex.oracle.com
Thoughts?
Howard

Update: At least in my case, it seems the RUN_DT date column cannot be Standard Report Column.  I made it "Display as Text (saves state)".  Standard Report Column works for the defaulted VARCHAR2 columns.  Go figure! 
(more)  And I could not get it to work with "Item" (P63_RUN_DT) as the Default.   However, it seems to work -- so far -- using Default PL/SQL of TO_DATE(:P63_RUN_DT,'DD-MON-YYYY').

Similar Messages

  • JTable: HOW TO INSERT ROWS AND DATA?

    I have one JFrame on screen and inside of this i have a JTable, the question is how to insert rows and data into the JTable?

    [http://java.sun.com/docs/books/tutorial/uiswing/components/table.html]
    In future, please post Swing questions to the [Swing Forum.|http://forums.sun.com/forum.jspa?forumID=57]
    In short, your TableModel is probably a DefaultTableModel . Study its API.

  • How system will automatically populate clearing date field for invoices paid similar to when payments are made to the vendors

    Hi SAP Gurus,
    Could you help me on this, How system will automatically populate clearing date field for invoices paid similar to when payments are made to the vendors.
    Regards
    Mohan

    Hi Ramakrishnappa,
    If you clear the invoice against payment, then the invoice clearing date would be payment document posting date.
    Regards,
    Mukthar

  • How to get length of a data field

    Hi Experts,
    How to get length of a data field. For example data field /BIC/0COSTCENTER length is 9. and the entry in the table is /BIC/0COSTCENTER = 1000 only. How to get the lenth of value in the table.
    Any help greatly appreciated. Thanks.
    Best Regards,
    Suresh.

    Below is example  code
    Data: var1(10) type c value '2500',
          var2 type i.
    var2 = Strlen( var1 ).
    write var2.
    <b>Reward Points for helpful answers</b>
    Satish

  • How to insert rows & columns into a jTable???

    helloo there...
    How to insert rows & columns into a jtable???
    your reply is greatly appreciated....
    -=samer=-

    Yes!thanks...
    But what i want is how to set the number of rows and the number of columns...and i don't know how to setColumns and rows....any idea?
    the user will input number of rows and columns in a jtextfield....
    Please rply...

  • Whether the fields of a single row in an internal table has got value.

    I am doing an archiving report in PS Module.
    The table RPSCO has 12 fields which represent each month.The records in the table are based on OBJNR  and YEAR
    Now i need to check for the latest year which month has some value .If any of the month  has got some value i need to take that month.
    Sample table given below.
    OBJNR           year    Month1    month2      month3    so on
    1)PR00002409  2006     0.00     0.00     664.70-     0.00 0.00     0.00     0.00     0.00     0.00                                                                      
    0.00     0.00     0.00     0.00
    2)PR00002409  2005     0.00     0.00     0.00     0.00     0.00     0.00     0.00 0.00     0.00     0.00     48.70     127.20     0.00
    In this case the output should be Month3.Because the latest year is 2006 and Month is Month3.

    Hi Susmita,
    You have to use DO VARYING option from field 3 onwards.
    Below is the sample program to check whether the field has a value or not.
    tables: rpsco.
    data: it_rpsco like rpsco occurs 0 with header line.
    data: v_wlp type rpsco-wlp00,
          v_wtp type rpsco-wtp00,
          v_pos type i.
    select * from rpsco into table it_rpsco where gjahr = '2007'.
    if lines( it_rpsco ) gt 0.
    loop at it_rpsco.
      clear v_pos.
      do 16 times varying v_wlp from it_rpsco-wlp00 next it_rpsco-wlp01
                  varying v_wtp from it_rpsco-wtp00 next it_rpsco-wtp01.
       v_pos = v_pos + 1.
       if not v_wlp is initial.
         write:/5 v_pos , 35 v_wlp, 70 v_wtp.
         exit.
       endif.
      enddo.
    endloop.
    endif.
    Regards,
    Kumar Bandanadham
    Edited by: Velangini Showry Maria Kumar Bandanadham on Jun 1, 2009 9:30 AM

  • How does replicate recover trail raw data to the true values?

    How does replicate recover trail raw data to the true values?
    or
    How replicate use the trail file?
    recover the trail file col values to a SQL?

    user5834416 wrote:
    How does replicate recover trail raw data to the true values?
    or
    How replicate use the trail file?
    recover the trail file col values to a SQL?GoldenGate "capture" (extract) parses the redo/archive logs and writes out trail data in a GG-specific, database independent format. The trail contains changed-data events: inserts, updates & deletes (and optionally DDL events.) The GG replicat reads this data and converts the data to SQL to be applied to the target.
    The GG trail files are not the same as the data as originally seen in the redo logs (GG is not doing any type of log-shipping of redo logs). The actual data in the trail isn't really important for end-users; it's an implementation detail (much like you shouldn't care what Oracle's redo log format is). But you can use "logdump" to inspect the contents of this (binary) file... again, kind of like LogMiner can be used to inspect archive logs.
    There are a number of (conceptual) analogies one can draw between Oracle redo logs & GG trail files. But they're not the same. Your questions are mostly internal implementation details that are not really important for understanding how GoldenGate works. Nonetheless, it is useful to become familiar with logdump for advanced troubleshooting.
    Good luck,
    -m

  • How to set system date as a default value in UIX/XML page?

    Example: We set default values using following statements:
    <set property="inputValue" target="${bindings.PoNumber}" value="${'1234'}"/>
    <set property="inputValue" target="${bindings.UserName}" value="${param.MyParam1}"/>
    In JDeveloper Help, we cannot find a way to set a Date attribute's default value to today's (system) date. Any suggestions?
    Also, does anyone have a reccomendation on a good book for uix/xml?
    Thanks, Ali.

    bump

  • FormsCentral - design form : Initialize form field with default value

    Hello,
              My customer asks me to initialize text fields with default values. Example , Name , email , phone number etc to be displayed by default till it is overwritten by values entered. Could you please guide me how to achieve this ?
    Many Thanks,
    Sree

    Hi,
    see Re: sequencing problem-Forms
    Regards Michael

  • Dynamic LOV with dates and selected default value

    Hello,
    I have a dynamic lov with dates. Query looks like this:
    select distinct concat(to_char(b.send_day_time,'YYYY.MM.DD HH24'),':00') display_value, to_char(b.send_day_time,'YYYY.MM.DD HH24') return_value
    from ...
    No I want to select a specific date as the default value. I put the following code for the default value:
    declare
    begin
    return to_char ('2008.02.19 10:00');
    end;
    But it doesn't work.The date (string) exists in the lov but it is not selected.
    Can someone tell me where the problem is?
    Thx in advance.
    Greetings,
    hamburger

    Hi hamburger,
    As return value you specified to_char(b.send_day_time,'YYYY.MM.DD HH24'),
    so your default value should be like to_char('2008.02.19 10'). Also pay attention to select the "Default Value Type".
    Hope this helps.
    chrissy

  • Initializu00EDng select options field with default values and with NO INTERVALS

    Dear All,
    I have used WDR_SELECT_OPTIONS technology within WD Abap.
    I also have added the fields which have to be taken into consideration.
    lt_range_table =
    wd_this->m_handler->create_range_table(
    i_typename = 'PLANT' ).
    wd_this->m_handler->add_selection_field(
    i_id = 'PLANT'
    it_result = lt_range_table
    i_read_only = read_only ).
    Can I assign two values to this field 'PLANT' whereby the user may take only these values.
    I mean kind of pre initializíng of this select options field with default values.
    Due to this handling it should be prevented that the user can give other values
    except this values.
    Additonally it should be fine whether it is possible to disable the second input field
    of this select options field like NO INTERVALS .
    Regard
    sas
    Regard
    sas

    wd_this->m_handler->add_selection_field(
    i_id = 'PLANT'
    it_result = lt_range_table
    I_NO_INTERVALS = 'X'
    i_read_only = read_only ).
    Pls check 'WDR_TEST_SELECT_OPTIONS' web dynpro component

  • Where does FireFox get the default value of a preference from. What is the format of the file that has the default value?

    Where does FireFox get the default value of a preference from. What is the format of the file that has the default value?. I need the actual default value for a particualr preference.
    About:config does show some default values but I need the source from which about:config picks up the default value.
    Any help in this direction is greatly appreciated.
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    The prefs that aren't hidden if they are the default are stored in two JavaScript text files in the Firefox program folder
    You can open them via these links in a Firefox tab:
    <code>resource:///defaults/pref/firefox.js
    resource:///greprefs/all.js
    </code>
    ([/forum/1/702598])

  • How do I change iCalendar alerts to a non-default value, ie, send an email 2 days before event.

    How do I change iCalendar alerts to a non-default value, ie, send an email 2 days before event?

    cjphoto1 wrote:
    How do I change iCalendar alerts to a non-default value, ie, send an email 2 days before event?
    Open the Calendar app, open the event, tap Edit and change the Alert times.
    If you want to change the default time, Settings > Mail, Contacts, Calendars, scroll down to Calendars - Default Alert Times.

  • Dithering buttons based off of whether or not a choice field has a value

    Hi,
    I am trying to dither out a button until a choice field has a value in it. I have been noticing that users have been submitting the form without selecting any of the options in the choice field (has about 40 choices).
    I would make that field required, but it would interfere with different views of the form that do not have that section attached to them.
    I have tried dithering the button if the value or if the field itself is either blank or not present, but it does not appear to be working.
    I was thinking that I may need to create a single line of text field that populates if a value is present, however, was hoping there would be an easy way to do this.
    Any help would be greatly appreciated!
    Thanks (happy holidays),
    Greg
    Greg Baker

    Hi  Greg,
    Thank you for your posting!
    For achieving your demand , you can use JavaScript as following:
    Create a field CurrentView to record the current view.
    Add set a field’s value rule on switch view button, such as when we click switch view 1 button, the rule will set the CurrentView  field to 1.
    Add  below JavaScript:
    function validateDropDown() {
    var curView =document.getElementById(“CurrentView”);
    if(curView==1)
    var ddl = document.getElementById("DropdownListID");
    if (ddl.selectedIndex == 0 || ddl.options[ddl.selectedIndex].value == "")
    alert("Please select an option! ");
    return false ;
    else { return true ;}
    </script>
    Hope this helps,
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Getting error Data record has grouping value "" in

    Trying to change Address data in HR using BAPI_ADDRESSEMPUS_CHANGE
    Getting error message : Data record has grouping value "" instead of ""
    Please advise.
    Thanks,
    Bhaskar

    Hi,
    I assume the following system situation exists:
    The new Infotypeframework NITF is inactive for PA30. Flag CCURE PC UI is activated in T77SO. You are using ESS based on Web Dynpro which uses the new Infotypeframework.
    Here we have to differentiate between infotypes which are participating in the data sharing functionality and all other infotypes. Such as:
    Infotypes without Data Sharing:
              - Infotype checks     => module pool
              - Infotype update     => SAPFP50P/SAPUP50R
    Infotypes with Data Sharing:
              - Infotype checks     => module pool
              - Infotype update     => NITF
    ATTENTION:
    BAdI HRPAD00INFTY is not processed in this case (importing parameter NEW_IMAGE is always space). Instead the BAdI HRPAD00INFTYDB of the NITF is been processed.
    The following notes (1 and 2) will solve the problem. Note 3) solves an involving problem caused during the deletion process of a personnel number.
    1) 783499 - Incorrect framework synchronization
    2) 845592 - Incorrect framework synchronization - Retroactive accounting
    3) 844998 - PU00: Termination when deleting a personnel number
    Hope this will help!
    Regards,
    Sibylle

Maybe you are looking for

  • Is Photoshop Album 3.2 A Product For The Future?

    I am a long time user of Photoshop Album 2.0 and like it a lot because of its great photo organizer but when it wouldn't load onto a Vista computer, Adobe pointed me to 3.2 Starter Edition. When I went to numerous software stores and online to try to

  • Permanently disable an account on repeated failed logins (stolen laptop)

    How? Until now I carried a limited set of documents on my laptop, so I never really worried about security breaches. Not anymore. I would like a feature somewhat similar to what is commonly found on cellphones or smart credit cards, i.e. after x fail

  • BM 3.9 extra rules

    Running virtual BM 3.8sp5 on a NW6.5sp8 server - ok abends every few days. So - created a virtual BM 3.9sp2 on a NW6.5sp8 server - with several problems: 1) Trying to go to a https:\\ site gives "Internet Explorer cannot display the webpage" error. (

  • Bridge mode linksys E2500

    I accidently went into bridge mode on my linksys E2500 router. I want to reset it back to normal but i'm not sure how to do it. i tried the little reset button on the router but that didn't change it. somebody please help !?

  • Trazados Freehand a Photoshop

    En ciertos ordenadores, al copiar y Pegar en Photoshop trazados realizados en Freehand, recibo el error de "el módulo de análisis no pudo leer el contenido del portapapeles". En mi ordenador puedo realizarlo, no sin problemas, ya que al pegarlo como