Use image as header for AdvancedDataGrid column

Hi,
I would like to show an image as column header in my
AdvancedDatagrid. The attached code works but doesn't show the sort
arrows and numbes any more...
Any ideas?

Still a problem, I'll make another app demonstrating my problem...Fact is that when I click on a button in the buttonbar I can manage to set the underlying data in the dataprovider...but when I scroll the data in the datagrid and a buttonbar in a row scrolls off and then back into view I lost the toggle state of the buttonbar (no button selected but data in the dataprovider is still correct).
The dataprovider for the togglebuttonbar is contained in the dataprovider of the datagrid, but I don't think that this is part of the problem... (ie. each object in a row is a message with associated possible actions. I'd like to represent the possible actions with a togglebuttonbar.
Thanks

Similar Messages

  • Single heading for Multiple columns in ALV

    Hi Experts,
          I need to display a common column heading for multiple columns in my ALV Grid Display output. I am giving the sample output here.
    MATNR...WERKS..| Unrestricted Stock|....|Stock in transfer        |....|Stock in Quality|.
    ............................| CAT | SAP  | Differe| .. |  CAT   |  SAP  | Diff   | .. | CAT   |  SAP  | Diff  |
    As I shown above, for 3 columns CAT, SAP, and for Difference, I need to get "Unrestricted Stock" as column heading... and so on...
    Pl. suggest me on this.
    Thanks in Advance
    Ramakrishna

    Hello Ramki,
    NOT POSSIBLE IN ALV AT ALL :-((
    You have to use classical report using WRITE stmts for this.
    If your client does not want to lose ALV functionalities, then you can try something like.
    Unrestricted Stock-SAP | Unrestricted Stock-CRM | Unrestricted Stock-Diff. Stock ... and so on !!!
    BR,
    Suhas
    Edited by: Suhas Saha on Jan 21, 2009 3:00 PM

  • JTable - One Column Heading for Two Columns

    Can you adjust the default JTable to have one column heading for two columns of data? Is there a simple span command? I've looked at the api for JTable and JTableHeader and didn't see anything, is there something I'm missing? Any help would be appreciated.

    What i am trying to accomplish is have column 'E' span 2 columns.
    This is my code thus far, however it give the error from my pryor message. I am pretty sure it is because I'm using and Object[][] and a String[] instead of Vectors. What corrections do I need to make in order for my goal of:
    [ A ][ B ][ C ][ D ][ E  ][ F ][ G ]
    [ 1 ][ 2 ][ 3 ][ 4 ][5][6][ 7 ][ 8 ]
    Object[][] data = new Object[ROWS][COLUMNS];
    String[] columnNames = {"A","B","C","D","E","E","F","G"};
    table = new JTable(data, columnNames);
    table.setBackground(Color.white);
    table.addKeyListener(this);
    DefaultTableCellRenderer d = new DefaultTableCellRenderer();
    d.setHorizontalAlignment(JLabel.CENTER);
    table.setDefaultRenderer(table.getColumnClass(0),d);
    for (int i = 0; i < table.getColumnCount(); i++){
    TableColumn aColumn = header.getColumnModel().getColumn(i);
    TableCellRenderer renderer = aColumn.getHeaderRenderer();
    if (renderer == null) {
    renderer = new DefaultTableCellRenderer(){
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column){
    JTableHeader header = table.getTableHeader();
    if (header != null) {
    setForeground(header.getForeground());
    setBackground(header.getBackground());
    setFont(header.getFont());
    setHorizontalAlignment(JLabel.CENTER);
    setText((value == null) ? "" : value.toString());
    setBorder(UIManager.getBorder("TableHeader.cellBorder"));
    return this;
    aColumn.setHeaderRenderer(renderer);

  • How to boldface the header for ONE column

    hi,
    I want to know how to boldface the header for ONE column. The following will boldface the header for all the columns in the table
    table.getTableHeader().setFont(new java.awt.Font("Dialog", 1, 12));
    Thanks.
    Jrabi

    jtable.getColumnModel().getColumn( indexOfBoldColumn ).setHeaderRenderer( TableCellRenderer aRenderer )

  • Header for each column of data

    I am struggling to get header for each column in attached code. I would like to see this data in excel with header at the top. Also I wonder how to know which column belongs to which plot and which axis.
    Solved!
    Go to Solution.
    Attachments:
    saving for excel.vi ‏130 KB

    I would keep this in the original thread.

  • Creating a header for rows/columns in cross-tab with syntax

    Hi,
    The issue is creating strings for rows or columns' headers. How can I create a formula field which contains more than one seperate string. Such as "aaa", "bbb" and "ccc" are headers and they should be in seperate columns. In short, they will behave like characteristics of one of my query's field but they are just headers of the columns.
    ..............aaa...bbb...ccc....
    row1.......x.......x........x.....
    row2.......y.......y........y.....
    Also there is another issue about the formulation again. Is there any operator that does the same job as " \n" which is used in C languages to break the line?
    before:
    aaabbb
    after:
    aaa
    bbb

    Hi Carl;
    Firstly, thanks for answering my question. To explain my problem there are two options ahead(for my first question); first one is writing down the actions step by step, the second one is posting an image file(jpeg etc) to visualize it. I think the first one will be enough. If not tell me
    Step 1- Create a cross-tab and right click and select cross-tab expert.
    Step 2- Click the button "New Formula" and write down any word(such as "Sales") between two -"- sign to make it string.Then save and close.
    Step 3- Drag and drop the created formula to "columns" section and fill the other necessary sections with your database's(such as xtreme.mdb which is famous for crystal users) fields.Don't forget to add another column value to "columns" section, since our formula has no link to database.
    Step 4- Then click OK to save the changes and lets preview the cross-tab.The result will have one top column and his child or children(that depends on your data). And this top column is behaving like a header not a field.
    Now turn the second step but write down a formula for 2 columns or more.For exmple "Sales" and "Profit".So the result will have 2 top columns and their child/children.
    My question is "what is the formula for 2 or more columns?"
    Also I couldn't get the answer for my second question. What is the meaning of expressions "\c" and ChrW(13)?
    Edited by: diabolus on Oct 30, 2009 9:39 AM

  • Using XML as header for Image

    Has anyone used an XML document to describe an image? I have the image already in iFS and then I want to pass in an XML document that describes the image. What path should I take to link the two together, or make them both seen as one object?
    Jason Adkison
    New Mexico Mutual Casualty

    You can use an XML file to supply the attribute values for a Document, or a content type based on the Document class.
    1) First, ensure that the elements in the XML file map to correspondingly named attributes on the content type.
    2) Include in the XML file an <UPDATE RefType="Path"> tag which specifies the full path of the file in the repository.
    3) Import the XML file into the repository with parsing enabled (automatically enabled with SMB)
    Example:
    <?xml version = '1.0' standalone = 'yes'?>
    <DOCUMENT>
    <UPDATE RefType="Path">/home/guest/doc2.txt</UPDATE>
    <NAME>doc2_new.txt</NAME>
    </DOCUMENT>
    Please review the Oracle iFS Application Developer's Guide, Chapter 4 - creating custom classes for a description of how to create custom content types to track extra attributes pertinent to your images.

  • Using images stored in DB BFile columns

    Hi,
    I am using 11g r1p1 .. I have a DB table where I store images as BFile. What should I do to display these images on the page? I am using ADF stack..
    Thanks

    Hi Timo,
    I saw some of those but I thought that there would be a better and more out of box way of doing it.
    Looks like we can't just drag and drop an image column on the page.. We need to write code and maintain it for fulfilling a basic need , displaying a image..
    Thanks

  • Problem with header for each column

    Hi,
    I want change column header-text dynamically in the table control of module pool programming.Please help me.

    Hi Abhijit,
            no need to put '&' in the variable .You just give the name of the variable as lw_text and also dont forget to expand the Def.Length attribute to equal to the length of that variable in the decalration.It is working for me.
    put the follwoing code in PAI module.
    Data:lw_text(15).
    If cond1 = true.
    lw_text = 'Description 1'.
    elseif cond2 = true.
    lw_text = 'Description 2'.
    Endif.
    Using the above code u can modify dynamically.

  • Extra column names selected when using the 'popup describe' for selecting columns

    Hi,
    In SQL Developer 3.2.20.09, if you use the popup describe function on a table and individually select some columns using Ctrl + click (not shift click which would select a range of columns), and then drag them to the SQL worksheet so the column names come across, it will include all columns between the individual columns that were  selected.
    For example if I choose column 1 and 5, it will include columns 1,2,3,4,5 when I drag them across.
    Simple to reproduce on any table, just open the SQL worksheet, type the name of a table, open the popup describe and select some columns.
    regards,
    Steve

    This isn't happening in v4 EA2 so it appears to be fixed.

  • Probably a simple question about using a flash header for navigation

    What would be the best way to go about loading this flash
    navigation?
    http://www.marcos-ac.com/wip/
    Basically my issue is that I don't want the animation to run
    through each time. On the homepage, I want it to run through it's
    whole animation, but after that, I just want everything to be up
    there... not flying in and fading in on each of the pages in the
    site.
    My ideas:
    1. Some sort of actionscript command that says "if you are on
    a page named index.htm then play the entire movie, otherwise, goto
    and play frame 100 (the last frame).
    2. Use a shell movie and do a loadMovie that they jumps to a
    frame. Insert the shell movie on the subpages in the site. I tried
    this an it didn't work. And I've read that it's unreliable because
    the label may not exist yet when the movie is called or something.
    Must be cached.
    3. Build 2 movies... one with all the intro animation frames
    chopped off. I tried this and didn't like it as the movie is
    already pretty huge and to load two movies that are large is
    annoying to users. This is the method I am currently using.
    Thanks for the help!

    The quick and easy way - not necessarily the most elegant way
    - to solve the problem is to use html frames. Put the nav in a
    header frame and have contents display in a second frame
    underneath. Will require you add a target="contentframe' (or
    whatever you name the content frame) parameter into each link in
    the nav flash, but other than that you won't need to make major
    changes.
    The nav plays once and just sits there until they reload the
    entire page the next time they visit. No actionscript, tests,
    preloading, etc required.

  • Using images as bullets for nav list

    Hi,
    http://labs.avenuedesigners.com/test/
    I have it set in the CSS all over to show an image I've
    created as the
    bullet to each of the navigation <li>. I've tried it in
    all different
    places, on the <ul> and <li> declarations, etc.
    to no avail. Currently, it's
    set to three different declarations but it's not showing up.
    Eliminating
    some of them doesn't work either.
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Blog:
    http://avenuedesigners.com/blog/
    Web dev articles, photography, and more:
    http://sourtea.com
    =============================================
    Proud GAWDS member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================

    Nevermind - I just applied the image to the <a> tag and
    it seems to work
    well.
    Thanks.
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Blog:
    http://avenuedesigners.com/blog/
    Web dev articles, photography, and more:
    http://sourtea.com
    =============================================
    Proud GAWDS member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================
    "Shane H" <[email protected]> wrote in
    message
    news:f1ocgc$kmi$[email protected]..
    > Hi,
    >
    >
    http://labs.avenuedesigners.com/test/
    >
    > I have it set in the CSS all over to show an image I've
    created as the
    > bullet to each of the navigation <li>. I've tried
    it in all different
    > places, on the <ul> and <li> declarations,
    etc. to no avail. Currently,
    > it's set to three different declarations but it's not
    showing up.
    > Eliminating some of them doesn't work either.
    >
    > --
    > Shane H
    > [email protected]
    >
    http://www.avenuedesigners.com
    >
    > =============================================
    > Blog:
    >
    http://avenuedesigners.com/blog/
    >
    > Web dev articles, photography, and more:
    >
    http://sourtea.com
    > =============================================
    > Proud GAWDS member
    >
    http://www.gawds.org/showmember.php?memberid=1495
    >
    > Delivering accessible websites to all ...
    > =============================================
    >
    >
    >

  • Multiple column heading for sql that returns single column

    Hi All,
    I have just started using APEX and my apex version is 3.2.0.00.27.
    We have a report that displays the output from a query similar to the below one. We are using borderless template and removed the "before each row" and "after each row" values to allow the output displayed in table format.
    Now we wanted to include heading for each column displayed in table. We wanted to include headings from a derived value, Example for column1 , heading need to display the sysdate and column2 heading should be sysdate-1 and so on.  But the column attribute tab is having only one column My_rep. Not sure how to se pl/sql type column heading in this case. Could someone please help me to achieve this?
    Please let me know if I have missed to provide any other details. Thanks in advance.
    select '<tr>
        <td>' || column1    || '</td>' ||
        <td>' || column2    || '</td>' ||
        <td>' || column3    || '</td>' ||
        <td>' || column4    || '</td>' ||
        || '</tr>' My_rep
    from mytable

    22335813-cfb0-46c4-9bef-b61a46f0de67 wrote:
    Please update your forum profile with a real handle instead of "22335813-cfb0-46c4-9bef-b61a46f0de67"
    I have just started using APEX and my apex version is 3.2.0.00.27.
    Upgrading from this unsupported version to the current 4.2 release is recommended.
    When you post a question, always include the following information in addition to the full APEX version number:
    Full database version, edition and host OS
    Web server architecture (EPG, OHS or APEX listener), server platform, and host OS
    Browser(s)/version(s) used
    UI/Theme
    Templates
    Region type (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. To get a detailed answer then it's appropriate for the questioner to take on a significant part of the effort by reproducing the problem on apex.oracle.com before asking for assistance with specific issues, which can then be seen at first hand in a real APEX environment.
    we wanted to get a report in Apex with the below format. and we wanted to change background color of each cell depends on the combination of code||status
    Heading        sysdate             sysdate-1              sysdate-2                              ...(sysdate-30
    ======        ======          ========               =======
    name         code||status                                   code||status
    name                                  code||status
    we are using the below query to get this table format. But heading is the issue we are facing now
    select '<tr>
        <td>' || name    || '</td>' ||
        '<td style=background-color:' || case when sysdate0='0C' then 'Green' when sysdate0='0I' then 'Red'     when (substr(sysdate0,1,1)!='0' and substr(sysdate0,1,1)='I') then 'Orange'  else 'Yellow' end || '>  &nbsp'  || sysdate0 || '  &nbsp</td>'  ||
        || '</tr>' repcolumn
    from
      (select
            a.name,
            max(decode(trunc(a.ardate),trunc(sysdate), a.code||a.STATUS , '' ))   sysdate0,
            max(decode(trunc(a.ardate),trunc(sysdate-30), a.code||a.STATUS , '' )) sysdate30
    from
            mytab a
    where
            a.ardate>=sysdate-30
    group by a.name)
    See Re: Matrix report for a custom report template-based solution to a similar problem, with dynamically generated column headings.

  • Why is the scan size of our epson 15Mb for PDF using image capture?

    Hi All-
    This has been plaguing us since Snow Leopard when we lost the Epson Scanner tool from Epson to Image Capture scanning using our Epson 835 Artisan.
    PDF sizes are ridiculous using Image Capture. 
    For example, 3 pages of text using Image Capture =
         15Mb
    Using the same printer, same 3 pages and the builtin Epson Scanner (from the printer panel) and a USB stick =
         1.2Mb
    This has been happening since the SL upgrade (as mentioned) but I had hoped that Epson/Apple could get their act together on the Epson drivers for ML.  Seems not to be the case.  It is kind of a drag to have a Network available Scanner only to have the built in software be a bum steer.  Not only that, but no relief from Epson since their Scanner program (as bad as it was UI wise, but at least you got a mail-able document) has been discontinued...
    Any ideas?
    jp

    This doesn't answer the question but it is a workaround.
    How is the quality if you do this:
    Open the PDF in Apple Preview
    Choose File/Export
    In Export, choose PDF format with the Quartz Filter option "Reduce File Size"
    If it's ugly, there's a way to adjust the compression settings by using Apple ColorSync Utility to make a modified copy of the Reduce File Size filter with different settings. By playing with this I was able to start with a 7.1MB PDF scan from Image Capture, and export variations based on different Reduce File Size settings:
    5.3MB (JPEG Max) - looks great
    188KB (JPEG Min) - looks good as the 5.3 MB copy actually
    40K (Automatic) - too blurry to be usable
    If you were to perfect your own compression filter you could just export each PDF through Preview after scanning it, or presumably you could build some kind of drag-and-drop conversion utility in Automator although I don't know anything about Automator.
    It's a workaround because I could not determine a way to apply a Quartz filter from Image Capture itself when saving a PDF.

  • I use images for presentations. Recently I've noticed a decrease in quality ( sharpness and definition) of pictures copied into Keynote. Same problem with both JPEGs and TIFF files. I've recently upgraded to keynote 09, but with no improvement.

    I use images of paintings for presentations. Over the last 3 months or so I've noticed that I cannt copy images (either JPEg or TIFF) without a reduction in sharpness and definition. Hope someone can help with this problem.

    Figured it out myself! yay!  (only took my entire moring)
    The solution:
    Dont print to PDF!
    SAVE AS COPY, then select Adobe PDF and click SAVE, this will bring up a dialog box with the options you need (including the "High Quality Print" Adobe PDF Preset)
    This was not clear in any of the instructions i read

Maybe you are looking for

  • Removing Cisco Valet Connector from your computer

    Removing Cisco Valet Connector from your computer

  • Transferring data between JSp's

    I have a servlet, PC502, which I invoke and use PC502.jsp to display the results. I have a clickable button so if the user wants to see more account information I invoke servlet PC503, and use PC503.jsp to display the results. Within the PC503.jsp I

  • What driver to use for an ATI Radeon HD 3200?

    Hello.  I've been trying to get this damn ATI card to work but can't seem to figure it out.  I've tried the 8.8 drivers in the core repository -and- the 8.11 drivers in the testing repository and neither work.  Is there a stable driver that I can use

  • Transferring Texts From 6230i to E65

    Using Nokia PC Suite I have moved my contacts from my 6230i to my E65. However, when I tried to import the texts I get a message that says "The connected phone (E65) does not have multimedia message support installed. Multimedia messages cannot be im

  • Pages has started crashing. Any ideas why this might be?

    Pages has started crashing for no apparent reasonexcept perhaps for recent software update. Has anyone had this experience? Ndug