Skip to content

html widget using a Expression with $query() isn´t able to display values from the query #175

Closed
@ralfhennig

Description

@ralfhennig

My query works fine, but the html widget doesnt show the results in html.
My query is: $query("RicohInvoices", "validContractsBySiteIdWithDoclink", { "SiteId" : pk1, "ContractStatus" : "active"})
The displayed result under the expression shows correct data:
[
{
"Contracts.ContractID": "0123456789",
"Contracts.Status": "active",
"Contracts.ValidFrom": "2014-12-01",
"Contracts.ValidUntil": null,
"Contracts.Note": "3x SP4310N",
"Contracts.yearlyRentalCosts": 123,
"NumberOfDevices": 3,
"Contracts.DocLink": "https://mydocURL"
...
The html source I use:
<% for (i of context) { %>

<% } %> Although the backticks are used for the properties with "." the widget doesn´t show any result.

If I change over to a $all() function to retrieve data, the results come without the table.colum syntax but just column and it is no problem to show the result in the html widget.
I am pretty sure it is a bug of the widget because escaping with backticks ` doesn work.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions