How to fix the size of table data in html

I want to fix the size of table data in html. ie if i want to insert only 50 char in a <td> field then it contain only 50 character, after that it switched to another line and contain the remaining character. Means <td> field wil not get automatically adjust there size according to data.

you cant specify how many characters a td cell can have but u can specify the pixel width of a td cell
<td width=50>
as long as you have wrap text on, then text will not force the box size over the 50 pixels
this wont limit it to only 50 chars though, you will probably have to use some javascript to cut the string down to size (unless youre using something like php or asp then that will do the trick too)

Similar Messages

  • How to control the size of live data in Coherence?

    How to control the size of live data in Coherence?
    See the following statement:
    Pause times increase as the amount of live data in the heap increases. We recommend not exceeding 70% live data in your heap. This includes primary data, backup data, indexes, and application data.
    --Excerpted from http://coherence.oracle.com/display/COH35UG/Best+Practices                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    In any Java program, it is good practice to make sure your live objects leave some room in the heap for "scratch space." Without this, you will spend too much time in GC, and, in the worst cases, run out of memory. In the general case, you can see how much live data your application requires by looking at the heap used after a full GC's. For Coherence, you should ensure that live data, as you say, is under 70% of the maximum heap size.
    Coherence provides you tools to help enforce this policy. [http://coherence.oracle.com/display/COH35UG/local-scheme] describes how to size limit your cache. By implementing an eviction policy, you can control what happens when a size limit is exceeded.

  • How to fix the size of JFrame

    Hi Friends,
    How to fix the size of JFrame so that it can not br able to resize beyond a
    certain limit .
    i want this because i my screen if it is resized as small then the component of screen changes there location and position.
    plz help.

    You can... sort of
    The setSize() method is nasty because you don't get the event until you release the button, so the frame resizes and then snaps back. However, if you put the ComponentListener on the frame's JRootPane, you get a stream of resize events (because the window typically needs to be able to dynamically redraw itself). You can still use the setSize() method, but it is potentially confusing to the user, because the window border gets disconnected from the cursor, and as the mouse is moved further, the frame flickers between its instantaneous new size and max size.
    For a better user experience, use Robot to programmatically reposition the mouse back to the screen location equivalent to the maximum dimension.

  • How to fix the size of the frame or window?

    Hi,
    Do you know how to fix the size of the frame or window so that the user cannot minimize or maximize it?
    Thanks.

    Frame's setResizable(false);.

  • How to fix the size of the column in a table of ALV table  type?

    Hi all,
    I want o fix the size of the ALV column.
    Can any one help me out regarding this.
    Regards,
    Yugesh

    * Data declarations for instantiation
      DATA: l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table   ,
            l_ref_cmp_usage   TYPE REF TO if_wd_component_usage,
            l_value   TYPE REF TO cl_salv_wd_config_table   ,
    * Instantiate the ALV
      l_ref_cmp_usage =   wd_this->wd_cpuse_usg_alv_feclm( ) ."usg_alv_feclm is the name of your usage
      IF l_ref_cmp_usage->has_active_component( ) IS INITIAL .
        l_ref_cmp_usage->create_component( )                 .
      ENDIF                                                  .
    * Get model
      l_ref_interfacecontroller = wd_this->wd_cpifc_usg_alv_feclm( ).
      l_value = l_ref_interfacecontroller->get_model( )             .

  • How to fix the position of table columns.

    Hay all,
    Can anybody tell me that how to fix the position of columns in a table.By default the columns can be moved to any position in the table.
    Regards,
    Sharad Agarwal

    table.getTableHeader().setReorderingAllowed(false);this will do...
    Regards,
    Byju

  • How to identified the size of table logging (SCU3)

    hi SAP Expert,
    currently i'm activating the table logging via parameter REC\CLIENT = ALL, understand that this will accumulate the log times to times, is there anyway i can identified how big is the log file already? since i'm concern the log files would make my hardisk full. thanks for any respon.
    Regards
    Hariyono

    Table logging write to table DBTABPRT, just check the size of the table in DB02 (or number of entries in SE16) you can track the growth of the table and wipe the contents once the data is been consumed by whoever requested it.
    You can check in DB02 in what tablespace the table is located and make sure that theres enough space in the filesystem for the table to grow without causing inconvenients.
    Regards
    Juan

  • How to restrict the size of Buffer data object

    Hi everyone.
    How do you restrict the size of the Buffer data object. The byte array that you get by calling getData(). I want to restrict the size to be at most X nbr of bytes. I'm 'filling' the buffer like this:
    Buffer readBuffer;
    PushBufferStream stream;
    stream.read(readBuffer);

    This is my code:
    class DataSourceHandler implements DataSink, BufferTransferHandler {
              private int MAX_DATA_PACKET_SIZE = 2000;
              private DataSource source;
              private PullBufferStream pullStrms[] = null;
              private PushBufferStream pushStrms[] = null;
              // Data sink listeners.
              private Vector listeners = new Vector(1);
              // Stored all the streams that are not yet finished (i.e. EOM
              // has not been received.
              private SourceStream unfinishedStrms[] = null;
              // Loop threads to pull data from a PullBufferDataSource.
              // There is one thread per each PullSourceStream.
              private Loop loops[] = null;
              private Buffer readBuffer;
               * Sets the media source this <code>MediaHandler</code> should use to
               * obtain content.
              public void setSource(DataSource source)
                        throws IncompatibleSourceException {
                   // Different types of DataSources need to handled differently.
                   if (source instanceof PushBufferDataSource) {
                        System.out.println("source instanceof PushBufferDataSource");
                        pushStrms = ((PushBufferDataSource) source).getStreams();
                        unfinishedStrms = new SourceStream[pushStrms.length];
                        // Set the transfer handler to receive pushed data from
                        // the push DataSource.
                        for (int i = 0; i < pushStrms.length; i++) {
                             pushStrms.setTransferHandler(this);
                             unfinishedStrms[i] = pushStrms[i];
                   } else if (source instanceof PullBufferDataSource) {
                        System.out.println("source instanceof PullBufferDataSource");
                        pullStrms = ((PullBufferDataSource) source).getStreams();
                        unfinishedStrms = new SourceStream[pullStrms.length];
                        // For pull data sources, we'll start a thread per
                        // stream to pull data from the source.
                        loops = new Loop[pullStrms.length];
                        for (int i = 0; i < pullStrms.length; i++) {
                             loops[i] = new Loop(this, pullStrms[i]);
                             unfinishedStrms[i] = pullStrms[i];
                   } else {
                        // This handler only handles push or pull buffer datasource.
                        throw new IncompatibleSourceException();
                   this.source = source;
                   readBuffer = new Buffer();
                   byte[] data = new byte[MAX_DATA_PACKET_SIZE];
                   readBuffer.setData(data);
              * For completeness, DataSink's require this method. But we don't need
              * it.
              public void setOutputLocator(MediaLocator ml) {
              public MediaLocator getOutputLocator() {
                   return null;
              public String getContentType() {
                   return source.getContentType();
              * Our DataSink does not need to be opened.
              public void open() {
              public void start() {
                   try {
                        source.start();
                   } catch (IOException e) {
                        System.err.println(e);
                   // Start the processing loop if we are dealing with a
                   // PullBufferDataSource.
                   if (loops != null) {
                        for (int i = 0; i < loops.length; i++)
                             loops[i].restart();
              public void stop() {
                   try {
                        source.stop();
                   } catch (IOException e) {
                        System.err.println(e);
                   // Start the processing loop if we are dealing with a
                   // PullBufferDataSource.
                   if (loops != null) {
                        for (int i = 0; i < loops.length; i++)
                             loops[i].pause();
              public void close() {
                   stop();
                   if (loops != null) {
                        for (int i = 0; i < loops.length; i++)
                             loops[i].kill();
              public void addDataSinkListener(DataSinkListener dsl) {
                   if (dsl != null)
                        if (!listeners.contains(dsl))
                             listeners.addElement(dsl);
              public void removeDataSinkListener(DataSinkListener dsl) {
                   if (dsl != null)
                        listeners.removeElement(dsl);
              protected void sendEvent(DataSinkEvent event) {
                   if (!listeners.isEmpty()) {
                        synchronized (listeners) {
                             Enumeration list = listeners.elements();
                             while (list.hasMoreElements()) {
                                  DataSinkListener listener = (DataSinkListener) list
                                            .nextElement();
                                  listener.dataSinkUpdate(event);

  • How to fix the size of panel

    Hi All,
    I have an applet which internally contains JPanel. I am using border layout for that.
    If size of the applet is increased, then size of this panel is being increased and the center part of the panel is getting effected(expanded).
    My requirement is to increase the size of applet but keep the panel size as previous. In otherwords the increased size of applet should get added at the bottom instead of the center.
    I tried with setMaximumSize() and setPreferredsize(). That didn't work for me.
    Any body please help.
    Regards,
    Swathi.

    Hi,
    when u adding panel in ur applet, default it can display in center(borderlayout.center), u can specify in the borderlayout-south, north..
    it may be useful for ur requirement.

  • How to fix the size of split container.

    Hi All,
    I have a requirement to display 5 alv report grid report .For this requirement i split the container into 5 rows and display the report sucessfully.
    Now i need to fix size of split container's acoording to number of rows comes in alv report.Could you please let me know
    how to achieve that.
    Regards,
    Mohit

    hi,
    Try this article..
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50f1786c-a627-2e10-07b9-fefe548376ad
    Regards
    Rajashiva Ramalingam

  • How to fix the size of a multiple panels in jFrame

    Hi,
    In Jframe I added one rootPanel
    Inside rootPanel, I added two more panels
    1. userInputPanel which intern contains one textField & one jLabel
    2. buttonPanel which intern consists of two buttons
    So I need to view, always userInputPanel top side and buttonPanel below to the userInputPanel.
    But when I click on any button, the buttonPanel goes up (on top) of userInputPanel.
    any solution?
    Thanks
    -ms_shitole

    In Jframe I added one rootPanelI don't know what a rootPanel is or why you think you need to add one.
    The general code should probably be something like:
    frame.add(userPanel, BorderLayout.CENTER);
    frame.add(buttonPanel, BorderLayout.SOUTH);
    frame.pack();Read the section from the Swing tutorial on [Using Layout Managers|http://java.sun.com/docs/books/tutorial/uiswing/TOC.html] for more information and working examples.
    For more help create a [SSCCE (Short, Self Contained, Compilable and Executable, Example Program)|http://sscce.org], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • How to fix the size of a window object?

    Is there any way that I could use to stop the user from resizing a window interface, and also remove the MINIMIZE and MAXIMIZE buttons up the right coner of the window ?

    I don;t know about removing the min and max buttons, but you can use yourFrame.setResizable(false);

  • How to know the size of data in some columns of a table?

    Hi,
    How can the size of of data for some specified column be determined?
    For example : TableA has 20 columns and the size of table is 20 GB. I want to know the size of data kept in last four columns.
    Thanks in Advance,
    Vishu

    You could use vsize to determine the size of a column element and sum them upselect sum(vsize(column_of_interest)) from whatever_table;

  • How to get the size of the table

    Hi All,
    How to get the size of the table in Oracle 10g?
    Is there any script which needs to be run?
    Regards,
    Apoorv

    Hi All,
    Sorry but somehow the table user_segments is not populated in my case. But we have another table SYS.ALL_TABLES whose structure is given below. Would I be able to calculate the table size based on the columns given below:
    ColumnName     Data Type
    OWNER     VARCHAR2 (30 Byte)
    TABLE_NAME     VARCHAR2 (30 Byte)
    TABLESPACE_NAME     VARCHAR2 (30 Byte)
    CLUSTER_NAME     VARCHAR2 (30 Byte)
    IOT_NAME     VARCHAR2 (30 Byte)
    STATUS     VARCHAR2 (8 Byte)
    PCT_FREE     NUMBER
    PCT_USED     NUMBER
    INI_TRANS     NUMBER
    MAX_TRANS     NUMBER
    INITIAL_EXTENT     NUMBER
    NEXT_EXTENT     NUMBER
    MIN_EXTENTS     NUMBER
    MAX_EXTENTS     NUMBER
    PCT_INCREASE     NUMBER
    FREELISTS     NUMBER
    FREELIST_GROUPS     NUMBER
    LOGGING     VARCHAR2 (3 Byte)
    BACKED_UP     VARCHAR2 (1 Byte)
    NUM_ROWS     NUMBER
    BLOCKS     NUMBER
    EMPTY_BLOCKS     NUMBER
    AVG_SPACE     NUMBER
    CHAIN_CNT     NUMBER
    AVG_ROW_LEN     NUMBER
    AVG_SPACE_FREELIST_BLOCKS     NUMBER
    NUM_FREELIST_BLOCKS     NUMBER
    DEGREE     VARCHAR2 (10 Byte)
    INSTANCES     VARCHAR2 (10 Byte)
    CACHE     VARCHAR2 (5 Byte)
    TABLE_LOCK     VARCHAR2 (8 Byte)
    SAMPLE_SIZE     NUMBER
    LAST_ANALYZED     DATE
    PARTITIONED     VARCHAR2 (3 Byte)
    IOT_TYPE     VARCHAR2 (12 Byte)
    TEMPORARY     VARCHAR2 (1 Byte)
    SECONDARY     VARCHAR2 (1 Byte)
    NESTED     VARCHAR2 (3 Byte)
    BUFFER_POOL     VARCHAR2 (7 Byte)
    ROW_MOVEMENT     VARCHAR2 (8 Byte)
    GLOBAL_STATS     VARCHAR2 (3 Byte)
    USER_STATS     VARCHAR2 (3 Byte)
    DURATION     VARCHAR2 (15 Byte)
    SKIP_CORRUPT     VARCHAR2 (8 Byte)
    MONITORING     VARCHAR2 (3 Byte)
    CLUSTER_OWNER     VARCHAR2 (30 Byte)
    DEPENDENCIES     VARCHAR2 (8 Byte)
    COMPRESSION     VARCHAR2 (8 Byte)
    DROPPED     VARCHAR2 (3 Byte)

  • How to Fix the 1st row in Table

    How to Fix the 1st row in Table
                 In EP, one of the page we are getting out put in the table format. It's working fine, but as per the new requirement we have to fix (freeze) the first row of the table. (.i.e. whenever I click the page down button first row should be visible in the table). Can you help regarding the above issue?
    For Example: in Table having 6 rows. In 1st row display Year Month and 2,3,4---etc Rows will display Quantity. Click on Page down Button in Table we are able to staring 2row. First was a movie up. So End user canu2019t find which year/moth under the Quantity is available.
    So I have to fix in 1st row. Click on page down button table 1st row is fixed but comes to another Quantity Records.
    It is Possible in Table?  If possible please tell me.
    Regards
    Vijay Kalluri

    Hi KalluriVijay 
    I don't think there is direct availabe method available to fix the row. However, there are two ways using which you can achieve the requirement:
    To go ahead with the custom table. This way you can set your own properties for the table. However, this may impact performance handling large data.
    Second option is to use other features of NW04s (Not available in NW04) like Table Popins using which you can achieve something similar.
    For Table Popins refer [TablePopin|http://help.sap.com/saphelp_nw70/helpdata/EN/23/5e9041d3c72e7be10000000a1550b0/frameset.htm]
    Hope this helps.
    Regards
    Abhinav Sharma

Maybe you are looking for

  • IWeb, blogging, Facebook and Twitter

    Over the past few months, I have been getting my feet wet with iWeb 2009. To date, I have never used iWeb's blogging feature. (I post all my web pages to a GoDaddy account.) This raises some questions: 1: Do iWeb's own blogging features work with non

  • External SATA drive setup

    Just ordered a G-Tech external SATA with a PCI card: G-SATA - 500GB 2-drive external SATA with cooling. Any warnings, suggestions, formatting issues? While I am here...any suggestions on scratch disc assignment for this set up: - 2 internal SATA (the

  • MIR4 - Fiscal year change

    Hello All, We have a reuirement to differentiate the SAP deleted MM Invoices (when fiscal year changed) and manually deleted MM invoices by user. CASE1: When an MM Invoice is subjected to fiscal year change, SAP automatically creates a new document,

  • Daily sequence update

    How to update/alter (in oracle 9i) sequence automaticaly at some period (for example each day)? Is it possible to make it in Job? Thank you, Damir

  • HELP!! Recovering items emptied from the trash

    I need to know how to retrieve items emptied from the trash. Somehow an important file got in the trash and deleted. Can someone please help me!!