Pagination or how to correctly display results

hi all ! Im having a doubt on how to present some data in my webapp.
The thing is that a have a 1 to N relation between objects. The way Im doing it now is that when I ask for a information I redirect to another page when a product can have several claims on it.
The problem is that if I get for example N results the pages expands and repeats the information N times. Not good....
Wich is the best way to present the information? Pagination? If so wich is the best source for examples or a library?
Any ideas or suggestions are welcome.
Thanks a lot!

What about tabs? I have used those before to show a set of data related to a date but split over age bands, each tabl contained the data for an age band and clicking the tabs opens that set of data. Its pretty easy to do using css and divs and making the tabs clickable using javascript.

Similar Messages

  • How to simply display resulting text in a dialog Box

    Is there a way to simply display resulting text in a dialog Box - not a text edit document?
    Doug_

    Thanks that's very helpful
    What I am trying to to is to create a workflow that opens mail and displays iCal TO DO's that I have created throughout the day tagged with the word MAIL so they can be filtered.
    At the moment the ACTIONS are:
    Launch Mail
    Get New Mail
    Find TO DOs in iCal (Who's SUMMERY includes MAIL)
    I get iCal To Do's as a result
    But then...I can find no options to display the iCal Events that result.
    Putting in the Applescript you posted displays a blank dialog box. This tells me that there is no text in the result.
    Yet if I put a SPEAK TEXT in after find TO DOs it dutifully speaks my filtered TO DO's
    I thought I might just try a NEW MAIL MESSAGE action.
    This works great in the workflow. The content of the new mail is the filtered TO DOs.
    But if I save it as an application (the form I need it in), mail simply opens blank when it reached that part of the work flow.
    What would you recommend?
    Thank again for your help,
    Doug_
    Message was edited by: Douglas Suiter
    Message was edited by: Douglas Suiter
    Message was edited by: Douglas Suiter

  • How do I display result of EXTRACT in PL/SQL

    I'm new to Oracle. I've begun experimenting with the XML functions. I was able to test existsNode and extractValue and see my results OK using DBMS_OUTPUT.PUT_LINE(<some variable of type X>) but I'm failing with EXTRACT. I currently think that extract returns an XML fragment of data type XMLType. I've failed to figure out how to display this fragment so see if my extract is doing what I expect. I've tried TO_CHAR(), TO_CLOB, and EXTRACT('/Root/text()').getStringVal() with no success. Could one of you point me in the right direction? My test is below.
    DECLARE     XMLDoc XMLTYPE;
         XMLOut          XMLType;
    BEGIN
         XMLDoc := XMLTYPE('<Root>
         <Trans_Info Name="ORIGINAL_AUTH_AMOUNT" Value="100.00" Mod_Date="2005-11-18" Trans_Id="100000" Xi_Id="100"></Trans_Info>
         <Trans_Info Name="Web Auth ID" Value="Houston" Mod_Date="2005-11-18" Trans_Id="100000" Xi_Id="100"></Trans_Info>
         <Trans_Info Name="3_SHIP_TO_STATE" Value="Of Mind" Mod_Date="2005-07-28" Trans_Id="100000" Xi_Id="100"></Trans_Info>
    </Root>');
         SELECT     EXTRACT(VALUE(x),'/Root')
         INTO     XMLOut
         FROM     TABLE(XMLSEQUENCE(XMLDoc.EXTRACT('/Root'))) x;
         DBMS_OUTPUT.PUT_LINE(XMLOut);
    END;

    As Garret said getClobVal() should work as should getStringVal()..
    You shouldn't be using XMLSEQUENCE on a node that only occurs once in the document (eg the root node). XMLSEQUENCE should be used to generate virtual tables from nodes that occur mutltiple times as the following shows..
    SQL> set serveroutput on
    SQL> --
    SQL> DECLARE
      2
      3  XMLDoc XMLTYPE;
      4  XMLOut XMLType;
      5
      6    cursor getTransInfo is
      7    select value(x) TRANSINFO
      8      from table(xmlsequence(extract(XMLDoc,'/Root/Trans_Info'))) x;
      9
    10  BEGIN
    11  XMLDoc := XMLTYPE(
    12  '<Root>
    13    <Trans_Info Name="ORIGINAL_AUTH_AMOUNT" Value="100.00" Mod_Date="2005-11-18" Trans_Id="100000" Xi_Id="100"></Trans_Info>
    14    <Trans_Info Name="Web Auth ID" Value="Houston" Mod_Date="2005-11-18" Trans_Id="100000" Xi_Id="100"></Trans_Info>
    15    <Trans_Info Name="3_SHIP_TO_STATE" Value="Of Mind" Mod_Date="2005-07-28" Trans_Id="100000" Xi_Id="100"></Trans_Info>
    16  </Root>');
    17
    18    -- Can use an in-line SELECT INTO here as only one row is returned..
    19
    20    SELECT EXTRACT(XMLDoc,'/Root')
    21      into XMLOUT
    22      from dual;
    23
    24    -- Can also be written as xmlout := XMLDOC.extract('/Root');
    25
    26    -- Use getStringVal() or getClobVal() to serialize XMLType for DBMS_OUTPUT.
    27
    28    DBMS_OUTPUT.PUT_LINE('extract(''/Root'') : ');
    29    DBMS_OUTPUT.NEW_LINE();
    30    DBMS_OUTPUT.PUT_LINE(XMLOut.getStringVal());
    31    DBMS_OUTPUT.NEW_LINE();
    32
    33    -- Use the Cursor to process the set of Trans_Info nodes. Cannot use an inline SELECT INTO here as multiple rows are returned.
    34
    35    DBMS_OUTPUT.PUT_LINE('value(x) : ');
    36    DBMS_OUTPUT.NEW_LINE();
    37
    38    for r in getTransInfo loop
    39      DBMS_OUTPUT.put_line(r.TRANSINFO.getStringVal());
    40    end loop;
    41  END;
    42
    43  /
    extract('/Root') :
    <Root><Trans_Info Name="ORIGINAL_AUTH_AMOUNT" Value="100.00"
    Mod_Date="2005-11-18" Trans_Id="100000" Xi_Id="100"/><Trans_Info Name="Web Auth
    ID" Value="Houston" Mod_Date="2005-11-18" Trans_Id="100000"
    Xi_Id="100"/><Trans_Info Name="3_SHIP_TO_STATE" Value="Of Mind"
    Mod_Date="2005-07-28" Trans_Id="100000" Xi_Id="100"/></Root>
    value(x) :
    <Trans_Info Name="ORIGINAL_AUTH_AMOUNT" Value="100.00" Mod_Date="2005-11-18"
    Trans_Id="100000" Xi_Id="100"/>
    <Trans_Info Name="Web Auth ID" Value="Houston" Mod_Date="2005-11-18"
    Trans_Id="100000" Xi_Id="100"/>
    <Trans_Info Name="3_SHIP_TO_STATE" Value="Of Mind" Mod_Date="2005-07-28"
    Trans_Id="100000" Xi_Id="100"/>
    PL/SQL procedure successfully completed.
    SQL>

  • How to do display results in a few pages

    Hi Everyone,
    I am now currently doing my project, i doing something like a search (E.g. google) i know how to search but i cant display the results.
    Here is one situation:
    When i search for Java. Then it will go database and get the records related to Java and display the results. I can display all at one time but i want to display it in a form like it can only display a max of 10 results and having a next link or button to display another 10 results on the same page.
    Can anyone help me with this. Thank You

    I have done a simple mecanism in jsp which do exactly what you want:
    <%
        int showNum = 5;   // number of items per page
        int startNum = Utilities.parseInt( request.getParameter( "start" ), 0 ); // parses with a defaultvalue 0
        java.util.List userList = new ArrayList( aCollection );
    %>
    <td colspan="3">
    Pages:
    <% for ( int i = 0; i < ( ( userList.size() / showNum ) + (userList.size() % showNum > 0 ?1:0) ); i++ ) { %>
    <a href="list.jsp?command=list&start=<%= showNum * i %>"><%= ( i + 1 ) %></a>
    <% } %>     
    </td>Hope the above helps
    /regards Per Jonsson

  • How can I display results data including history

    Hello.
    I am writing a report in Oracle Reports Builder to produce a student's statement of results and have two parameters for course instance and academic year.
    If user enters course instance and academic year the report has to display all results of students where academic year is less than or equal to the academic year
    entered, for the course instance entered as well as the other course instances a student took before that.
    The report should show all results for the previous years and the different course instances within the same course for every student who is enroled on the course instance entered up to the academic year entered.
    E.g. if student did c-inst1 in 2009, c-inst2 in 2010, c-inst3 in 2011, if user enters 2011 for parameter academic year and c-inst3 as course instance, the report should display all the results of students starting from 2011 going back to 2009 for all the three course instances c-inst1, c-inst2 and c-inst3.
    My question is: What conditions should I put in my report in order to be able to show the required results? Please assist. Thanks.

    u mean this?
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    bit_hex_display.vi ‏13 KB

  • How do I display results (anywhere) from the SequenceFileLoad Step?

    I want to be able to display the results from the SequenceFileLoad Sequence after the Sequence has been loaded to a window in a customized version of the CVI Test Executive User Interface. I can't seem to find where this Sequence gets called from in the Process Model (breakpoints are ignored), assuming that is where I want to make my changes.

    There are 3 types of callbacks: Model, Engine and FrontEnd callbacks (see table 1-1 and table 6-4 of the TS 2.0 User Manual).
    What differentiates these types are
    1) Where the callback sequences are located.
    2) What calls the callback.
    The SequenceFileLoad callback is an engine callback. This means that it is called by the TS engine and not your model. You place the callback in the sequence file, for which upon opening, you want the callback to run.
    Since the engine is executing this callback you have no control over parameters that are passed into or out of the sequence. In addition, the file global and local variables of the executed SequenceFileLoad callback are lost when the execution completes.
    You could have the callback write the values of
    Locals.Result to a file or station globals so that the information is available after the execution completes. There are even temporary station globals (see Engine.TemporaryGlobals) that allow you to keep hidden station globals variables that does not get written to the StationGlobals.ini upon shutdown of your station. These hidden variables do not appear in the station global window.
    Attached is a starting point for you. When you open this sequence file the Load callback puts its results into a temporary (hidden) station global. When you run the MainSequence, a subsequence is called that replaces its results with those contained in the temporary station global. This only occurs if the global exists. The subsequence also deletes the temporary global. The results appear as the results of the sequence call step in the MainSequence.
    By the way, you enable tracing into the engine callbacks by checking the station option, "Trace Into Separate Execution Callbacks".
    Attachments:
    SeqFileLoadResults.seq ‏30 KB

  • How to correct bad PDF display of Excel 2007 graph-Adobe Pro X?

    Just installed Adobe Acrobat Pro X; previously had Adobe Pro 8, which worked fine.  Have Excel 2007 files with an Excel graph and a JPG image on the spreadsheet tab.  Both the graph and the JPG are too big, are displaced, and hide spreadsheet data, when the Excel file is Saved As a PDF using Adobe Pro dialog or Excel dialog, or the Excel Plug-In to Create PDF.  For some strange reason, printing to PDF works, although that is limiting.  All of the settings are the same for the Adobe Printer as Adobe Pro settings.  Changing them or going to default did not help.  Just did the latest update; that did not help.
    The graph and JPG are too large for the PDF page.  Paper printing from Excel still works fine. Producing a PDF on another machine with Pro 8 still works fine.  Could not find this problem discussed anywhere.  Using XP, fully patched.  This should not be a complicated process, nor a complex spreadsheet. What is going on?
    Thanks

    Regardless of the method and Adobe product used to create the PDF, including the Excel tool button, the single common factor whether the PDF correctly displays a JPG or graph in the Excel file that is being done at anything other than 100% size is whether the Adobe Printer or a Physical Printer is selected as the default printer in the Windows Printers and Faxes-Settings.  This is true even though the printer is not being used. I have created the same PDF using every method/product and the results are always the same, and only properly display when either the setting is 100% size or the system printer is selected as Adobe Printer.  This is true only after installing Adobe X (8 was previously installed, and worked as expected).
    Jeffry Calhoun
    Workforce Analytics Manager
    Ohio Department of Job & Family Services
    P.O. Box 1618, Columbus, OH 43216-1618
    InterAgency: F376, 4020 E. 5th Avenue
    614-644-0564
    Fax 614-728-5938
    [email protected]
    OhioMeansJobs.com -
    The next best thing to having an HR department.
    OhioMeansJobs.com -
    Ohio's premier website for connecting businesses and job seekers - quickly, easily, and for free!
    >>> "Bill@VT" <[email protected]> 4/7/2012 7:21 AM >>>
    Re: How to correct bad PDF display of Excel 2007 graph-Adobe Pro X? created by Bill@VT ( http://forums.adobe.com/people/Bill%40VT ) in Creating, Editing & Exporting PDFs - View the full discussion ( http://forums.adobe.com/message/4319297#4319297 )
    You say the settings for the printer work fine, but do not for PDF Maker (I am assuming this is what you meant). PDF Maker no longer uses the printer and the settings are independent. Check the settings for PDF Maker under the create PDF menu.
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4319297#4319297
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4319297#4319297. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Creating, Editing & Exporting PDFs by email ( mailto:discussions-community-acrobat-creating__editing_%[email protected] ) or at Adobe Forums ( http://forums.adobe.com/choose-container!input.jspa?contentType=1&containerType=14&contain er=4697 )
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.
    Ohio Means Jobs
    You're looking for something unique. Use more than an ordinary site.
    http://www.ohiomeansjobs.com
    This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain private, confidential, and/or privileged information. Any unauthorized review, use, disclosure, or distribution is prohibited. If you are not the intended recipient, employee, or agent responsible for delivering this message, please contact the sender by reply e-mail and destroy all copies of the original e-mail message.

  • How can I display JTextFields correctly on a JPanel using GridBagLayout?

    I had some inputfields on a JPanel using the boxLayout. All was ok. Then I decided to change the panellayout to GridBagLayout. The JLabel fields are displayed correctly but the JTextField aren't. They are at the JPanel but have a size of 0??? So we cannot see what we type in these fields... Even when I put some text in the field before putting it on the panel.
    How can I display JTextFields correctly on a JPanel using GridBagLayout?
    here is a shortcut of my code:
    private Dimension sFieldSize10 = new Dimension(80, 20);
    // Create and instantiate Selection Fields
    private JLabel lSearchAbrText = new JLabel();
    private JTextField searchAbrText = new JTextField();
    // Set properties for SelectionFields
    lSearchAbrNumber.setText("ABR Number (0-9999999):");
    searchAbrNumber.setText("");
    searchAbrNumber.createToolTip();
    searchAbrNumber.setToolTipText("enter the AbrNumber.");
    searchAbrNumber.setPreferredSize(sFieldSize10);
    searchAbrNumber.setMaximumSize(sFieldSize10);
    public void createViewSubsetPanel() {
    pSubset = new JPanel();
    // Set layout
    pSubset.setLayout(new GridBagLayout());
    GridBagConstraints gbc = new GridBagConstraints();
    // Add Fields
    gbc.gridy = 0;
    gbc.gridx = GridBagConstraints.RELATIVE;
    pSubset.add(lSearchAbrNumber, gbc);
    // also tried inserting this statement
    // searchAbrNumber.setText("0000000");
    // without success
    pSubset.add(searchAbrNumber,gbc);
    pSubset.add(lSearchAbrText, gbc);
    pSubset.add(searchAbrText, gbc);
    gbc.gridy = 1;
    pSubset.add(lSearchClassCode, gbc);
    pSubset.add(searchClassCode, gbc);
    pSubset.add(butSearch, gbc);
    }

    import java.awt.*;
    import java.awt.event.*;
    import javax .swing.*;
    public class GridBagDemo {
      public static void main(String[] args) {
        JLabel
          labelOne   = new JLabel("Label One"),
          labelTwo   = new JLabel("Label Two"),
          labelThree = new JLabel("Label Three"),
          labelFour  = new JLabel("Label Four");
        JLabel[] labels = {
          labelOne, labelTwo, labelThree, labelFour
        JTextField
          tfOne   = new JTextField(),
          tfTwo   = new JTextField(),
          tfThree = new JTextField(),
          tfFour  = new JTextField();
        JTextField[] fields = {
          tfOne, tfTwo, tfThree, tfFour
        Dimension
          labelSize = new Dimension(125,20),
          fieldSize = new Dimension(150,20);
        for(int i = 0; i < labels.length; i++) {
          labels.setPreferredSize(labelSize);
    labels[i].setHorizontalAlignment(JLabel.RIGHT);
    fields[i].setPreferredSize(fieldSize);
    GridBagLayout gridbag = new GridBagLayout();
    JPanel panel = new JPanel(gridbag);
    GridBagConstraints gbc = new GridBagConstraints();
    gbc.weightx = 1.0;
    gbc.weighty = 1.0;
    gbc.insets = new Insets(5,5,5,5);
    panel.add(labelOne, gbc);
    panel.add(tfOne, gbc);
    gbc.gridwidth = gbc.RELATIVE;
    panel.add(labelTwo, gbc);
    gbc.gridwidth = gbc.REMAINDER;
    panel.add(tfTwo, gbc);
    gbc.gridwidth = 1;
    panel.add(labelThree, gbc);
    panel.add(tfThree, gbc);
    gbc.gridwidth = gbc.RELATIVE;
    panel.add(labelFour, gbc);
    gbc.gridwidth = gbc.REMAINDER;
    panel.add(tfFour, gbc);
    final JButton
    smallerButton = new JButton("smaller"),
    biggerButton = new JButton("wider");
    final JFrame f = new JFrame();
    ActionListener l = new ActionListener() {
    final int DELTA_X = 25;
    int oldWidth, newWidth;
    public void actionPerformed(ActionEvent e) {
    JButton button = (JButton)e.getSource();
    oldWidth = f.getSize().width;
    if(button == smallerButton)
    newWidth = oldWidth - DELTA_X;
    if(button == biggerButton)
    newWidth = oldWidth + DELTA_X;
    f.setSize(new Dimension(newWidth, f.getSize().height));
    f.validate();
    smallerButton.addActionListener(l);
    biggerButton.addActionListener(l);
    JPanel southPanel = new JPanel(gridbag);
    gbc.gridwidth = gbc.RELATIVE;
    southPanel.add(smallerButton, gbc);
    gbc.gridwidth = gbc.REMAINDER;
    southPanel.add(biggerButton, gbc);
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(panel);
    f.getContentPane().add(southPanel, "South");
    f.pack();
    f.setLocation(200,200);
    f.setVisible(true);

  • How can I display the vendor associated with result of my running total sum

    I have a report that lists vendors with their most vecent order dates.  I need to set up a rotation so that the vendor with the latest order date is next to be selected.  I used the running total summary to pick the latest date.  How can I display the vendor associated with result of my running total summary?

    If your "latest" order date means the "oldest" order date, why don't you try this:
    Go to Report tab -> Record Sort Expert -> Choose your order date in ascending order
    This will make your oldest order your first record shown. 
    You can then create a running total count for each record.
    Lastly, in your section expert under conditional suppress X+2 formula, write this:
    {#CountRecords}>1
    The result will only show the oldest record in your report.
    I hope that helps,
    Zack H.

  • How to configure search results web part to display results only after a query is generated from user?

    Hi All,
    I am crawling documents from a file server. I created a new content source and crawled the documents. All documents are crawled successfully.
    Then I went to my enterprise search center site collection and created a new result source. I have added the query to use above content source.
    After that, on a page I am trying to configure the search results web part to display documents using this result source. Now the problem is:
    It displays all the documents that are crawled without searching for anything. I mean first it should not display any results. If a user searches for something , then according to that search it should display results.
    Any idea how to do this in the web part? I am using SharePoint 2013 on premise enterprise edition. No code. Totally OOTB.

    Hi Mohan,
    What did you use for the Query text in the result source?
    I could reproduce this issue when I used Query text like: {searchTerms} Path:”http://sps2k13sp/sites/First/Shared%20Documents”
    Then I changed the Query to
    {?{searchTerms}
    Path:"http://sps2k13sp/sites/First/Shared%20Documents"}
    , then Search result web part didn’t return results without searching.
    So , check your result source, and use the Query like the above(adding "{?...}").
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to display result in more than one jsp page

    Hi all,
    the result is a very large it will take more than one jsp page in this senario how we will display the result in more than one jsp page.
    Thanks in Advance.

    The magic word is "paging". Look around using this keyword.
    Basically it's all about subquerying, (eventually) caching and sublisting.

  • How to display result of database query in JFrame?

    How to display result of oracle database query in JFrame?
    This is part of my code:
    String username, password;
              DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
              OracleConnection conn = DriverManager.getConnection(String url, String username, String password);
    Statement s= conn.createStatement();
    ResultSet q= s.executeQuery("SELECT A, B, C FROM TABLE X");
    Forget what url, username & password are. Is there any problem with my code?
    What should be next if I want to display result of the query in a table in JFrame?Thx !

    How to create JTable with unknown no. of rows? How to get no. of rows of a query?
    I saw the demo of creating JTable on java.sun.com but the the table has a certain no. of rows which is not applicable to my case.
    Suppose the result of query is a table with 3 attributes so there are 3 columns in the table.
    R contains the result of the query.
    Should it be something like this if I want to create JTable of the query?
    How to make n rows of {R.getString(1),R.getString(2),R.getString(3)};?
    public SimpleTableDemo() {
    super(new GridLayout(1,0));
    String[] columnNames = {"A",
    "B",
    "C",
    while (R.next())
    // content of a row
    Object[][] data = {R.getString(1),R.getString(2),R.getString(3)};
    I can't run it because I still can't debug my code which is said before.
    Thx!

  • How do I display decimal hour as time? Example, I created a formula (originally in Exel) where the result is 2.25. I need this to be displayed as 2:15, (2h, 15m). Here is the formula in cell b8   =SUM((A6/18)*B3 (B6/8)*B3 (A6 B6)/70*B3 B2)/60

    How do I display decimal hour as time in Numbers for iPhone5 ? Example, I created a formula (originally in Exel) where the result is 2.25. I need this to be displayed as 2:15, (2h, 15m). Here is the formula in cell b8   =SUM((A6/18)*B3 (B6/8)*B3 (A6 B6)/70*B3 B2)/60. The result can be in either b8 or a different cell.
      Thanks for helping this novice

    B1=DURATION(0,0,A1,0,0,0)
    The DURATION function combines separate values for weeks, days, hours, minutes, seconds, and milliseconds and returns a duration value.
    DURATION(weeks, days, hours, minutes, seconds, milliseconds)

  • How to display result order by date desc?

    Hi Everyone,
    My DB version is
    BANNER                                                        
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    PL/SQL Release 10.2.0.1.0 - Production                          
    CORE 10.2.0.1.0 Production                                        
    TNS for Linux: Version 10.2.0.1.0 - Production                  
    NLSRTL Version 10.2.0.1.0 - Production                          
    Please do have a look at this query and the result displayed. It's always showing results in draw_dt asc. I need to get this result as draw_dt desc. Please suggest something.
    select rownum as sl_no,
           sub.patient_name,
           sub.external_id,
           sub.modality,
           sub.account_number,
           sub.hlab_num,
           sub.spectra_mrn,
           sub.draw_dt,
           sub.requisition_number,
           sub.facility_name,
           sub.facility_id,
           sub.corporation_name,
           sub.acronym,
           sub.patient_id,
           SUB.TEST_ID,
           count(sub.requisition_number) over (partition by null) as entity_count
    from(
    select distinct
            (select p.last_name || ', ' || p.first_name
              from patient p
             where p.patient_id = loc.patient_id) as patient_name,
           (select p.external_id
              from patient p
             where p.patient_id = loc.patient_id) as external_id,
           (select p.spectra_mrn
            from patient p
            where p.patient_id = loc.patient_id) as spectra_mrn,
           ord.requisition_number as requisition_number,
           f.facility_name as facility_name,
           f.facility_id as facility_id,
           (select fad.account_type as modality
              from patient p,
                   patient_facility_modality pfm,
                   facility_account_modality fam,
                   facility_account_detail fad
             where p.patient_id = pfm.patient_id
               and pfm.facility_account_modality_id =
                                                  fam.facility_account_modality_id
               and fam.facility_account_detail_id = fad.facility_account_detail_id
               and p.patient_id = loc.patient_id
               and pfm.facility_id = loc.facility_id) as modality,
           (select fad.account_number as account_number
              from patient p,
                   patient_facility_modality pfm,
                   facility_account_modality fam,
                   facility_account_detail fad
             where p.patient_id = pfm.patient_id
               and pfm.facility_account_modality_id =
                                                  fam.facility_account_modality_id
               and fam.facility_account_detail_id = fad.facility_account_detail_id
               and p.patient_id = loc.patient_id
               and pfm.facility_id = loc.facility_id) as account_number,
           (select fad.hlab_num as hlab_num
              from patient p,
                   patient_facility_modality pfm,
                   facility_account_modality fam,
                   facility_account_detail fad
             where p.patient_id = pfm.patient_id
               and pfm.facility_account_modality_id =
                                                  fam.facility_account_modality_id
               and fam.facility_account_detail_id = fad.facility_account_detail_id
               and p.patient_id = loc.patient_id
               and pfm.facility_id = loc.facility_id) as hlab_num,
           loc.order_draw_dt as draw_dt,
           c.corporation_name as corporation_name,
           c.corporation_acronym as acronym,
           loc.patient_id,
           loct.test_id
      from lab_order_occ loc,
           lab_order_occ_test loct,
           facility f,
           corporation c,
           order_requisition_header ord
    where loc.lab_order_occ_id = loct.lab_order_occ_id
       and loc.facility_id = f.facility_id
       and f.corporation_id = c.corporation_id
       and ord.patient_id = loc.patient_id
       and ord.facility_id = loc.facility_id
       and ord.draw_dt = loc.order_draw_dt
       and loc.order_draw_dt between sysdate - 65 and sysdate
       and loc.status = 'A'
       and loc.msg_sent_to_lab_yn = 'Y'
       and loct.test_id in (
                       select test_id
                         from test_required
                        where required_test_code in (
                                                     select test_code
                                                       from interface_adt_aoe_master))
       and upper (c.corporation_acronym) in ('CORVA', 'DSI', 'USRC', 'DLYSNEWCO')
       and not exists (
                        select 1 from emr_adtaoe_dtl
                        where patient_id = loc.patient_id
                        and facility_id = loc.facility_id
                        and status = 'Y'
                        ))sub
    ORDER BY
            sub.draw_dt,
    --         sl_no,
             sub.corporation_name,
             sub.facility_name,
             SUB.PATIENT_NAME
             desc;
    Result
    SL_NO
    PATIENT_NAME
    EXTERNAL_ID
    MODALITY
    ACCOUNT_NUMBER
    HLAB_NUM
    SPECTRA_MRN
    DRAW_DT
    REQUISITION_NUMBER
    FACILITY_NAME
    FACILITY_ID
    CORPORATION_NAME
    ACRONYM
    PATIENT_ID
    TEST_ID
    ENTITY_COUNT
    9
    New, Pat
    123456
    HEMO
    72910
    A102805
    366999
    29-DEC-13
    9KT005A
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6181
    5558
    16
    2
    New, Pat
    123457
    HEMO
    72910
    A102805
    366999
    29-DEC-13
    9KT0057
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6181
    5558
    16
    7
    New, Pat
    123458
    HEMO
    72910
    A102805
    366999
    29-DEC-13
    9KT0059
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6181
    5558
    16
    16
    Erere, Gggg
    123459
    HEMO
    72910
    A102805
    622200
    29-DEC-13
    9KT0058
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    622
    5558
    16
    10
    Erere, Gggg
    123460
    HEMO
    72910
    A102805
    622200
    29-DEC-13
    9KT0056
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    622
    5558
    16
    1
    Test, Pat
    123461
    HEMO
    72910
    A102805
    367021
    30-DEC-13
    9KT0065
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6203
    5558
    16
    14
    Test, Pat
    123462
    HEMO
    72910
    A102805
    367021
    30-DEC-13
    9KT0064
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6203
    5558
    16
    4
    New, Pat
    123463
    HEMO
    72910
    A102805
    366999
    30-DEC-13
    9KT005W
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6181
    5558
    16
    3
    New, Pat
    123464
    HEMO
    72910
    A102805
    366999
    30-DEC-13
    9KT005X
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6181
    5558
    16
    8
    New, Pat
    123465
    HEMO
    72910
    A102805
    366999
    30-DEC-13
    9KT005V
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6181
    5558
    16
    13
    Test, Pat
    123466
    HEMO
    72910
    A102805
    367021
    01-JAN-14
    9KT006J
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6203
    5558
    16
    5
    Test, Pat
    123467
    HEMO
    72910
    A102805
    367021
    01-JAN-14
    9KT006G
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6203
    5558
    16
    6
    Test, Pat
    123468
    HEMO
    72910
    A102805
    367021
    01-JAN-14
    9KT006H
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6203
    5558
    16
    11
    Test, Pat
    123469
    HEMO
    72910
    A102805
    367021
    05-JAN-14
    9KT0077
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6203
    5558
    16
    15
    Test, Pat
    123470
    HEMO
    72910
    A102805
    367021
    05-JAN-14
    9KT0076
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6203
    5558
    16
    12
    New, Pat
    123471
    HEMO
    72910
    A102805
    366999
    06-JAN-14
    9KT0075
    DCI Freehold
    90
    DIALYSIS CLINIC, INC.
    DLYSNEWCO
    6181
    5558
    16
    See the date value for draw_dt column. It's always in asc order. How can I display this result set with draw_dt desc order? Please suggest something.

    ORDER BY  
            sub.draw_dt desc, 
    --         sl_no, 
             sub.corporation_name, 
             sub.facility_name, 
             SUB.PATIENT_NAME 
             desc;

  • Interactive Report: how can I display carriage returns?

    Hello everybody.
    Here is my problem: I created a table containing a field COMMENT varchar2(4000) and using APEX 4.1 I built an interactive report on it.
    Users can fill the field COMMENT with sentences on different rows, ex:
    " this is the first line
    this is the second line
    this is the third line"
    This is correctly managed in the FORM, where I defined the field COMMENT as 'Text Area', but in the REPORT I wasn't able to set it in a way which permits to see it whit the carriage returns: the content is displayed on one row only : "this is the first linethis is the second linethis is the third line".
    I tried and set all the possible field types, but I found no ways to display the content exactly as it is (with carriage returns).
    Obviously I cannot use HTML
    , since I cannot ask users to digit it when inserting their text.
    Could someone suggest me how to reach this result? In need to use the interactive report because the searching/filtering tool is fundamental.
    Thanks in advance,
    Daniele

    >
    Please update your forum profile with a real handle instead of "user9211286".
    Here is my problem: I created a table containing a field COMMENT varchar2(4000) and using APEX 4.1 I built an interactive report on it.
    Users can fill the field COMMENT with sentences on different rows, ex:
    " this is the first line
    this is the second line
    this is the third line"
    This is correctly managed in the FORM, where I defined the field COMMENT as 'Text Area', but in the REPORT I wasn't able to set it in a way which permits to see it whit the carriage returns: the content is displayed on one row only : "this is the first linethis is the second linethis is the third line".
    I tried and set all the possible field types, but I found no ways to display the content exactly as it is (with carriage returns).
    Obviously I cannot use HTML
    , since I cannot ask users to digit it when inserting their text.
    Could someone suggest me how to reach this result? In need to use the interactive report because the searching/filtering tool is fundamental.Use a CSS style sheet with attribute selectors. Put this in the page HTML Header, replacing the <tt>T_EMP_NAME</tt> etc selectors with the actual <tt>id</tt> attributes of your column headers:
    <style type="text/css">
    .apexir_WORKSHEET_DATA td[headers="T_EMP_NAME"] {
      white-space: pre;
    </style>
    Interactive Report Control Break disregards HTML Header style.

Maybe you are looking for