How to make a empty row in a table in itext

Table table = new Table(4,2);
table.setWidth(100);
table.setBorder(1);
Cell cell = new Cell("1");
table.addCell(cell);
table.addCell("2");
table.addCell("3");
table.addCell("4");
table.addCell("");
table.addCell("");
table.addCell("");
table.addCell("");
document.add(table);
in this 1st row will be created bt not the second one.can u plz tell me any solution.i will b thank ful to you.

.can u plz tell me any solution.i will b thank ful to you.http://www.catb.org/~esr/faqs/smart-questions.html#writewell
How To Ask Questions The Smart Way
Eric Steven Raymond
Rick Moen
Write in clear, grammatical, correctly-spelled language
We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding (often enough to bet on, anyway). Answering questions for careless and sloppy thinkers is not rewarding; we'd rather spend our time elsewhere.
So expressing your question clearly and well is important. If you can't be bothered to do that, we can't be bothered to pay attention. Spend the extra effort to polish your language. It doesn't have to be stiff or formal — in fact, hacker culture values informal, slangy and humorous language used with precision. But it has to be precise; there has to be some indication that you're thinking and paying attention.
Spell, punctuate, and capitalize correctly. Don't confuse "its" with "it's", "loose" with "lose", or "discrete" with "discreet". Don't TYPE IN ALL CAPS; this is read as shouting and considered rude. (All-smalls is only slightly less annoying, as it's difficult to read. Alan Cox can get away with it, but you can't.)
More generally, if you write like a semi-literate b o o b you will very likely be ignored. So don't use instant-messaging shortcuts. **Spelling "you" as "u" makes you look like a semi-literate b o o b to save two entire keystrokes.**

