Hiding menu column when printing

Using Aqualogic Interaction 6.1
I'm trying to have a few pages with 2 columns on the screen, (navigation on left and content on right.) But when the user hits print I want the content column take up the entire page.
using css I can easily hide the menu portlets but when I print I still have blank whitespace where the menu used to be.
looking at the source of the page it seems the portal adds a spacer image 250 wide at the bottom of the column. Is there any way to remove this? If it had a class tag I could hide it just like the portlets but it doesn't.
I've added the following code to my header portlet:
{style type="text/css" media="screen"}{!--
--}{style} 
{style type="text/css" media="print"}{!--
.columnOne     { width: 0; }
#pt-portlet-9422 {display:none; BACKGROUND-COLOR: #FFFFFF;}
#pt-portlet-9423 {display:none; BACKGROUND-COLOR: #FFFFFF;}
--}{style}but it doesn't seem to work when I print the left column is blank but it still takes up abotu a third of the page.
the spacer image I see in the source that I think is causeing the problem is:
{table cellpadding="0" cellspacing="0" width="100%" border="0" summary="Portlet Column Formatter Table."}{tr}{td colspan="1"}{img src="http://portal.realtorlink.ca/imageserver/plumtree/portal/public/img/sp.gif" alt="" border="0" align="absmiddle" height="1" width="250"/}{td}
{tr}
{table}
{!--End Portlet Column 0--}BTW I've replaced all < with { and all > with } in my code because image and comment tags are displayed as html and some other tags are properly converted to & l t ; and & g t ; in this newsgroup... might want to fix that too.

Hi,
When i write that code, it gives me an error message :
data: lr_salv_column type ref to cl_salv_wd_column,
lr_salv_table type ref to cl_salv_wd_config_table.
lr_salv_column = lr_salv_table-if_salv_wd_column_settings~get_column( 'm_no' ).
lr_salv_column->set_visible( if_wdl_core=>visibility_blank ).
Error message:
"Class "CL_MAINV_CTR" does not contain an interface
"LR_SALV_TABLE-IF_SALV_WD_COLUMN_SETTINGS".      "     
"Mainv" is the name of my view.
I am new at WDA, please give me detailed information.
Thanks
Edited by: Adil Gündüz on Sep 22, 2008 11:13 AM

