Date Picker based on transient field

Hi,
JDev 10.1.3, ADF, BC4J:
I have a jsp with two date fields that I use for searching. I have created a form bean that stores these fields as java.sql.Date types, and also generated a data control from this form bean.
The problem is, I want to display these fields as date pickers in my browser.
If I have a data-bound date field I can just drag it on to the page and select to drop it as type "Input render". This will create the date picker for me.
However, if I do the same thing with my non-data-bound dates, they do not appear on the resulting page.
Is there a way of creating date pickers based on transient (non-data-bound) fields?
Cheers,
Alex.

Field validation assumes that the field being validated is to the left of the operator in the syntax. Since your validation requirement is complex, you would use the IIf statement.
This is the syntax you should use for the Status field:
=IIf((FieldValue('<Status>') = 'Commit' AND [<ClosedDate>] > Today() + 90) OR (FieldValue('<Status>') <> 'Commit'),[<Status>],"Invalid")
You would build the syntax for Closed Date similarly. You would want to place this on all the affected fields to ensure it is called at the appropriate time. You should also test that it runs as expected when you edit other fields as well. This is another thread that talks about this issue: Re: Contact Field Validation (Email, Work Phone #, Mobile Phone #)
Good Luck,
Thom

Similar Messages

  • How to creat a Data provider  based on different fields in SAP BW ?

    Hi,
    Experts,
    There are  20 fields  of  Plant Maintainace  like : 
    SWERK
    BEBER
    STORT
    TPLNR
    EQUNR
    INGRP
    QMDAT   ---peroid
    STTXT
    QMDAT  - Date of Notification
    QMNUM
    QMTXT
    QMART
    AUSVN
    AUZTV
    AUSBS
    AUZTB
    AUSZT
    ERNAM
    QMDAB
    AUFNR
    I  want to creat a  Report based upon these fields  ?
    For that I h'v  checked the relevant Fields to the   existing standard  Datasource  in Bw side   &
    Checked  cubes   created  based upon these Datasource  in Bw side !
    i h'v found  some fields are  existing different cubes & some are  missing .
    How to creat a Data provider  based on different fields in SAP BW ?
    plz suggest      !!!!!!!
    Thanx,
    Asit
    Edited by: ASIT_SAP on Jul 15, 2011 6:25 AM
    Edited by: ASIT_SAP on Jul 15, 2011 6:27 AM
    Edited by: ASIT_SAP on Jul 15, 2011 12:37 PM

    Hi Lee, Please see below..
    DECLARE @Machine2 TABLE
    DispatchDate DATE
    INSERT INTO @Machine2 VALUES ('2014/02/01'), ('2014/02/02'), ('2014/02/03')
    DECLARE @DateFrom DATE
    SELECT @DateFrom = DATEADD(D,1,MAX(DispatchDate)) FROM @Machine2
    SELECT @DateFrom AS DateFrom
    Please mark as answer, if this has helped you solve the issue.
    Good Luck :) .. visit www.sqlsaga.com for more t-sql code snippets and BI related how to articles.

  • Data filtering based on other Field

    Hi,
    Hi,
    i am creating ADF 10g Form based on the Web service data control. on the form a InventoryItem Drop Down List and a Serial Number Drop Down List. if i select a Inventoryitem item from the list i have to get the serial numbers in the serialnumber dropdown list based on the selected inventory item. can any one tell me how can i achieve this ....
    as i am using Web service Data Control method for dragging the method.. the wsdc and viewObjects DataControl created from Model Jpr does not have any link. here how we have to link both the above fields if i use the Dependent List
    Edited by: Naveenapps on Sep 11, 2009 1:14 AM

    Hi
    Can you explain in a bit more detail on what the webservice is doing ? Is the inventory item a parameter to a web service method that returns the serial numbers ? Or is it that the Inventory is comming from the BC4J data control and you want a selection in that list to be passed as a parameter to a WSDC method ?
    Thanks
    Vinay.

  • Date picker is not available in date/time field

    Hi there,
    I'm wondering while using a date/time field. Since I made some changes on this field the date picker (Arrow down right next to the field to show up a calendar) is no longer available. Has anybody got a clou what the problem might be or how I can bring the date picker back to this field.
    Thanks in advance.
    Best,
    Maja.

    Hi there,
    I'm just wondering about the following settings/patterns:
    As you can see this field is from the type "Date/Time Field". So far so good, but when I'm opening the dialog "Patterns", this dialog is just for a "Date Field" and not for a "Date/Time Field". No trouble so far, but the confusion thing is that the date picker is available in this field. Has anybody a clou how this is working? Or can anybody help me to convert a "Date/Time Field" to a normal "Date Field" which provides this date picker?
    Thanks in advance and kind regards,
    Maja

  • New Date Picker and JAWS

    I am trying to make my APEX applications more ADA section 508 compliant for the visually impaired without sacrificing functionality for the non-visually impaired.
    I would prefer to use the new APEX 4.0 Date Picker based on jQuery; however, it is not compatible/spoken by a Screen Reader such as JAWS. The classic date picker is compatible with a Screen Reader but is not nearly as nice or customizable.
    The APEX 4.0 Release Notes state:
    The new inline date pickers used in the Oracle Application Express are not usable with a screen reader.
    Workaround:The only workaround available currently is to enter the date manually into the date input field.
    This issue is tracked with Oracle bug 9740473.
    Are there any plans afoot to make this new date picker "screen readable"?
    Thanks.

    Hi,
    we are a little bit dependent here when the folks of jQueryUI (http://www.jqueryui.com) are making improvements in that area. It might would help if you post in the jQueryUI forum as well.
    But what we could do for 4.1 if no newer version of jQueryUI is available which addresses this accessibility issues, we could fallback to the "Classic Date Picker" if the application is running in "Screenreader Mode". Sighted users would still get the nice jQueryUI based date picker.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Using Date Picker on form causes session values to be cleared on validation

    Got a really weird problem on a form (on a report). We have a basic form which has a date picker on. The form fires a number of bog standard validations when the Create button is clicked (values filled in, values are numbers etc).
    When a validation fails, the values inputted by the user are retained. So far so good. However, when the user selects a date, and a validation fails, all the session values are all cleared (not just the date picker) and they have to fill everything in again.
    At first we thought there must be a process resetting the page items - nothing. Also recreated the page from scratch and it still doesn't work. Strangely, the problem goes away if we change the date picker to a text field. Also, if the user doesn't select a date, the other session values are retained.
    Are we doing something daft here or is this a bug?

    Yes - we're using inbuilt validation to ensure it's a valid date. We tried turning this off and it makes no difference, the problem is still there.
    We tried changing the date picker to a text field and using the same validation (i.e. check it's a date) and this works fine. This is why we think it might be a bug.

  • Date picker not working on quote registration form

    I inserted the date picker as a form field in my Quote Registration form. It works in the web forms preview but when I insert it nothing happens. Here is the sample site: http://coopsupport.businesscatalyst.com/
    I tried inserting is as HTML and as a module and neither worked. What did I miss?

    Hi,
    Something in your template is conflicting here once I remove the template the date picker works as normal.
    Please note the conflicts can be with a referenced js or jquery in the template.  I would check for this unfortunately scripting is outside our support scope however I'll leave this open to the community to offer any additional suggestions.
    Kind regards,
    -Sidney

  • Date Picker with seconds?

    Hi everybody,
    In my APEX application, for a particular form element, I need to setup a date picker with date + time with seconds.
    Unfortunately, in the differents masks that can be used for date picker element, there is not support of seconds.
    I have tried to set the default date format at "DD/MON/YYYY HH24:MI:SS" for my application, then to choose the date picker based on the application default date format, but still no support for seconds, only hour and minutes...
    Does anyone have an idea about that issue, and a way to implement seconds in my date picker? The point is that I need to be able to select the exact second in a range.
    Maybe something with jQuery or something else?
    Any help much appreciated!
    Thanks,
    Romain.

    Yes, this is one of the solutions, but of course it will require to create these additional elements...
    Still looking for an "all-in-one" way. If nothing is possible on the date picker level, I will manage it with more elements.
    Thanks,
    Romain.

  • How to Change UI element from input Field to Date Picker

    Hi All,
    One Custom View is created in which we are pulling some fields from a custom context node created using the value Node.
    For one of the field which is already an input field we need to convert it to date picker.
    in the GET_P_METHOD
    CASE IV_PROPERTY.
    WHEN 'fieldType'.
    rv_value = cl_bsp_dlc_view_descriptor=>field_type_radio.
    WHEN 'radioCols'.
    rv_value = '1'.
    ENDCASE.
    We can change the attribute to clbsp_dlc_view_descriptor_ and bring
    checkbox,radiobutton,hyperlink and all but not finding anything for Date picker.
    Can anyone suggest a method by which we can convert a UI element to Date Picker.
    Any suggestions will be highly appreciated.
    Regards,
    Sijo

    The technical data type for that field should be DATS then input help will automatically come.
    Also in get_m method of that attribute should have
      metadata = cl_crm_uiu_bt_date_tools=>get_m_date( ir_model_binding  = me
                                                      iv_attribute_path = attribute_path ).
    Regards,
    Shobhit

  • Read only Text Field for a Date Picker?? (how to)

    Hi,
    We have BPM Object presentations where we need to accept date values and the presentation puts Date Picker by default. But the text box associated with the date picker is editable. Is there a way so that I can make it non-editable so that i can enforce the data entry via date picker only (a typical use case)?
    Thanks in advance,
    user8702013.

    Hi,
    In the BPM Object's Presentation editor for the presentation, click the date field. On the right, click the "Properties" tab. Change the field's "Editable" property for this presentation from the default ("Yes") to "No". This only effects this one presentation.
    Hope this helps,
    Dan

  • How to insert a date picker input text field in a JSF Jsp page

    Hi,
    I have to develop an application using generic facets, unfortunately I am not supposed to use ADF Faces components given by Oracle.
    Now my requirement is, on JSP page an input text field which holds a DATE value is required, it should also have a Date Picker Calendar adjacent to it.
    Could you pls shed some light on this issue and help me out.
    Thanks
    ~Siva(ji)

    <HTML>
    <script language="JavaScript" type="text/javascript">
    <!--
    var pUpWidthc = 300; //Change the pUpWidthc to your requirements.
    var scrAvailc = 400;     //Change to your available screen width. You see in
    //this eBooks' middle frame, the frame width is
                                                                //equal to 410 . So whether your using frames or
                                                                //or a full 800 pixel screen, you must calculate
                                                                //your available screen width.
    var PopUpC = document.getElementById("pUpc");
    document.write('<div id="pUpc" style="visibility:hidden;z-index:4;width:'+pUpWidthc+';position:absolute;"></div>');
    function cstmPup(objC,c){
    popUpC = document.getElementById("pUpc");
    popUpC.innerHTML = c.innerHTML
    popUpC.style.left = getPos(objC,"Left");
    var scrNeedc = getPos(objC,"Left") + pUpWidthc;
    if (scrNeedc > scrAvailc){
    //The number 10 below is an extra offset x value applied when the
    //definitional popup box positions beyond your screen width. You
    //can change this number to fine tune your "beyond screenwidth" positioning.
    var scrOffsetC = getPos(objC,"Left") + pUpWidthc - (scrAvailc);
    popUpC.style.left = getPos(objC,"Left") - (scrOffsetC - 0);
    popUpC.style.top = getPos(objC,"Top") + objC.offsetHeight;
    popUpC.style.visibility = 'visible';
    fill();
    function fill()
         var noOfRows=7,noOfCols=7,i=0,j=0,day=1,x;
    var d1=FirstDayOfWeek(7,2008);
    //40     
         for(i=1;i<noOfRows;i++)
              x=document.getElementById('myTable').insertRow(i);
              for(j=0;j<noOfCols;j++)
                   var y=x.insertCell(j);
                   if( ( i==1 && j<d1))
                   y.innerHTML="";
                   else if(day<=DaysInMonth(7,2008)){
                   y.innerHTML=day;
                   day++;
    //document.write(FirstDayOfWeek(7,2008));
    function FirstDayOfWeek(m,y)
    var i;
    var dow = 6;
    //document.write("Hello");
    for (i=1583; i<y; i++)
    dow += (LeapYear(i)) ? 2 : 1;
    for (i=1; i<m; i++)
    dow += DaysInMonth(i,y);
    return dow % 7;
    function DaysInMonth(m,y)
    // m is the month number (1,2,3,...12), y is the year number (four digits)
    switch (m)
    case 1:
    case 3:
    case 5:
    case 7:
    case 8:
    case 10:
    case 12: return 31;
    case 2: if (LeapYear(y))
    return 29;
    else
    return 28;
    default: return 30;
    function LeapYear(y)
    return (y % 4==0) && ((y % 100!=0) || (y % 400==0));
    function getPos(objC,sPos){
    var iPos = 0;
    while (objC != null) {
    iPos += objC["offset" + sPos];
    objC = objC.offsetParent;}
    return iPos;
    function hPopUpc(){
    popUpC = document.getElementById("pUpc");
    popUpC.style.visibility = 'hidden';
    //-->
    </script>
    <BODY
    <button id="c1" onclick="cstmPup(c1,pUpCstm)">Custom PopUp</button>
    <'div' id="pUpCstm" style="display:none;">
    <'div' id="myid" align="left" style=" width:100%; height:100%; background:#cccccb; border:1px solid black; border-top:1px solid white; border-left:1px solid white; padding:10px; font:normal 10pt tahoma; padding-left:18px "> <b>Rich Message Boxes</b>
    <hr size="1" style="border:1px solid black;">
         <div style="width:220px; font-family:tahoma; font-size:80%; line-height:1.5em"><br>
              <table border ="1" id="myTable">
                   <TR>
                        <TD> SUN </TD>
                        <TD> MON </TD>
                        <TD> TUE </TD>
                        <TD> WED </TD>
                        <TD> THU </TD>
                        <TD> FRI </TD>
                        <TD> SAT </TD>
                   </TR>
              </table>
         <br><br>
         </div>
         <br>
         <div>
    <button tabindex="-1" onclick="hPopUpc()" style="border:1px solid black; border-left:1px solid white; border-top:1px solid white; background:#cccccc ">Close Message</button>
    </div>
    <?BODY
    </HTML>
    Message was edited by:
    mchepuri
    Message was edited by:
    mchepuri
    Message was edited by:
    mchepuri

  • Default Value Date Picker Field

    Hello:
    In a detail tabular form I am referencing a date picker field from the master form as default value.
    This is the situation in the detail form:
    TABULAR FORM
    Column Name:                   FECHAREGISTRO -- the field's name in the detail tabular form
    Default Type: Item (application or page item name)
    Default: P68_FECHAREGISTRO -- It's a field in the master form and also is Date Picker format
    Reference Table Owner: SAMPEDRORIVEROS
    Reference Table Name: BITACORAABOGADO
    Reference Column Name: FECHAREGISTRO -- It's a date field in the database
    At execution time I have the error:
    report error:
    ORA-01790: expression must have same datatype as corresponding expression
    I think it is because i must use to_date and to_char in order to change the datatype and i have tried using:
    Default: to_date(to_char(:P68_FECHAREGISTRO,'DD-MON-YYYY'),'DD-MON-YYYY')
    and in Default Type: PL/SQL Expression or Function
    but I get a different message at execution time:
    report error:
    ORA-01722: invalid number
    Could you explain me what is the problem??
    Thanks in advance.
    Jairohernan

    I don't think you need to do a to_char here
    try
    to_date(:P68_FECHAREGISTRO,'DD-MON-YYYY')

  • Date picker field shows html code?

    I have a HTMLDB 2.0 app that I have ported to APEX 3.1. I have one field that is a date picker field which has a before regions computation on it that calculates an expiration date. For some reason, the text area shows the HTML code of the page, not the calculated date. No idea why. Anyone? TIA

    Can you show us on apex.oracle.com?
    Scott

  • Splitting Date Picker applet input over multiple fields

    I have created three text fields to collect date information (MM-DD-YYYY). I did so in order to allow entering dates in manually while applying a format mask to the entry along with a jumping cursor to jump from the MM field to the DD field to the YYYY.
    I would like to be able to use the date picker functionality aswell to fill out these three fields incase a user does not want to enter the date manually.
    What is the best way to approach this?
    Thanks

    Hi,
    The best way would be to call a javascript function using an onchange event in the Element Attributes of the date picker. The function would then strip the components out of the date field and populate the other three fields. The example in the link below should should give you enough information to do this;
    http://htmldb.oracle.com/pls/otn/f?p=31517:162:4335067967832318::NO
    cheers,
    Ron

  • Is there to restrict dates avaiable in a  date picker field?

    I want to use a date picker field, but want to restrict the selectable dates. I am aware that I can perform a validation on the field after the fact, but is there a way to restrict the date visible to the end user in the date picker calender?

    Hi,
    As I know there is no way do that for Apex standard datepicker.
    You can check alternative solution e.g. using jQuery
    Br, Jari

Maybe you are looking for

  • Is it possible to change CONVERSATION_ID in UDF?

    Dear All, I am facing a scenario, which wants to change the CONVERSATION_ID based on one field of the source Message in Message Mapping dynamically, is it possible to change the CONVERSATION_ID in the User Defined Function? If it is possible, could a

  • How to get  sales area text data ( line1) from XD02

    hi sap gurus, how to get table name for sales area text xd02 (like marking, remarks , tag ) or we have to use function module to fetch it in the report. thanks , Amit Ranjan .

  • How to move letters around to go from one anagram to the next?

    New to LiveType (2.1.4) and experimenting with it. I am trying to gauge the difficulty of the following effect: start from a short sentence and rearrange letters to form an anagram of it (not very original, but always effective). I can imagine that I

  • My MBP wont see or burn blank disks yet sees filled disks fine

    Hi, My problem reads just as above. When I insert a blank disc into my MBP it seems to just cruise and no untitled disk icon comes up in finder or on my desktop. It does however acknowledge any other disc that has information on it. I've checked syst

  • ABAP Coding doubts in BW

    Hi All,     I wish to know the difference between  SMOD and CMOD.I wish to get the step by step screen shots of both.and also wish to know User Exits and SAP exits .Becasuse these topics are very necessary things in our on going BW Project. I expect