Date format error in LOV with dates. Jdeveloper 11.1.1.0.1

We're facing a silly problem, which no one else seems to have... ?
When creating a LOV on a date column (eg hr.employees.hiredate) populated from another DataSource (eg. hr.job_history.startDate), the Application Module is working fine when tested.
Building a jspx on top of the Datacontrol picks up the LOV defined and creates a SelectOneChoice for hiredate. But for what ever value you select, it will complain about wrong date format "Error: The date is not in the correct format".
I can see, that the "real" value selected from the SelectOneChoice is an index-value, and the "format checking code" builtin to Jdeveloper can't figure out how to get the datevalue for the selected index.
Surely it must be me, who can't see the forest for the trees?
Thanks in advance :)

Its a bit tricky - but its doable... We have to abandon the "Oracle LOV model" to make it work.
Surely its must be some kind of bug in the Oracle LOV model? ?
The way to do it is like:
In Model project:
M1: Remove List Of Value binding from Model layer (Business components). Both entity and view if declared both.
M2: Create a view for the "date list" - ie the datasource for possible values in list.
M3: Secure that format mask (hint) for all dates involved are the same.
In View project:
V1: Drop datacontrol on jspx as normal input dates.
V2:Go to bindings for the page, and add (+) a new TABLE binding (And from here an iterator) to the view containing the list.
Modify the input dates you want to be list:
V3: Select the input date and rightclick and choose "convert"
V4: Select a SelectOneChoice component
V5: Pick the right column (tree) value to show in the SelectOneChoice componet.
Switch to source view:
V6: Drop a ForEach item from the component Palette (ADF Faces -> operations) on the SelectOneChoice (easiest to drop in structure windows)
V7: Drop a Select Item from the component Palette (ADF Faces -> common components) on the SelectOneChoice (easiest to drop in structure window).
Modify the source:
V8: Insert "items" and "var" attributes in ForEach like this: +"items="#{bindings.[[Here goes the name of the New TableBinding component you made in Step V2]].rangeSet}" var="li"+
V9: Insert "value" attribute and change "label" attribute to reference your new list variable "li" like this: +label="#{li.[[here goes the name of the new TableBinding Component attribute (columnname) you made in Step V2]]}" value="#{li.Firstofmonth}"+
V10: Insert/edit any converters/validators needed for input validation.
Done....
You should end up with a SelectOnChoice definition (in your jspx file) something like this one:
+<af:selectOneChoice value="#{row.bindings.ActiveFrom.inputValue}"+
+label="#{row.bindings.ActiveFrom.label}"+
+required="#{bindings.McAccountsView1.hints.ActiveFrom.mandatory}"+
+shortDesc="#{bindings.McAccountsView1.hints.ActiveFrom.tooltip}">+
+<af:forEach items="#{bindings.FirstOfMonth1.rangeSet}" var="li">+
+<af:selectItem label="#{li.Firstofmonth}" value="#{li.Firstofmonth}" />+
+</af:forEach>+
+<af:convertDateTime pattern="dd-MM-yyyy"+
+messageDetailConvertDate="Its not possible to convert the date in {0} since its value {1} dont conform to the pattern {2}"+
+secondaryPattern="yyyy-MM-dd"/>+
+</af:selectOneChoice>+
And a binding definition (in your pagedef file) something like this one:
+<?xml version="1.0" encoding="UTF-8" ?>+
+<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"+
+version="11.1.1.52.5" id="McAccounts01PageDef"+
+Package="solution">+
+<parameters/>+
+<executables>+
+<iterator Binds="McAccountsView1" RangeSize="25"+
+DataControl="dateLovEmailDataControl"+
+id="McAccountsView1Iterator" ChangeEventPolicy="ppr"/>+
+<searchRegion Binds="McAccountsView1Iterator" Criteria=""+
+Customizer="oracle.jbo.uicli.binding.JUSearchBindingCustomizer"+
+id="McAccountsView1Query"/>+
+<iterator id="FirstOfMonth1Iterator" RangeSize="10" Binds="FirstOfMonth1"+
+DataControl="dateLovEmailDataControl"/>+
+</executables>+
+<bindings>+
+<tree IterBinding="McAccountsView1Iterator" id="McAccountsView1">+
+<nodeDefinition DefName="dk.hammerJakobsen.Jdev.sample.model.McAccountsView">+
+<AttrNames>+
+<Item Value="EmployeeName"/>+
+<Item Value="Id"/>+
+<Item Value="BankAccount"/>+
+<Item Value="StellarAccount"/>+
+<Item Value="ActiveFrom"/>+
+<Item Value="ActiveTo"/>+
+</AttrNames>+
+</nodeDefinition>+
+</tree>+
+<action IterBinding="McAccountsView1Iterator" id="CreateInsert"+
+RequiresUpdateModel="true" Action="createInsertRow"/>+
+<action IterBinding="McAccountsView1Iterator" id="Delete"+
+RequiresUpdateModel="false" Action="removeCurrentRow"/>+
+<action IterBinding="McAccountsView1Iterator" id="First"+
+RequiresUpdateModel="true" Action="first"/>+
+<action IterBinding="McAccountsView1Iterator" id="Last"+
+RequiresUpdateModel="true" Action="last"/>+
+<action IterBinding="McAccountsView1Iterator" id="Find"+
+RequiresUpdateModel="true" Action="iteratorFind"/>+
+<action IterBinding="McAccountsView1Iterator" id="Execute"+
+RequiresUpdateModel="true" Action="iteratorExecute"/>+
+<action id="Commit" RequiresUpdateModel="true" Action="commitTransaction"+
+DataControl="dateLovEmailDataControl"/>+
+<action id="Rollback" RequiresUpdateModel="false"+
+Action="rollbackTransaction" DataControl="dateLovEmailDataControl"/>+
+<table IterBinding="FirstOfMonth1Iterator" id="FirstOfMonth1">+
+<AttrNames>+
+<Item Value="Firstofmonth"/>+
+</AttrNames>+
+</table>+
+</bindings>+
+</pageDefinition>+
this approach works... But... Its important to remember that the "two" values are different now. The value in the row, and the possible value from the list. When you select a new value for the row from the list, you'll have to commit the value before its in the row - even seen from Faces. You can't reference the value in the base table in a validator before the row is committed.
For the same reason I'll advise, that you only use the model in Single row view, since its can behave a bit funny in table views, where there's a lot of PPR.

