Tabular report with more than one line by line

Hello

I designed a sort of Gallery page, a tabular report with only two small columns per line: a thumbnail from a BLOB column and link textual branching to a page showing the full size image with a bunch of textual information on this subject.

As you can guess I look at the title of the topic, my concern is to display more than one (say 3 or 4) this line by line, in order to avoid a very long 'portrait' page with a lot of white space on the left and right.

Is there a (not too complicated) way to do it? I might design a special model (?), but I'm not very used to style sheets and stuff.

Thanks in advance.

André

Re: report columns of the SQL query for a couple of ways to do this.

As your main concern is to maximize the use of horizontal space, custom report template/CSS approach would seem more appropriate, as the number of columns is not resolved.

It is also possible to do using CSS inline-block property and given that it is now feasible cross-browser and less side effects and potential problems that the use of floats is probably the way to go.

Tags: Database

Similar Questions

  • Single - row subquery returns more than one line.

    Hi Experts

    I am faced with error

    ORA-01427: single - row subquery returns more than one line.

    MyQuery is:

    select
       TO_CHAR(T.MR_REG_DATE,'DD')                     "DATE"
       ,CASE  
         WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) between 0 and 1 THEN ' 01'||'  - ('||'0 - 1 Month)'
         WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) BETWEEN 2 AND 12 THEN ' 02'||'  - ('||'2 - 12 Months)'
         WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) BETWEEN 13 AND 60 THEN ' 03'||'  - ('||'1 - 5 Years)'
         WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) BETWEEN 61 AND 120 THEN ' 04'||'  - ('||'5 - 10 Years)'
         WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) > 120 then ' 05'||'  - ('||'> 10 Years)'
        END age
      ,count(T.Mr_Code) No_of_Patient
      ,(  SELECT count(x.mr_code) mr_code
             FROM HMIS_MRINFO X
             where X.mr_reg_date between &FRM_DATE AND &TO_DATE
               and X.mr_code NOT in (select Y.mr_code from hmis_pat_add_dis_detail Y
                                      WHERE Y.mr_reg_date between &FRM_DATE AND &TO_DATE
                                    )
            GROUP BY CASE  
                       WHEN trunc((MONTHS_BETWEEN(X.MR_REG_DATE,X.MR_DOB))) between 0 and 1 THEN ' 01'||'  - ('||'0 - 1 Month)'
                       WHEN trunc((MONTHS_BETWEEN(X.MR_REG_DATE,X.MR_DOB))) BETWEEN 2 AND 12 THEN ' 02'||'  - ('||'2 - 12 Months)'
                       WHEN trunc((MONTHS_BETWEEN(X.MR_REG_DATE,X.MR_DOB))) BETWEEN 13 AND 60 THEN ' 03'||'  - ('||'1 - 5 Years)'
                       WHEN trunc((MONTHS_BETWEEN(X.MR_REG_DATE,X.MR_DOB))) BETWEEN 61 AND 120 THEN ' 04'||'  - ('||'5 - 10 Years)'
                       WHEN trunc((MONTHS_BETWEEN(X.MR_REG_DATE,X.MR_DOB))) > 120 then ' 05'||'  - ('||'> 10 Years)'
                      END 
      ) Missing_MR
    from hmis_mrinfo T,hmis_pat_add_dis_detail M
    where T.mr_code = M.mr_code(+)
      and T.mr_reg_date between &FRM_DATE AND &TO_DATE
      &AGE_GRP
    GROUP BY T.MR_REG_DATE
             ,CASE  
               WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) between 0 and 1 THEN ' 01'||'  - ('||'0 - 1 Month)'
               WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) BETWEEN 2 AND 12 THEN ' 02'||'  - ('||'2 - 12 Months)'
               WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) BETWEEN 13 AND 60 THEN ' 03'||'  - ('||'1 - 5 Years)'
               WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) BETWEEN 61 AND 120 THEN ' 04'||'  - ('||'5 - 10 Years)'
               WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) > 120 then ' 05'||'  - ('||'> 10 Years)'
              END 
    ORDER BY T.MR_REG_DATE;
    

    Please give some advice / solution.

    I think this might do it for you

    Select

    TO_CHAR (T.MR_REG_DATE, 'DD') "DATE."

    CASE

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) between 0 and 1 THEN ' 01' |'.  - ('||' 0-1 month)"

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) BETWEEN 2 AND 12 THEN ' 02' |'.  - ('||' 2-12 months)"

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) BETWEEN 13 AND 60 THEN ' 03' |'.  - ('||' 1-5 years)"

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) BETWEEN 61 AND 120 THEN ' 04' |'.  - ('||' 5-10 years)'

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) > 120 then ' 05' |'.  ' - ('| ' > 10 years).

    Age of the END

    count (T.Mr_Code) No_of_Patient

    , count (case when t.mr_code NOT in (select Y.mr_code from hmis_pat_add_dis_detail Y))

    WHERE Y.mr_reg_date between & FRM_DATE AND & TO_DATE)

    then t.mr_code

    (end) Missing_MR

    of hmis_mrinfo T, hmis_pat_add_dis_detail M

    where T.mr_code = M.mr_code (+)

    and between T.mr_reg_date & FRM_DATE AND & TO_DATE

    & AGE_GRP

    T.MR_REG_DATE GROUP

    CASE

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) between 0 and 1 THEN ' 01' |'.  - ('||' 0-1 month)"

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) BETWEEN 2 AND 12 THEN ' 02' |'.  - ('||' 2-12 months)"

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) BETWEEN 13 AND 60 THEN ' 03' |'.  - ('||' 1-5 years)"

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) BETWEEN 61 AND 120 THEN ' 04' |'.  - ('||' 5-10 years)'

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) > 120 then ' 05' |'.  ' - ('| ' > 10 years).

    END

    ORDER BY T.MR_REG_DATE;

  • Dynamic text to scroll more than one line

    Hello, been racking my brain for weeks with that. trying to get my external dynamic text loaded to scroll. My code to do appear and scroll down to a single line at a time works fine, but if I replace the code 'scroll buttons' with the code "NEW buttons scroll" to try to get the ti to scroll more than one line - it scrolls is no longer at all. I included my code below in the hope that maybe, it is a problem of simple target path. Thank you!

    change the .scroll + / = 1 to a value greater than 1 to scroll more lines. 1 = 1 line

  • 5.6.1 pages: How to create a table with more than 999 lines?

    5.6.1 pages: How to create a table with more than 999 lines?

    The table on Pages v5.6.1 line selector is limited 3-digit, as it is in Pages ' 09 v4.3. Either use LibreOffice Writer, who does not have any constraint line on processing tables 3-digit, or any application spreadsheet for top 3-digit row needs.

  • How can I associate my rt surface with more than one account of sky drive

    How can I associate my rt surface with more than one account of sky drive.

    You will need to create a new account on the computer by using the Microsoft Account associated with the other SkyDrive.

    To create a new user, open laptop settings, in the general section, click 'add a new user '.

  • How to list all the vm with more than one network card?

    Hello

    Is it possible to only list all my s vm in my environment with more than one network card?

    I tried using the Get-NetowrkAdapter cmdlet, but could not get the desired results.

    Get - VM | Get-NetworkAdapter | Select-Object Name. ConvertTo-HTML-head $a - body "Virtual Machines < H2 > < / H2 > ' | Out-file D:\vms.htm

    Thank you

    Hello, AGFlora-

    Of course, you can do this with the standard as cmdlets:

    ## using standard cmdletsGet-VM | Select Name, @{n="NumNICs"; e={(Get-NetworkAdapter -VM $_ | Measure-Object).Count}} | ?{$_.NumNICs -gt 1}
    

    Or, if you want to get the results a little (or a lot) more quickly, you can use the cmdlet Get-view as:

    ## fast-like, using Get-ViewGet-View -ViewType VirtualMachine -Property Name,Config.Hardware.Device | Select Name,@{n="NumNICs"; e={($_.Config.Hardware.Device | ?{$_ -is [VMware.Vim.VirtualEthernetCard]} | Measure-Object).Count}} | ?{$_.NumNICs -gt 1}
    

    Those are both by selecting the names of virtual machines and their number of network cards.  Then you can direct this output to Export-Csv, ConvertTo-HTML, what you like.  What to do for you?

  • When you subscribe to creative Cloud(Photoshop and Lightroom), that come with more than one license, and is it possible to install it on Windows and Apple (if it comes with two licenses)? Thank you.

    When you subscribe to creative Cloud(Photoshop and Lightroom), it does it with more than one license, and if so, is it possible to install on Windows and Apple OX? Thank you.

    A Cloud subscription provides for the installation of facilities to work on both machines.  You can have (Windows and Apple OX) operating systems.

  • Video is de-energized when on a call with more than one person

    Hello

    When I'm a Skype call to a video person works very well, but when there is more than one I can no longer see the other participants. There is also no button to end the call and the only way to get out of the call, it's be quiting Skype and it starts again.

    It used to work in the past and Skype was great if not sure whats going on. I'm on Win 10 64-bit with Skype version 7.25.0.106

    Someone at - it ideas?

    Your Skype is not always connected to the Cloud server.

    The correct State shall be:

    Status: NetStateConnected

    Check your hosts filein Windows, DNS/VPN/proxy settings.

    Try first to reset your Windows hosts file:

    https://support.Microsoft.com/en-us/KB/972034

  • LRT224 impossible to deal simultaneously with more than one VPN tunnel?

    We have configured a client to gateway VPN tunnel group and six in the tunnels of single user gateway on a LRT224. Each unique connection works perfectly using Shrew soft client. But when we try to connect with a second tunnel, the first tunnel disconnects. It seems that the LRT224 cannot process more than one VPN tunnel at the same time? Is there any configuration, that we would have missed?

    TLR log seem to indicate that the Shrew Soft customers use all 192.168.30.0 that their IP address instead of a random IP address in this range.

    Try to set each Shrew Soft client with a specific IP address in the 192.168.30.1 - 50 rank instead of ' use virtual adapter and address randomly.

  • Create interactive files with more than one URL

    Hello, here's my problem: I want to create more than one instance of button ranging from the different URL address. The Adobe video workshop, I got the code:

    interactive_test.addEventListener (MouseEvent.CLICK, buttonClickHandler);
    function buttonClickHandler {}
    navigateToURL (new URLRequest ("http://www.adobe.com"));
    }

    This works very well with the one button instance. When I copy and paste the code to another instance of the button, that is to say:

    butn1.addEventListener (MouseEvent.CLICK, buttonClickHandler);
    function buttonClickHandler {}
    navigateToURL (new URLRequest ("http://www.adobe.com"));
    }

    butn2.addEventListener (MouseEvent.CLICK, buttonClickHandler);
    function buttonClickHandler {}
    navigateToURL (new URLRequest ("http://www.adobe.com"));
    }

    I get 1021 in dual function error. I think I understand what is wrong in principle, but don't know how to fix it. MyI knowledge of ActionScript 3 is equal to zero. What I need is the code example that works that I could copy and paste, with the appropriate changes.

    Thanks in advance for your help, Richard

    Use different function names, or flash won't know which function to use:

    butn1.addEventListener (MouseEvent.CLICK, buttonClickHandler1);
    function buttonClickHandler1(event:MouseEvent):void {}
    navigateToURL (new URLRequest ("http://www.adobe.com"));
    }

    butn2.addEventListener (MouseEvent.CLICK, buttonClickHandler2);
    function buttonClickHandler2(event:MouseEvent):void {}
    navigateToURL (new URLRequest ("http://www.adobe.com"));
    }

  • Select Date Max with more than one result

    Hello;

    I need to write a query that returns the maximum date for a specific transaction that is not a problem, but my problem occurs when I have several transactions with the same date max trans.


    Can someone help me write something which will return only one record from a result set that has more than one record

    Example:

    TRAN_ID - LAW #-TRANS_DATE
    -272-1111111-29/10/1999 00:00:00
    -273-1111111-29/10/1999 00:00:00
    -274-1111111-29/10/1999 00:00:00
    -275-1111111-29/10/1999 00:00:00

    You are referring to your alias at the wrong level, try this:

    select * from (
    select account_transaction_id,
           account_number,
           max_days_in_arrears,
           trans_date,
           row_number() over(partition by account_number order by trans_date desc, account_transaction_id desc) as rn
      from account_transaction atr
     where max_days_in_arrears > 90
       and account_number in (100026, 121189, 100223)
       and trans_date = (select distinct max(trans_date)
                           from account_transaction
                          where account_number = atr.account_number
                            and max_days_in_arrears > 90)
     order by account_number, trans_date
    )
    where rn = 1;
    

    and use code tags please, so that your queries can still be read easily and quickly for us to understand.

    Published by: hoek on March 23, 2009 15:48

  • How can I search for files with more than one keyword?

    I ve created a few keywords, and some files in my folder are marked by two, three or more keywords.

    Is it possible to search for files by using more than one keyword in the search field?

    Thank you!

    Use the command find (Edit menu) and in the criteria on the side right is a plus sign to add another criterion and set it to your personal wishes.

    Choose from the results and you should be OK

  • How to create an entity with more than one primary key.

    Hello

    JDeveloper Version 11.1.2.4.0

    I am trying to create an entity object based on a table with 5 columns. The combination of them is unique.

    I do the five columns of primary keys, but when I delete a line I: RowAlreadyDeletedException, although always the line exists in the database.

    Also displaying the view sometimes I get Houston-25019: line entity oracle.jbo.Key [1 key 2 null null NULL].



    How to create an entity based on one object several columns in the primary key?

    I don't want to add an additional column to a primary key, because this table is used in many PL/SQL procedures, and I'm not sure that this will not affect the.

    Also using Rowid as a primary key should be avoided.

    Kind regards

    Pamela.

    As I said, the framework is not like that

    Check this old (but still relevant) blog of Sung Im on Table Whose Primary Key entity object can be NULL

    describing the reason behind the behavior you're seeing and the way around.

    Or you use the secondary key rather as described here Wael Abdeen Blog, how to look at the views - part 2 | Oracle ADF as a secondary key composed of more then one column can have null values.

    Timo

  • Apex4.2 - interactive report shows more than 15 lines

    How is it possible to show more than 15 rows?
    If I put in place in the repoert attributes the line number less than 15 it works, but for example 100
    It shows me only 15 and the page on the next page button.

    How is it possible to work with 120 records so that 100 will be shown
    and 20 on the next page?

    Hello

    When you run your page where IR, you can in the action menu control how many lines is displayed per page
    http://docs.Oracle.com/CD/E37097_01/doc/doc.42/e35125/ir_using.htm#sthref1354

    Kind regards
    Jari
    -----
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • DECODE does not work in the WHERE clause when subquery returns more than one line

    Hi gurus,

    I want to write a query against the table CCENTERS (Script given below) and wait for the following result:

    1. in the transition from a value of 0 for the ID, it returns all the rows in the table.
    2. in the passage of one value other than 0, it returns the row corresponding to the given value and all its records of the child.

    CCENTER has parent-child relationship in the column ID and the BASE. I use a query with the DECODE function. but the function in the WHERE clause is not capable of managing the subquery with multiple lines of DECODE.

    *************************************************
    VARIABLE ParaCCenter NUMBER

    BEGIN
    : paraccenter: = 0;
    END;
    /

    CREATE TABLE ccenters
    (id NUMBER,
    name VARCHAR2 (20).
    number base);

    INSERT INTO ccenters VALUES(1,'NUST',null);
    INSERT INTO ccenters VALUES(2,'SEECS',1);
    INSERT INTO ccenters VALUES(3,'NBS',1);
    commit;

    SELECT * from ccenters
    WHERE id IN DECODE(:ParaCCenter, 0, id,)
    (SELECT id FROM ccenters
    START WITH basic =: ParaCCenter
    ID of CONNECTION BY PRIOR = base
    UNION
    SELECT: ParaCCenter OF double
    )
    )
    /
    BEGIN
    : paraCCenter: = 1;
    END;
    /

    SELECT * from ccenters
    WHERE id IN DECODE(:ParaCCenter, 0, id,)
    (SELECT id FROM ccenters
    START WITH basic =: ParaCCenter
    ID of CONNECTION BY PRIOR = base
    UNION
    SELECT: ParaCCenter double))
    /
    The result is
    (SELECT id FROM ccenters
    *
    ERROR at line 3:
    ORA-01427: einreihig subquery returns multiple rows

    How this query can be rewritten for the given feature. Any response will be appreciated.

    Thank you

    Try something like this:

    SELECT * FROM ccenters
    WHERE :ParaCCenter = 0
    OR id in
      (SELECT id FROM ccenters
       START WITH base=:ParaCCenter
       CONNECT BY PRIOR id = base
       UNION
       SELECT :ParaCCenter FROM dual
      )
    

Maybe you are looking for