How to convert a varchar to integer datatype in obiee Answers?

Hi Gurus,
I tried using cast to convert a varchar to integer type eg.
cast (column as integer) in fx in answers but its not working.
Can we use to_number function in answers?
Also do we have any other way of changing the datatype of a column rather than changing it in
Physical layer of the rpd.
Thanks
Ashish Gupta

Always first choice should be BI instead of porting a function on DB side.
As Lakshmipathi said do that.
It would be always nice to share what you see instead of "Not working"
have fun

Similar Messages

  • How to convert string to an integer in SQL Server 2008

    Hi All,
    How to convert string to an integer in sql server,
    Input : string str="1,2,3,5"
    Output would be : 1,2,3,5
    Thanks in advance.
    Regards,
    Sunil

    No, you cannot convert to INT and get 1,2,3 BUT you can get
    1
    2
    3
    Is it ok?
    CREATE FUNCTION [dbo].[SplitString]
             @str VARCHAR(MAX)
        RETURNS @ret TABLE (token VARCHAR(MAX))
         AS
         BEGIN
        DECLARE @x XML 
        SET @x = '<t>' + REPLACE(@str, ',', '</t><t>') + '</t>'
        INSERT INTO @ret
            SELECT x.i.value('.', 'VARCHAR(MAX)') AS token
            FROM @x.nodes('//t') x(i)
        RETURN
       END
    ----Usage
    SELECT * FROM SplitString ('1,2,3')
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Error on select when using value converted from varchar to integer (with isnumeric in where)

    Hi,
    Why is it, that when I convert a varchar into integer and filter it to numeric only that I get the Error 'Conversion failed when converting the nvarchar value '...' to data type int.'
    Here is a short SQL witch shows the Error:
    create table tTest(ID int, sText nvarchar(15))
    insert into tTest
    select 1, null
    insert into tTest
    select 2, 'q'
    go
    select distinct ID, sText, convert(int,sText) AS ID2 from tTest where isnumeric(sText) = 1
    go
    SELECT DISTINCT TOP 100 PERCENT
    ID
    FROM
    (select distinct ID, sText, cast(sText as int) AS ID2 from tTest where isnumeric(sText) = 1) v1
    WHERE
    id2 = 1
    go
    drop table tTest
    As a workaround I replaced the case with 'cast(case when isnumeric(sText) = 1 then sText else null end as int)', but this rater unexpected.
    It works fine in a short query, but if I create a view with the SQL from V1 then the error is unexpected, since I only know that if I view the source of the view

    >'cast(case when isnumeric(sText) = 1 then sText else null
    ISNUMERIC is not 100% accurate.
    BOL: "ISNUMERIC returns 1 for some characters that are not numbers, such as plus (+), minus (-), and valid currency symbols such as the dollar sign ($). For a complete list of currency symbols, see money and smallmoney (Transact-SQL)."
    LINK: http://technet.microsoft.com/en-us/library/ms186272.aspx
    ISNUMERIC examples:
    http://sqlusa.com/bestpractices/isnumeric/
    Kalman Toth Database & OLAP Architect
    Free T-SQL Scripts
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • How to convert from java.lang.Integer to int

    Could you please show me
    how to convert from java.lang.Integer to int?
    and how to convert from java.lang.Integer to String?
    Thanks,
    Minh

    Could you please show me
    how to convert from java.lang.Integer to int?
    and how to convert from java.lang.Integer to String?Tip: always keep a browser open on the API docs; if you've got a
    couple of MBs to spare, download the docs; it's very convenient.
    kind regards,
    Jos

  • How to convert  from  varchar to blob ?

    How to convert from varchar to blob ?
    thanks

    Here is a small PL/SQL block that we have used to convert varchar2 to blob.
    declare
    cursor get_blob is
    select blob_statement
    from report
    where report_id = 205
    FOR UPDATE OF blob_statement;
    v_loc blob;
    v_raw_buffer raw(32767);
    v_amount binary_integer := 32767;
    v_offset binary_integer := 1;
    v_buffer VARCHAR2(32767);
    begin
    open get_blob;
    fetch get_blob into v_loc;
    close get_blob;
    v_buffer := 'Sample text';
    v_raw_buffer := utl_raw.cast_to_raw(v_buffer);
    v_amount := utl_raw.length(v_raw_buffer);
    dbms_lob.write(v_loc, v_amount, v_offset, v_raw_buffer);
    commit;
    end;

  • How to convert a double to integer ?

    Hi,
    how do convert an output of a pow(2,n) method of Math class to integer. Since this pow(x double, y bouble) gives an output of type double, how do i convert this output to integer if i want the value returned as an integer ?
    thanks
    aron

    By casting (but note that this may not yield the results you want)...
    class Test {
         public static void main(String[] argv) {
              double a = 5.5;
              double b = 6.6;
              int c = (int)(a + b);
              System.out.println(c);
    }

  • How to convert char(1) to int32 datatype in pl/sql

    Hello,
    I am trying to convert char(1) to an integer data type to be put into an int32 variable in C#. I tried several options such as TO_NUMBER ,CAST(.. AS INTEGER), and CAST(.. AS SMALLINT) but they all return int64.
    Is there a way to ensure the casting into a datatype that is compatible with int32 ?
    Thanks

    Oracle's SQL Datatypes are limited to NUMBER, BINARY_FLOAT and BINARY_DOUBLE.
    There's a few others through PL/SQL including BINARY_INTEGER.
    If you look in USER_ARGUMENTS you can see it is defined slightly differently.
    Don't know whether / how .Net infers datatypes, but it is worth a shot.
    create or replace function v (p number) return  binary_integer is
    begin
    return p;
    end;
    /

  • How to convert file format using bfile datatype

    <pre>
    Hi all,
    Assume, i has a table BFILE_IMAGE and it table structure is similar like:
    SQL> desc bfile_image;
    Name Null? Type
    IMAGE_ID NUMBER
    FILE_NAME VARCHAR2(30)
    IMAGE BINARY FILE LOB
    SQL>
    Is that impossible if we can use process() function with bfile datatype? similar like:
    ordsys.ordimage.process(image,'fileFormat=JPEG contentFormat=24BITRGB');
    The line above is work with blob datatype but doesn't with bfile datatype. Can you please give me some idea how to deal with it.
    Thanks,
    Kevin

    a BFILE is content stored outside the Oracle database. It is a read-only object.
    process() is an in-place modification of the image. This is only possible with BLOB stored content.
    If you are using BFILE you could use the processCopy() method to create a new copy of the BFILE stored image that has been processed according to your command.

  • How to convert ASCII to an integer number??

    Here I am trying to send the number 1000000 from microcontroller through UART and I am recieving the ASCII in labview. But i would like to get exact 1000000 in labview too. So i am trying to convert ASCII to integer but i am unable to do that.
    Solved!
    Go to Solution.

    danil33 wrote:
    Hello mallik,
                       Please don't feel bad.Smercurio and all other experts are trying to make us to do things by our own.THis will make us experts in labview.Thats why he told you to go through the tutorials.I have heard such type of advice(sometimes they scold us) so many times.Still Iam hearingIt is our fault that we won't go through the tutorials properly.Don't get annoyed.
    Besides, the question is quite unclear formulated and makes me almost assume, that the OP hasn't even bothered to look for a solution himself. Since the OP receives a string it would be logical to look in the String palette for some function to do what he wants. And inside that palette there is magically a String/Number Conversion palette, which sounds almost like it could contain at least one function that could do the right thing. (In fact it contains 3 that could work, but I'm sure the OP can find the most logical one for his number easlily).
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to convert an Object into integer?

    Ho can v convert an object of type Object into integer data type?
    Object obj = null;
    integer int = _____________;
    plz do fill it up and help ASAP......

    Fortunately, Gosling was able to predict that his
    language would produce exceptions, so he gave usthe
    catch block, so we can magically make them goaway:
    > catch (Exception exc) {}You are
    probably not without knowing that empty catch blocks
    are considered to be bad practice.
    You should better do the following
    :catch(Exception exc) {
    throw new RuntimeException();
    ode]You turned your sarcasm detector off or something?? :-)

  • How to convert resultset variable to integer variable

    hii..i am making a jsp page in which i get the name of the product from the available products in the database and i give the quantity of the product from the jsp page which get stored in the database.Now the problem is when i give I want that only the product which i want come to the screen from the available products..for this i had made a combobox which selects the next item I want,but it is not working.Can anyone help me out.I am wriiting the code which I have written,Although it's not working.
    <%@page language="java"%>
    <%@page import="java.sql.*"%>
    <%@page import="connect.connection"%>
    <%
    String productId = request.getParameter("pname")==null? "": request.getParameter("pname");
    String strQuantity="";
    %>
    <%
         Connection con1=null;
         connection conn1=null;
         con1=conn1.getconnection();
         Statement st=null;
         ResultSet rs=null;
         st=con1.createStatement();
    %>
    <!--<script>
    function subject()
    document.registration.action="buyerForm2.jsp";
    //document.registration.submit();
    </script>-->
    <HTML>
    <HEAD>
    <TITLE>Shree Cement : Register Buyer</TITLE>
    <script language="javascript" src="../js/buyervalidate.js"></script>
    </HEAD>
    <body bgColor=3F7790 text=#000000 topMargin=12 border="0">
    <!-- Begin header section -->
    <jsp:include page="../header/header.jsp" />
    <!-- End header section -->
    <table width="800" align="center" border="0">
    <tr>
    <td bgcolor="#EBEBEB" width="135" valign="top">
         <!--Begin left nav section-->
              <jsp:include page="../include/left-nav-main.jsp" />
              <!-- End left nav section-->
    </td>
    <!--main section of pp Buyer-->
         <br>
    <td rowspan=7 valign=top width="58%" align="center">
         <table>
                        <tr>
                        <td class="img">Registration Form</td>
    <td width="60%"></td>
    <td align="left" class="img1">Buyer</td>
                        </tr>
         </table>
    <form name="login" method="post">
    <table cellpadding=3 class="pp">
    <tr>
    <td>Online bid date :</td>
    <td colspan=3 >
    <select name="monthonline" class="formfield1" value="month" >
    <option value="Month">-Month-
    <option value=1> January
    <option value=2>February
    <option value=3>March
    <option value=4>April
    <option value=5> May
    <option value=6> June
    <option value=7> July
    <option value=8> August
    <option value=9> September
    <option value=10> October
    <option value=11> November
    <option value=12> December
    </select>
              </td>
                   <td colspan=3 >
    <select name="dateonline" class="formfield1" value="date">
    <option value="Day">-Day-
    <option value=1>1
    <option value=2>2
    <option value=3>3
    <option value=4>4
    <option value=5>5
    <option value=6>6
    <option value=7>7
    <option value=8>8
    <option value=9>9
    <option value=10>10
    <option value=11>11
    <option value=12>12
    <option value=13>13
    <option value=14>14
    <option value=15>15
    <option value=16>16
    <option value=17>17
    <option value=18>18
    <option value=19>19
    <option value=20>20
    <option value=21>21
    <option value=22>22
    <option value=23>23
    <option value=24>24
    <option value=25>25
    <option value=26>26
    <option value=27>27
    <option value=28>28
    <option value=29>29
    <option value=30>30
    <option value=31>31
    </select>
                   </td>
                   <td >
    <select name="yearonline" class="formfield1" value="year" align="left">
    <option value="Year">-Year-
    <option value=2003>2003
    <option value=2004>2004
    <option value=2005>2005
    <option value=2006>2006
    <option value=2007>2007
    <option value=2008>2008
    <option value=2009>2009
    <option value=2010>2010
    </select>
    </td>
    </tr>
    <tr>
    <td>Start time :</td>
    <td colspan=3 width="296">
    <select name="starttime" class="formfield1" size=1>
    <option selected value="08:00:00">8 : 00 am
    <option value="08:15:00">8 : 15 am
    <option value="08:30:00">8 : 30 am
    <option value="08:45:00">8 : 45 am
    <option value="09:00:00">9 : 00 am
    <option value="09:15:00">9 : 15 am
    <option value="09:30:00">9 : 30 am
    <option value="09:45:00">9 : 45 am
    <option value="10:00:00">10 : 00 am
    <option value="10:15:00">10 : 15 am
    <option value="10:30:00">10 : 30 am
    <option value="10:45:00">10 : 45 am
    <option value="11:00:00">11 : 00 am
    <option value="11:15:00">11 : 15 am
    <option value="11:30:00">11 : 30 am
    <option value="11:45:00">11 : 45 am
    <option value="12:00:00">12 : 00 pm
    <option value="12:15:00">12 : 15 pm
    <option value="12:30:00">12 : 30 pm
    <option value="12:45:00">12 : 45 pm
    <option value="13:00:00">1 : 00 pm
    <option value="13:15:00">1 : 15 pm
    <option value="13:30:00">1 : 30 pm
    <option value="13:45:00">1 : 45 pm
    <option value="14:00:00">2 : 00 pm
    <option value="14:15:00">2 : 15 pm
    <option value="14:30:00">2 : 30 pm
    <option value="14:45:00">2 : 45 pm
    <option value="15:00:00">3 : 00 pm
    <option value="15:15:00">3 : 15 pm
    <option value="15:30:00">3 : 30 pm
    <option value="15:45:00">3 : 45 pm
    <option value="16:00:00">4 : 00 pm
    <option value="16:15:00">4 : 15 pm
    <option value="16:30:00">4 : 30 pm
    <option value="16:45:00">4 : 45 pm
    <option value="17:00:00">5 : 00 pm
    <option value="17:15:00">5 : 15 pm
    <option value="17:30:00">5 : 30 pm
    <option value="17:45:00">5 : 45 pm
    <option value="18:00:00">6 : 00 pm
    <option value="18:15:00">6 : 15 pm
    <option value="18:30:00">6 : 30 pm
    <option value="18:45:00">6 : 45 pm
    <option value="19:00:00">7 : 00 pm
    <option value="19:15:00">7 : 15 pm
    <option value="19:30:00">7 : 30 pm
    <option value="19:45:00">7 : 45 pm
    <option value="20:00:00">8 : 00 pm
    </select>
    </td>
    </tr>
    <tr>
    <td>End
    time :</td>
    <td colspan=3 width="296">
    <select name="endtime" class="formfield1" size=1><br>
    <option selected value="08:00:00">8 : 00 am
    <option value="08:15:00">8 : 15 am
    <option value="08:30:00">8 : 30 am
    <option value="08:45:00">8 : 45 am
    <option value="09:00:00">9 : 00 am
    <option value="09:15:00">9 : 15 am
    <option value="09:30:00">9 : 30 am
    <option value="09:45:00">9 : 45 am
    <option value="10:00:00">10 : 00 am
    <option value="10:15:00">10 : 15 am
    <option value="10:30:00">10 : 30 am
    <option value="10:45:00">10 : 45 am
    <option value="11:00:00">11 : 00 am
    <option value="11:15:00">11 : 15 am
    <option value="11:30:00">11 : 30 am
    <option value="11:45:00">11 : 45 am
    <option value="12:00:00">12 : 00 pm
    <option value="12:15:00">12 : 15 pm
    <option value="12:30:00">12 : 30 pm
    <option value="12:45:00">12 : 45 pm
    <option value="13:00:00">1 : 00 pm
    <option value="13:15:00">1 : 15 pm
    <option value="13:30:00">1 : 30 pm
    <option value="13:45:00">1 : 45 pm
    <option value="14:00:00">2 : 00 pm
    <option value="14:15:00">2 : 15 pm
    <option value="14:30:00">2 : 30 pm
    <option value="14:45:00">2 : 45 pm
    <option value="15:00:00">3 : 00 pm
    <option value="15:15:00">3 : 15 pm
    <option value="15:30:00">3 : 30 pm
    <option value="15:45:00">3 : 45 pm
    <option value="16:00:00">4 : 00 pm
    <option value="16:15:00">4 : 15 pm
    <option value="16:30:00">4 : 30 pm
    <option value="16:45:00">4 : 45 pm
    <option value="17:00:00">5 : 00 pm
    <option value="17:15:00">5 : 15 pm
    <option value="17:30:00">5 : 30 pm
    <option value="17:45:00">5 : 45 pm
    <option value="18:00:00">6 : 00 pm
    <option value="18:15:00">6 : 15 pm
    <option value="18:30:00">6 : 30 pm
    <option value="18:45:00">6 : 45 pm
    <option value="19:00:00">7 : 00 pm
    <option value="19:15:00">7 : 15 pm
    <option value="19:30:00">7 : 30 pm
    <option value="19:45:00">7 : 45 pm
    <option value="20:00:00">8 : 00 pm
    </select>
    </td>
    </tr>
              </table>
              <table class="log" cellpadding=3 cellspacing=0 border="0">
         <% String strname="";
              rs=st.executeQuery("select name from product");
              if(rs.next())
    strname=rs.getString(1);
    %>
              <tr>     
              <td align="left"><%=strname%></td>
              <td></td>
    <td>Quantity(in lacs):</td>
    <td><input type="text" class="formfield" name="items2" onkeypress="if(event.keyCode >47 && event.keyCode < 58){event.returnValue = true;} else{event.returnValue = false;}"></td>
              </tr>
              <tr>          
    <td>Select Product Name :</td>
              <td></td>
    <td>
    <select name="pname"><option>select</option>
              <%
                        String username="";
                        rs=st.executeQuery("select name from product");
                        while(rs.next())
    username = rs.getString(1);
              %>
    <option <%if(productId.equals(username)){%> <%}%>><%=username%></option>
    <% } %>
              </select>
              </td>
    </tr>
              <%          
                        int count=1;
                        rs=st.executeQuery("select max(auction_id) from auction1");
         int num = Integer.parseInt(pageContext.findAttribute("num").toString());
                        out.println(num);
                        //for(count=1;count < num;count++)
                             //out.println(rs);
                        String name="";          
                             rs=st.executeQuery("select name from product where name='"+username+"'");
                             //out.println(rs);
                             if(rs.next())
                                  name=rs.getString(1);
                             if(name.equals(username))
                             {%>
                                  <tr>
                                  <td align="left"><%=name%></td>
                                  <td>Quantity(in lacs):</td>
                                  <td><input type="text" class="formfield" name="items2" onkeypress="if(event.keyCode > 47 && event.keyCode < 58){event.returnValue = true;} else{event.returnValue = false;}"></td>
                                  </tr>
              <%}
              %>
    </table>
              <table cellpadding="5" align="center" bgcolor=#FFFFFF width="397">
    <tr>
                   <td>
                        <input type="submit" value="Add more Items" onClick="add();">
                   </td>
                   <td width="115"align="right">
                        <input type="submit" value="Continue"onClick="return validate();" name="submit">
                   </td>
    <td>
                        <input type="reset" value="Clear all fields" name="reset">
    </td>
    </tr>
    </table>
         </form>               
    </td>
    <!-- End Main section -->
    <td width="23%" valign="top" bgcolor="#EBEBEB" border="0">
         <!--Begin right nav section-->
              <jsp:include page="../include/rightbar2.jsp" />          
              <!-- End right nav section -->
              </td>
    <!-- Begin footer section -->
    <jsp:include page="../footer/footer.jsp" />
    <!-- End footer section -->

    It's highly recommended to use any business, logic and DB access tasks in a Servlet. JSP should be used only to display HTML forms/results.
    <%@page language="java"%>
    <%@page import="java.sql.*"%>
    <%@page import="connect.connection"%>
    <% String productId = request.getParameter("pname")==null? "": request.getParameter("pname"); String strQuantity=""; %>
    <% Connection con1=null; connection conn1=null; con1=conn1.getconnection(); Statement st=null; ResultSet rs=null; st=con1.createStatement(); %>
    <!--<script> function subject() { document.registration.action="buyerForm2.jsp"; //document.registration.submit(); } </script>-->
    <HTML>
    <HEAD>
    <TITLE>Shree Cement : Register Buyer</TITLE>
    <script language="javascript" src="../js/buyervalidate.js"></script>
    </HEAD>
    <body bgColor=3F7790 text=#000000 topMargin=12 border="0">
    <!-- Begin header section -->
    <jsp:include page="../header/header.jsp" />
    <!-- End header section -->
    <table width="800" align="center" border="0">
         <tr>
              <td bgcolor="#EBEBEB" width="135" valign="top"><!--Begin left nav section--> <jsp:include
                   page="../include/left-nav-main.jsp" /> <!-- End left nav section--></td>
              <!--main section of pp Buyer-->
              <td rowspan=7 valign=top width="58%" align="center">
              <table>
                   <tr>
                        <td class="img">Registration Form</td>
                        <td width="60%"></td>
                        <td align="left" class="img1">Buyer</td>
                   </tr>
              </table>
              <form name="login" method="post">
              <table cellpadding=3 class="pp">
                   <tr>
                        <td>Online bid date :</td>
                        <td colspan=3><select name="monthonline" class="formfield1" value="month">
                             <option value="Month">-Month-
                             <option value=1>January
                             <option value=2>February
                             <option value=3>March
                             <option value=4>April
                             <option value=5>May
                             <option value=6>June
                             <option value=7>July
                             <option value=8>August
                             <option value=9>September
                             <option value=10>October
                             <option value=11>November
                             <option value=12>December
                        </select></td>
                        <td colspan=3><select name="dateonline" class="formfield1" value="date">
                             <option value="Day">-Day-
                             <option value=1>1
                             <option value=2>2
                             <option value=3>3
                             <option value=4>4
                             <option value=5>5
                             <option value=6>6
                             <option value=7>7
                             <option value=8>8
                             <option value=9>9
                             <option value=10>10
                             <option value=11>11
                             <option value=12>12
                             <option value=13>13
                             <option value=14>14
                             <option value=15>15
                             <option value=16>16
                             <option value=17>17
                             <option value=18>18
                             <option value=19>19
                             <option value=20>20
                             <option value=21>21
                             <option value=22>22
                             <option value=23>23
                             <option value=24>24
                             <option value=25>25
                             <option value=26>26
                             <option value=27>27
                             <option value=28>28
                             <option value=29>29
                             <option value=30>30
                             <option value=31>31
                        </select></td>
                        <td><select name="yearonline" class="formfield1" value="year" align="left">
                             <option value="Year">-Year-
                             <option value=2003>2003
                             <option value=2004>2004
                             <option value=2005>2005
                             <option value=2006>2006
                             <option value=2007>2007
                             <option value=2008>2008
                             <option value=2009>2009
                             <option value=2010>2010
                        </select></td>
                   </tr>
                   <tr>
                        <td>Start time :</td>
                        <td colspan=3 width="296"><select name="starttime" class="formfield1" size=1>
                             <option selected value="08:00:00">8 : 00 am
                             <option value="08:15:00">8 : 15 am
                             <option value="08:30:00">8 : 30 am
                             <option value="08:45:00">8 : 45 am
                             <option value="09:00:00">9 : 00 am
                             <option value="09:15:00">9 : 15 am
                             <option value="09:30:00">9 : 30 am
                             <option value="09:45:00">9 : 45 am
                             <option value="10:00:00">10 : 00 am
                             <option value="10:15:00">10 : 15 am
                             <option value="10:30:00">10 : 30 am
                             <option value="10:45:00">10 : 45 am
                             <option value="11:00:00">11 : 00 am
                             <option value="11:15:00">11 : 15 am
                             <option value="11:30:00">11 : 30 am
                             <option value="11:45:00">11 : 45 am
                             <option value="12:00:00">12 : 00 pm
                             <option value="12:15:00">12 : 15 pm
                             <option value="12:30:00">12 : 30 pm
                             <option value="12:45:00">12 : 45 pm
                             <option value="13:00:00">1 : 00 pm
                             <option value="13:15:00">1 : 15 pm
                             <option value="13:30:00">1 : 30 pm
                             <option value="13:45:00">1 : 45 pm
                             <option value="14:00:00">2 : 00 pm
                             <option value="14:15:00">2 : 15 pm
                             <option value="14:30:00">2 : 30 pm
                             <option value="14:45:00">2 : 45 pm
                             <option value="15:00:00">3 : 00 pm
                             <option value="15:15:00">3 : 15 pm
                             <option value="15:30:00">3 : 30 pm
                             <option value="15:45:00">3 : 45 pm
                             <option value="16:00:00">4 : 00 pm
                             <option value="16:15:00">4 : 15 pm
                             <option value="16:30:00">4 : 30 pm
                             <option value="16:45:00">4 : 45 pm
                             <option value="17:00:00">5 : 00 pm
                             <option value="17:15:00">5 : 15 pm
                             <option value="17:30:00">5 : 30 pm
                             <option value="17:45:00">5 : 45 pm
                             <option value="18:00:00">6 : 00 pm
                             <option value="18:15:00">6 : 15 pm
                             <option value="18:30:00">6 : 30 pm
                             <option value="18:45:00">6 : 45 pm
                             <option value="19:00:00">7 : 00 pm
                             <option value="19:15:00">7 : 15 pm
                             <option value="19:30:00">7 : 30 pm
                             <option value="19:45:00">7 : 45 pm
                             <option value="20:00:00">8 : 00 pm
                        </select></td>
                   </tr>
                   <tr>
                        <td>End time :</td>
                        <td colspan=3 width="296"><select name="endtime" class="formfield1" size=1>
                             <option selected value="08:00:00">8 : 00 am
                             <option value="08:15:00">8 : 15 am
                             <option value="08:30:00">8 : 30 am
                             <option value="08:45:00">8 : 45 am
                             <option value="09:00:00">9 : 00 am
                             <option value="09:15:00">9 : 15 am
                             <option value="09:30:00">9 : 30 am
                             <option value="09:45:00">9 : 45 am
                             <option value="10:00:00">10 : 00 am
                             <option value="10:15:00">10 : 15 am
                             <option value="10:30:00">10 : 30 am
                             <option value="10:45:00">10 : 45 am
                             <option value="11:00:00">11 : 00 am
                             <option value="11:15:00">11 : 15 am
                             <option value="11:30:00">11 : 30 am
                             <option value="11:45:00">11 : 45 am
                             <option value="12:00:00">12 : 00 pm
                             <option value="12:15:00">12 : 15 pm
                             <option value="12:30:00">12 : 30 pm
                             <option value="12:45:00">12 : 45 pm
                             <option value="13:00:00">1 : 00 pm
                             <option value="13:15:00">1 : 15 pm
                             <option value="13:30:00">1 : 30 pm
                             <option value="13:45:00">1 : 45 pm
                             <option value="14:00:00">2 : 00 pm
                             <option value="14:15:00">2 : 15 pm
                             <option value="14:30:00">2 : 30 pm
                             <option value="14:45:00">2 : 45 pm
                             <option value="15:00:00">3 : 00 pm
                             <option value="15:15:00">3 : 15 pm
                             <option value="15:30:00">3 : 30 pm
                             <option value="15:45:00">3 : 45 pm
                             <option value="16:00:00">4 : 00 pm
                             <option value="16:15:00">4 : 15 pm
                             <option value="16:30:00">4 : 30 pm
                             <option value="16:45:00">4 : 45 pm
                             <option value="17:00:00">5 : 00 pm
                             <option value="17:15:00">5 : 15 pm
                             <option value="17:30:00">5 : 30 pm
                             <option value="17:45:00">5 : 45 pm
                             <option value="18:00:00">6 : 00 pm
                             <option value="18:15:00">6 : 15 pm
                             <option value="18:30:00">6 : 30 pm
                             <option value="18:45:00">6 : 45 pm
                             <option value="19:00:00">7 : 00 pm
                             <option value="19:15:00">7 : 15 pm
                             <option value="19:30:00">7 : 30 pm
                             <option value="19:45:00">7 : 45 pm
                             <option value="20:00:00">8 : 00 pm
                        </select></td>
                   </tr>
              </table>
              <table class="log" cellpadding=3 cellspacing=0 border="0">
                   <%      String strname="";
                        rs=st.executeQuery("select name from product");
                        if(rs.next()) {
                             strname=rs.getString(1);
                   %>
                   <tr>
                        <td align="left"><%=strname%></td>
                        <td></td>
                        <td>Quantity(in lacs):</td>
                        <td><input type="text" class="formfield" name="items2"
                             onkeypress="if(event.keyCode >47 && event.keyCode < 58){event.returnValue = true;} else{event.returnValue = false;}"></td>
                   </tr>
                   <tr>
                        <td>Select Product Name :</td>
                        <td></td>
                        <td><select name="pname">
                             <option>--select--</option>
                             <%
                                  String username="";
                                  rs=st.executeQuery("select name from product");
                                  while(rs.next()) { username = rs.getString(1); %>
                                  <option>
                                       <%if(productId.equals(username)){%>
                                       <%}%>
                                       <%=username%>
                                       </option>
                             <% } %>
                        </select></td>
                   </tr>
                   <%
                        int count=1;
                        rs=st.executeQuery("select max(auction_id) from auction1");
                        int num = Integer.parseInt(pageContext.findAttribute("num").toString());
                        out.println(num);
                        //for(count=1;count < num;count++) //{ //out.println(rs); String name=""; rs=st.executeQuery("select name from product where name='"+username+"'"); //out.println(rs); if(rs.next()) { name=rs.getString(1); } //} if(name.equals(username)) {
                   %>
                   <tr>
                        <td align="left"><%=num%></td>
                        <td>Quantity(in lacs):</td>
                        <td><input type="text" class="formfield" name="items2"
                             onkeypress="if(event.keyCode > 47 && event.keyCode < 58){event.returnValue = true;} else{event.returnValue = false;}"></td>
                   </tr>
              </table>
              <table cellpadding="5" align="center" bgcolor=#FFFFFF width="397">
                   <tr>
                        <td><input type="submit" value="Add more Items" onClick="add();"></td>
                        <td width="115" align="right"><input type="submit" value="Continue" onClick="return validate();" name="submit">
                        </td>
                        <td><input type="reset" value="Clear all fields" name="reset"></td>
                   </tr>
              </table>
              </form>
              </td>
              <!-- End Main section -->
              <td width="23%" valign="top" bgcolor="#EBEBEB" border="0"><!--Begin right nav section-->
              <jsp:include page="../include/rightbar2.jsp" /> <!-- End right nav section --></td>
              <!-- Begin footer section -->
              <jsp:include page="../footer/footer.jsp" />
              <!-- End footer section -->

  • How to increase the row count for display in OBIEE Answers-Dashboard page?

    Hi All,
    I have problem in exporting my reports. I need to export my report to either PDF or EXCEL format. My report contains more than 1200 rows. But when i am exporting the report to PDF it contains only 500 rows, for rest of the rows i have to scroll down and again i have to export to get the contents from 501 to 1000.
    Is it possible by changing any property, can i export the entire 1200+ rows in a single EXCEL or PDF? Pls anybody shed light on this issue.
    Thanks in Advance
    Thenmozhi.

    Hi,
    D:\Oracle\Middleware\instances\instance1\config\OracleBIPresentationServicesComponent\coreapplication_obips1\instanceconfig.xml
    before take it u r back up and then update the below code ..
    <Views>
    <Pivot>
    <MaxCells>6500000</MaxCells>
    <MaxVisibleColumns>100</MaxVisibleColumns>
    <MaxVisiblePages>1000</MaxVisiblePages>
    <MaxVisibleRows>65000</MaxVisibleRows>
    <MaxVisibleSections>25</MaxVisibleSections>
    <DefaultRowsDisplayed>500</DefaultRowsDisplayed>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager--><DefaultRowsDisplayedInDelivery>75</DefaultRowsDisplayedInDelivery>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager--><DefaultRowsDisplayedInDownload>65000</DefaultRowsDisplayedInDownload>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager--><DisableAutoPreview>false</DisableAutoPreview>
    </Pivot>
    <Table>
    <MaxCells>6500000</MaxCells>
    <MaxVisiblePages>1000</MaxVisiblePages>
    <MaxVisibleRows>65000</MaxVisibleRows>
    <MaxVisibleSections>25</MaxVisibleSections>
    <DefaultRowsDisplayed>500</DefaultRowsDisplayed>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager--><DefaultRowsDisplayedInDelivery>75</DefaultRowsDisplayedInDelivery>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager--><DefaultRowsDisplayedInDownload>65000</DefaultRowsDisplayedInDownload>
    </Table>
    </Views>
    finally re start all services then try it again... here its working fine...
    Thanks
    Deva

  • How to bring ALL option in Table prompt in OBIEE Answers result area?

    Hi All,
    This is my requirement. For example, Please consider scott table. There is a column called DEPTNO. I am taking DEPTNO,DNAME,EMPNO,EMPNAME for display. If i edit the table and move this column DEPTNO to Table Prompt section. I am getting a drop down list with the following list of values 10,20,30,40 there is no option all. If i need to get the option ALL What i need to do?
    Please help me in this issue.
    Thanks in Advance
    Thenmozhi

    Hi Deva,
    I got the extra ALL in my DEPTNO Column which included all the values of 10,20,30,40 but when i move this column to table prompt after getting the option ALL and when i choose ALL it is showing the below error:
    *Error Codes: OAMP2OPY:GK3XOEE6
    DXE expression interpreter error. Cannot find match to expression pattern. Source name: BuildExprVisitor::visit, 'in' node. XML: <sawxd:expr xmlns:sawxd="com.siebel.analytics.web/expressiondxe/v1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="sawxd:list" op="in"><sawxd:expr xmlns:sawq="com.siebel.analytics.web/querydxe/v1.1" xsi:type="sawq:groupbyField" refCoorID="2"/><sawxd:expr xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="xsd:string">c9a1da9028cccc07f__@@#$__c9a1da9028cccc07f_g1</sawxd:expr></sawxd:expr>*
    Please help me...
    Thanks in Advance
    Thenmozhi

  • How to convert Date to Integer

    Hi all,
    please send the code How to convert the Date to Integer
    I want like this
    example: Date= 04.11.2002 after conversion the integer is: 4112002
    like this I want if anyone knows this please send it as soon as possible
    byee
    thanks

    Assuming ... String ASimpleDateFormat;
    // do this first
    ASimpleDateFormat = ASimpleDateFormat.replace(".","");
    // then parse
    int DateAsInt = Integer.parseInt(ASimpleDateFormat);

  • How to convert varchar to date datatype while insert or update in table

    Hai All
    I need to convert to varchar to date.
    I have two Tables T1,T2
    T1 Structure
    Code varchar
    Time varchar
    Date varchar
    T2 Structure
    Empname var
    Empcode var
    Intime date
    Outtime date
    Intrin date
    Introut date
    Att_date
    Now i need to move Time form T1 to T2 Intime,outtime,intrin,introut according some condition
    So now i need to convert Varchar to Date while insert or update
    I have tried something
    Insert into T1 (code,intime,att_date)values
    (code,To_date(Date||time,'dd-mon-yyyy hh24mi'),att_date);
    OR While update
    Update T2 set Outtime=To_date(Date||time,'dd-mon-yyyy hh24mi') where...
    I got an error Ora-01861
    Regards
    Srikkanth.M

    You didn't show any example of your date or time values, butyou might need to add a space between them, like
    To_date(Date || ' ' || time,'dd-mon-yyyy hh24mi')

Maybe you are looking for

  • Windows 8 trouble

    windows 8 when i try to log into my account itunes stops working and shut down  any help?

  • Exchange Server Setup

    Dear All i have setup my new Exchange for Testing Email Domain: mail.abc.com.ab Server FQDN: mail.abc.com.ab i have installed AD, DNS, DC role on Server my domain name is abc.com.ab the problem is when i check my email domain for MX record in dnsstuf

  • Not allow saving workbooks by authorisation

    Hi, how to do this? which auth objects to be used? thank you

  • Absence request update inconsistency in ME/CE

    Hi Friends, Recently we have implemented the ME/CE (Multiple/Concurrent employment ) for one of our customer. While testing the scenario's we have observed that absence record updating in IT2001 is not consistency such as when we create the absence r

  • Pages Update Bug

    After updating Pages I cannot open old files stored on DropBox. When I try to open a DropBox file I receive a message saying I need a newer version of pages––which I already have! Any thoughts?