Quantcast
Channel: PTC Community : Popular Discussions - Integrity
Viewing all articles
Browse latest Browse all 3432

Get Content by ID in a HTML Report

$
0
0

Hello Community,

I have an issue by generating a HTML Report. I want to get the content of a Requirement ( or any arbitrary category ) in a HTML report by using JavaScript. I've found a computational method provided by PTC Intgerity which facilitates to get the Content by a specific ID:

 

<%compute>getFieldValue(ID,"Content.fva")<%endcompute%>


This method returns the content BUT it is not able to pass the ID dynamically, e.g  the ID has to be hard-coded to be able to use this method. I'm pretty sure that the

"<%compute%><%endcompute%> " tag is computed before the HTML Report is generated (and the html and javascript code is translated in browser). When you uncomment the  <%compute>getFieldValue(ID,"Content.fva")<%endcompute%> statement and replace ID with a variable, the report cannot be generated though the statement is uncommented.

Does anybody know how I can solve this problem by getting a content by ID dynamically?

 

I'd really appreciate a solution and thank in advance for any kind of information

 

Kind regards

Martin


Viewing all articles
Browse latest Browse all 3432

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>