How to display tableau reports using web content field?

The requirement is to display the tableau reports from tableau website.

To achieve the same, webcontent field is used and url is passed in source which is retrieved from the DB.

Code Snippet:

a!webContentField(
labelPosition: "ABOVE",
source: fn!index(
local!reportLink,
local!selectedReport,
{}
),
showWhen: fn!tointeger(
local!selectedReport
) = 3,
height: "MEDIUM"
)

Encountered the error as shown below.

Thanks in advance.

Regards,

Priya

  Discussion posts and replies are publicly visible