Line Color in Tree GUIBB

Hello,
May I know if it is possible to change the background or the font of one line in a GUIBB tree.
E.g. After we select a line and want to highlight this line.
Thank you very much.
Shumin

Hi,
As the previous answer was a little oriented on pure WD ABAP rather than FPM, I will try to give the FPM answer: YES and NO
YES -> Yes, you can set the color for the line/cell.
NO   -> No, you cannot set a color for the master column. (Issue addressed to FPM, but if you have any channels please also address it...maybe it gets promoted then )
To set the color for a line or cell you first have to create an additional attribute in the table structure used by the Tree GUIBB. After that you have to redefine the method
IF_FPM_GUIBB_TREE~GET_DEFINITION
in the Tree feeder class
CL_GUIBB_BOL_TREE
and link the cell you want to color to the new cell containing the value of the color:
  LOOP AT et_field_description ASSIGNING <ls_field_description>.
    CASE <ls_field_description>-name.
* set color for last column
      WHEN 'AMOUNT_09'.
        <ls_field_description>-cell_design_ref = 'CELL_COLOR'. "name of cell with color value
So now, after telling FPM where to find the color value, you have to define which color to use. Best place - or at least where we did it - is the method
IF_FPM_GUIBB_TREE~GET_DATA
of the Tree feeder class:
  LOOP AT ct_data ASSIGNING <ls_data>.
    ASSIGN COMPONENT 'AMOUNT_09'   OF STRUCTURE <ls_data> TO <l_amount>.
    ASSIGN COMPONENT 'CELL_COLOR' OF STRUCTURE <ls_data> TO <l_cell_color>.
    IF <l_amount> < '100-'.
      <l_cell_color> =  '06'."set red color for negative value
    ELSE [...]
I hope I could help you!
Kind Regards,
Robert

