Skip to Content
avatar image
Former Member

How to add two lines in one cell in smartforms

Hi All,

can anyone help me to implement the following format in smartforms?

i have create one line type in table, one of the cell in the line type need to split two small line, the upper line is summary and the lower line still split into three small cell. how can i do?

?|????|___sum____|

?|????|aaa|bbb|cccc|

Edited by: wei fang on Oct 21, 2008 2:19 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 22, 2008 at 08:03 AM

    Hi Wei Fang,

    You can try by creating a 2 line template (1 Template, 2 linetype) under a loop note.

    So your smartform tree structure will be shown like this:

    LOOP
        TEMPLATE1.

    On the LOOP part, pass the internal table of your data to the working areas.

    On the template put all the data of the summary on your first linetype, and put

    the detail data on your second linetype.

    Good luck and hopefully this will solve the problem

    Edited by: Prawira Fadjar on Oct 22, 2008 10:04 AM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 21, 2008 at 06:49 AM

    Hi,

    May I know why you want to create only one line type.

    It will be very easy if you create two line types.

    Any how try this,

    create one line type with three cells ( you already did it )

    So in the text element 1 of 3

    &SUM& - here press enter and then prinit below line

    &aaaa& tab &bb& tab &ccc&

    here what is a tab - create a paragraph format with tabs with exact lengths.

    Regards,

    Venkatesh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      the main requirement is: only ONE main line, in the line first and second cell is normal, but the third cell should be splitted into two small lines, the upper is summary cell, and the lower is divided into three small cells.

      i know two line type can implemented. but how can make the text in the first two cells displayed in center?

  • avatar image
    Former Member
    Oct 21, 2008 at 06:59 AM

    Your requirement can be done using Template.

    Regards

    Karthik D

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 21, 2008 at 12:40 PM

    Hi...

    Yes this can be achieved but with the help of TEMPLATE.

    With Template you can create various number of columns in one line but depending on the Row length.

    I would suggest you to go with TEMPLATE.

    Regards,

    Mandeep.

    Add comment
    10|10000 characters needed characters exceeded