Displaying date field in menu using HTML DB

How do I display a date field in HTML DB as drop down. I have the below HTML code which needs to be represented in HTML DB.
The display on the page should be like
Enter Start Date : "Month" "Day of the Month" "Year".
The above values in quotes should be displayed as enterable fields with LOVs.
Any help would be greately appreciated.
<td colspan="3">Select a Date Range for the Report</td>
</tr>
<tr>
<td nowrap="nowrap">
<label>
<input type="radio" name="selectDateType" value="mdy">
(Month Day, Year)</label></td>
<td nowrap="nowrap"><label for="startDateStringMonth">Start date:</label></td>
<td nowrap="nowrap" width="100%">
<select name="startDateStringMonth" id="startDateStringMonth" tabindex="3" >
     <option value="">Month</option>
     <option value="0">January</option>
     <option value="1">February</option>
     <option value="2">March</option>
     <option value="3">April</option>
     <option value="4">May</option>
     <option value="5">June</option>
     <option value="6">July</option>
     <option value="7">August</option>
     <option value="8">September</option>
     <option value="9">October</option>
     <option value="10">November</option>
     <option value="11">December</option>
     </select>
<select name="startDateStringDay" id="startDateStringDay" tabindex="4">
<option value="">Day</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<select name="startDateStringYear" id="startDateStringYear" tabindex="5">
<option value="2000">2000</option>
<option value="2001">2001</option>
<option value="2002">2002</option>
<option value="2003">2003</option>
<option value="2004">2004</option>
<option selected="true" value="2005">2005</option>
<option value="2006">2006</option>
<option value="2007">2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
<option value="2010">2010</option>
</select> </td>
</tr>
<tr>
<td nowrap="nowrap"> </td>
<td nowrap="nowrap"><label for="endDateStringMonth">End date:</label></td>
<td nowrap="nowrap">
<select name="endDateStringMonth" id="endDateStringMonth" tabindex="6">
     <option value="">Month</option>
     <option value="0">January</option>
     <option value="1">February</option>
     <option value="2">March</option>
     <option value="3">April</option>
     <option value="4">May</option>
     <option value="5">June</option>
     <option value="6">July</option>
     <option value="7">August</option>
     <option value="8">September</option>
     <option value="9">October</option>
     <option value="10">November</option>
     <option value="11">December</option>
     </select>

I'm not sure why you would do it the way you have it implemented in 3 select lists.
Why not use a Item Type of Date Picker, and let the user use the pop-up Date Picker to select the date.
You code has some fatal flaws:
1) You can't see any data before 2000
2) You can't see any data past 2010 (probably not an issue now)
3) It's possible to specify February 31 as a date
Using the built-in Date Item type will eliminate these issues and at the same time, make your UI more streamlined.
Thanks,
- Scott -