Similar Messages

  • Setting line color of JTree's

    Hi,
    I want to set the color of JTree's linestyle which areranch lines. what should i set to get the desired result. i set the linestyle by
    tree.putClientProperty("JTree.lineStyle", "Angled");
    How can i set the linecolor?
    Thnaks,
    Sato

    I got it to work with this:
    UIManager.put( "Tree.line", Color.black ); // for horizontal lines
    UIManager.put( "Tree.hash", Color.black ); // for vertical lines

  • How do I change the line color in a chart in Numbers on my iPad?

    How do I change the line color in a chart in Numbers on my iPad?

    Whenever I try to shift+direct select it thinks I want to move the line, so as I shift + direct select and drag my mouse across the line (to highlight it all) it moves a chunk of the line and turns it into a near perpendicular line.
    I found the appearance window, it just says "Path" (the color I want it to be that it's not)
    "Stroke" 4pt
    "Fill" (the color I want it to be that it's not)
    "Opacity": Default
    And some other buttons. I think I'll try the help line tomorrow, I know I saw a customer service number somewhere and I'm only here because the chat was unavailable. This is only one of my 3 problems with my assignment so I'll search here for answers to the other two. Learning new things is rarely fun.

  • Changing line color on XY plot

    This should be something really simple. I simple created a property node, set the active plot, and set the plot.color. What happens to some plots is the points change to my specified color and other stays as my background plot color which is white. I cant seem to get the line color to change with the point color. There are ways I can change it at run time, by right click on the plot and going into properties and setting line color in that tab.
    What am I doing that I cant get this to work at runtime?
    I attached the plot, just ignore all the missing VIs you should be able to see the problem.
    Attachments:
    SteadyStatePlot1.vi ‏350 KB

    It works just fine here using LabVIEW 7.1. Could you do us a favor and make a mini demo, just containing the xy graph, some data for it, and the related property nodes to demonstrate your problem.
    Overall comment on your VI:
    Sorry, but I am absolutely horrified by your code. I cannot believe that you need all those property nodes, especially the signaling ones, they should be used very sparingly. (For example the FOR loops on top center and in the event called "clear all points" are just pumping hot air, repeating the same action and signaling (!!) every iteration.) It also just cannot be healthy if a single event calls tons of signaling properties, such as in the above mentioned event case. Then, in the timeout event, you are rewriting the plot la
    bels and names every 10 ms. Do they really change that often???
    Please let us help you in your overall program design. It will make a big difference in your future, more complex projects if certain common desing misconceptions are not propagated. I think entire sections of your program can be deleted without loss in functionality, the code can be stripped to <20% and the CPU usage can be reduce to <2% of the current situation. Just my wild guess.
    The above is well meaning criticism, so don't take it personal. I am much harsher looking at my own early code from 8 years ago. :-) Good luck!
    LabVIEW Champion . Do more with less code and in less time .

  • Is it possible to put two different colors in tree parent node background and child nodes background?

    Is it possible to put two different colors in tree parent
    node background and child nodes background?
    Any help will be very helpful.
    Thanks

    Hi PanosE,
    Yes, you can set up another Standard Edition Server in child domain and then deploy pool pairing.
    You need to deploy a new Front End Pool for the new Standard Edition Server.
    A similar case for your reference.
    https://social.technet.microsoft.com/Forums/office/en-US/eca4299c-8edb-481e-b328-c7deba2a79ba/lync-2013-standard-edition-lync-fe-pools-in-multiple-domain-single-forest-senario?forum=lyncdeploy
    Best regards,
    Eric
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Horizontal grid lines color in a spark List

    Hello,
    How to change horizontal grid lines color in a spark List using css
    Thanks

    Hello,
    How to change horizontal grid lines color in a spark List using css
    Thanks

  • Change line color in alv.(urgent)

    Hello , i want the line color to change when my cursor change lines in an ALV.Thx

    Hi,
           Check this website
    http://www.geocities.com/mpioud/Abap_programs.html
    reward points if useful,
    Regards,
    Niyaz

  • How can I change line colors in HTML reports?

    I have a VI that is creating an HTML report based on a table of results. I change the back ground color of the line based on failed results. However this line color change is not seen in the HTML reports. Can anyone give me a good way of basically transferring the properties of my table to the HTML report? Is it possible? Thanks in advance for any help.

    Greg - Thanks for the reply. I figured this out doing some more research. The line that I needed was "<BACKLOG="#PAYOFF">Your Cell Text</ID>. The problem I was having was that line is needed in front of the rest of the font formatting commands. For example here is my original line:
    <ID WIDTH="200"><BACKLOG="#PAYOFF"><FONT SIZE=+0 COLOR="#OFF">8.3.12.1</ID>
    The bold part in the line above is what I added. With the cell color added like this it actually created another cell and pushed existing ones one cell to the right. It then colored the second cell in the row and left the first one blank. Through looking up more examples I found that I was actually putting the cell color command in the middle of the font formatting command. So I tried putting it at the end and it then did nothing. The only way I could get the cell in the table to change and not change anything else was using the syntax below.
    <ID BACKLOG="#PAYOFF"><WIDTH="200"><FONT SIZE=+0 COLOR="#OFF">8.3.12.1</ID>
    Troy

  • 2 Line Text for Tree Component

    Hi
    I am trying to use a tree component for a Course navigation ,
    and I have a Node names Getting clipped and I wanted to have
    mulitple lines in the tree node, I would appreciate if anyone could
    help me in how the tree component can be extended to accomodate
    this requirement.
    Thanks
    Sembian

    Hi Begum,
    There are few default attributes you need to fill in your data structure,
    PARENT_KEY - Parent (in your ex : header1, header2)
    ROW_KEY -  Children (col1, col2, col3, col4...)
    EXPANDED
    IS_LEAF -
    TEXT
    CHILDREN_LOADED
    IMAGE_SRC
    Include these fields with same name in your structure(structure of the table filling CT_DATA in GET_DATA method)  and fill the relevant data, output will be displayed.
    Cheers,
    Vemula.

  • I want to change guide line color each of them. very difficult work. every same color. please

    I want to change guide line color each of them. very difficult work. every same color. please

    It looks like you might be using CC, in which case CC 2014.2.2 has a very cool, New Guide layout panel
    If you are using CS6 (or CC for that matter) there is the excellent free GuideGuide extension panel.  Both would be helpful if you use a lot of guides.

  • Line color in JTable

    how can I change line color in JTable.

    Then you need to do custom painting. Something like:
    JTable table = new JTable(...)
         public void paintComponent(Graphics g)
              super.paintComponent(g);
              g.setColor( Color.RED );
              int y = getRowHeight(0) - 1;
              g.drawLine(0, y, getSize().width, y);
    };

  • Collapse event for Tree GUIBB

    Hi experts,
    I am implementing a tree GUIBB. I need to react on a collapse event of one single node within the tree. ( The content of the row should change depending whether the code is expanded or collapsed).
    The only event that can be fired in thie case is a Lead of selection event without meaningful information, to react on the selected tree node.
    Is this a bug in the Tree GUIBB or a limitation?
    Dow have any ideas how to solve this issue?
    kind regards,
          Sahla

    Hi experts,
    I found the answer to my problem.
    The  value of the column with column_type if_fpm_guibb_constants=>gc_guibb_tree_columns-expanded. is changed from outside in ct_data!!
    ct_data is a parameter of get_data.
    Therefore we have the information and we can react.
    kind regards,
         Sahla

  • How to change series or line color in excel 2007 using ActiveX

    I am trying to change series color using Excel 2007 with ActiveX as below. It seems the color cannot be controlled correctly. For example, if I chosse red color, my curve will be changed to blue. Any ideas?
    Also, I googled and found a guy ran into similiar problem using VBA for Excel 2007. See the link below:
    http://help.wugnet.com/office/change-series-line-color-excel-2007-vba-ftopict1062646.html
    Set ch = Worksheets("Chart").ChartObjects(1)
    Set objSeries = ch.Chart.SeriesCollection(1)
    objSeries.Format.Line.ForeColor.RGB = RGB(255, 127, 0)
    According to the post, it need to be done as follows
    objSeries.Border.Color = RGB(255, 127, 0) . But I cannot find the border property/method in ActiveX.
    The color seems to be abitrary. and I found the 

    Xubuli,
    I looked into your question and confirmed that Border.Color is not located under the Excel.Series library. Instead, you must locate it under _Worksheet.UsedRange as seen below in the figure. I am attaching the VI file where I located the the Border.Color property node, and I am also including a SubVI on the block diagram that goes into explicitly set the cell color and border. This SubVI can be found under Programming>>Report Generation>>Excel Specific>>Excel Format>>Excel Set Cell Color and Border.vi, if you have the Report Generation Toolkit installed. I hope this helps.
    Larry H
    Applications Engineer
    National Instruments
    Attachments:
    CellBorder.vi ‏8 KB

  • Change matching type line color

    Hi! How can I change the line color in a matching type quiz in Captivate 6? Those lines that connect the items from column A to B. Thank you!

    Hello and welcome to the forum,
    Have bad news, I never found a way to change the line color in mathing type questin slides.
    Lilybiri

  • How to set dash line color(two colors)?

    hello all:
    Does anyone know how to set dash line color in java?
    I only know how to set line color with a single color.
    g2.setColor(Color.black);
    g2.setStroke(dashed);
    g2.draw(new Rectangle2D.Double(50, 50, 200,100));
    what I need to implement is two colors interleave on the dash line.
    so that dash line looks like this:
    ==== ====
    red white red white
    thank you for any comments.
    -Daniel.

    create 2 strokes, space them appropriately, draw the rectangle twice.

Maybe you are looking for