Similar Messages

  • Hiding a column when displaying an alv

    Hi Gurus,
    Shortly I have these things :
    1) A node with some attributes like customer_no, customer_name, status etc.
    2) A view which contains an element(viewcontainerelement) and this displays the node.
    This node is in CONTEXT of my view and in componentcontroller.
    Now i want to hide some attributes(columns) when displaying this alv. Can anybody help me?
    Thanks..

    Hi,
    When i write that code, it gives me an error message :
    data: lr_salv_column type ref to cl_salv_wd_column,
    lr_salv_table type ref to cl_salv_wd_config_table.
    lr_salv_column = lr_salv_table-if_salv_wd_column_settings~get_column( 'm_no' ).
    lr_salv_column->set_visible( if_wdl_core=>visibility_blank ).
    Error message:
    "Class "CL_MAINV_CTR" does not contain an interface
    "LR_SALV_TABLE-IF_SALV_WD_COLUMN_SETTINGS".      "     
    "Mainv" is the name of my view.
    I am new at WDA, please give me detailed information.
    Thanks
    Edited by: Adil Gündüz on Sep 22, 2008 11:13 AM

  • Hiding a column when using Apex_item.hidden

    Hi All,
    I am using Apex v4.1.1.
    Have a tabular form I created manually with few APEX_ITEM.HIDDEN fields. The fields are not rendering (as it hidden) however I am left with a blank columns. Could someone guide me how I can make those columns invisible (without getting rid of them as they contain values I use in my Javascript).
    Many Thanks.

    xarg-Xrc wrote:
    Have a tabular form I created manually with few APEX_ITEM.HIDDEN fields. The fields are not rendering (as it hidden) however I am left with a blank columns. Could someone guide me how I can make those columns invisible (without getting rid of them as they contain values I use in my Javascript).Don't select the hidden items as separate columns. Concatenate the hidden items with a visible item in one column:
    select
           apex_item.hidden(...)
        || apex_item.hidden(...)
        || apex_item.hidden(...)
        || col1 as col1
      , col2
      , col3
    ...

  • Changing the Column Header and Hiding the Column dynamically???

    Hi friends..
    I'm new to OBIEE field. I'm working in a OBIEE project that requires to dynamically change the column header, and dynamically hide the column depending on the prompt value.
    I know we can dynamically change the table header using the presentation variable but I couldn't do that same thing with column header.
    I searched some forums that suggest to use java script for this purpose but I'm not able to do the same also. If anyone had same issue before please help.

    toony, I'm not sure it's possible to do all that you want exactly the way you want, but here are some ideas you can pursue.
    To dynamically change column headers without javascript, check this blog out...
    http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
    As far as dynamically hiding a column, I don't think you can do this, but since you don't provide any details on how the PV is supposed to hide a column based on the value, are you talking about hiding a column for one PV value and another (different) column for a different PV value? Or are you talking about hiding one column when a PV has certain values and displaying it when the PV has a different set of values?
    I have managed to create both scenarios via a work-around, but the procedures require some writing so I don't want to put both. Please detail how you want your PV to "hide" a column or columns.
    P.S. I don't think column selectors will do the trick for you. Basically column selectors work like this: Say you have a report using Sales Region ID, Region Name, and Sales. Now let's say you want the user to choose if he/she wants to see annual sales, or quarter sales or weekly sales, etc. The column selector view would allow you to put the various columns (Year Sales, Quarter Sales, Weekly Sales) as an option the user can select. Once selected, the sales figure will change for the time period selected. For an example of how this is done, check out the section in this "Oracle by Example" link.
    Waited too long to publish this... Madan beat me to it, so there is some overlap here...
    http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/saw/saw.html
    Edited by: LC143 on Oct 27, 2008 9:21 AM

  • Hiding buttons when printing and adjusting field to compensate

    Hi,
    I had a request for a form in which the Add a Row button and Delete Row button are hidden when printed to make it look a little nicer.  I was able to hide the buttons when printing, but the table that the delete is part of still looks odd and there is a larger space than I'd like to have between the tables once the add a row doesn't show.  Is there are a way to make things look nicer?  I've attached the demo of the form I'm working on a sample of what it looks like right now when I print.
    I did see a post about Hiding text field borders when printing and it sounded like I might need to do something similar, but I'm not quite sure what.
    Thanks!
    Image: https://acrobat.com/#d=HvU8V27oA*Ki6HzoI2Ec0w
    Form: https://acrobat.com/#d=1K*EfksEnAH0azzxTrx31w

    The easiest way to deal with the buttons down the side is to set the borders of those cells to none, then you don't have to worry about it - you will end up with a little extra space down the right side but the table will look finished when the buttons hide. This is how I do it, because the button takes the whole space of the cell I just don't put a border on it. Getting into hiding columns and shifting table size to fill the space is getting pretty tricky.
    To get the tables closer together when you print and hide the add row button, put the following script in the prePrint event of the button:
    this.presence = "hidden";
    And this script in the postPrint event:
    this.presence = "visible";
    Because the button is part of the flowed subform the table is in when you set its presence to hidden the subform will close the gap.

  • When printing two-sided from my Mac on landscape A4 with 2 columns, how can I get my HP Photosmart 6520 to print the same way up?

    When printing two-sided from my Mac on landscape A4 with 2 columns, how can I get my HP Photosmart 6520 to print the same way up?

    Or, it is set the other way around (which makes more sense). Even though you are in Landscape mode, it is binding on the Long Side of the paper. Since you are in Landscape, you would want it to bind on the short side.
    Think of the Binding like a Book. How would you flip the finished pages to read the “book.” Where it would be bound in the imaginary book is how you want it to print.

  • I want to print iCal with Mondays in the left hand side column. My calendar prints with Tuesday in the left hand column even though it displays Mondays in the left hand column when in normal use.

    I want to print iCal with Mondays in the left hand side column. My calendar prints with Tuesday in the left hand column even though it displays Mondays in the left hand column when in normal use.

    Thank you for your advice, it works.  I have struggled for hours to find the solution I am very grateful.

  • When printing an e-mail, it prints in narrow column - not full page width!

    when printing an e-mail, it prints in narrow column - not full page width!
    Spacing is also erratic

    check the default paper size for your printer on the printers folder in Windows.

  • Why have I lost PDF printing capability through the File Print menu?  When will it be fixed?

    Why have I lost PDF printing capability through the File>Print menu?  When will it be fixed?

    What app are you using to view PDF files? Preview can be a poor choice for some PDF files - I recommend using Adobe Reader - http://get.adobe.com/reader/ - perhaps it will solve your printing problem.
    Clinton

  • FormCentral PDF export: Drop-Down Menu does not print when no choice is made

    FormCentral PDF export: Drop-Down Menu does not print when no choice is made
    I want to be able to print a blank form for the older clients who cannot use a computer. Form has a few drop-down menus and they only appear on the print out if an option is selected. The form was created on FormCentral. Can anybody help?
    Sorry if i'm a noob, not much experience in creating PDF forms yet.
    Thanks for your help,
    Yon

    Hi Perry
    I am using the trial version of Adobe Acrobat and am using the provided FormCentral software to create the form. I find it very limited, but easier to learn. I am creating a financial needs analyser.
    The section of the drop down menu is a selection from 1-5 (rating of importance for financial goals). I want to print out the questions and the empty boxes for people to fill them in by hand (e.g write 1, 2, 3, 4, or 5). When I leave a blank choice, no box is printed out. I write the questions in formatted text and leave the text/caption for the drop-down as blank, as it is difficult to set the margins correctly so various elements align (I pretty much have to estimate).
    As said before, I may have been missing a massive part of the software, but I haven't used any training - just going by instinct so far.
    Do you know if I can do anything about it?
    Thanks,
    Yon

  • TS3147 how do i change the orientation for documents in pages when printing double sided so that the document opens like a menu?

    how do i change the orientation for documents in pages when printing double sided so that the document opens like a menu?
    write now the document is printing so that when folded the interior of the menu is upside down.

    See also this article about the New Tab page (about:newtab):
    *https://support.mozilla.org/kb/new-tab-page-show-hide-and-customize-top-sites

  • Hiding a column in JTable

    Hi,
    I want to hide a column when i select Hide option from a popup menu and
    again bring it back when i select show option again from the popup menu.
    How to get this done?

    Hi!
    The simplest way to do that, is to set the column width to 0 for hiding and back to its normal size to show it again.
    Cheers
    K.

  • Long pause when printing from phaser 6360dn

    We have a Mac that was recently upgraded to Mac OS X 10.8.3 Mountain Lion and moved to a different location.  The mac is now connected directly to a Xerox Phaser 6360DN via a usb cable.  When any document is printing, there is a pause of about 3 minutes before the printer starts going.  Here are some facts about this issue:
    1) Before the Mountain Lion upgrade, this particular mac was able to print fine to the printer over the usb without a pause.  The Mac had Mac OS X 10.6.8 before
    2) When the pause occurs, and if you look at the printer spool, there are two jobs listed.  The first says "Setting up printer" or something similar and the second job is the actual document being printed.  The pause is caused by the first job which takes 3 minutes.  After that is done, the printing of the document occurs pretty quickly.  As a workaround, if you click the "x" next to the the first job to delete it, it will move to the next fairly quickly and complete the printing.  However, as you can imagine, this becomes a pain quickly especially when you need to print lots of documents.
    3)  When printing in Microsoft Word or other Office apps, clicking the direct print button results in no pause and fast printing.  Going through the menu and selecting "print" results in the pause.  Other applications don't behave that way.  For some reason, using the print button in Word bypasses the part of the process that results in the pause.
    4) When in the printer spool/info folder, clicking on the get printer supplies information button results in an error that the printer is not responding.
    I'm thinking there is some communication problem between the two devices that causes the hang. How to solve it I don't know yet.  I have tried the following:
    1) delete printer and reinstall printer
    2) download latest drivers from Xerox and do 1 above
    3) Used the reset printing system button to zap everything and do 1 above
    4) switch usb ports and use different cables
    5) turn off printer sharing and printer notifications
    6) no luck with any of these fixes
    Not sure what to try next.  Please help

    We have a workaround for now.  Using the generic postscript driver bypasses whatever initial operations were being done, so printing is much faster.  However, occassionally the printer outputs pure data instead of the expected output.  That's ok for now, but still would like to get the driver to work somehow.  I might try the Gutenprint drivers to see if that makes any difference.  Was also thinking of installing the usbtb alternative usb backend to see if that makes a difference.  Thanks for the input.
    PAHU wrote:
    NorNAZ wrote:
    2) When the pause occurs, and if you look at the printer spool, there are two jobs listed.  The first says "Setting up printer" or something similar and the second job is the actual document being printed.  The pause is caused by the first job which takes 3 minutes.  After that is done, the printing of the document occurs pretty quickly.  As a workaround, if you click the "x" next to the the first job to delete it, it will move to the next fairly quickly and complete the printing.
    This first job - the setting up printer one - is a status check of the printer. It is being sent by the 10.8 printing system to ensure the printer has paper and toner before the print job is sent. The fact that it is sent is most likely due to the Xerox driver, or more appropriately the PPD. To check this is the case, open System Information and select Printers in the left column. In the top right pane, select the Phaser 6360. The bottom right pane will show information about the printer. There will be an entry called Printer Commands. Next to this entry, do you have some text, such as Report Levels?
    NorNAZ wrote:
    3)  When printing in Microsoft Word or other Office apps, clicking the direct print button results in no pause and fast printing.  Going through the menu and selecting "print" results in the pause.  Other applications don't behave that way.  For some reason, using the print button in Word bypasses the part of the process that results in the pause.
    The Word Print icon in the toolbar (ribbon) is by default set to "Print One Copy". This setting bypasses the printer driver settings and submits the print job to the default printer. So as the printer settings are not called, then there is no status check performed and printing is not delayed.
    NorNAZ wrote:
    4) When in the printer spool/info folder, clicking on the get printer supplies information button results in an error that the printer is not responding.
    The Supply Levels section of Options & Supplies does not work for every brand / model of printer. And even if it was working on 10.6, does not mean it will work on 10.8.
    Ultimately this will be up to Xerox to fix. You should report it to them when you get a chance, although don't be surprised if they tell you it is up to Apple to fix. The answer to that is Xerox makes the driver, not Apple, so Xerox needs to fix it. Also, other brands are not having the same issue so this points the finger back at Xerox.

  • Error message or program crashing when printing on Epson printer

    In July 2008, I upgraded my computer from a MacBook to a MacBook Pro (and bought a Time Machine so that all my files are backed up regularly!) I then bought my wife a MacBook Pro in November 2008. We both used to have iBook G4s.
    We have an Epson EPL-6200 Laser Printer that we print from using our Airport Express. It used to work fine printing documents from any program and printing wirelessly from the iBook G4 computers we had when we bought the printer around three years ago.
    But since I have switched to a MacBook and now a MacBook Pro, I have all kinds of problems printing on the Epson EPL-6200 printer. At first, my MacBook did not print remotely at all. I had long conversations with both Apple and Epson, knowing there was a problem with the Epson driver. To top it off, the problems seemed worst with Microsoft Office, so both of them also said it was Microsoft's fault!
    Now that Epson has upgraded its drivers and I have dowloaded the latest one, and switched to a MacBook Pro, I can print some files easily -- Word documents now print immediately, although I get an error message saying that the printer is not connected. But trying to print from other programs such as Firefox either takes a very long time (around 5-8 minutes for one page) or causes the program to crash.
    Any ideas? The strange thing is that my wife's computer and mine are exactly the same (running Mac OS X version 10.5.6) but behave slightly differently when printing. I can print from Firefox, albeit after a long time per page, whereas if she tries to print from her computer in that program it instantly crashes.
    I guess we still have driver issues with the Epson EPL-6200.
    But I have looked on the Apple support forums and there seem to be a lot of printer-related issues like this. Do you guys have any suggestions? Or is there a printer that will work well with our MacBook Pros, an Airport Express and/or Time Machine (we have both) and when printing remotely?
    All the best,
    Alex

    hey,
    well, i use the below machines with the current mac os (10.5.6).
    i (kind of often) had issues with the network printer epson epl-6200.
    of which every issue could be resolved by myself, more or less quickly.
    i.e. until the last update (10.5.6).
    none of my machines is able to get anything through the network to the printer.
    at least they don't get the printer to print a page.
    today i spent (almost) the whole day, trying out things to get it fixed this time.
    none of it worked.
    just to let you know:
    i can access the printer through its http-interface.
    i can ping it.
    it gets recognized by the printer/fax-dialog in the system-preferences.
    here's what i tried so far:
    i tried to install the osx driver for the epl-6200 with every single protocol that's available in osx (i.e.: Appletalk, IPP, Bonjour, EPSON (IP), etc.)
    i of course tried to update the driver with the latest software available on the epson-website. and did the thing with the different protocols again.
    i tried the "generic" postscript driver of osx, too.
    then it was getting interesting:
    i tried to get "cups" for the epl-6200. i don't want to get into details here, but to drop some names:
    foomatic-rip (combined with ghostscript)
    http://linuxfoundation.org/en/OpenPrinting/MacOSX/foomatic
    gutenprint (doesn't have an epl-6200 driver included)
    pxlmono (doesn't have an epl-6200 driver included)
    to sum that up:
    there are two drivers on the "openprinting"-site (foomatic). but one is (of course) the official epson driver.
    but:
    there is a "third-party" driver downloadable on that website.
    http://openprinting.org/show_printer.cgi?recnum=Epson-EPL-6200
    well, i downloaded it, installed the required additional software (foomatic + ghostscript), all very fine. i could choose it in the osx printer setup menu.
    but:
    my printer still won't print a single page.
    the error messages i got:
    other than the above post none of my programs ever crashed, or was "dead slow".
    but:
    the printing job got constantly stopped, i could restart it, but it was then stopped again. without any error message.
    there was the same thing with the halt of the printer (also monitored in the printing cue window). i could restart it, but it would stop again. without any error message.
    but i also got two decent error messages: :))
    the first involved the pdftoescpage.app, either it was failing (shown in the printer cue window), or it was crashing (i got the error message in a separate window popping up). according to folks on the net this malfunction involved user permissions, so i to set up the "right" permissions (giving everybody the right to do anything (rwx) - i know i shouldn't have :)) ). but it didn't help. still crashing or failing.
    the second decent error message, finally:
    "double free" - what that meant, i cannot tell.
    conclusion:
    i don't know. :))
    required action:
    i will await the next osx update, and hope it'll be fixed then. :))
    good night, y'all
    p.s.: ahh, if anybody knows anything i didn't and should try. please drop a line. thx

  • Print to PDF - using Snow Leopard (Saving a PDF file when printing is not supported. Instead, choose

    i have a PDF form that i created that is used as a custom proposal that my company sends out to potential clients. the form in its editable state is only used internally. we recently upgraded to snow leopard, but prior to the upgrade, we were able to fill the custom proposal form out using adobe reader, and, as you well know, we weren't able to save that edited document as a PDF with the custom form fields filled out. our work around using adobe reader was to print to a pdf using the adobe pdf printer in the printer dialog. with the addition of snow leopard, however, instead of choosing the adobe pdf printer, we were to choose PDF from the bottom left corner, then Save As PDF, and it would spit out an uneditable pdf that then allowed us to email it to the potential client without them being able to edit it as well as have an internal, digital copy for our records instead of having lots of paper floating around (i know this is also doable using security that disallows the client certain editing privileges, but printing to a pdf is much quicker and more efficient, and the pdf security isn't really that secure at its best).
    in any case, i came across this gem of a post here on the support forums that installs another option from the PDF drop down on the bottom left of the print dialog menu that reads Save As Adobe PDF and is supposed to do exactly what i am trying to get it to do...print to a pdf file from adobe reader.
    http://kb2.adobe.com/cps/509/cpsid_50981.html    
    once i updated to acrobat 9.2 (as the link above suggests 9.1), however, the Save As Adobe PDF does appear in the print dialog menu, but it still gives me the same error that acrobat 8 - 9 gave me while using Snow Leopard — Saving a PDF file when printing is not supported. Instead, choose File > Save — and as i've already explained, you can't save an edited pdf form in reader (as i am the only one in the office with acrobat) and still keep the fields as you've entered them in. the only work around is to print to a pdf but is apparently having some recent problems.
    using acrobat, however, i know that i can save the editable pdf as a new file with the fields customized as i have left them, but it still saves it as an editable pdf and the print to a pdf option still remains the best option...that way we have digital copies internally that are uneditable that can be printed at any time or emailed to the client.
    how can i do print to a pdf, based on what i've written above, using snow leopard and acrobat and reader?

    A simple way is to flatten the form fields, which converts the field appearances to regular page contents. You can do this with JavaScript or PDF Optimizer (Advanced > PDF Optimizer > Discard Objects > Flatten form fields). A very nice script that adds a custom menu item can be found here: http://www.uvsar.com/projects/acrobat/flattener/

Maybe you are looking for

  • How to delete a particular row in ALV table

    Hi, How to delete a particular row in ALV table based on some condition(by checking value for one of the columns in a row) Thanks Bala Duvvuri

  • Proxy runtime configuration in PI 7.1

    Hi Experts, How to do proxy runtime configuration in PI 7.1? Please send any documents or link available for the same. Regards, Nidhi Kukreja

  • Dynamic Table Selection function module

    Dear Friends,   We have got critical requirement on Custom BAPI function module :      we have to pass one field name of table and table name : Eg (Matnr and MARC).      we have to get table contents w.r.t field name of table and table : Has to displ

  • BUG: Mavericks calendar failed to start application

    After migration from 10.7.5 to 10.9 all scheduled applications were gone. They are still within the old Library folder structure, but the calender entries were removed due that change/ update. I have to create all entries from scratch. Thank you Appl

  • How to get the area of a polygon

    Dears, I want to use distance tool to get the area of a drawn polygon, how to do so using mapviewer javascript API version 2 and/or version 1. Does the mapviewer javascript API version 2 works with JSP/ASP or it is just for HTML5? Many thanks in adva