Adding date picker to jsp

Hi ,
Please help
Is there a sample code available for including date picker control in jsp page and retrieving the selected values onto a text field.
Regards,

you can use mine - completely free :)
http://baton.pop.e-wro.pl/ - JavaScript Calendar Widget
it supports pl/en lang which is set by <html lang='?'> attribute
rafal baton zaczynski
http://www.belysio.com - free mobile localization app

Similar Messages

  • Date picker in JSP

    Hi,
    I have a problem on selecting date picker. I have a drop down of 20 numbers. On selection of any number I need to build a grid of same rows. There is a column called date in the grid. It has date picker. I am getting the grid. But when I tried to pick a date from the date picker it gives me error. "Object doesn't support this property or method". I have the same name for the date field.
    I have the following code.
    Vector TransAmt = (Vector)request.getAttribute("TransAmt");
    Vector CustRef = (Vector)request.getAttribute("CustRef");
    <p>
    <table width="100%" border="1" bordercolor="Black" cellspacing="0" cellpadding="0">
    <tr>
    <td class="bodyTableDataCol" nowrap width="6%" height="20">Transfer Amount</td>
    <td class="bodyTableDataCol" nowrap width="15%" height="20">Value Date</td>
    <td class="bodyTableDataCol" nowrap width="15%" height="20">Customer Reference</td>
    <td class="bodyTableDataCol" nowrap width="15%" height="20">Detail</td>
    </tr>
    <%
    for (int j = 1; j <= intper_page; j++)
         int i = 0;
    %>     
    <tr>
    <td class="<%=(j%2==0)?"bodyTableDataBS":"bodyTableDataAS"%>" nowrap width="12%" align="center" height="20"><%=TransAmt.elementAt(i)%></td>
    <td class="<%=(j%2==0)?"bodyTableDataBS":"bodyTableDataAS"%>" nowrap width="12%" align="center" height="20">
    <input type="text" name="ValueDate" size="11" maxlength="11" style="font-size: xx-small" value=<%=FrmValueDate%> onChange="upperMe(this)">
    <IMG SRC="/mwintl11/images/calendar.gif" BORDER=0></td>
    <td class="<%=(j%2==0)?"bodyTableDataBS":"bodyTableDataAS"%>" nowrap width="12%" align="center" height="20">
    <input type="text" name="CustRef" size="15" maxlength="11" style="font-size: xx-small" value=<%=CustRef.elementAt(i)%>></td>
    <td class="<%=(j%2==0)?"bodyTableDataBS":"bodyTableDataAS"%>" nowrap width="12%" align="center" height="20">
    <input value="Edit" name="update" tabindex="25" type="button" onClick="modifyPayment()" class="formButton" style="width: 55px; color: red; height: 20px; text-align: center"></td>
    </tr>
    <%
    %>
    </table>
    Can anybody help me on this?
    Thanks.

    In fact,
    "JavaScript".substring(0, 4) != "Java"

  • 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

  • Query using Date Picker

    Is it possible to have a date picker, like the one on the edit form, added to the generated query form?
    I'm using version 9.0.3
    Thanks.

    Hi,
    I tried the normal date picker as in the edit form but it doesn't work!
    With the following code it is possible to select a date from the date picker:
    <script src="/cabo/jsLibs/MarlinCore.js" language="javascript"></script>
    <script src="/webapp/jsLibs/DateField.js" language="javascript"></script>
    <INPUT TYPE="TEXT" NAME="NAME_TEXTFIELD" SIZE="11">
    <a onclick="launchDatePicker('/cabo/jsps/frameRedirect.jsp?redirect=/webapp/jsp/calendar.jsp&locale=nl_BE&enc=windows-1252', 'FORM_NAME', 'NAME_TEXTFIELD', 'dd/MM/yyyy'); return false" href="#">
    <img src=/webapp/images/FNDICLDR.gif align=absmiddle border=0 alt="Calendar for date entry assistance"></a>
    You have to fill in the places where I put FORM_NAME or NAME_TEXTFIELD and it must work!
    It works with me so I hope it works also with you...

  • Inserting a Value into otherTable using an App. Proc. from a Date Picker

    I'm trying to call an Application Process that will insert an Attribute of a Row, into another table, after selecting a date from a Date Picker cell.
    I don't know why this shouldn't be possible. I think I've got all of my "Ducks in a Row", so to speak,
    but the Value that is being inserted into the other table is this:.. [object HTMLTableCellElement]
    (Ultimately, I'd like my Application Process to include Page element values with the insert as well, but I'm trying to handle one problem at a time)
    Here's a list of all the steps I've covered:
    1. I've Created an Application Process, (popDevices). The Process Point is "On-Demand". The Type is "PL/SQL Anonymous Block".
    The Process is defined as such:
    BEGIN
    Insert into P_DEVICES
    NAME,
    IP_ADDRESS,
    MODEL
    ) values
    'Unassigned',
    'Unassigned',
    :P153_MODEL
    COMMIT;
    END;
    2. I've Included the Javascript in the Page HTML Header.
    The Javascript is written as such: (minus the tags)
    function popDevices(PART_NO)
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=popDevices',0);
    get.add('P153_MODEL',PART_NO);
    gReturn = get.get();
    get = null;
    3. I've included the following in the "Element Attributes" field of the Date-Picker Item (Date_Delivered).
    The Region Type is "SQL Query (Updatable Report)"
    onChange="javascript:popDevices(PART_NO);"
    THE RESULTS
    A. A row does get inserted into the other (P_Devices) table,
    But the value of the Attribute from the Page Region is not valid.
    The Inserted value is this: [object HTMLTableCellElement]
    B. I have tried Every conceivable combination of characters in the "Element Attributes" field, such as:
    ...(PART_NO), (#PART_NO#), (||PART_NO||), (+PART_NO+)
    C. The Javascript in the Page HTML Header appears to be correct, since I have written it this same way for other applications without any problems.
    D. If this simply cannot be done by referencing the "onChange" Javascript from the "Element Attributes" field,
    Then can you help me to write the code into the Select statement of the region.
    Thanks for any help you can give me.
    -Gary

    This may not be the most direct approach to the solution. But, none the less, it is a solution.
    For those other novices, like myself, I hope this can be useful at some point in your development:
    MY DESIRED RESULT:
    A. To Insert into another tablle values derived from both; Page Item (i.e. P153_x) and Attributes of a Row in an Updatable Report from which I have selected the Date-Picker.
    B. I want the insert to occur automatically after the user Selects the date from the Date-Picker.
    SOLUTIONS:
    1. I usea Javascript prompt window to prompt for information and store the information in Pre-Created Page Items.
    This is the Javascript as I've entered it into the Page HTML Header region: (Minus the Tags)
    function received_javaprompt () {
    var Serial_Number = prompt("Enter the Serial Number");
    var Bldg_Id = prompt("Enter the Bldg_Id");
    var Clst_Id = prompt("Enter the Clst_Id");
    $x('P153_SERIAL_NO').value = Serial_Number;
    $x('P153_BLDG_ID').value = Bldg_Id;
    $x('P153_CLST_ID').value = Clst_Id;
    2. I needed to identify the (Manufacturer and Part_No) Column Attribute in the Row from which I selected the Date-Picker.
    A. To do this, I enumerated the Columns in the order they were listed in the Select Statement of the region (Click on the Region Definition Tab).
    B. Then (Click on the Report Attributes Tab). Count, In the numerical order which these columns are selected, ONLY the columns that are Editable.
    C. When I counted down as far as the Column I wanted to capture the value of, Then I made a mental note of that number and used it in the following (2) Javascripts (findMaker and findModel).
    3. findMaker (Minus the tags)
    function findMaker (pThis) {
    var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
    var Maker = html_GetElement('f15_'+vRow).value
    $x('P153_MAKER').value = Maker;
    4. findModel (Minus the tags)
    function findModel (pThis) {
    var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
    var Model = html_GetElement('f16_'+vRow).value
    $x('P153_MODEL').value = Model;
    5. I added one more Javascript, to the Page HTML Header, that references the Application Process which will Insert the values into the "Other" table:
    function popDevices(P153_SERIAL_NO,P153_BLDG_ID,P153_CLST_ID,P153_MAKER,P153_MODEL)
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=popDevices',0);
    get.add('P153_SERIAL_NO',P153_SERIAL_NO);
    get.add('P153_BLDG_ID',P153_BLDG_ID);
    get.add('P153_CLST_ID',P153_CLST_ID);
    get.add('P153_MAKER',P153_MAKER);
    get.add('P153_MODEL',P153_MODEL);
    gReturn = get.get();
    get = null;
    6. I added the "onChange" process to the Element Attributes field of the Table item which utilizes the Date-Picker:
    A. Click on the Report Attributes Tab of the Region.
    B. Click on the Edit icon of the column which utilized the Date-Picker
    C. I added this "onChange" reference to the Element Attributes field, which is found in the Tabular Form section.
    onChange="javascript:received_javaprompt();findModel(this);findMaker(this);popDevices((P153_SERIAL_NO).value,(P153_BLDG_ID).value,(P153_CLST_ID).value,(P153_MAKER).value,(P153_MODEL).value);"
    7. The Application Process which inserts the collected data into the table is as follows:
    (Name= popDevices: Process Point= On-Demand: Type= PL/SQL Anonymous Block)
    BEGIN
    Insert into P_DEVICES
    BLDG_ID,
    CLST_ID,
    NAME,
    IP_ADDRESS,
    SERIAL_NO,
    MAKER,
    MODEL
    ) values
    :P153_BLDG_ID,
    :P153_CLST_ID,
    'Unassigned',
    'Unassigned',
    :P153_SERIAL_NO,
    :P153_MAKER,
    :P153_MODEL
    COMMIT;
    END;
    Well, I hope this may help someone else like me.
    I usually arrive at my solutions by getting help here on the Discussion Forum and also Google. Google inevitably points me to a previous Apex Discussion Forum session.
    Edited by: garyNboston on Mar 15, 2010 10:55 AM

  • How to validate a date in date picker

    Dear All,
    ADF BC and ADF faces page, in the page there is a date picker field where i need to apply validation(i.e. select date is greater than the sysdate), i added a validation in the entity object on the corresponding field, using a compare validator, operator: Less Than, compare with: Query Result, sql statement: select sysdate from dual
    when the page is commited, i got the following errors, anybody any idea? thank you!
    07/09/03 18:18:32 [584] oracle.jbo.common.JboAssert: (Assertion Failed)
         at oracle.jbo.common.Diagnostic.ASSERT(Diagnostic.java:303)
         at oracle.jbo.common.Diagnostic.ASSERT(Diagnostic.java:338)
         at oracle.jbo.server.util.Variant.compareTo(Variant.java:1225)
         at oracle.jbo.server.rules.JboCompareValidator.validateValue(JboCompareValidator.java:171)
    07/09/03 18:18:32 [585] *** Using bean introspection to lookup value :currentRowIndexInRange
    03-sep 18:18:32 DEBUG (JhsPageLifecycle) -executing processModelUpdaters
    03-sep 18:18:32 DEBUG (JhsCollectionModel) -DocumentsCollectionModel: Executing processNewRows
    03-sep 18:18:32 DEBUG (JhsCollectionModel) -DocumentsCollectionModel: DocumentsTable new row 0 ignored, no attributes updated.
    03-sep 18:18:32 DEBUG (JhsPageLifecycle) -executing validateModelUpdates
    03-sep 18:18:32 DEBUG (JhsPageLifecycle) -executing onCommit
    07/09/03 18:18:32 [586] DCBindingContainer.reportException :oracle.jbo.TxnValException
    07/09/03 18:18:32 [587] oracle.jbo.TxnValException: JBO-27023: Valideren van alle rijen in een transactie is mislukt.
         at oracle.jbo.server.DBTransactionImpl.validate(DBTransactionImpl.java:4051)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:1921)
    ## Detail 0 ##
    oracle.jbo.RowValException: JBO-27024: Valideren van rij met sleutel oracle.jbo.Key[382 ] van type Benchmarks is mislukt.
         at oracle.jbo.server.EntityImpl.validate(EntityImpl.java:1597)
         at oracle.jbo.server.DBTransactionImpl.validate(DBTransactionImpl.java:4031)
    ## Detail 0 ##
    oracle.jbo.AttrValException: JBO-27025: Valideren van attribuut EstimatedComplDate met waarde 2007-08-11 is mislukt.
         at oracle.jbo.server.AttributeDefImpl.validate(AttributeDefImpl.java:1954)
         at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:1866)
    P.S. some of the message are displayed in Dutch
    Message was edited by:
    Jerry Yang

    But first setLenient(false), because to my mind
    DateFormat it apt to be far too lenient
    tending to accept things like 30 Feb.A web banking application had setLenient(false). Customers would call support because they got an error message when they tried to get transaction statements for the whole month by entering April 1 - April 31.
    We changed to setLenient(true). Consider which leniency mode is right for you. And write better error messages than what we had...
    Maybe: if non-lenient fails, parse with lenient; if that succeeds, give a specific error message explaining the situation (or execute with the lenient date, and present results with a warning message "we made a guess at what you meant, check results").

  • Date Picker Problem in BPM VC reports

    Hi All,
    we have created a VC report, which shows the BPM Process information for certain group of users. this is working fine. We are supposed to give some filtering options to the user so as to reduce the amount of records retrieved. We have to filter based upon the process start date (this value is a defalut parameter available when we create a new data source).
    This date is coming in M/D/YY format (ex. 1/1/11). If I use a date picker UI, its date is coming in MM/DD/YYYY format. Due to this the filtering is not working.
    Can some body help me how can I make this work.
    Regards,
    SrinivaS

    Hi All,
    I solved my problem. I added a new Action on submit of type "Assign" and used the below expression for conversion.
    =(DSTR(@STRTDTCUST_From,"M/D/YY")&" - "&DSTR(DADD(@StartDate_To,1,"D"),"M/D/YY"))
    SrinivaS

  • Session Data Lost Between JSP's

    Hello,
    I am using Oracle 10g Application Server (9.0.4) on SunOS 5.8. I am trying to upgrade an application previously written for Oracle 9iAS 9.0.2.
    A single JSP (myFile.jsp) is called via a POST operation, and it is initally used to create a frameset that contains two frames. Each frame has a URL link to the same JSP file, with some additional parameters:
    <frameset border="0" rows="*,70">
    <frame NAME="topFrame" SRC="myFile.jsp?PARAMETER1=hello&amp;PARAMETER2=goodbye"/>
    <frame NAME="bottomFrame" SRC="myFile.jsp?PARAMETER1=hello&amp;PARAMETER2=goodbye"/>
    </frameset>
    The problem is that when myFile.jsp is called to generate the actual page for the frames, all the HttpServletRequest data has gone, and only the parameters passed in the Query String remain. I don't want to lose the original POST data - in fact, when I used this on Oracle 9iAS 9.0.2 it preserved the POST data and added the additional queries from the query string so all the parameters were available.
    Has the behaviour of the session manager changed that much between Oracle 9iAS and Oracle 10g 9.0.4? How can I achieve my goal on 9.0.4?
    I tried adding the original POST request to the HttpSession variable as follows:
    session.setAttribute("PARENT_REQUEST",request);
    and then extracting the request data when the JSP is called on subsequent occasions as follows:
    HttpServletRequest newRequest = (HttpServletRequest) session.getAttribute("PARENT_REQUEST");
    But 'newRequest' is actually empty, and it doesn't create an exception. If I debug the session object I notice 2 things:
    1. The session ID remains the same througout all calls of myFile.jsp.
    2. The memory location pointed to by the parameter "PARENT_REQUEST" also remains the same, in the format:
    com.evermind.server.http.AJPHttpServletRequest@1bd5093
    If the session object being passed around by cookies remains consistent, why can I not extract the PARENT_REQUEST attribute from it on subsequent calls to myFile.jsp? Have I misunderstood how HttpSession works? How can I modify my JSP's so that data stored during a session is made available to subsequent calls to myFile.jsp?
    I appreciate any insight you can offer!

    Has the behaviour of the session manager changed that much between Oracle 9iAS and
    Oracle 10g 9.0.4? How can I achieve my goal on 9.0.4?If your experience did suggest something has changed from 9.0.2 to 9.0.4, I would believe that it is more about request management.
    If the session object being passed around by cookies remains consistent, why can I not
    extract the PARENT_REQUEST attribute from it on subsequent calls to myFile.jsp? Have
    I misunderstood how HttpSession works? How can I modify my JSP's so that data stored
    during a session is made available to subsequent calls to myFile.jsp?The "request" in the following code
    session.setAttribute("PARENT_REQUEST", request);
    is just a pointer to the actual request object. Other code, especially the server internal code that manage the http requests and responses can see and manipulate that actual request object. For example, although I am not sure if it is the case, the request objects can be pooled and reused. So it is possible that although "The memory location pointed to by the parameter "PARENT_REQUEST" also remains the same, in the format: com.evermind.server.http.AJPHttpServletRequest@1bd5093", the actual request object at that memory location may have changed. The right way to preserve the original request object is to make a private deep copy of it; however there is no easy way to do that.
    Well, an easy way out is to store directly what you need from the original request. If you would like to store the parameters, try
    session.setAttribute("origParams", request.getParameterMap().clone());
    Although this clone() does a shallow copy, it is probably good enough. To be absolutely sure, you can make a deep copy of everything you need and store them.
    Good luck!

  • How to Auto-Populate a User Data Picker?

    I understand how User Data Pickers work (mostly).  We have used them during the shell creation process to allow the creator to specify which users may access the shell and in what user groups they will be placed.  This works fine— as the shell is created, these users are added and assigned to their respective groups.
    From the documentation, User Data Pickers are supposed to support auto-population, but the system does not allow me to select a suitable source from which to pull.  For example, the shell attribute form contains a User Data Picker that contains the name of the PM that was assigned to the shell.  Say I have a BP in that shell on which I want the PM’s name to appear.  I’m thinking I would place a User Data Picker on the BP and auto-populate that field from the shell attribute user data picker, but uDesigner doesn’t allow the attribute form as source as it does for other DE types.  This is important as this field, the PM’s name, must be located on the BP if I’m to use it in a LiveCycle report.
    Short of having the user select the name again within the BP, how do I pass the names of shell members that were selected during shell creation using User Data Pickers?
    Thanks.

    That works!  Thanks Rich for clarifying your above posts with the screenshots. 
    Rich’s solution as it worked for me:
    1.  Add a User Data Picker to the shell attribute form.
    2.  Add a DE of DD SYS Medium Name to the shell attribute form.  The DD type appears critical here and was my mistake in the past.
    3.  Auto-populate the DE created in step 2: Source Name-->Data Picker; Source Element-->uuu_user_name (in this case).
    4.  On the BP, place the same DE as step 2 and auto-populate (or link) it to the same DE on the shell attribute form.
    What I didn’t expect:
    1. User Data Pickers on BPs cannot reference User Data Pickers on shell attribute forms.  Why do we need additional fields to link two other fields of the same type?
    2. In operation the auto-populate, setup in step 3 above, occurs immediately as if it were a formula instead of just populating upon the shell creation stup as it would on BP creation.

  • Read only date picker in an updatable query

    Dear all,
    There is a date picker component in my application. I need to disable data entry or any changes in a known condition. However when I create a dynamic action it only make the text field readonly.
    __Please be advised that the date picker is in an up-datable query__ .
    It also would be practical if I would be able to hide the javascript date picker button.
    regards

    Solved my problem by adding the following codes into the datepicker javascript:
    if (document.getElementById(dateFieldName).readOnly)
    return false;

  • Date picker css not showing in web form

    Hi there, I have a web form and added the date picker.
    When you try this within BC admin it displays very nicely, yet when Ive inserted the webform in the html page,
    the css styling for the date picker is not included.
    Can anyone help me here so that I can add the css to style the calendar to look a bit prettier!
    The source code of the datepicker:
            <label for="CAT_Custom_95263">Date of last vaccination</label>
            <br /><input type="text" name="CAT_Custom_95263" id="CAT_Custom_95263" class="cat_textbox" readonly="readonly" style="background-color:#F0F0F0;" onfocus="displayDatePicker('CAT_Custom_95263');return false;" />

    Hello VickiTuch,
    The date picker, once loaded, will get a bunch of inline styles applied to it from BC. This can override your CSS if you are not specific enough.  If you give your declarations an important:
    #datepicker{
        background-color: #333 !important;
    Should override their inline styles.
    Hope this helps,
    Chad Smith | http://bcgurus.com/Business-Catalyst-Templates for only $7

  • Page item (date picker)

    I have added a date picker to my report . and in the report source I've added a where clause to filter the report as per the selected date(which is one of the columns in the table) but there is nothing shown.
    where DATE =:P23_DATE
    when I remove the where clause all the records appear and when I return it ..nothing there.
    can someone help me?
    Edited by: Beena-IT on May 4, 2013 7:19 AM

    You have data, that's good. You've isolated the problem to what seems to be the WHERE clause, good. The WHERE clause is simple, good. So, it would seem DATE NOT = :P23_DATE for your query.
    Remember -- or note, if you didn't know this -- page items are (always?, mostly) character strings. As Jeff intimates, if DATE is a date, you will get implicit date conversion in your WHERE clause. (BTW, isn't DATE a Reserved Word?) May I suggest trying "DATE = TO_DATE(:P23_DATE,'your date format here')" to make it an explicit conversion?
    Also, I recommend running any query you are having a problem with in the APEX SQL Commands window. Then you can immediately see what APEX is returning for your query. It helps my debugging a lot.
    Regards,
    Howard

  • Date Picker in a Tabular Form

    Is there a way to use the minimum and maximum dates in date picker in a tabular form? It does not appear that this is available in a tabular form and I am finding it very difficult to come up with a way to limit the date selection to a particular month when using the tabular form. Any suggestions would be appreciated.

    I hadn't accounted for the addRow, and datepickers on newly added rows are indeed not restricted. Datepickers on existing rows are still being restricted, but since you had no rows there anymore you could only add rows.
    Could it be that in your local solution you have no rows too, and thus can only add rows, which has no date restriction?
    To restrict the datepicker for new rows I changed the "Add Row" button's URL. In 4.2 I'd set it to be defined by a dynamic action, but since you're on 4.0 I set the URL to:
    javascript:myAddRow();In the page edit i added this to "Javascript > Function and Global Variable Declaration"
    function myAddRow(){
    apex.widget.tabular.addRow();
    $("td[headers='DETAIL_DATE'] input:last")
    .datepicker("option","changeMonth",false)
    .datepicker("option","minDate",$v("P2_MASTER_MONTH_MINDATE"))
    .datepicker("option","maxDate",$v("P2_MASTER_MONTH_MAXDATE"));
    };This will first add a new row, and then the restriction will be applied to the last input item matching the selector. Indeed, on your local instance you will have to change the "apex.widget.tabular.addRow()" to just "addRow();", since the apex.widget.tabular namespace is new in 4.2.
    Some more notes of importance:
    - the column header: in the demo your column is "DETAIL_DATE". If this column is called differently in your local solution, you will need to change the jQuery selector to reflect this!
    - the P2_MASTER_MONTH_MIN/MAXDATE columns do some date arithmetic. It is important to take a look at their value if the datepicker is not being restricted, and also what language your application runs in. The default english application will set a date format for the jQuery datepicker to be dd-M-y, and it will take '01-JAN-2013' as a valid value. If your field however would contain something like '01/01/2013' it would not work. So for safety, take a look at the values of these items!

  • How to implement a Date Picker (Calendar) as a LOV in Portal Form?

    I have a form, which will input date from user, and I also have javascript calender.
    How to implement a Date Picker (Calendar) as a LOV in Portal Form? Do I need to choose POPUP and LOV for Date?
    Instead of typing the Date within a Portal form, a popup Calender that will allow user to Pick a date.
    Please help anyone!!

    Once you have the JavaScript and have added it to your form, you need to the the following. First off, you need to be able to customize the HTML code for the form (i.e. choose custom for form type when creating the form). Once you do that go into the custom layout to customize your HTML code. Find the field you want to add the date picker to. It will be <#your_field_name.ITEM#>
    Paste this code after it:
    <a href="javascript:show_calendar('forms[0.elements[16');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;"><img src="the source of your image file" width=34 height=21 border=0></a></TD>
    You will have to play around with the forms[0].elements[16]. 16 is what date field is set to. However your will differ, so just play with it.
    Hope this helps.
    Martin

  • Why is the date picker icon is not showing on the PDF file?

    Hi,
    I added a date field on a form.
    I can see the date picker icon when viewing the form online but when I download and open the PDF to my computer and open it on Adobe Reader that icon doesn't show up.
    It's important since my users then need to manually enter the date instead of choosing it on the graphic interface (some of my users are older so need all the help they can get)
    Is there an option or something I missing to make the date picker icon show up on the actual PDF file as well?
    Thanks

    >>Duplicate post removed to comply with the Verizon Wireless Terms of Service.  See Re: Samsung Galaxy S5 pre-order?<<
    Edited by:  Verizon Moderator

