Simple-tag recordList cannot pass condition

Hello!

I’ve encountered an issue when using the recordList tag: I’m unable to pass the required condition into the condition attribute.

Template:

<recordList
label="{data.lable}"
tableName="{data.tableName}"
name="myList"
condition="{data.condition}"
>
</recordList>

On the server side, I assign: data.condition = condition.

However, when the widget loads, the condition is not passed in, and the list view loads without any filtering.

Meanwhile, the data for label and tableName is successfully passed through.

Has anyone encountered this issue?

If I hardcode the condition directly in the template, for example, condition=“caller=sys_id”, everything works correctly.

I’d appreciate any suggestions.

Found a solution; I’m adding the tag using s_widget.addTemplate(id, template, script, type) after assigning the condition.