Forum Discussion
jsincontrol
5 years agoFrequent Visitor
Error Running html.table
So this is porbably a really silly question but I have looked and looked and I am not sure what I am doing wrong. I have a column with stored htmlcode in it and I want to get the values out of the h...
- 5 years ago
Hi jsincontrol ,
Add <table> at the beginning of the code and </table> at the end.
<table><col /></colgroup><tbody><tr><th>Application</th><th>Version</th><th colspan=\"1\">Server</th><th colspan=\"1\">URL/ URI / Port details / CNAME / dB Names</th></tr><tr><td>Controller Client</td><td>8.0.37</td><td colspan=\"1\"><br /></td><td colspan=\"1\"><br /></td></tr><tr><td>Web Logger</td><td>8.0.20</td></table>Then try to add a custom column like this:
= Html.Table([Column1],{{"Application","tr>:nth-child(1)"},{"Version","tr>:nth-child(2)"}},[RowSelector="tr"])Or this:
= Html.Table([Column1],{{"Application","tr>:nth-child(1)"},{"Version","tr>:nth-child(2)"}},[RowSelector="tbody>:nth-child(n+2)"])Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Icey
Community Support
5 years agoHi jsincontrol ,
Add <table> at the beginning of the code and </table> at the end.
<table><col /></colgroup><tbody><tr><th>Application</th><th>Version</th><th colspan=\"1\">Server</th><th colspan=\"1\">URL/ URI / Port details / CNAME / dB Names</th></tr><tr><td>Controller Client</td><td>8.0.37</td><td colspan=\"1\"><br /></td><td colspan=\"1\"><br /></td></tr><tr><td>Web Logger</td><td>8.0.20</td></table>
Then try to add a custom column like this:
= Html.Table([Column1],{{"Application","tr>:nth-child(1)"},{"Version","tr>:nth-child(2)"}},[RowSelector="tr"])
Or this:
= Html.Table([Column1],{{"Application","tr>:nth-child(1)"},{"Version","tr>:nth-child(2)"}},[RowSelector="tbody>:nth-child(n+2)"])
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- jsincontrol5 years agoFrequent Visitor
Icey, thanks so much for a solution. Sorry I didn't reply sooner but just tested now. That is perfection 🙂
- bdarbo785 years ago
Advocate II
That saved my day ! But how did you find out about this syntax ?