Maybe you are looking for

  • Problem with my MSI KT4 Ultra

    Hi all! I have a BIG problem, I have tried to look at this board, but there is many different answers out there  ;( I have KT4 Ultra with Athlon XP 2600+ I have set FSB to 166, and when I startup BIOS says Athlon XP 2600+. But in windows system, it o

  • Is it possible to pass a auto credit entry in miro

    Is it possible to pass a auto credit entry in a seperate gl while doing  miro equal to a debit entry done in another gl in same MIro only expense 100         (from migo)              to suspense gl 100   (auto entry)

  • Mail Recovery from Backup

    Hello, a couple of weeks before I've made a backup (with CarbonCopyCloner) from my Panther System. Meanwhile I've installed Tiger on my computer. I've made a bad mistake: after I have installed a new Mail-Account from a new ISP in Mail I've deleted t

  • Redirection through .htaccess

    hi, i have developed a spring project. I am using apache tomcat 5.5.27. I have to redirect my home site to another web page. So, I am using .htaccess to perform. My .htaccess file has Options +FollowSymlinks RewriteEngine On RewriteBase / RewriteCond

  • Airport Extreme-NAT-Firewall-TCP-IP-Ports and what not... I BEG FOR HELP!

    Problem: I can't use ISPQ (videochat) with my ibookG4 or MacBookPro. Details: iBookG4 [10.3.9] is the main one, MacBookPro [10.4.7] is the secondary one. I have a DSL modem attached to an Airport Extreme base. === I have run a diagnostic test on IsPq