Search First, then Display "Found" Records in list "After" searching

Does anyone know how to force my ADDT List to just initially display the Search boxes only (see image above), and not bring up any records at all?
- I'm using the List Page and Filter Boxes as a "Global Search" of the database
- I only want the page to load with everything except the actual data
- Then when I type something into a filter box, I want the query to run & display the results below. (Like a google search page)
My list page works as-is, set to display only 10 records, with the Filter boxes set to display by default.. but since the query is running to display the recordset,
there is a delay before the page loads.. I would like to stop the initial query from running/displaying and only run "after" I have typed in a value, and hit the "Filter" button.
Thanks,
jlig

Gunter, Referring to your suggestion before, it looks like it hides the records display,..
Will this still cause the page to load slow (since the query still is running in the background) even though the records are not displayed?
Do you know, does the List code call the query before or after it displays the list?
</cfquery>
<cfif true eq true>
  <cfquery name="rstickets1" datasource="Ctickets" username="#Request.KT_db_username#" password="#Request.KT_db_password#">
SELECT tickets.acctNum, tickets.firstName, tickets.lastName, tickets.businessName, tickets.city, tickets.circuitID, tickets.ticketDetails, tickets.ticketDate, tickets.ticketNum FROM tickets WHERE #PreserveSingleQuotes(SESSION.filter_tfi_listtickets1)# ORDER BY #PreserveSingleQuotes(SESSION.sorter_tso_listtickets1)#
</cfquery>
  <cfset QueryString_rstickets1=Iif(CGI.QUERY_STRING NEQ "",DE("&"&CGI.QUERY_STRING),DE(""))>
</cfif>
<cfset MaxRows_rstickets1=SESSION.max_rows_nav_listtickets1>
<cfset StartRow_rstickets1=Min((PageNum_rstickets1-1)*MaxRows_rstickets1+1,Max(rstickets1.Record Count,1))>
<cfset EndRow_rstickets1=Min(StartRow_rstickets1+MaxRows_rstickets1-1,rstickets1.RecordCount)>
<cfset TotalPages_rstickets1=Ceiling(rstickets1.RecordCount/MaxRows_rstickets1)>
<cfset tempPos=ListContainsNoCase(QueryString_rstickets1,"PageNum_rstickets1=","&")>
<cfif tempPos NEQ 0>
  <cfset QueryString_rstickets1=ListDeleteAt(QueryString_rstickets1,tempPos,"&")>
</cfif>
Thanks again,
jlig