Similar Messages

  • Not able to display data in different columns using Unicode encoding

    Hi,
    Iam using Unicode encoding in my Java appln to support Japanese characters while downloading CSV report. But using the Unicode encoding displays all data in the first column of Excel sheet.
    Please let me know how to display data in different columns using Unicode encoding in Excel sheet.

    Hi Venkat,
    After extracting data into DSO check the request whether active or not.
    Check data in DSO in contents.
    If is there any restrictions on info providers in Queries.
    Let us know status clearly.......
    Reg
    Pra

  • Not able to display data in separate columns using Unicode encoding

    Hi,
    Iam using Unicode encoding in my Java appln to support Japanese characters while downloading CSV report. But using the Unicode encoding displays all data in the first column of Excel sheet.
    Please let me know how to display data in different columns using Unicode encoding in Excel sheet.
    This is an urgent need. Please help me out.

    Hi,
    I have no problem with item :P15_EV_LCL this is having a value my probem here is i am using java script to display the value in different color based on the condtion case
    eg:
    select
    case
    TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2)
    = :P15_EV_LCL
    then
    span style="background-color:lightgreen"
    || TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2) || '%' || /span
    else
    span style="background-color:yellow"
    || TRUNC(
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2) || '%' || /span
    end "Effort"
    from actuals Z
    If i dont use this <Span style="Background-color:color"> i am able to generate data in excel sheet if i use this color coding i am not able to get data in spread sheet.
    Please suggest
    Thanks
    Sudhir
    Edited by: Sudhir_N on Mar 23, 2009 10:00 PM

  • Display data in log file using PL/SQL procedure

    Just as srw.message is used in Oracle RDF Reports to display data in log file in Oracle Apps, similarly how it is possible to display data in log file using PL/SQL procedure?
    Please also mention the syntax too.

    Pl post details of OS, database and EBS versions.
    You will need to invoke the seeded FND_LOG procedure - see previous discussions on this topic
    Enable debug for pl/sql
    https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_LOG&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    HTH
    Srini

  • How to display date field in ALV in format 'YYYY-MM-DD'?

    Hi experts,
    I am not getting displayed the date field in ALV in the format 'YYYY-MM-DD' if it is different than my user setting's format (DD.MM.YYYY).
    Tried with the edit mask
    LVC_S_FCAT-EDIT_MASK = '____-__-__'  but it does not work.
    I could not find the conversion routine for this. Is it possible to write customer conversion routine?
    I have to use DATE field, otherwise if I display this format in CHAR10 field , sorting in ALV does not work for this field.
    PLEASE ANY HELP!
    Kind regards,
    Danijela

    Hi,
    Use FM FORMAT_DATE_4_OUTPUT.
    TYPE-POOLS : slis, KKBLO.
    TYPES: BEGIN OF t_data,
           sel     TYPE char1,
           matnr   TYPE matnr,
           bldat   type char10,
           END OF t_data.
    DATA: it_tab TYPE STANDARD TABLE OF t_data,
          it_fcat TYPE slis_t_fieldcat_alv.
    DATA: wa_tab TYPE t_data,
          wa_fcat TYPE slis_fieldcat_alv,
          wa_layout type SLIS_LAYOUT_ALV.
    data: lv_repid    TYPE syrepid.
    data : lv_date    type NLEI-IBGDT,
           lv_outdate type RN1DATUM-DATEX,
           lv_format  type RN1DATUM-FORMAT value 'YYYY-MM-DD'.
    lv_repid = sy-repid.
    lv_date = sy-datum.
    CALL FUNCTION 'FORMAT_DATE_4_OUTPUT'
      EXPORTING
        datin         = lv_date
        format        =  lv_format
    IMPORTING
       DATEX         = lv_outdate.
       move lv_outdate to wa_tab-bldat.
    wa_tab-matnr = '0000001'.
    APPEND wa_tab TO it_tab.
    lv_date = sy-datum + 1.
    CALL FUNCTION 'FORMAT_DATE_4_OUTPUT'
      EXPORTING
        datin         = lv_date
        format        =  lv_format
    IMPORTING
       DATEX         = lv_outdate.
       move lv_outdate to wa_tab-bldat.
    wa_tab-matnr = '0000002'.
    APPEND wa_tab TO it_tab.
    lv_date = sy-datum + 2.
    CALL FUNCTION 'FORMAT_DATE_4_OUTPUT'
      EXPORTING
        datin         = lv_date
        format        =  lv_format
    IMPORTING
       DATEX         = lv_outdate.
       move lv_outdate to wa_tab-bldat.
    wa_tab-matnr = '0000003'.
    APPEND wa_tab TO it_tab.
    wa_fcat-fieldname = 'SEL'.
    wa_fcat-ref_fieldname = 'XCHPF'.
    wa_fcat-ref_tabname = 'MARA'.
    wa_fcat-edit = 'X'.
    wa_fcat-checkbox = 'X'.
    APPEND  wa_fcat TO  it_fcat.
    CLEAR :  wa_fcat.
    wa_fcat-fieldname = 'MATNR'.
    wa_fcat-ref_fieldname = 'MATNR'.
    wa_fcat-ref_tabname = 'MARA'.
    APPEND  wa_fcat TO  it_fcat.
    CLEAR :  wa_fcat.
    wa_fcat-fieldname = 'BLDAT'.
    wa_fcat-ref_fieldname = 'BLDAT'.
    wa_fcat-ref_tabname = 'BKPF'.
    APPEND  wa_fcat TO  it_fcat.
    call 'REUSE_ALV_GRID_DISPLAY'' after this
    Edited by: Ankur Parab on Oct 1, 2009 2:50 PM
    Edited by: Ankur Parab on Oct 1, 2009 2:51 PM

  • Issue in displaying DATE field in Excel sheet

    Hi All,
    Kindly help me with the below issue:
    A report program when exexuted fetches the data's from database tables and populates in to an itab and the same is then moved to a itab which is declared like this:
    DATA: BEGIN OF t_downd OCCURS 0,
            line(4096) TYPE c,
          END OF t_downd.
    This T_DOWND will have all the obtained records and the same is used to pass the entries to GUI_DOWNLOAD function module inorder to save the excel sheet in '.csv' format to the desktop.
    The issue is the user wants the 'DATE' field to be displayed in 'DD-MM-YYYY' format in the excel sheet. So I have fetched the date based on the position(fdpos) and used the concatenate statement separated by '-'. Now when I run the program, some dates are not getting displayed in 'DD-MM-YYYY' format and some dates are getting displayed correctly as per the requirement.
    While debugging also, I could find the date value in T_DOWND in the 'DD-MM-YYYY' format only. Not sure where it is actually getting changed and why.
    Can some one please provide a soultion for this.
    Thanks,
    Deepa

    Hi Soumya,
    Thanks for the reply!
    I declared a constant in the below format for the quotes:
    constants : c_quotes type c value ''''. (i have put 4 quotes)
    Now i have concatenated the above quotes to my date value.
    But the output in the excel sheet is now getting displayed like this '30-02-2011
    All the dates are getting displayed in the correct expected format, but the only issue is we are getting an extra quotes in front of the date.
    Can you please suggest why this is happening.
    Thanks,
    Deepa
    Edited by: Deeparani.D on Jan 9, 2012 11:53 AM
    Edited by: Deeparani.D on Jan 9, 2012 11:54 AM

  • Report displays date field on server as timestamp, despite format

    I formatted a date field in my report as 01/03/2009.
    This looks ok when testing in Crystal Reports.
    On the server the date displays as 01/03/2009 12:00:00 AM.
    I really want to get rid of the time, as it doesn't fit in the report.
    I noticed that in an older report the field of the same date is typed as timestamp. In this case the server display correctly.
    The problem is, I cannot figure out how/why the date is typed differently in the 2 reports, e.g. date vs timestamp.
    Help!?

    Ah, that explains it. Some JDBC drivers handle date field types differently.
    Be sure you are using the latest JDBC jars from Oracle and make sure you have the correct Java path in the PATH statement.
    Other than that it is likely a limitation of the driver itself.
    Try using the native Oracle driver in the database wizard and see if you get the same results.
    And as suggested go into the Report Options and see if any of the those switches help. Also right click on the field and select Format and see if those option also help you.
    Thank you
    Don

  • I need to display date field as ..

    hi
    i need to display a field in format yyyy-mm-dd as ( char 10)
    i am able to display as yyyymmdd by declaring as char but how to include - in between
    display is needed both in ALv output and also in text file geneartion on server.

    Hi
    - File
    U can use WRITE statament for the file:
    PARAMETERS: P_DATE(8) DEFAULT SY-DATUM.
    DATA: DATE_OUT(10).
    START-OF-SELECTION.
      WRITE P_DATE USING EDIT MASK '____-__-__'  TO DATE_OUT.
    - ALV:
    The catalog table should have a field to indicate the mask, you can insert a musk like above.
    Max

  • Display data on ADF table using a VO binded to a message.properties file

    Hi,
    I want to display data in a JSPX page using ADF table which is based on a ViewObject. The attributes of the ViewObject should get it's value from a abc.properties file(static file).How can i achieve this.
    thanks in advance.
    regards,
    Himanshu.

    Hi Himanshu,
    When you create a VO based on static values, all of the records from your VO are generated into the MessageBundel.properties file like this
    devguide.entity.ViewObj.SL_0_0=1
    devguide.entity.ViewObj.SL_0_1=<val1>
    devguide.entity.ViewObj.SL_0_2=<val2>
    devguide.entity.ViewObj.SL_1_0=2
    devguide.entity.ViewObj.SL_1_1=<val1>
    devguide.entity.ViewObj.SL_1_2=<val2>
    You could add more lines to the properties files maintaining the same pattern. Also noticed that you can read all the values from a CSV file as well.
    The last resource is to programmatically read the file and start creating new rows on the VO, which won't use any of the declarative tools for VOs.
    -Juan Camilo.

  • Help on jsp code to display data in same page using using ajax ?

    Is there any jsp code to display in same page using using ajax ?

    Re: need help on how to display data in same jsp page. Locking.

  • Problem with displaying Date field in the table.

    Hi All,
    I am trying to display data into a table UI Element. 
    In that data, i have one DATE type field. While displaying data in DATE field, it will display like this "01.02.2009".
    Now my requirement is if i want to modify that DATE field, it will allow to modify "01.02.2009"  to "26.02.2009".
    But while modifying DATE field , I want to show the Calender of that month, in that i  have to select the another date.
    (Like normal Date UI Element will show that calender).
    Can anyone please help me.
    Thanks in Advance!
    Regards,
    Sreelakshmi.

    Hi,
          Go to the context attribute that was mapped to the DATE field of the table and change the perperty INPUT HELP MODE to  AUTOMATIC and it works.
    Regards,
    Manne.

  • I want to display BLOB image in JSP Using  html tags IMG src=

    GoodAfternoon Sir/Madom
    I Have got the image from oracle database but want to display BLOB image using <IMG src="" > Html tags in JSP page . If it is possible than please give some ideas or
    Send me sample codes for display image.
    This code is ok and working no problem here Please send me code How to display using html tag from oracle in JSP page.
    <%@ page import="java.sql.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="javax.swing.ImageIcon;" %>
          <%
            out.print("hiiiiiii") ;
                // declare a connection by using Connection interface
                Connection connection = null;
                /* Create string of connection url within specified format with machine
                   name, port number and database name. Here machine name id localhost
                   and database name is student. */
                String connectionURL = "jdbc:oracle:thin:@localhost:1521:orcl";
                /*declare a resultSet that works as a table resulted by execute a specified
                   sql query. */
                ResultSet rs = null;
                // Declare statement.
                PreparedStatement psmnt = null;
                  // declare InputStream object to store binary stream of given image.
                   InputStream sImage;
                try {
                    // Load JDBC driver "com.mysql.jdbc.Driver"
                    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
                        /* Create a connection by using getConnection() method that takes
                        parameters of string type connection url, user name and password to
                        connect to database. */
                    connection = DriverManager.getConnection(connectionURL, "scott", "root");
                        /* prepareStatement() is used for create statement object that is
                    used for sending sql statements to the specified database. */
                    psmnt = connection.prepareStatement("SELECT image FROM img WHERE id = ?");
                    psmnt.setString(1, "10");
                    rs = psmnt.executeQuery();
                    if(rs.next()) {
                          byte[] bytearray = new byte[1048576];
                          int size=0;
                          sImage = rs.getBinaryStream(1);
                        //response.reset();
                          response.setContentType("image/jpeg");
                          while((size=sImage.read(bytearray))!= -1 ){
                response.getOutputStream().write(bytearray,0,size);
                catch(Exception ex){
                        out.println("error :"+ex);
               finally {
                    // close all the connections.
                    rs.close();
                    psmnt.close();
                    connection.close();
         %>
         Thanks

    I have done exactly that in one of my applications.
    I have extracted the image from the database as a byte array, and displayed it using a servlet.
    Here is the method in the servlet which does the displaying:
    (since I'm writing one byte at a time, it's probably not terribly efficient but it works)
         private void sendImage(byte[] bytes, HttpServletRequest request, HttpServletResponse response) throws IOException {
              ServletOutputStream sout = response.getOutputStream();
              for(int n = 0; n < bytes.length; n++) {
                   sout.write(bytes[n]);
              sout.flush();
              sout.close();
         }Then in my JSP, I use this:
    <img src="/path-to-servlet/image.jpg"/>
    The name of the image to display is in the URL as well as the path to the servlet. The servlet will therefore need to extract the image name from the url and call the database.

  • Problem in displaying a field in webdynpro using Adaptive RFC model

    HI,
    I created a webdynpro application using adaptive RFC model and i have a problem in displaying one of the output fields.
    When i execute the function module it is giving the exact value for my output field in this case telephone number (of type STEXT which is char with length 40).But when i am trying to display that telephone number in webdynpro application it is taking only first 4 digits.
    i deleted the model and recreated it still it doesnot work.
    please let me know how to resolve it.
    points will be awarded for sure
    Bala

    Hi Bala,
    Whenever you reimport the model server restart is necessary otherwise the changes will not get reflected. You will get an error when you deploy the application.There is no go around except restarting the server as the meta data gets cached in the server as long as the server is runnig.So, Once you restart the server the cache will be cleared.
    Check once again whether you are fetching data from correct BAPI field. Still problem persist try debugging.
    Regards, Suresh KB

  • How to display data on BI content using queries?

    Can anyone help me,not sure how to insert values in the queries then displaying it on the BI content.any step by steps instructions for me to follow?Please help,thank you=)

    Dear Koh,
    i was told that query is used to display the data i insert in the BI content(because i'm supposed to use BI content to display these data),in which there are infoareas created inside,so what should i do next?
    You will design Queries to analyze the data available in the InfoProviders ( InfoCube, DSO, Info Object etc.)
    There are Standard BI Content InfoProviders...if u are using them then just creat Query on top of them..If u are using Customized infoProviders ( Created by u ) then create Query on top of urs.
    Open Query Designer..from ur Start Menu > Business Explorer > Query Designer...and follow the above mentiopned process.
    Or
    Use Tcode RRMX to open Query Designer and create a Query.
    Regards,
    Ram.

  • Restrict displayed data in a query using roles

    Hi experts.
    i'm writing to you to explain our trouble.
    We have an infocube with 2 company codes 'A' & 'B'.
    We are trying to display only one of them depending on the user that executes THE SAME query, whitouth using a filter for the company code (0comp_code).
    We have done a couple of roles that restrict that infoobject and we have activated de chekbox in the infoobject properties/reporting "authorization relevant".
    This doesn´t work as well as we wanted, it restricts the access to the data that we don´t specify in the role, but when the query is executed, we obtain a message which says that the user has not authorization to acces data, here is the main problem, we only want to display a company code, but when we execute the query and tries to acces the data that is not defined in the role for that user, the query crashes and doesn't display anything.
    Is there a way to do what we want using role authorizations?
    Thanks in advance.

    Hi,
    Thanks for your answers, but, i am still having the problem.
    We are working with the 3.5 version, so we can not do what you say.
    In the other hand we have already used the transaction rssm to do that, but we are still having the authorization message when we execute the query whitouth a filter and comes data that is not defined int our roles.
    I am not sure, perhaps it is not possible with the 3.5 version.
    Thanks.

Maybe you are looking for

  • Upgrading Hard Drive- Which type of SATA?

    Ok, hard drive crashed last night.. 13 mos old. Seems like lots of others are having a similar problem. At any rate, I am going to upgrade, and I noticed that I have to upgrade with a 2.5" SATA connection. When I am surfing for these, I am seeing SAT

  • MeetingPlace Express Assistance

    Hi All, We have MeetingPlace Express version 2.1.1.2. We need to configure it to accept any user to make a non-scheduled conference directly, without requesting the user to enter his profile ID and profile password, and without the need to add the da

  • [HR Event] Workaround for CL_HRPA_PERNR_INFTY_XSS

    Hi, Here is the problem: we would like to use ESS but we also need to notify local administrator of the master data changes in the SAP system when the employee changes his/her data. Thus, we use HR Master Data event (transaction SWEHRx) so as to dete

  • Establishing BPM, SOA and Enterprise Architecture and 'Governance'

    Good day all, (Originally posted on LinkedIn Oracle BPM group) (This post can also apply to those implementing SOA and/or Enterprise Architecture) After reviewing Oracle's IT Strategies from Oracle (ITSO) reference library (http://www.oracle.com/tech

  • Download 9i release 1

    Hi! I wanna download Oracle9i Release 1 (9.0.1) for Microsoft Windows NT/2000/XP (Enterprise/Standard/Personal Edition). Found a link under Downloads but it seems to be dead. Can I find it anywhere else? Thanx /Mike