How to suppress blank line in top and end of portlet

I created one small report (portlet) however when i execute this one; i remarked there is one blank line in the top
and another one at the end of the report. How can i eliminate these lines. I need this space to be able to see
a lot of information in the same page.
I use portal 3.0.9.2

After developping a lot of portlet and read a lot of TAR on metalink and a lot of message on OTN i discovered the solution.
Wnen you create one report with the wizard there is no way to erase the first line ( header ) in the result.
Second for the last line of the results ( blank line ) ; the problem is with netsacpe 4.75 ( no problem with internet explorer )
with Netscape you will see one blank line and not with internet explorer ( confirm with Oracle support )
Anyway in the place of developping one report with the wizard ; you can copy and paste your sql statement of your report
inside one dynamic page and control all you want.
I will give you one example than i created; i hope it will help other persons like me
( we need to read a lot of thing to do something really simple with portal )
<HTML>
<HEAD>
<style type="text/css">
<!--
.TabFontText {
font-family: Arial, Helvetica;
font-size: 9pt;
-->
</style>
</HEAD>
<BODY>
<ORACLE>
begin
htp.p('<table cellspacing=0>');
for c in ( select '<a TARGET="_blank" HREF="http://'||ssdw_portal.pkg_globl.
fnc_get_server_port||'/pls/portal30/docs/FOLDER/SSDW_AIDE/'||replace(item.name,
' ','+')||'">'||item.display_name||'</a>' filename , to_char(item.updatedate,'dd/mm/yyyy hh24:mi') last_updated
FROM portal30.wwsbr_all_items item ,
portal30.wwsbr_all_folders folder
WHERE folder.name = 'SSDW_AIDE'
and folder.caid = item.caid
and folder.id = item.folder_id
and item.language = 'us'
and item.name like 'GUIDE%ANG%'
order by item.name ) loop
htp.p('<tr>');
htp.p('<td bgcolor=#CCCCCC width=325>');
htp.p('<font class="TabFontText" >');
htp.p(c.filename);
htp.p('</td>');
htp.p('</font>');
htp.p('<td bgcolor=#CCCCCC width=125>');
htp.p('<font class="TabFontText">');
htp.p(c.last_updated);
htp.p('</td>');
htp.p('</font>');
htp.p('</tr>');
end loop;
htp.p('</table>');
end;
</ORACLE>
</BODY>
</HTML>
Marc Fortin
[email protected]

Similar Messages

  • How to suppress blank lines in smartforms

    Hi all,
         How can we suppress blank lines in smartforms?
    In my scenario I am having customer address details in main window.
    i.e. Name
         Street
          P O Box
          P O Box Location
          Post Code
          Telephone
          Fax.
    Suppose if there is no value for P O Box Location the address is getting displayed as
          Name
         Street
          P O Box
                          -> Leaving blank space
          Post Code
          Telephone
          Fax.
    But I want it as
         Name
         Street
          P O Box
          Post Code
          Telephone
          Fax.
    i.e The blank line should not be displayed.
    Kindly let me know how to do this.
    Regards,
    Neethupriya.

    Hi Neethu,
    Are you using ADDRESS option in smartforms or code to get address from customer master?
    If you are using code, you can give condition like P O Box Location <> SPACE in condition tab.
    Pranav

  • Suppress Blank Lines in RTF Template

    We are using <?if:count(current-group()[FIELD=$VARIABLE])?> in order to restrict data in a pivot table cell.
    The pivot table cell uses @cell:top XML level to produce fixed number of columns.
    There are two for-each-groups in the cell under the @cell tag.
    Using <?if:count(current-group()[FIELD=$VARIABLE])?> works fine to restrict data but there are many extra blank lines creating bad formatting. This is because the two for-each-groups under the @cell tag. Those groups get the correct data but since @cell is at the top node of the XML the for-each-groups are repeating too many times and creating the blank lines.
    Is there a way to suppress blank lines in an RTF template?

    I've already tried that and the results are the same. The blank spaces still exist. I even tried using that right after the for-each-groups that are under the @cell tag. No difference.
    Can I please send you the RTF template and XML? And two PDF files, one that shows the empty line spaces and one that shows correct formatting (without fixed number of columns).
    Thank you very much.

  • WebDynpro Java: how to remove blank element from Table and Dropdown.

    Hi  Folks
    In a webdynpro application,
    I created a table and witten the below code to populate the table
         IPrivateDummyView.IFirst_TableElement First_Table_Element = null;
         First_Table_Element = wdContext.nodeFirst_Table().createFirst_TableElement();
         First_Table_Element.setF_Value("One");
         wdContext.nodeFirst_Table().addElement(First_Table_Element);
         First_Table_Element = wdContext.nodeFirst_Table().createFirst_TableElement();
         First_Table_Element.setF_Value("2");
         wdContext.nodeFirst_Table().addElement(First_Table_Element);
    As per the code, i got 2 row in the table.
    But , i have one Empty row on top of the table ,  how to get ride of this.
    i find the same problem happening with dropdown too, where i used DDBI, i populated a the content as mention, but i initial 2 row as blank and then i have my own elements ,as per my code.

    >
    > how to remove blank element from Table and Dropdown
    >
    Change selection property of related node to from 0..1 to 1..1 (mandatory)
    Re: DropdownByIndex and empty line (Thread: DropdownByIndex and empty line )
    Re: Can the empty selection be removed from element dropdownbykey(Thread: Can the empty selection be removed from element dropdownbykey )
    Edited by: Anagha Jawalekar on Nov 18, 2008 10:28 PM

  • How to suppress blank pages in 11i from printer output

    Hi All,
    We were working on Oracle Reports and registering in 11i thr concurrent program and while running thr concurrent request we are getting blank pages from printer output, please let me know how to suppress blank pages as i need to get printouts without any white pages.
    Say for example if we run concurrent request and o/p is 10 pages which consists of 3 blank pages so finally we need to get printer o/p with 7 pages which are having data as i need to stop printing which are having white pages.
    Please help as this a critical scenario.....
    Regards,

    Please post the details of the application release, database version and OS.
    We were working on Oracle Reports and registering in 11i thr concurrent program and while running thr concurrent request we are getting blank pages from printer output, please let me know how to suppress blank pages as i need to get printouts without any white pages.
    Say for example if we run concurrent request and o/p is 10 pages which consists of 3 blank pages so finally we need to get printer o/p with 7 pages which are having data as i need to stop printing which are having white pages.
    Please help as this a critical scenario.....Does this happen to all concurrent requests?
    Is the issue with all printers or specific ones only?
    What if you use the lp command from the OS to print the concurrent requests output files, do you still get blank pages?
    Do you use PASTA?
    Please see these docs/links.
    How To Investigate Printing Issues and Work Towards its Resolution? [ID 297522.1]
    Oracle Applications Postscript Printing [ID 99495.1]
    Only First Line Of Concurent Output Prints And Then Blank Lines/Pages [ID 452906.1]
    Apps Reports Generate and/or Print With Incorrect Page Break Points [ID 359716.1]
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Blank+AND+Page+AND+Print&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Blank+AND+Page&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How to display horizontal line in top-of-page by using object oriented ALV?

    How to display horizontal line in top-of-page by using object oriented ALV.
    I am created top-of-page in object oriented alv.
    But not be successes in showing horizontal line in it.
    Can any one pls give solution for this..
    Thanks and regards..

    Hi
    Try like this
    data: gt_list_top_of_page type slis_t_listheader. " Top of page text. 
    Initialization. 
    perform comment_build using gt_list_top_of_page[]. 
    form top_of_page. 
    * Note to self: the gif must be loaded into transaction OAOR with 
    * classname 'PICTURES' AND TYPE 'OT' to work with ALV GRID Functions. 
    * I Loaded NOVALOGO2 into system. 
    call function 'REUSE_ALV_COMMENTARY_WRITE' 
         exporting 
    * I_LOGO = 'NOVALOGO2' 
    * i_logo = 'ENJOYSAP_LOGO' 
             it_list_commentary = gt_list_top_of_page. 
    endform. " TOP_OF_PAGE 
    form comment_build using e04_lt_top_of_page type slis_t_listheader. 
    data: ls_line type slis_listheader. 
          clear ls_line. 
          ls_line-typ = 'A'. 
          ls_line-info = 'Special'(001). 
          fgrant = xgrant. 
          concatenate ls_line-info fgrant 
          'Stock Option Report to the board'(002) 
                 into ls_line-info separated by space. 
                        condense ls_line-info. 
          append ls_line to e04_lt_top_of_page. 
    endform. " COMMENT_BUILD
    Use following syntex for footer print in alv:
    * For End of Page
    form END_OF_PAGE.
      data: listwidth type i,
            ld_pagepos(10) type c,
            ld_page(10)    type c.
      write: sy-uline(50).
      skip.
      write:/40 'Page:', sy-pagno .
    endform.
    *  For End of Report
    form END_OF_LIST.
      data: listwidth type i,
            ld_pagepos(10) type c,
            ld_page(10)    type c.
      skip.
      write:/40 'Page:', sy-pagno .
    endform.
    check this link
    http://abapprogramming.blogspot.com/
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5dc3e690-0201-0010-1ebf-b85b3bed962d
    Changing width of a custom container dynamically
    Display Page numbers in ALV
    Insert picture in selection screen.
    Logo in OO ALV Grid
    Reward all helpfull answers
    Regards
    Pavan

  • Prevent Blank Lines at Top of Column

    So I create bi-weekly publications and I had a question that would make my job easer.
    I've been messing with widow & orphans, but I have a slightly different problem.
    We use hard returns between paragraphs (a blank line between paragraphs), and I was wondering if there was a way to use GREP or something to automatically prevent blank lines from showing at the top of a column.
    Right now, I have to delete & re-add returns throughout the editing process, which as you could guess, can get messy and easy to miss.
    I'd like to have it where I don't have to do any of that on my own, so the blank lines would "hide" automatically if at the top of a column, but would return if things get shifted around.
    Thoughts?
    Thanks for the help.

    I'm an idiot, that makes way more sense.
    Thank you for straightening me out.
    To think of the months i've been living my life all wrong.  . . . . .*puts hands in face*
    . . . excuse me while I go rethink all of my life choices.

  • How to create blank line in alv output

    Hi all,
    Iam getting alv output with currency values like below
    text1    20.0  10.0  30.0
    text2    25.0  11.0  30.0
    text3    27.0  19.0  30.0
    text1    24.0  18.0  30.0
    text2    27.0  16.0  30.0
    text3    29.0  15.0  30.0
    text1    23.0  17.0  30.0
    text2    22.0  13.0  30.0
    text3    21.0  14.0  30.0
    and so on...
    My requirement is to create blank line after text3. Since its currency field even i claer work area iam able to get 0.0.
    If i use no-zero in field catalog i will be able to get blank values for all 0.0, but thats not required.
    Can u help me out how to crate blank line after one set of values(text1, text2, text3) in alv display
    Thanks

    Hi,
    If i use no-zero, then all 0.0 will be replaced by blank, but that is not required.
    I want only blank line to be displayed after set of line items.
    Skip doesn't help in alv. Secondly if i append blank work area i will be getting 0.0 as it is a currency field.

  • How to set border lines in table and also in template in the smartforms ?

    How to set border lines in table and also in template in the smartforms ?
    As I have to create table with following detals
    total row = 3
    row1 = 3 column
    row2 = 6 column
    row3 = 9 column
    for 2nd and 3rd row data to be fetched using coding.
    so can anybody explain me what should i use
    Table or Template ?
    and I want the border like excel format.
    Can anybody suggest me ?
    Thanks
    naresh

    if the data is multiple i.e. line items choose table.
    if the data is single i.e. fixed choose template.
    Create table
    >  Draw u r no lines
    > choose option select pattern
    > select display framed patterns
    Choose u r required one.
    out lined, or full lined. u can choose option.
    same procedure to be followed for template also.
    with regards,
    Kiran.G

  • How to insert blank lines in the ALV output.

    Hi Friends,
    Could any body help me out How to insert blank lines in the ALV output.?? Any Code pls...
    Thank you,
    Vikram.C

    hi vikram
    do like this
    In the fieldcatalog table all the fields should be in editable mode
    ie lw_fcat-edit = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    i_callback_pf_status_set = 'SET_PF_STATUS'
    i_callback_user_command = 'USER_COMMAND'
    is_layout = lv_layout
    it_fieldcat = lt_fcat[]
    i_save = 'A'
    is_variant = lv_variant
    TABLES
    t_outtab = lt_license[]
    EXCEPTIONS
    program_error = 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.
    ENDFORM. " display_data
    *& Form user_command
    FORM user_command USING r_ucomm TYPE sy-ucomm
    rs_selfield TYPE slis_selfield.
    CASE r_ucomm.
    WHEN 'ADD'. "
    data: lv_ind type i.
    data: lv_line type i.
    describe table lt_license lines lv_line.
    loop at lt_license into lw_license.
    lv_ind = sy-tabix.
    if lv_ind = lv_line.
    append initial line to lt_license.
    endif.
    endloop.
    ENDCASE.
    ENDFORM. "user_command
    reward points if useful
    Rohan

  • How to draw horizontal line in smartform after end of the all line items

    Hi Friends,
    I am working on the smartform. I have created TABLE node in Main window.
    i want to draw a horizontal line after end of the main window table node. i mean after printing all the line items of the table, I need to print one horizontal line.
    Could you please help me how to resolve this issue.
    FYI: I tried with the below two options. But no use.
    1. desinged footer area in the table node of the main window.
    2. tried with uline and system symbols.
    please correct me if i am wrong. please explain in detail how to draw horizontal line after end of the main window table.
    this is very urgent.
    Thanks in advance
    Regards
    Raghu

    Hello Valter Oliveira,
    Thanks for your answer. But I need some more detail about blank line text. i.e thrid point.
    Could you please tell me how to insert blank line text.
    1 - in your table, create a line type with only one column, with the same width of the table
    2 - in table painter, create a line under the line type
    3 - insert a blank line text in the footer section with the line type you have created.

  • Trying to publish an event to fb from iPhoto '09, 8.1.2. Getting error message: "Line 22: Opening and ending tag mismatch: meta line 0 and head".

    Trying to publish an event to fb from iPhoto '09, 8.1.2. Getting error message: "Line 22: Opening and ending tag mismatch: meta line 0 and head". Never had any trouble before. What in the world?

    See if you can export those same photos to a folder on your Desktop.
    OT

  • How to remove blank lines in the end of list .

    hi,
    in a complex report ,when there are only 20 pages,and linecount is 65(2) ,in the last page only 27 lines are filled and data is completed.then blank lines are printing from 27th line to 63 line.then end of page is triggering.
    so plz help me how to remove the blank lines here and immediately print the endof page.

    Hi,
    will this work for you.
    SET BLANK LINES OFF.
    These statements allow you to specify whether you want to output blank lines or not. Use SET BLANK LINES ON to output blank lines or SET BLANK LINES OFF to suppress them.
    Regards
    Viswanath Babu

  • How to suppress some lines from printing

    Dear all
    I have a problem of suppressing some lines in a character mode report depending on some condition. E.g. say I have 5 lines per record to be printed. Say Name, Add1, Add2, Add3, City. Now depending on a condition, I don't want to print Add2, instead Add3 and City should move upward one line resulting only 4 lines in the report. Like wise there may be only two lines in the report, Name and City only.
    How to accomplish this task? Thanks in advance.

    Easy in to do it in the query:
    select rtrim(decode(adr1,null,null,adr1||chr(10))||
                 decode(adr2,null,null,adr2||chr(10))||
                 decode(city,null,null,city||chr(10))||
                 country,
           chr(10))
    from address                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

  • How to supress blank lines in smartforms...

    Hello Experts,
    I am showing the address of the customer in my form but I noticed that when a variable doesn't have a
    value, it still shows as a blank line. For example:
    Customer 123
                        <--- I want to remove this line
    San Francisco, California.
    How can we do this guys?
    Thank you and take care!

    Hi Viraylab,
    There are two ways by which you might clear this issue.
    1. If you have created a template for the same and under that, if you have created separate rows for each field/group of fields, then you need to remove those rows, as the blank row will be displayed as it is.
    2. You can directly write the code for the condense using the statement CONDENSE wa_field.
    Regards,
    -Syed.
    Edited by: wahid hussain syed on Dec 16, 2008 11:17 AM

Maybe you are looking for

  • Swap hard drive from G4 14" 1.33 to a G4 14" 1.2?

    After my display in my G4 14" 1.33 bit the dust (http://discussions.apple.com/thread.jspa?messageID=6439953) and giving up on a fix, I've come across another G4 14". According to the owner, a Genius has said the hard drive is dead. While I'm proceedi

  • Change layout from Dreamweaver CC to CS6 (Was: layout...)

    how do i change the layout from dreamweaver cc to dreamweaver cs6. i need to use cs6 for class. thx.

  • I can't update to the latest version

    I can't update to latest version of firefox - I tried using 'about firefox' in the tools menu - didn't work (can't remember the error message) - I tried downloading the exe file and updating manually - it always gives a 'your download was interrupted

  • I can't reinstall photoshop cc

    I uninstalled Photoshop CC from my computer. Now Im can't seem to be able to re-download photoshop CC to reinstall it.

  • Re: LSMW. adding selection screen

    HI, I have to write an conversion program in LSMW in the field mapping and conversion rules i have updated the select fields.. but.. how to change the text element and selection texts Thanks in advance Guhapriyan