Post

1 follower Follow
0
Avatar

A field which can handle html?

Is there a field into which I could place html?

Scenario - I populate many fields in the project through the api which the PMs use for reference information.

 

I now need to display tables for them, but I can't find a field which could take

<table border="1" class="dataframe">\n  <thead>\n    <tr style="text-align: right;">\n      <th></th>\n      <th>a</th>\n      <th>b</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <th>0</th>\n      <td>1</td>\n      <td>11</td>\n    </tr>\n    <tr>\n      <th>1</th>\n      <td>2</td>\n      <td>22</td>\n    </tr>\n  </tbody>\n</table>

for example and show a table.

 

I tried the Overview fields and those don't render it.

 

I then created a custom panel and chose html - that renders the above html as a table BUT I can't seem to find a way to reach and update a panel through the api.

 

Is there a field which can support html table data and render it?  or is there a way to update a Custom Panel's data through the api?

 

Jared Thompson

Please sign in to leave a comment.

3 comments

0
Avatar

Looks like there aren't any fields which can handle rendering html/markdown.

 

Next steps:

store the html table in a field, then present that field to the panel and have the panel render that html table, so far it is not working but this seems like the path to take since we can use the api to inject the html into a field then use the panel to render

Jared Thompson 0 votes
Comment actions Permalink
0
Avatar

this is what works.

use the api to store the html for the table into some field.

use that field as input into a panel and render with the html option,

the content of the panel is:

{HtmlToText($C_some_field)}

Jared Thompson 0 votes
Comment actions Permalink
0
Avatar

While my mentioned solution would have worked perfectly, it looks like the panel can only handle 2000 characters, so another solution will need to be found.

{'errorCode': 'General', 'message': 'Maximum characters allowed 2000 has been exceeded}
Jared Thompson 0 votes
Comment actions Permalink