I have a computed field that contains an iframe. The iframe pints to the URL for a saved report I built in PLM. My report has a runtime filter that searches for items based on someone's name.
My iframe to the report works fine if I have the runtime filter hardwired to a specific string. My problem is when I try to use a item field in the iframe.
My good iframe looks like this:
'<iframe src="https://<tenantname>.autodeskplm360.net/reportRunAjaxRequestorAction.do?reportID=1888&workspaceID=83&reportTypeInRequest=reportTypeHtml&index(1__NEWROW)=&value(1__ALL_FILTER_FIELDS__NEWROW)=ASSIGNEE_FILTER_META_DMS_TYPE_4&value(1__ALL_FILTER__NEWROW)=2&value(1__FILTER_VALUE__NEWROW)=Joe"></iframe>'
Notice at the very end the name "Joe" as a string.
My problem arrises when I use the field NAME in place of "Joe". I get an error when I try to save. Here's what my BAd iframe looks like:
'<iframe src="https://<tenantname>.autodeskplm360.net/reportRunAjaxRequestorAction.do?reportID=1888&workspaceID=83&reportTypeInRequest=reportTypeHtml&index(1__NEWROW)=&value(1__ALL_FILTER_FIELDS__NEWROW)=ASSIGNEE_FILTER_META_DMS_TYPE_4&value(1__ALL_FILTER__NEWROW)=2&value(1__FILTER_VALUE__NEWROW)=' || NAME "></iframe>'
I'm not sure what I'm missing. The only thing I can think of is that my src is ending in a field name. I followed this hunch and added ; after the NAME field. I was able to save but my iframe if a place a semicolon at the end like so: || NAME ||' ">.
So this works if my propery field is SINGLE LINE TEXT. If I set it to a picklist using the default All Users my iframe fails.
I summarized (i.e. assueme) I may need to encode the NAME property i.e. Bourne, Orrin NAME property should be converted to Bourne%2C+Orrin but I'm not sure.
FYI I'm using Chrome v33.
Can any chime in on the need (or not) to encode a PLM style name for the URL?