Similar Messages

  • Home Page Date Format ERROR ...

    I installed language support on my Portal 3.0.9.8 with 3 different languages: us, i=italian, f
    but when i use the "i" language there are many problems with format date ...
    in the Portal Home Page i have a message like "date format not valid"
    and i have problems in the creation of the content area's items with the publish date.
    Any one have an idea ???

    HI All,
    I have check my own data date format.
    But when i tried to activate the cycle count under
    Menu path: 
    Materials Management > Inventory Management and Physical Inventory>Physical Inventory> Cycle Counting
    I will not put any date on it, that's why its weird that i get an date format error.
    Where this error came from?
    Thanks..

  • Date Format Error During Cycle Count Activation

    Hi MM Guru's,
    Could you kindly help me with regards to my problem?
    I was trying to activate the cycle count for the newly plant i created under new company code.
    But im getting a date format error?
    Anyone who could help me regarding this?
    Thank you in advance.

    HI All,
    I have check my own data date format.
    But when i tried to activate the cycle count under
    Menu path: 
    Materials Management > Inventory Management and Physical Inventory>Physical Inventory> Cycle Counting
    I will not put any date on it, that's why its weird that i get an date format error.
    Where this error came from?
    Thanks..

  • Mailman - bounced "data format error" - Mailbox does not exist

    Hi gurus,
    All my mailing lists works great, except one of then...
    Its said: a lot of messages like this, several times:
    Mar 6 07:08:33 rossellimac postfix/pipe[2931]: 3F55D15F892: to=<[email protected]>, orig_to=<[email protected]>, relay=cyrus, delay=0.11, delays=0.04/0/0/0.07, dsn=5.6.0, status=bounced (data format error. Command output: alejandro: Mailbox does not exist )
    Also this error:
    3/6/09 8:18:20 AM lmtpunix[4844] AOD: user opts: get attributes for user: alejandro failed with error: -14479
    3/6/09 8:18:20 AM lmtpunix[4844] warning: unable to post message for user: alejandro, mail is not enabled for this user
    The computers halt for a minute... when I send an email to this list (general@) where "alejandro is a user"
    Please, some advice... I surf the web... and not always produce error...
    Thanks in advance.
    Message was edited by: alopezruiz

    ok

  • Bex Analyser : Date Format error.

    Hi All,
    We are facing date format error, while running the query in Bex analyzer.
    We have one column in report i.e Net Payment Date, so when we run the query in analyzer the single date like "5-6-2010 is getting swapped like 6-5-10 & year also showing two digits i.e instead of 2010 it shows 10" & date like "12-09-2010 is coming perfectly."
    Means the date which is in single digit we are facing this problem like 1 to 9 & the dates which are 10 & above showing perfectly.
    In RSRT the query showing proper result, so i don't think it's BI problem.
    The regional setting is DD-MM-YYYY & Date separator is '-' & we don't want to change this format.
    Is there any SAP note or any solution for this..??
    All the replays are gr8ly appreciated.
    Thanks,
    Santosh

    Hi Santosh,
    how about web display? is it ok? for me it seems more an Excel problem, so maybe you should check if there is special formatingin this.
    Regards,
    Anass

  • Fill the LOV with data during the execution

    Hi
    I am using Oracle 10g
    I want to ask please if there is a way to fill the LOV with data during the execution
    so can I change the query specified in LOV wizard during the execution and get a new record set according to the value in the text boxes
    thank you for help

    You can use the SET_LOV_PROPERTY built-in to change the record group of the LOV and to create a new record group you can use the CREATE_GROUP_FROM_QUERY built-in.
    it will be something like this.
    RG_ID := FIND_GROUP('<record group name>');
      IF NOT ID_NULL(RG_ID) THEN
           DELETE_GROUP(RG_ID);
      END IF ;
      RG_ID := CREATE_GROUP_FROM_QUERY('<record group name>', '<your SQL statement here>');
      POP_GROUP := POPULATE_GROUP('<record group name>');
      SET_LOV_PROPERTY('<LOV name>', GROUP_NAME, '<record group name>');Use the online help for more information about these built-ins.
    Tony

  • 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

  • No data Exists error while retrieving the data from a table

    Hi Everyone!
    I am getting "No Data Exists" error while retrieving the data from a table....where i need to check...if possible please give me example link.....please help me regarding this

    Hi !
    thanks for ur response...
    I have written vo.executeQuery for the table...My page is running but i m not getting the data....I have to select two LOV's and when I click on Go button the data has to display in the table...After the selection of LOV's when I click on Go in the table "No data exists" message is appearing...the table has the data and the query is also executing...please give info where i did the mistake....

  • Changing date format for some of the date columns in a subject area

    Hi,
    I have a requirement to change the date format for some of the date columns to dd-mon-yyy for only a particular subject area. Is there a feature available in the RPD which can help me do this?
    In Answers - Column Properties for a Particular column of a report, we can save the style and formatting as system wide default for the particular column or the data type, but that applies across subject areas.
    I tried with the config files too , but that too applies to all suject areas.
    Thanks in Advance,
    Gaurav

    Why don't you create 2 logical column derived from same date physical col and then change the format for one logical column and use it in Subject Area ?

  • Issue related with the Date Format --- error when activating the DSO

    Hi Friends..
    plz help me to fix the issue ...im getting when activating the DSO...
    Actually im not getting error when loading the data thru DTP..im facing this issue while activating the DSO..
    is there any routine to solve this or i have to go for data selection in info package ......
    I have searched in the forum also..but im not able to fix..plz help
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject 0CRMPOSTDAT*
      Value '31122009' of characteristic 0DATE is not plausible
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject ZKITRDT*
      Value '01/20/20' of characteristic 0DATE is not a number with 000008 spaces
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject ZMNS_DATE*
      Value '20101502' of characteristic 0DATE is not plausible
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject 0CRM_EXCDAT*
      Value '31122009' of characteristic 0DATE is not plausible
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject 0CRM_PRIDAT*
      Value '31122009' of characteristic 0DATE is not plausible
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject ZCOMPDAT*
      Value '31122009' of characteristic 0DATE is not plausible
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject ZDUEDAT*
      Value '20101402' of characteristic 0DATE is not plausible
    Thanks
    Baskar
    Edited by: tjgnanabaskar on Aug 6, 2010 5:35 PM

    Hi Friends..
    plz help me to fix the issue ...im getting when activating the DSO...Actually im not getting error when loading the data thru DTP..im facing this issue while activating the DSO..is there any routine to solve this or i have to go for data selection in info package ......I have searched in the forum also..but im not able to fix..plz help
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject 0CRMPOSTDAT
    Value '31122009' of characteristic 0DATE is not plausible
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject ZKITRDT
    Value '01/20/20' of characteristic 0DATE is not a number with 000008 spaces
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject ZMNS_DATE
    Value '20101502' of characteristic 0DATE is not plausible
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject 0CRM_EXCDAT
    Value '31122009' of characteristic 0DATE is not plausible
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject 0CRM_PRIDAT
    Value '31122009' of characteristic 0DATE is not plausible
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject ZCOMPDAT
    Value '31122009' of characteristic 0DATE is not plausible
    Thanks
    Baskar

  • Date Format  error while loading *.dat  file to Sataging .

    Hi All ,
    Loading data from *.dat file in to Staging , the dat file contains data for date in 'MM-DD-YYYY' format which is String , when it loading by control file it produce the error date format is not supported .I think ti required DD-MM-YYYY format . Is their any properties to change the date format or else need to write the function for converting date format .
    I am using OWb 10g Release 1 , with same DB .
    Please guide me
    Thanx in advance
    Regards ,

    Hi,
    Before loading into staging, you can use Expression operator to convert the CHAR into DATE with something like this:
    TO_DATE('01-02-2005','MM-DD-YYYY')
    Hope this helps.

  • DATE Format Error in ODI-11g(11.1.1.3)

    I am using ETL transformations in ODI-11g. There's a dominant issue regarding date formattings when I map an ODI variable (storing date) with a TGT column(datatype=date) mappings.
    In all the src-tgt mappings I am formatting the date by using TO_DATE() functions. But still getting the error:
    "ORA-01830: date format picture ends before converting entire input string".
    A point to Note: The same ETL in other env are ruuning fine but in my new dev env it's giving this date error.
    I had checked with the DBA folks and they confirmed they set equal DATE settings in all the env.
    The ODI Variable is defined as an "Alphanumeric".
    Tx Used: #BUSINESS_CURRENT_DT=TO_DATE('Date','YYYY-MM-DD')
    Require some urgent advice...Please let me know

    Hi,
    W store name-value pair in the Control table from where we exctract our data. Both (param name and param value) are varchars.
    Well this looks pretty strange in 11g! Here's what we found out...
    If you are trying to retrieve a date variable by using TO_DATE() in the refresh query the ODI Java driver (JDK 1.6) would call java.sql.timestamp and gracefully attach HH:MI:SS.NS along with the date (YYYY-MM-DD HH:MI:SS.NS). My target ia a date always..!
    So, when I do: TO_DATE('20101010','YYYY-MM-DD) in the refresh query ODI stores it as '2010-10-10 00:00:00.0'
    For this the Load always fails as Oracle would not be able to interpret a timestamp by suing TO_DATE()
    The Java driver does this damage. However, it may be wise to store as a timestamp rather as a date if in case u do a Data capture and want the exact time credentials.
    Unfortunately not a req, as of now for us so I had to chop-off the timestamp..!
    Let me know if you find any other details...
    Thanks.!

  • Date Formatting error in JDBC adapter

    Hi,
    While inserting date using a Receiver JDBC Adapter i am getting a "Month not valid" error can anyone please tell me how do i pass date in the required format. Database is Oracle.

    Hi Vinay,
    Oracle's default format for DATE is "DD-MON-YY"
    With the functions to_char and to_date, a date format can be used. Example:
    select to_char(sysdate,'DD/MM/YYYY HH24:MI:SS') from dual;
    will return something like: 24/03/2006 14:36:43
    Regards,
    Prateek

  • Working with SAP Data Format yyyy.mm.dd in data services

    Hi,
    I had 2 questions about date formats coming from SAP to DS .
    1) I am trying to convert date fieild from SAP that is formated to yyyy.mm.dd to mm/dd/yyyy but I am not having any luck .. I am using the to_date function when I run this below I get null values in my template table . I think it has to do with me not stating my input date format but cannot seem to get the correct syntax's any ideas ?
    2) Does Data Services recognize dates which are formatted as  yyyy.mm.dd ?? When I put  I added a column to a template table and added the sys date command it returned the sys date as yyyy.mm.dd BUT when I try a fiscal_day function (which should brings back the number of days between the input (my SAP source date ) and the sys date which are formatted the same (yyyy.mm.dd) I get a format error  (input parameter 2009.03.10 is not valid) .  any ideas ?
    Thanks for your time,
    Brett

    Hello Brett
    to_date convert STRING to date based on input format.
    As i understand your source data not in string format.Is this correct?
    Use combination to_char->to_date for your transformation
    Regards
    Kanstantsin Chernichenka

  • Date Format ERROR - Repository Browser

    Hi all,
    With the repository browser I can not see any data. In the MS-DOS window (Browser Listener) I am getting the following error:
    ExecSummary.getObjData() SQLJ Exception:java.sql.SQLException: ORA-01821: Date format not recognized.
    I am using spanish date format (by default). Does someone know where I can change the date format?
    Thanks in advance,
    Victor.
    Edited by: VCP on Sep 8, 2009 12:42 PM

    Hi zeppo,
    The regional and language options are the same as DB. I think that it is related java configuration, but I don't know exactly how it works...
    Regards
    Victor.

Maybe you are looking for

  • How can we call a WEB SERVICE from an Oracle DB?

    <h2> What the methods available to call a WEB SERVICE from the DB. I.e. through a DB Stored Procedure? I was given this article by a colleague, but since it's a 2005 one, I feel it could be outdated? http://www.oracle.com/technology/pub/articles/mens

  • Old formac monitor + Mac mini?

    I'm planning to buy a Mac mini, to upgrade from a desktop G4 (2001). I assume that it will also be time to say goodbye to our (also 8-yr.-old) formac ProNitron 17" monitor, as we won't be able to use it with the new Mac?

  • How can i get the 6.1.3 ipsw for iphone 4 sprint (cdma)

    how can i get the 6.1.3 ipsw for iphone 4 sprint (cdma)

  • WANBOOT/Jet/Solaris 10 issues?

    I've tried booting via wanboot pure and cdrom method with the same results. I am using JET with a Solaris 10 01/06 and 06/06 images and have the same problems. Anyone seen this or can comment? Below is the output from the install. Sun Fire V210, No K

  • Ordering new MB Pro. Would like advise.

    I am making the switch from a top of the line iMac to a MacBook Pro. My first thought is to get the fastest processor, most ram (that is a given) and the largest SSD drive. I edit for a living, so this is an important decision. Am I wrong in this lin