This question about Topic Markup Language and applications: Answered

Tables in DataForms

I would like to place in DataForm field a combination of text and table. I defined following field:

| Example1 | textarea | 250x6 | | | |

However, when I enter in Example1 field following table definition:

| *NC key*| *NC value* |
|data | data |

this is not formatted as a table:

Table in DataForm Issue.png

When I use standard HTML:

<table>
<tr><td>*NC key*</td><td>*NC value*</td></tr>
<tr><td>data</td><td>data</td></tr>
</table>

I receive a strange looking table.

-- MateuszKDzior - 06 Nov 2015

I think you're going in the right direction to use HTML table syntax to define your table-within-a-table because Foswiki table syntax does not adapts gracefully to this situation (nor where your cells contain returns). What do you mean comment that you get "a strange looking table"? Do you mean it isn't formatted as a nice Foswiki-styled table? To solve that, create a simple Foswiki table in a topic and then view the rendered html source. Copy the rendered html table that includes the Foswiki table style classes and then paste that into your topic to generate table-within-table and it should come out looking nice.

-- LynnwoodBrown - 16 Nov 2015
 

QuestionForm edit

Subject Topic Markup Language and applications
Extension
Version Foswiki 2.0.2
Status Answered
Related Topics
Topic attachments
I Attachment Action Size Date Who Comment
Table_in_DataForm_Issue.pngpng Table_in_DataForm_Issue.png manage 8 K 06 Nov 2015 - 15:48 MateuszKDzior table defined in textarea field is not formatted properly
Topic revision: r3 - 06 Dec 2015, LynnwoodBrown - This page was cached on 01 Jun 2017 - 03:42.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License