Hello Team,
I have to create a link for export to excel and have created a rule which generates exportabledatsubset for download.
Now i am using below code to call it in expression but getting error.
Expression evaluation error at function a!safeLink [line 206]: is not a permitted URI under the configured security rules and cannot be cast to safeUri.
Below is the code.
a!sectionLayout( contents: a!linkField( links: { a!safeLink( label: "test", uri: getdatasubsetdownloadlinkfromrule( rule!test_exportexcelrule(local!selctapp) ) ) } ) ),
Discussion posts and replies are publicly visible
I am able to fix after using tojson (in interface) and converting it from string to value in expression using fromjson.
Interface code:
link: a!safeLink( label: "", uri: getdatasubsetdownloadlinkfromrule( rule: rule!test_exportexcelrule, input: a!toJson( { local!selctapp } ) ) )
Rule Code:
with( local!export:a!fromJson( ri!input ), local!pagingInfo:a!pagingInfo(1,-1),