Similar Messages

  • How to avoid displaying empty rows in a table?

    The situation is as follows:
    I have got a set of questions under a particular category say marketing category.
    The user will be displayed with a table consisting of a set of questions from a particular category with four radio buttons for each question.
    Now once he is done with all the set of questions under a particular category, he will be navigated to the next set of questions under some other category say 'xyz'
    Now instead of creating seperate view objects for each category, we have created a view object which will hold all the set of questions from all the category but will display only the set of questions under a particular category by declaring a variable in the backing bean and setting the question rendering to the value in the variable. the value to the variable will be changed once the user is done with answering all the set of questions under a particular category.
    Now the problem that i am facing is:
    Because of the rendering condition that i have used, it displays only those rows that have the rendering condition set to the variable in the backing and displays all other empty rows overlapped.
    How do i avoid this situation ??

    Seems odd, but you could use COALESCE to achieve this.
    ME_XE?create table all_nullz (col1 number, col2 number, col3 number);
    Table created.
    Elapsed: 00:00:00.20
    ME_XE?
    ME_XE?insert into all_nullz values (1,2,3);
    1 row created.
    Elapsed: 00:00:00.12
    ME_XE?insert into all_nullz values (null, null, null);
    1 row created.
    Elapsed: 00:00:00.06
    ME_XE?
    ME_XE?delete from all_nullz where coalesce(col1,col2,col3) is null;
    1 row deleted.
    Elapsed: 00:00:00.26
    ME_XE?

  • How to remove an empty row after a table anchor?

    We are using FrameMaker 12 on a Windows 7 (64 bit) platform.
    I am working my way down a chapter of training content. I am halfway down the chapter, and—as fate would have it—I need to start a table at the top of a page.
    When I insert a table (with a caption/title at the top), FM creates an anchor at the top of the page. The space to the right of the anchor is a blank line.  I actually want the table to start at the top of the page without the blank line to the right of the anchor.
    This is what I tried, with the results:
    I put the cursor after the anchor, and press Delete.
    Result: The text *below* the table is brought up above the table.
    I put the cursor after the last bit of text on the previous page, and press Delete.
    Result: The paragraph on the previous page moves down to the next page on top of the table, leaving a large blank space on the previous page.
    I change the Start option (on Table Designer) to Top of Column (or Top of Page).
    Result: FM leaves the anchor where it was, moves the table down to the next page, and leaves a totally empty page where the table used to be.
    Is there any way to just move the table up so that it is on the same line as the anchor?
    (And as a tool design issue, is there EVER a reason why a content developer would want an entire blank line above of a table?)
    Thank you in advance,
    Tim

    I've always thought it strange that FrameMaker doesn't properly butt
    tables against the top of a column by default. Here's how to make tables
    do it.
    1. First, in the Table Designer, on the Basic tab, set Spacing Above to
    a negative number, such as -2.0 pt, for the table. (You probably want to
    update all of your table styles to use this number by default.)
    2. Create an anchor paragraph style to hold tables, perhaps naming it
    TableAnchor. In the Paragraph Designer, on the Basic tab, set Spacing
    Below Pgf to the same negative number, such as -2.0 pt, for this
    paragraph style and select the "Fixed" checkbox. On the Default Font
    tab, set the font to the same number, but positive-- such as 2.0 pt.
    3. Now, whenever you want to insert a table, first insert a TableAnchor
    paragraph to hold the table, then insert  your table. The table will not
    only fit properly against the top of a column, but should also look
    better when it follows text in a column.
    NOTE: Anywhere I've used 2.0 or -2.0, you can use any number you want,
    just be sure to get the signs right and use the same number in all three
    places. Some people use 12.0 pt and -12.0 pt, for example.

  • How to make all the rows of a table editable

    I have a table in a view, with visibileRowCount property as 5. The internal table which is bound to the context has 2 rows.
    I want to make all the 5 rows of this table as editable. As of now, as there are just 2 rows in the internal table, only the first 2 rows of the table in the view are editable.
    My idea is to avoid the use of a 'Add row' button for this table. Is it possible to do this?
    Points will be rewarded. thanks.

    hi john....
                just insert 3 more empty records into your internal table... so it becomes editable.
    ---regards,
       alexb justin

  • How to make an list row Read only

    Hi All,
        Can anyone please tel me how to make the List row (list item) read only where the status column value is Submit.(i.e the whole row has to be made as readonly, am using event handler to try this out)
    Thanks in advance 

    Hi,
    According to your description, my understanding is that you want to set the list item read only based on the status column.
    If you want to do it using Event Receiver, you need to check the status column value using Server Object Model, then break role  Inheritance and rest role assignments to set the item read only.
    Here are some detailed code demo for your reference:
    Change SharePoint list item permissions to Read only programmatically
    How to: Create an Event Receiver
    Thanks
    Best Regards
    TechNet Community Support
    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]

  • How to make all the rows editable in webdynpro alv output

    Hi,
    How to make all the rows editable in webdynpro alv output.
    Thanks
    Rakshar

    Hi Rakshar,
    Check this wiki:
    http://wiki.sdn.sap.com/wiki/display/WDABAP/HowtoeditconditionallyrowofaALVtableinWebDynprofor+ABAP
    Regards

  • 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

  • Count of non-empty rows of a table

    How to I get the number of non-empty rows of a table ?
    Thanks

    You can loops through the rows and check whether any cell is empty or not? Use a counter variable to increment the same.
    Thanks,
    Bibhu

  • 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

    Hello Bala,
    Can you please be a bit more clear as to how you intend to delete the rows from your ALV? By the way deleting rows from an ALV is no different from deleting rows from a normal table. Suppose you have enabled selection property in ALV & then select multiple rows and click up on a button to delete the rows then below would be the coding: (Also keep in mind that you would have to maintain the Selection property of the context node that you are binding to your ALV to 0..n)
    data : lr_table_settings  TYPE REF TO if_salv_wd_table_settings,
                 lr_config          TYPE REF TO cl_salv_wd_config_table.
      lr_table_settings  ?= lr_config.
    ** Setting the ALV selection to multiple selection with no lead selection
      lr_table_settings->set_selection_mode( value = cl_wd_table=>e_selection_mode-multi_no_lead ).
    Next delete the selected rows in the action triggered by the button:
    METHOD onactiondelete_rows .
      DATA:  wd_node TYPE REF TO if_wd_context_node,
             lt_node1 TYPE ig_componentcontroller=>elements_node,
             wa_temp  TYPE REF TO if_wd_context_element,
             lt_temp  TYPE wdr_context_element_set,
             row_number TYPE i VALUE 0.
      wd_node = wd_context->get_child_node( name = 'NODE' ).
      CALL METHOD wd_node->get_selected_elements
        RECEIVING
          set = lt_temp.
      LOOP AT lt_temp INTO wa_temp.
        wd_node->remove_element( EXPORTING element = wa_temp ).
      ENDLOOP.
      CALL METHOD wd_node->get_static_attributes_table
        EXPORTING
          from  = 1
          to    = 2147483647
        IMPORTING
          table = lt_node1.
      wd_node->bind_table( new_items = lt_node1 ).
    ENDMETHOD.
    If in case this isn't your requirement please do let me know so that I can try come up with another analysis.
    Regards,
    Uday

  • How to find newly updated rows in a table

    Hi..
    How to know newly updated rows in a table.
    Thanks in advance
    pal

    Or other good thing would be to add LAST_UPDATED column to your table, that can reflect the time the row gets updated.
    G

  • How to get count of rows for a table?

    Hi,
    How to get count of rows for a table and secondly, how can i have access to a particular cell in a table?
    Regards,
    Devashish

    Hi Devashish,
    WdContext.node<Your_node_name>().size() will give you the no: of rows.
    This should be the node that is bound to the table's datasource property.
    WdContext.node<Your_node_name>().get<node_name>ElementAt(index_value); will select the row at that particular index.
    You can access an attribute of a particular row as
    WdContext.node<Your_node_name>().get<node_name>ElementAt(index_value).get<attribute_name>();
    Hope this helps,
    Best Regards,
    Nibu.
    Message was edited by: Nibu Wilson

  • How to list all the rows from the table VBAK

    Friends ,
    How to list all the rows from the table VBAK.select query and the output list is appreciated.

    Hi,
    IF you want to select all the rows for VBAK-
    Write-
    Data:itab type table of VBAK,
           wa like line of itab.
    SELECT * FROM VBAK into table itab.
    Itab is the internal table with type VBAK.
    Loop at itab into wa.
    Write: wa-field1,
    endloop.

  • How to make a new row as selected in adf table

    Hi,
    I am adding a new row to my table as below.
    DCBindingContainer bindingContainer =
    (DCBindingContainer)ADFUtil.evaluateEL("#{bindings}");
    DCIteratorBinding iter = bindingContainer.findIteratorBinding("IfwSystemBrandView1Iterator");
    ViewObject vo = iter.getViewObject();
    row = vo.createRow();
    row.setNewRowState(Row.STATUS_INITIALIZED);
    vo.insertRow(row);
    This code is adding a new row at the end of the table.
    I want this new row to be selected after it gets added.
    How to achieve this??
    Thanks,
    Praveen

    You should mention your JDev version!!!!
    in 11g you can archive this like
    BindingContext bctx = BindingContext.getCurrentInstance();
    BindingContainer bindings = bctx.getCurrentBindingEntry()
    DCIteratorBinding dcIterator =
    (DCIteratorBinding) bindings.get("IteratorBindingName");
    Row rw = dcIteratorBinding.getRowSetIterator().createRow();
    rw.setNewRowState(Row.STATUS_INITIALIZED);
    //insert row to iterator
    dcIteratorBinding.getRowSetIterator().insertRow(rw);
    //make new row the current
    dcIteratorBinding.setCurrentRowWithKey(
    rw.getKey().toStringFormat(true));or better if you have access to the table (
    private void createRowInTable(RichTable table){
    CollectionModel model = (CollectionModel ) table.getValue();
    JUCtrlHierBinding _binding = (JUCtrlHierBinding) model.getWrappedData();
    DCIteratorBinding dcIteratorBinding= _binding.getDCIteratorBinding();
    Row rw = dcIteratorBinding.getRowSetIterator().createRow();
    rw.setNewRowState(Row.STATUS_INITIALIZED);
    //insert row to iterator
    dcIteratorBinding.getRowSetIterator().insertRow(rw);
    //make new row the current
    Key k = rw.getKey();
    dcIteratorBinding.setCurrentRowWithKey(k.toStringFormat(true));
    }Timo

  • How to make the Results row a toggle when the user wants/does not want see

    The user wants to toggle between seeing/not seeing the Results row at the bottom of each row. How to make it like a toggle checkbox/selection on the screen so that the user can decide on seeing/not seeing it in the report. If not possible to do such a thing, then how do I totally prevent it from showing in the report. Version is 3.5 BW.
    Thanks
    Ram

    For each characteristics in the query designer, right-click and go to properties....
    then in the 'Display of Results' section in the 'Suppress Result Rows' option, select: "Always".
    This will suppress the result rows.
    Good luck,
    AT

  • How to insert an empty row on a matrix with multiple loaded lines?

    Hi.
    I want to insert an empty row on my form's matrix. Currently I am using the <b>AddRow </b>method, as it is:
    // C# - it's mandatory to give parameters to the method (=
    oMatrix.AddRow(1,1)
    But, when the matrix already has some rows (at least 1), the method <b>AddRow </b>inserts the new line as a copy of above line, then, I have to manually clear all cells.
    Any idea on this?
    Thanks in advance.

    If you matrix is bound to a dbDatasource you can insert a record in the dbdataspurce instead of using matrix.AddRow... If not only way to do it is by clearing the row after add

Maybe you are looking for