How to make 2 lines in a webdynpro table cell?

Hi
Is it possiable to create a WebDynpro Table Call that can contains 2 lines in 1 cell ?

Hi Ami,
There are a limited number of UI elements that you may use for a Table Cell Editor, however, with a TextView, you can display text that includes a line break.
The line break is achieved by including the carriage-return-line-feed characters in the Table's data source...
LOOP AT lt_flight_tab ASSIGNING <f>.
     CONCATENATE 'Line One' cl_abap_char_utilities=>cr_lf 'Line Two'  INTO <f>-test.
ENDLOOP.
Cheers,
Amy

Similar Messages

  • How to make new line in JButton.setText()?

    how to make new line in JButton.setText()?
    I want to set the text of jbutton in tow line ,as follows
    | jbutton-line1 |
    | xxxxxxx-line2 |
    i konw i can jbtton.settext("<html>line1<br>line2</html>");
    but i find it's ugly using html,
    is there anyother way to create new line in JButton's Text

    As for the above comment....
    I thought the question was well purposed. Using HTML was not acceptable in this instance, which was made clear, so why critisize his comments? "Using HTML" is a poor solution, it does NOT work in many instances due to browser, OS variations. Usually the "common answer" is never a COMPLETE answer.
    Possible Solution:
    Use JLabels to render the text on the button.
    import javax.swing.*;
    import java.awt.*;
    public class ButtonMaker {
    public static void makeButton(JButton jb, String[] titleList) {
    jb.setLayout(new FlowLayout());
    for (int i = 0; i < titleList.length; i++) {
    JLabel tmpLabel = new JLabel(titleList);
    tmpLabel.setForeground(Color.black);
    jb.add(tmpLabel);
    public static void clearButton(JButton jb) {
    Component[] cList = jb.getComponents();
    for (int i = 0; i < cList.length; i++) {
    if (cList[i] instanceof JLabel)
    jb.remove(cList[i]);
    Known Limitations:
    1. Flowlayout does not work well with single line text buttons... perhaps another layout manager may work better for various buttonsizes-linenumber combos.
    2. Mac OSX : The default UI for Mac OS X (and above it seems), is to have rounded edged buttons. These rounded edges are destoryed when using JLabels, leaving a square, blocky button in its place.
    POSSIBLE SOLUTION:
    (this is ugly and time consuming)
    - create images of the button with text on them.

  • How to make the diagonal line in the swing table cell?

    Hi all,
    How to make the diagonal line in the swing table cell just like the link below?
    http://61.132.17.188/webber/table.gif

    One improvement.. To get a line that is neat, use a bit of Graphics2D
        public void paintComponent(java.awt.Graphics g)
            int w = getSize().width;
            int h = getSize().height;
            // draw a line between (0,0) and (w,h)  
            g.setColor(getForeground());
            if (strTop == null)
                strTop = "  ";
            if (strBottom == null)
                strBottom = "  ";
                java.awt.Graphics2D g2 = (java.awt.Graphics2D)g;
              g2.setRenderingHint(java.awt.RenderingHints.KEY_ANTIALIASING,java.awt.RenderingHints.VALUE_ANTIALIAS_ON);
              //g2.setStroke(new java.awt.BasicStroke(14.0f));
            g.drawLine(0, 0, w, h);
            //the following lines will draw the two strings,
            //one above the top of the line and the above below it.     
            g2.drawString(strTop, (w/2)+2, (h/2)-2);
            g2.drawString(strBottom, 2, (h / 2) + 2);
            //the x,y for drawString are only based on assumption.   //do necessary changes to suit ur needs.
        }Then create a TableCellRenderer and set it to the Table Header for ur table's 1st row.....
    Cheers

  • Powl- how to make one line editable for 'Insert line' button

    Hi,
    I have a powl in which I have two buttons of 'Insert Line' & 'Save'.
    Now in my result table - c_result_tab - I need to give one editable line, in which user can enter new record.
    & after entering it when they click on 'SAVE' i'll append the record in c_result_tab.
    Now my Que is - How to give Editable Line in ALV Display table of POWL, where User can enter New Record ??
    or is there any other std. procedure, like popup or something - which can help to enter record in same format as c_result_tab.??

    z-order for what? the Canvas class itself? It's AWT, so why would they be adding to that? For Graphics? That's not really needed, since to paint you have to override paint in a subclassed component and in there by definition you can fully control your painting.

  • How to make a field Mandatory in a Table view?

    How to make a field Mandatory in a Table view?
    The requirement is, the user should not be able to append a new Row, unless and untill he enteres the data in the column SOLD-TO. Now how do i acheive making this field madatory. Normally in Edit form view, we can go in customizing and flag Mandatory, for table view we don't have this option.
    Please can anyone of you guide me in this approach?
    Jagadish.G

    Hi Jagadish,
    have a look in this thread, part of the code you can use in eh_insert method or logic to write enable/disable insert button.
    Re: Assignment Block Mandatory
    regards
    Ismail
    Edited by: Ismail Shaik on Oct 21, 2009 11:36 AM

  • How to insert an in-line image into a table cell using Pages on OS X?

    How can I insert an image into a table cell using Pages (OS X) without it becoming the cell background? I want it to be a regular in-line image, but can't figure out how to do this for the life of me. Thanks!

    Welcome to Discussions.
    To insert an image into a cell, select the cell, then go to the Graphics Inspector and from the Fill drop down choose Image Fill and then select then image you want. You can now select from a new drop down how you want the image to fit.
    Walt

  • How to make the lines of the table and the template same

    Hello Abapers,
                        I have a requirement, I have made a table in which i have displayed all the values in it, and under that i have taken a template and diplayed the total of it but the lines drawn to the table and the template is different, the table line is dark and the line of the template is lite, how can i make the line of the template dark, i mean the same as the table line. i hope u understand my problem.can u  please help me in solving my problem as the requirement is very urgent.
    HOPE U UNDERSTAND MY PROBLEM
    Thank u in advance  .

    HI,
    Adjust the line width option for template and table,its there under pattern.

  • How to make a line with arrow curve around a circle?

    I've got CS6 and Windows 7. Trying to make a line with an arrow on one end curve around a circle. Actually want it to have a 3D look like it was curving around the back side of a globe. How do you do this? Thanks.

    Perhaps you mean something more like this
    similar technique you create the arrow as a straight stroke path with an arrowhead and make it a symbol
    You then make it a symbol
    you than make a vertical rectangle and use the 3D Revolve Effect to make a cylinder
    then you go to map art
    then you choose in the map art to make the geomtery invisible
    then you ma the arrow symbol and adjust the placement and then adjust the rotation of the cylinder to your likeing.
    If you need a video to follow I'll do one later.

  • How to make a line intersect with a path at random angles?

    How do you make a line intersect with the anchor point of a half circle when you want the line to continue on past the anchor point of the half circle at a random angle?

    Howdy.
    Try this:
    Lock the semicircle. With the pen tool, draw a line from the point of origin to the anchor point of the semicircle. It will still snap even though it's locked.
    Now, we use Jet's scale idea. Select the Scale Tool (S). Click on the point of origin to position the reference point. It will snap. Now, while holding down the Shift Key, drag right and down. The line segment will stay snapped to the endpoint while you drag (highlighted). You can drag it as far as you want.
    That's it.
    Peace,
    Lee
    PS: It's pretty much all Jet's method with the benefit of the OP's screenshot of what he was trying to accomplish. Jet offered the best answer, it looks like to me.

  • How to make curved lines in image more smooth and clear

    How do i make this clear its and image, i want to make the lines really clear and smooth

    Quick and dirty:
    Use Gaussian blur to soften the edges, (I used a value of 2).  The use levels, and drag the black and white sliders towards thge center.
    Much better to create from scratch using the rough graphic as a template.  If it is a one off, then just stroke a path for the circular outlines, and use a layer mask for the break in the inner circle.
    For the curved text, the simplest way is to use the type tool, and then the Create warped text tool from the Options bar, but I doubt you'd get a tight enough curve, so you'll need to use Type on a path.  The easiest way to do that in this case would be to drag out a circular selection with the Marquee tool using the Shift and Alt/Opt keys, and then use the Make work path from selection icon at the bottom of the Paths panel.  Hover the Type cursor over the path and type your text.  If you use Center justified and start at the top, to keep it symetrical, but I just get it close, and fix it with Free Transform.  The rest is straight forward.  I used Areil bold for curved text, and Times New Roman bold for the center text. Use a custom shape for the Tick.  If the tick is not quite to your liking, use the Direct selection tool (a) to drag the points to a better shape.
    If you want to use this in a layout program like InDesign, save the layered document as an EPS file, which will be (mostly) vectored and scaleable in InDesign.  You'd need to use Shape layers for the two circles to make it fully vectored.

  • How to make changes to standard UWL WebDynpros?

    Hi,
    We are faced with the problem to make changes to the standard UWL Person Search Dialog. But couldn't find any documentation, blog or anything else how to achieve this. We strongly believe, that we have to create a new track in nwdi, import uwl development components, make changes to them, transport and so on.
    So, how can we make changes to standard uwl WebDynpro components?
    Thanx,
    Gerald

    After investigating hours of hours i have come to the following conclusion concerning uwl customization:
    uwl can be customized following this documenation https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a3461636-0301-0010-3787-978f5ac8bd45
    I have tried to check out the sap standard software component (sap.com/UWLJWF), put them into a nwdi track and try to change it. Just the same way as you have to do it using ess/xss.
    But it didn't work out, because source codes are not included. I have also got the info from sap that the uwl webdynpros are not designed for custom changes.
    So, there is no way.

  • How to make smooth line movement?

    Hello!
    I've been searching it everywhere, but couldn't find anything in the net. I want to make smooth line movement. I've tried to create motion, but line just moves, and I want it to move smoothly according to the path. What I want to achieve can be seen here:
    http://www.noartistname.com/demo/
    But that's what I did so far - made movement out of several broken lines - how can I make more smooth movement?
    Thanks,
    Aleks.

    the easiest for non-coders is to tween a mask of the full line.  you can also use the flash drawing methods but that takes some coding.  see:
    www.kglad.com , click snippets, function graphs.

  • How to Make a line of text smile?

    Is it possible to type on a path in Motion, so I can then animate the path and make a line of text look like it is smiling? Or any advice as how I can go about this?
    Thanks

    I have not watched the tutorial, but was going to post that I used a 3 point bezier open line shape that I keyframed into a smile, used that as the shape in a "Geometry" layout and it worked fine...
    It was a bit slow to render, but not too bad. Sorry I didn't keep it to post online...
    Patrick

  • How to make the line items of sales order cannot be deleted.

    Hi All,
    Is there any Enhancement spots or user-exits which make the line items of sales order cannot be deleted if item category is 'TAN'.
    Thanks in Advance,
    Sudhakar Reddy .A

    Hi All,
    If you doesn't want to delete sales order line items then we have write in the Include Program which has mentioned below and in the form .....endform.
    Program Name :  Include MV45AFZB
    _Example:_
    form userexit_check_xvbap_for_delet using us_error
                                              us_exit.
    IF .......
      US_EXIT = CHARX.
    ENDIF.
    endform.

  • How to Make a Line of Best Fit/Best Fit Line/Trendline in iWork Numbers '09

    I'm not sure if this is well-known or has been answered elsewhere already, but multiple Google searches have not shown this solution on how to create a line of best fit in Numbers '09 (there is another method that involves drawing a line yourself, but this is much easier and more accurate).
    I stumbled across this trying the above self-draw technique and got so excited I wanted to post the technique. So here is what you do:
    1) Type out your X and Y data
    2) Select the data and select Charts, then select the Scatter Plot
    3) Open up Inspector and select the Chart tab
    4) Select the "Series" tab below the picture of the Scatter Plot and the "Chart Colors..." button
    5) At the bottom of the Inspector window, open the "Advanced" arrow
    6) Select the "Trendline" tab and select the "Linear" trendline from the drop-down bar
    That's it! You can even select the options to show the line equation or the R-squared value!
    Here is a picture of the selected options and what your graph should look like (check that nice R-squared value!).
    http://i.imgur.com/AvfPv.png
    I hope this helps and hope it moves up to the top of the Google search page for this feature.

    Hi Asclepius37,
    Why not just search "trend" or "trendline" in the Numbers '09 User Guide?
    That would take you to page 149 of the guide and the article "Showing Trendlines in Charts," which lists a set of instructions very similar to those in your post.
    The Numbers '09 User Guide and the iWork Formulas and Functions User Guide are searchable pdf files, and may both be downloaded through kinks in the Help menu in Numbers. Both are excellent resources to have on hand.
    Regards,
    Barry
    PS: Searching "best fit" will return zero results, but "best" or "best-fit" will get you to the same article.
    B