Similar Messages

  • HT3529 Contacts not found in contact list after saving from new text message

    When a new number texts me and I save it to my contacts, I can find that contact when texting, but contact does not show up on my phone list contacts.  For Example: I received a text message from (555) 555-5555.  I  #1 clicked "Contact" in the top right corner of the text message screen, #2 clicked "i" button, #3 clicked "Create New Contact," #4 added first and last name, and #5 clicked "Done." 
    In the future, if I try and text that saved number, the contact will appear under the saved name.  But if i press the phone icon and look at my contact list, the contact is not there.  So if I try and text "Heather Campbell" i can find the contact by clicking new message and typing "Hea" and send her a text message with no problem.  However if I go to my phone contact list and try to call her, she is not listed as a contact.
    Please Help!

    Unfortunetly, that's not the problem.  I have 3 groups.  1. All iCloud  2. All Hotmail  3.  All Facebook.  I have the All iCloud checked, i do not want facebook friends and email addresses in this contact list.  This will only give me a list of phone numbers I saved from call log.  Not phone numbers I saved through text message.  Thank you though!

  • Apps are gone from purchased list after Apple ID region switched

    Hi Genius,
    Saying I've just switched the region of my Apple ID days ago, and then I found the "purchased" list of my account was emptyed, nothing there even I've paid form them.
    I have no idea how it works. Do I need to pay & download those apps form the new region app store again, even I've paid in another region?
    Thank you.
    Jerry

    Apple licenses their content by region. This means that Apple licenses content from content providers (e.g. Paramount, HBO, EMI, etc.) by country, and Apple sells content to customers by country. If I were a gambling man, I'd bet that your purchase history would be repopulated if you changed your region settings back to your original region.
    Since Apple is the content provider for the App Store, they *should* be able to work with you to transfer your App licenses (the paid ones, at least). Some apps, such as the BBC iPlayer app, are only available in certain countries. You may run into a situation where one of your apps isn't available in your new region.
    I hope that helps. I'd advise you to contact iTunes Store support for the *official* answers to your specific questions.

  • I got CS4 software. When the first time i install, i chose the normal installation content. Then I found that there was no photoshop on the start menu. After that I try to put the disk into the notebook again and find that there is no photoshop listed on

    I got CS4 software. When the first time i install, i chose the normal installation content. Then I found that there was no photoshop on the start menu. After that I try to put the disk into the notebook again and find that there is no photoshop listed on the "installation list"

    download the cs4 design premium installation files and install ps using them,
    Downloadable installation files available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5.5, 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Monthly  search &  how to display 15 records per page with next & back btn

    hi
    i m trying to find records using select statement.
    i want to get record pagewise. its a simple code. i m sending
    plz if anybody have any solution or suggestion try to solve it out
    one more thing i have a field in my database as a date.
    i want a monthly search. what will be query.
    i'll be thankful 4 any help
    regards
    <html>
    <head>
    <title>search</title>
    </head>
    <body>
    <body bgcolor="#B0C4DE">
    <%@ page language="java" import="java.sql.*"%>
    <form>
    <table width="45%">
    <%
        String param = request.getParameter("Str");
        if(param == null)
           param="";
    %>
            <td width="128"><font color="#800080"><h3>Enter Date</h3></font</td>
              <td width="150">
              <input type="TEXT" name="Str" size="15" />
              <form action="menu01.jsp" method="post" name="ser_chk1.jsp"></td>
              <td>
            <BUTTON name="post" type="submit"><img src="m162.gif" width="25" height="25" border="" alt="Search Now" /></BUTTON></td>    
    </form>      
    </tr>
    </table>
    </form>
    <%  
      if(!param.equals("")) {
       Connection con = null;
       ResultSet rs = null;
       PreparedStatement pstmt = null;
      try
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          con = DriverManager.getConnection("jdbc:odbc:database");
          String sql = "SELECT * FROM data, data1  WHERE gate_pass=gate_pass1 AND ser_no=ser_no1 AND nat_ure=nat_ure1 AND ven_dor=ven_dor1 AND sou_rce=desi_g1 AND desi_g=sou_rce1 AND d_o_s LIKE ?";
          pstmt = con.prepareStatement(sql);
          pstmt.setString(1, param);
          rs = pstmt.executeQuery();  
    %>
    <table border="" width="1200">
    <tr>
            <th><font color="#800080">Serial No</font></th> 
            <th><font color="#800080">Nature</font></th>
            <th><font color="#800080">Description</font></th>
            <th><font color="#800080">Problem</font></th>       
            <th><font color="#800080">Vendor</font></th>
            <th><font color="#800080">Employee No</font></th>
            <th><font color="#800080">Employee Name</font></th>
            <th><font color="#800080">GatePass</font></th>
            <th><font color="#800080">Return Status</font></th>
            <th><font color="#800080">Source</font></th>
            <th><font color="#800080">Desigation</font></th>
            <th><font color="#800080">Source Out</font></th>
            <th><font color="#800080">In Desi</font></th>
            <th><font color="#800080">Vendor In</font></th>
            <th><font color="#800080">Vendor Out</font></th>
            <th><font color="#800080">Back Desi</font></th>
            <th><font color="#800080">Employee No</font></th>
            <th><font color="#800080">Employee Name</font></th>
            <th><font color="#800080">Remark</font></th>      
    </tr>
    <%
           while(rs.next()) {
          String serno = rs.getString("ser_no");
          String nature = rs.getString("nat_ure");
          String description = rs.getString("desc_i");
          String problem = rs.getString("prob_lem");
          String vendor = rs.getString("ven_dor");
          String empno = rs.getString("emp_no");
          String empname = rs.getString("emp_name"); 
          String gatepass = rs.getString("gate_pass");
          String retsts = rs.getString("ret_sts");
          String source = rs.getString("sou_rce");
          String desi = rs.getString("desi_g");
          String dos = rs.getString("d_o_s");
          String did = rs.getString("d_i_d");
          String vrd = rs.getString("v_r_d");
          String rfv = rs.getString("r_f_v");
          String dtd = rs.getString("d_t_d");
          String empno1 = rs.getString("emp_no1");
          String empname1 = rs.getString("emp_name1");
          String remark = rs.getString("re_mark1");
    %>
    <tr>
        <td><%= serno %></td>
        <td><%= nature %></td>
        <td><%= description %></td>
        <td><%= problem %></td>
        <td><%= vendor %></td>
        <td><%= empno %></td>
        <td><%= empname %></td>
        <td><%= gatepass %></td>
        <td><%= retsts %></td>
        <td><%= source %></td>
        <td><%= desi %></td>
        <td><%= dos %></td>
        <td><%= did %></td>
        <td><%= vrd %></td>
        <td><%= rfv %></td>
        <td><%= dtd %></td>
        <td><%= empno1 %></td>
        <td><%= empname1 %></td>
        <td><%= remark %></td>
    </tr>
    <%
        finally {
                  if (rs != null) rs.close();
                  if(pstmt != null) pstmt.close();
                  if (con != null) con.close();
    %>
    </table>
    </body>
    </html>

    Hi Shi_san
    for monthly search you can use the below query..
    String qry="Select * from tablename where datefield is between '"+value1+"'" and '"+value2+"' ;for Value1 and Value2 you need to put two fields in your form....and user has to enter value like mm/dd/yyyy .....if you don't want to do that then put one option for user which month he wants to see the data...if user select month March then select value1=03/01/2006 and value2=03/31/2006...something like that...
    now for Next and Back button you must be having uniqueID in your table,,,
    First Time display this query.....
    String disprec="Select Top 15 *  from table1 order by uniqueID DESC ";now you need to retrieve last record's value from this page and pass it into you link of Next Button....
    If you click next button then display below query....
    String disprec="Select Top 15 *  from table1 where uniqueID<val1 order by uniqueID DESC ";c if it works...
    Vishu

  • Display all records from 4 select list

    Hi,
    trying to associate 4 select list where i could display all records from a list linked to an other list.
    1./ Created an item for each select list
    P1_employee_name
    P1_departments
    P1_employee_type
    P1_locations
    2./Set both null and default values to '-1' for each item
    3./Associated these items to source columns in the Region:
    where employee_name=:P1_employee_name
    or :P1_employee_name ='-1'
    and departments=:P1_departments
    or :P1_departments ='-1'
    and ......
    When running the report, couldn't display all records from a given list associated to an other list.
    e.g: Display all emp and type of emp for sales dept in Paris.
    Thks for your help

    I believe the issue is that you need to group your predicates such as:
    where (employee_name=:P1_employee_name
    or :P1_employee_name ='-1')
    and
    (departments=:P1_departments
    or :P1_departments ='-1')
    Also, if you are not already using the "select list with submit" type items, these work great for this case as the page will be submitted when the user changes the value of employeenam and the report will then reflect this change.

  • Displaying no Records found in webdynpro side?

    Hi All ,
    How to display the error message coming from R/3 side.
    If iam giving input from dynproside, if no Records found in R/3 side how can I display "No records Found"in Dynpro side.
    Please help me for this.
    Thanks
    Nageswara.

    hi Armin
    I have implemented the following code as suggested by you but still it seems that I am not able to get the expected results.Even though there are no results in the BAPI it is firing to the next screen and displaying "records found" when there are no records displayed.
    I am using the following code.
    try
                // Calls remote function module Customer OrderList
                wdContext.currentZ_Vf_Customer_Orderstatus_List_InputElement().modelObject().execute();
              // Synchronise the data in the context with the data in the model
              wdContext.nodeOutput().invalidate();
              //if(wdContext.currentOutputElement()== null)
              //wdComponentAPI.getMessageManager().reportException(wdContext.currentZ_Vf_Customer_Order_Detail_InputElement().get<messageAtribute>);
              int i = wdContext.nodeOutput().size();
              if(i ==  0)
                   wdThis.wdGetAPI().getComponent().getMessageManager().reportException("NO Records Found",false);
                        //wdThis.wdFirePlugToOrderStatusResults();
                   else
                   wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("Records Found");
              catch (Exception ex)
                // If an exception is thrown, then the stack trace will be printed
                ex.printStackTrace();
    Plase suggest me as to what has to be done.
    thanks and regards
    gopi krishna

  • Query not displaying all records when execute it first tme

    Hello,
    i have an issue with the WEBI report.when i run  the report first time it's displaying only few records, but when i run the same report second time it's displaying the more records and it's correct.
    Could any one tell me why it's not displaying all records when i execute first time.
    Thanks in advance for your help.
    Regards,
    Prathap

    Which BOBJ version do you use?
    Which kind of data source are you retrieving data from?
    Regards,
    Stratos

  • First half of page is blank then displays page on bottom half

    First half of page is blank then displays page on bottom half. This is only occuring on one page Facebook Mafia Wars

    This could be something wrong with your Flash player. I would advise you to make sure you have the latest updates of your plug-ins.
    Of course it could simply be a problem with the website itself. You could try reporting the problem to Facebook.
    '''If this was the answer you were looking for, please click 'Solved' -- Thanks.'''

  • Display different record in ALV Grid after provide different selection

    Hi All,
    I am a newbie.
    This is my situation:
    Firstly, on dropdown list, I select 'Annual'. Then, the alv grid display all records for 'Annual'.
    Then, I select 'Sick', I'd like to use the same ALV Grid to display all records for 'Sick'.
    I'd like to know if this is doable. If yes, can you show me some sample of coding which I can use as references.
    If it is not possible, I'd like to ask for y'all opinion whether it is efficient to use different ALV Grid for different selection?
    Hope to hear from you soon. Thank you very much.

    This is the snippet of the code:
    if l_rbtlvreqlvid = 'X'.
            "search based on leave id
            select *
            into gw_leave
            from zabmd_leave
            where lv_id = l_lvreqlvid.
              append gw_leave to gt_leave.
            endselect.
            if g_lvreq_cus_cont is initial.
            create object g_lvreq_cus_cont
                exporting
                  container_name = 'L_LVREQCONT2'.
              create object g_lvreq_alv_grid
                exporting
                  i_parent = g_lvreq_cus_cont.
              g_lvreq_alv_grid->set_table_for_first_display(
              exporting
                  i_structure_name              = 'zabmd_leave'
              changing
                  it_outtab                     = gt_leave
              exceptions
                  invalid_parameter_combination = 1
                  program_error                 = 2
                  too_many_lines                = 3
                  others                        = 4
              if sy-subrc <> 0.
                message id sy-msgid type sy-msgty number sy-msgno
                           with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
              endif.
              call screen 222.
        else.
            g_lvreq_alv_grid->refresh_table_display(
               exceptions
                 finished       = 1
                 others         = 2
              if sy-subrc <> 0.
                message id sy-msgid type sy-msgty number sy-msgno
                           with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
              endif.
              call screen 222.
    endif.

  • Please Help::How to display a Map with LIsts as Keys and Values using JSTL

    Hi,
    I need some assistance on how to display a Map in JSP using struts or core JSTL. I have a HashMap which has a List of keys and each key maps to a value of an ArrayList.i.e I have an ArrayList of taxCodes and each taxCode maps to a value of taxDetails which is an ArrayList of details for for that particular taxCode. I have some trouble to display each taxCode then display taxDetails for each taxCode. Here is my code below:
    OrderDetails.java
    package orderitems;
    import java.sql.*;
    import java.util.*;
    public class OrderDetails {
        private LineOder lineOrder;
        private Map lineItems;
        //returns an item number, key_item, from its unique keys
        public int getItemNumber(int key_item, String key_year,
                String key_office,String key_client,String key_company){
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            int itmNum = 0;
             * key_item a unique number for an item.
             * key_year,key_office,key_client,key_company unique keys
             * for each order where this key_item is taken
             * from.
            String select = "SELECT key_item FROM "+
                    Constants.WEB_TABLE +" WHERE key_item = " + key_item +
                    " AND key_year = '" + key_year + "'" +
                    " AND key_office = '" + key_office + "'" +
                    " AND key_client = '" + key_client + "'" +
                    " AND key_company = '" + key_company +"'";
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                rst = stat.executeQuery(select);
                if(rst.next()){
                    itmNum = Integer.parseInt(rst.getString("key_item"));
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return itmNum;
        //get a list of item number(item codes)
        public List getAllItemNumbers(String key_year,
                String key_office,String key_client,String key_company){
            List itemNumbers = new ArrayList();
            LineItem itemNumber = null;
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            String select = "SELECT key_item FROM "+ Constants.WEB_TABLE +
                    " WHERE key_year = '" + key_year + "'" +
                    " AND key_office = '" + key_office + "'" +
                    " AND key_client = '" + key_client + "'" +
                    " AND key_company = '" + key_company + "'";
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                rst = stat.executeQuery(select);
                while(rst.next()){
                    itemNumber = new LineItem();
                    itemNumber.setKey_item(Integer.parseInt(rst.getString("key_item")));
                    itemNumbers.add(itemNumber);
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return itemNumbers;
        //get a list of tax codes
        public List getAllTaxCodes(int key_item, String key_year,
                String key_office,String key_client,String key_company){
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            ItemTax taxCode;
            List taxCodes = new ArrayList();
            int itemNum = getItemNumber(key_item, key_year,
                    key_office,key_client,key_company);
            String select = "SELECT key_tax_code FROM "+
                    Constants.WEB_TABLE +" WHERE key_item = " + itemNum +
                    " AND key_year = '" + key_year + "'" +
                    " AND key_office = '" + key_office + "'" +
                    " AND key_client = '" + key_client + "'" +
                    " AND key_company = '" + key_company +"'";
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                rst = stat.executeQuery(select);
                while(rst.next()){
                    taxCode = new ItemTax();
                    taxCode.setKey_tax_code(rst.getString("key_tax_code"));
                    taxCodes.add(taxCode);
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return taxCodes;
        /////This methode returns a Map which am trying to display in JSP
        //use tax code to get tax details
        public Map getItemTaxDetails(String key_year,String key_office,
                String key_client,String key_company,int key_item){
            ItemTax taxDetail = null;
            List taxDetails = new ArrayList();
            List itemTaxCodes = new ArrayList();
            Map itemTaxDetails = new HashMap();
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            //get a list of all tax codes of an item with a
            //given item number
            itemTaxCodes = getAllTaxCodes(key_item,key_year,
                    key_office,key_client,key_company);
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                for(Iterator taxCodeIter= itemTaxCodes.iterator(); taxCodeIter.hasNext();){
                    ItemTax itemTaxCode = (ItemTax)taxCodeIter.next();
                    String taxCode = itemTaxCode.getKey_tax_code();
                    String select = "SELECT tax_type,tax_value," +
                            "tax_limit_val FROM "+ Constants.WEB_TABLE +
                            " WHERE key_item = "+ key_item +
                            " AND key_year = '" + key_year + "'" +
                            " AND key_office = '" + key_office + "'" +
                            " AND key_client = '" + key_client + "'" +
                            " AND key_company = '" + key_company +"'" +
                            " AND key_tax_code = '" + taxCode + "'";
                    rst = stat.executeQuery(select);
                    while(rst.next()){
                        taxDetail = new ItemTax();
                        //records to be displayed only
                        taxDetail.setKey_item(Integer.parseInt(rst.getString("key_item")));
                        taxDetail.setTax_value(rst.getString("tax_value"));
                        taxDetail.setTax_limit_val(Float.parseFloat(rst.getString("tax_limit_val")));
                        //////other details records ommited//////////////////////////
                        taxDetails.add(taxDetail);////An ArrayList of taxDetails for each taxCode
                     * A HashMap which has all taxCodes of an item as its keys
                     * and an ArrayList of taxdetails as its values.
                     * I return this for display in a JSP.
                    itemTaxDetails.put(taxCode,taxDetails);
                System.out.println();
                System.out.println("*********CONSOLE OUTPUT*************");//display on console
                Set set = itemTaxDetails.keySet();
                Iterator iter = set.iterator();
                System.out.println("Key\t\tValue\r\n");
                while (iter.hasNext()) {
                    Object taxCode=iter.next();
                    Object details=itemTaxDetails.get(taxCode);
                    System.out.println(taxCode +"\t" + details);
                System.out.println("************************************");
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return itemTaxDetails;
        //details of an item with all its taxes
        public List getAllItemDetails(String key_year,
                String key_office,String key_client,String key_company){
            List lineItems = new ArrayList();
            List itemNumbers = new ArrayList();
            Map taxDetails = new HashMap();
            LineItem item = null;
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            //A list of all item numbers in the declaration
            itemNumbers = getAllItemNumbers(key_year,
                    key_office,key_client,key_company);
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                for(Iterator itemIter= itemNumbers.iterator(); itemIter.hasNext();){
                    LineItem itemNum = (LineItem)itemIter.next();
                    int itemNumber = itemNum.getKey_item();
                    String select = "SELECT item_description,item_mass," +
                            "item_cost" +
                            " FROM " + Constants.WEB_TABLE +
                            " WHERE key_year = '"+key_year+"'" +
                            " AND key_office = '"+key_office+ "'"+
                            " AND key_client = '"+key_client+ "'"+
                            " AND key_company = '"+key_company+ "'"+
                            " AND key_item = " + itemNumber;
                    rst = stat.executeQuery(select);
                    while(rst.next()){
                        item = new LineItem();
                        item.setItem_description(rst.getString("item_description"));
                        item.setItem_mass(Float.parseFloat(rst.getString("item_mass")));
                        item.setKey_item(Integer.parseInt(rst.getString("item_cost")));
                        //////other details records ommited//////////////////////////
                        /* A HashMap of all itemTaxeCodes as its keys and an
                         * ArrayList of itemTaxedetails as its values
                        taxDetails = getItemTaxDetails(item.getKey_year(),item.getKey_office(),
                                item.getKey_client(),item.getKey_company(),item.getKey_item());
                        //item tax details
                        item.setItmTaxes(taxDetails);
                        //list of items with tax details
                        lineItems.add(item);
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return lineItems;
        public Set getOrders(String key_year,String key_office,
                String key_client,String key_company){
            List lineItems = new ArrayList();
            Set lineOrders = new HashSet();
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            LineOder lineOrder = null;
            String select = "SELECT * FROM " + Constants.WEB_TABLE +
                    " WHERE key_year = '" + key_year + "'" +
                    " AND key_office = '" + key_office + "'" +
                    " AND key_client = '" + key_client + "'" +
                    " AND key_company = '" + key_company + "'";
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                rst = stat.executeQuery(select);
                while(rst.next()){
                    lineOrder = new LineOder();
                    lineOrder.setKey_year(rst.getString("key_year"));
                    lineOrder.setKey_office(rst.getString("key_office"));
                    lineOrder.setKey_client(rst.getString("key_client"));
                    lineOrder.setKey_company(rst.getString("key_company"));
                    ////list of items with all their details
                    lineItems = getAllItemDetails(lineOrder.getKey_year(),lineOrder.getKey_office(),
                            lineOrder.getKey_client(),lineOrder.getKey_company());
                    //setting item details
                    lineOrder.setItems(lineItems);
                    //a list of order with all details
                    lineOrders.add(lineOrder);
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            return lineOrders;
    Controller.java
    package orderitems;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Controller extends HttpServlet {
        private Map taxDetails = new HashMap();
        private OrderDetails orderDetails = null;
        protected void processRequest(HttpServletRequest request,
                HttpServletResponse response)throws
                ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            String key_year = "2007";
            String key_office = "VZX00";
            String key_company = "DG20";
            String key_client =  "ZI001";
            int key_item = 1;
            String nextView = "/taxdetails_list.jsp";
            orderDetails = new OrderDetails();
            taxDetails = orderDetails.getItemTaxDetails(key_year,key_office,
                    key_company,key_client,key_item);
            //Store the collection objects into HTTP Request
            request.setAttribute("taxDetails", taxDetails);
            RequestDispatcher reqstDisp =
                    getServletContext().getRequestDispatcher(nextView);
            reqstDisp.forward(request,response);
        protected void doGet(HttpServletRequest request,
                HttpServletResponse response)throws
                ServletException, IOException {
            processRequest(request, response);
        protected void doPost(HttpServletRequest request,
                HttpServletResponse response)throws
                ServletException, IOException {
            processRequest(request, response);
    taxdetails_list.jsp
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <title>Simple Tax Detail Diaplay ::</title>
            <link rel="stylesheet" type="text/css" href="imgs/orders.css"/>
        </head>
        <body>
            <jsp:useBean id="taxDetails" class="java.util.HashMap" scope="request"/>
            <table>
                <c:forEach items="${taxDetails}" var="hMap">
                    <tr>
                        <td><c:out value="${hMap.key}" /></td>
                        <!--td><%--c:out value="${hMap.value}" /--%></td-->
                    </tr>
                </c:forEach>
            </table>
        </body>
    </html>am displaying taxCodes(in this case i have VAT and ICD) fine but cant figure out how to display a list of value for each taxCode.Here is the output am getting
    both in my JSP and on the console:
    *******************************CONSOLE OUTPUT****************************
    Key          Value
    ICD     [orderItems.ItemTax@13e6226, orderItems.ItemTax@9dca26]
    VAT [orderItems.ItemTax@13e6226, orderItems.ItemTax@9dca26]
    Edited by: aiEx on Oct 8, 2007 6:54 AM

    hi evnafets,
    yes i need a nested for loop.I have tried your advice but my bean properties are not found.Am getting this error:
    javax.servlet.ServletException: Unable to find a value for "key_item" in object of class "java.lang.String" using operator "."
    I have tried this as stated earlier in the post:I have tried to make the method getItemTaxDetails return a List and get the returned list value as taxDetails. I then tested to display this list on JSP and its displaying fine.
    public List getItemTaxDetails(String key_year,String key_office,
                String key_client,String key_company,int key_item){
            ItemTax taxDetail = null;
            List taxDetails = new ArrayList();
            List itemTaxCodes = new ArrayList();
            Map itemTaxDetails = new HashMap();
            Connection conn = null;
            Statement stat = null;
            ResultSet rst = null;
            //get a list of all tax codes of an item with a
            //given item number
            itemTaxCodes = getAllTaxCodes(key_item,key_year,
                    key_office,key_client,key_company);
            DbConnection dbConn = new DbConnection();
            try {
                conn = dbConn.getDbConnection(Constants.WEB_JNDI);
                stat = conn.createStatement();
                for(Iterator taxCodeIter= itemTaxCodes.iterator(); taxCodeIter.hasNext();){
                    ItemTax itemTaxCode = (ItemTax)taxCodeIter.next();
                    String taxCode = itemTaxCode.getKey_tax_code();
                    String select = "SELECT tax_type,tax_value," +
                            "tax_limit_val FROM "+ Constants.WEB_TABLE +
                            " WHERE key_item = "+ key_item +
                            " AND key_year = '" + key_year + "'" +
                            " AND key_office = '" + key_office + "'" +
                            " AND key_client = '" + key_client + "'" +
                            " AND key_company = '" + key_company +"'" +
                            " AND key_tax_code = '" + taxCode + "'";
                    rst = stat.executeQuery(select);
                    while(rst.next()){
                        taxDetail = new ItemTax();
                        //records to be displayed only
                        taxDetail.setKey_item(Integer.parseInt(rst.getString("key_item")));
                        taxDetail.setTax_value(rst.getString("tax_value"));
                        taxDetail.setTax_limit_val(Float.parseFloat(rst.getString("tax_limit_val")));
                        //////other details records ommited//////////////////////////
                        taxDetails.add(taxDetail);////An ArrayList of taxDetails for each taxCode
                     * A HashMap which has all taxCodes of an item as its keys
                     * and an ArrayList of taxdetails as its values.
                     * I return this for display in a JSP.
                    itemTaxDetails.put(taxCode,taxDetails);
            } catch (SQLException ex) {
                ex.printStackTrace();
            } finally{
                SQLHelper.cleanUp(rst, stat, conn);
            //return itemTaxDetails;
            return taxDetails;
        }And my JSP
    taxdetails_list.jsp
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <link rel="stylesheet" type="text/css" href="imgs/orders.css"/>
        </head>
        <body>
            <table>
                <c:forEach var="curRecord" items="${taxDetails}" varStatus="rowCounter">
                        <c:choose>
                            <c:when test="${rowCounter.count % 2 == 0}">
                                <c:set var="rowStyle" scope="page" value="odd" />
                            </c:when>
                            <c:otherwise>
                                <c:set var="rowStyle" scope="page" value="even" />
                            </c:otherwise>
                        </c:choose>
                        <tr class="${rowStyle}">
                            <td>${curRecord.key_item}</td>
                            <td>${curRecord.tax_value}</td>
                            <td>${curRecord.tax_limit_val}</td>
                        </tr>
                    </c:forEach>
            </table>
        </body>
    </html>I can't see where am going wrong even with your advice.Please help.
    Thnx.

  • Report displayed based on Select List condition

    Hello,
    Any help would be appreciated.
    I have a report and a select list, P55_MISSING. The select list contains the column names in the table that the report displays.
    If I select one of the column names, I would like to display all records where that column name is null.
    The sql I have at the moment is:
    select
    "ID",
    "APPLICATION",
    "SHORT_DESCRIPTION",
    "DESCRIPTION",
    "OPC_NET_NAMES",
    "PROCESSING_SCHEDULE",
    "PROCESSING_REGULARITY",
    "PLATFORMS_INVOLVED",
    "UNIX_DIRECTORIES",
    "SOURCE_FILES",
    from "APP_METADATA"
    where :P55_MISSING IS NULL
    If I select 'source files' for example, I would expect to see 3 out of 4 records stored in the table. However, I receive the message 'no data found'.
    Any help would be great. Thank you.

    Hi
    In order to doe this you will have to use dynamic sql (so you have to change your report type to 'SQL Query (PL/SQL Function Body Returning SQL Query)').
    It would then look something like this...
    DECLARE
    l_sql VARCHAR2(32767);
    BEGIN
    l_sql := 'SELECT id,
                     application,
                     short_description,
                     description,
                     opc_net_names,
                     processing_schedule,
                     processing_regularity,
                     platforms_involved,
                     unix_directories,
                     source_file
              FROM   app_metadata
              WHERE ';
    l_sql := l_sql||:P55_MISSING||' IS NULL';
    RETURN l_sql;
    END;Sorry, I can't test this as I don't have your tables.
    Cheers
    Ben

  • Displaying 10 records per page

    hi,
    somebody please help me.....
    i have a list of more than 20 records which i get
    from database and then i put it in session.
    i have to display 10 records per page only and
    on the same page i'd like to have links to page
    numbers to view next set of records.
    example is how googel displays its search results.
    ex. [ 1 2 3 4 5 ]
    THANKS A LOT!

    this can be done using the pagination technique.
    [email protected]

  • Filtering in excel - not all options display in drop down list

    I have found an issue with the filter drop-down list in Excel 2010. I have now been upgraded (by my employee) to Excel 2013 and same problem still exists.
    Problem: I highlight the row containing the column headings; then click on filter (available via the Home tab); then click on the down arrow in the column of interest (in this case "Council Names" column); the drop-down window appears but not all
    council names are displayed in the selection list, even though those council names are still in the list. I am aware of the 10,000 option limit with the selection list, but my spread sheet has well under 10,000 rows (unless there is something hidden that I
    do not know about).
    I have found work-arounds for the problem by searching google for answers to similar problems. I have also spoken to my employee's IT HelpDesk. I will explain the work-arounds I have found below. However, my main concerns now are:
    (1) What is the cause of the problem? Is there are better fix that addresses the cause, rather than having to use work-arounds?
    (2) Is the issue an indication that the spread sheet has been corrupted in some way? - I need assurance that this is not an indication that the spread sheet is unstable and such problems could multiply or already be existing. (The reason I ask
    this is that I had an earlier version of the same spread sheet where the problem did not occur, but it appeared in a later copy - could the copying of the sheet/workbook have caused the problem?)
    Workarounds found:
    (1) Select the entire sheet, then select the filter button in Home tab
    (2) select all the columns manually (click in top left cell and drag down until all data selected), then select filter button
    (3) Ensure all rows in the column of interest are filled in, then select filter button
    I would really appreciate any answers/assistance.

    Hi Jan,
    Thank you very much! Yes you are right - I have looked at the Current Region and the Council Names within that region match those in the filter list. The Current Region does not contain the entire sheet.
    [By the way - there were some errors in my original post: employee should be employer and in my description of the problem the following should read
    "...even though those council names are still in the spread sheet". I assume that this would not change your response?]
    Further questions
    (1) It is odd, though, that an earlier version of the same spread sheet had a complete list of council names (the current range on this sheet contains all of the required rows of the sheet). How did the current region change between versions (I did not knowingly
    do it)?
    (2) Does the above mean that the file, workbook or spread sheet is damaged/corrupted in some way? If yes, can this be corrected and how?
    (3) In addition to (2) above - what is the safest way to copy an excel workbook to minimise risk/avoid future corruption? [I have been copying and keeping earlier versions, partly for testing reasons, but also as a safety measure for the project as
    we are making changes all the time and may decide we wish to go back to the previous version(s)].
    Regards and thanks again,
    Bea Rogers.

  • Display one record data - splitting it into 2 different rows

    Hi ,
    I have a requirement wherein i search for something and the results are displayed in the table. I am using tablelayout for this.
    For each record, the data will be split across in 3 separate rows, i.e. one complete record will span across 3 rows.
    When Search is fired initially, only one row of data is dispalyed. Then I have a button or icon corresponding to this first row of each record, on clicking on this icon, all the other rows related to this one record should be displayed.
    How can i achieve this? Also should I query entire data for one record at one go, and then hide/show it based on icon click, or I should get results/details realetd to first row only, and then again fire another VO to get the details of 2 and 3rd row. Which is much better from performance point of view.?
    Please advice
    Regards
    Puja

    Puja,
    The suggested UI for master-detail relationship is table in a table and hgrid.
    --Mukul                                                                                                                                                                                                                           

Maybe you are looking for

  • One iMac - Multiple user accounts - Can iTunes music be moved b/t accts?

    My family (wife, son, daughter, and me) share an imac but we all have our own user accounts. Our entire itunes music library is in one user account and is getting to the point of being unmanageable. Can I move some of my itunes library (e.g., my son'

  • Exp/Imp In Oracle 10g client

    Hi All, I want to take one schema export from Oracle 10g Client. I am in new Oracle 10g. In oracle 9i, we can using exp/imp command for Export and Import from Client itself. I heard about in Oracle 10g, we can use Expdb/Impdb in Server only. Is there

  • Top n analysis without analytical function or rownum

    Hi I am working on Oracle 9i and i have the following query. My data is like as Year Type Total 1996 A 23 1996 B 34 1996 C 19 1996 D 11 1996 E 45 1996 F 32 1997 A 12 1997 B 11 1997 C 34 1997 D 45 1997 E 67 1997 F 11 My requirement is to get the top 4

  • Problem with Advanced Table-in-Advanced Table

    Hi all, I have one Advanced Table-in-Advanced Table. I have done everything as mentioned in Jdev guide . But i am getting Null Pointer Exception like java.lang.NullPointerException      at oracle.apps.fnd.framework.webui.OAAdvancedTableHelper.updateI

  • No adobe flash player

    wish i knew what i was doing wrong, but i cannot seem to load adobe flash layer even though it tells me the download was successful help!!!!!!!!!!!!!!!!!!!! thanks nancy