Spoiler
Code: Select all
[h: formHandlerLink = macroLinkText('csheet.handler@lib:token','all')]
[h: header.array = json.append("[]","HEAD1","HEAD2","HEAD3")]
[h: row.array = json.append("[]","row1","row2","row3")]
[frame("TEST"):
{<html>
<head>
<link rel="stylesheet" type="text/css" href="css@lib:token"></link>
</head>
<body>
<form action='[r:formHandlerLink]' method='json'>
[r, foreach(header,header.array,""), code:
{
<table>
<th>[r:header]</th>
[r, foreach(row,row.array,""): strformat("<tr>%{row}</tr>")]
</table>
}]
</form>
</body>
</html>}
]
Spoiler
Code: Select all
[h: formHandlerLink = macroLinkText('csheet.handler@lib:token','all')]
[h: header.array = json.append("[]","HEAD1","HEAD2","HEAD3")]
[h: row.array = json.append("[]","row1","row2","row3")]
[frame("TEST"):
{<html>
<head>
<link rel="stylesheet" type="text/css" href="css@lib:token"></link>
</head>
<body>
<form action='[r:formHandlerLink]' method='json'>
[r, foreach(header,header.array,""), code:
{
<table>
<th>[r:header]</th>
[r, foreach(row,row.array,""), code:
{
[strformat("<tr>%{row}</tr>")]
}]
</table>
}]
</form>
</body>
</html>}
]
Any help would be greatly appreciated.