Maybe you are looking for

  • What is the proper way to extend 2nd generation time capsule network to 2nd generation Airport Express?

    I have a Simultaneous Dual Band Time Capsule. Up until now, I have been extending the network with the Airport Express (2nd Gen, the 802.11n model). Since it was not simultaneous dual band, it was extending over the 2.4 GHz band so as it could extend

  • Using Time Capsule w/ External HD

    I am looking to purchase a Time Capsule but would first like to know if this is possible. I would like to use the drive in the TC as my Time Machine drive. I would also like to affix an external USB hard drive to the TC and use this drive as a shared

  • Unable to uninstall last Exchange 2010 server

    Hi, I am unable to uninstall last Exchange 2010 server from the organization. I get error message: Summary: 3 item(s). 2 succeeded, 1 failed. Elapsed time: 00:00:19 Configuring Prerequisites Completed Elapsed Time: 00:00:00 Mailbox Role Prerequisites

  • Field Pick quantity is blank

    Hi All, I am using verison 4.6 C I have created 2 sales order with same data except for the shipping condition. The sales order 1 has an shipping condition that takes a shipping point 3004 and Storage location 304 them I create the outbound delivery

  • Lenovoz710 keyboard

    Hello, This morning an accident happened. I spilled some coffee over my lenovoz710 keyboard. Currently the space bar is not working and it's really frustrating. Is there anyway I can order a new official and original lenovo keyboard and replace it my