cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

How to pass the parameter in Walk Query Section?

kjain-2
15-Moonstone

How to pass the parameter in Walk Query Section?

Hi Everyone,

 

Urgent help required on this :- 
 

How to pass the parameter in Walk Query Section?

 

Any help would be appreciable.

 

Vielen Dank,

Kapil Jain

4 REPLIES 4
awalsh
17-Peridot
(To:kjain-2)

Could you clarify what issue you are having?  What are you running (exact code) and what errors are you getting?

 

It looks like the solution for that post was that the variable could not be used in the tag. That answer hasn't changed as far as I know. 

kjain-2
15-Moonstone
(To:awalsh)

Hi @awalsh,

 

Thanks for your response.

Actually i am creating a Report recipe and using this tag:-

 

<%begindetail%>
<%beginrelationshipsdetail Query[(walkdocordered[<%<%DocumentID%>%>]recurseinclude)]%>

 

And DocumentID is a variable or you can say like this:-

 

var DocumentID = 1234;

<%begindetail%>
<%beginrelationshipsdetail Query[(walkdocordered[<%<%DocumentID%>%>]recurseinclude)]%>

 

But i am not getting fruitful result. Please take a look over the complete code:-

<script type="text/javascript">
function documentdata(DocumentID)
{
alert(DocumentID);
var content='<div class="section_heading">Document Content</div>' +
'<table width="100%" style="background: #dbe7f9;" class="section1" cellspacing="0" cellpadding="3" border="1">' +
'<tr class="result_header">' +
'<th align="center" class="field_headings">Category</th>' +
'<th align="center" class="field_headings">State</th>' +
'<th align="center" class="field_headings">Text</th>' +
'<th align="center" class="field_headings">Trace Status</th>' +
'<th align="center" class="field_headings">ID</th></tr>';
<%begindetail%>
<%beginrelationshipsdetail Query[(walkdocordered[<%<%DocumentID%>%>]recurseinclude)]%>
content +='<td class="field_headings" align="center"><%Relationship Category%></td>' +
'<td class="field_headings" align="center"><%Relationship State%></td>' +
'<td class="field_headings"><%Relationship Text%></td>' +
'<td class="field_headings" align="center"><%Relationship Trace Status%></td>' +
'<td align="center" class="field_headings"><a href="integrity://BLRMIESPC-1233.lnties.com:7001/im/viewissue?selection=<%Relationship ID%>" target="_blank"><%Relationship ID%></a></td></tr>';
<%endrelationshipsdetail%>
<%enddetail%>
content += '</table></br>';
document.getElementById("demo").innerHTML =content;
}
</script>

 

Giving some Errors like Unexpected Token and function documentdata is not defined.

 

Looking forward to hear from you.

 

Vielen Dank,

Kapil Jain

kjain-2
15-Moonstone
(To:kjain-2)

Hi @awalsh,

 

Any response from your side because if you can help me to solve this then i can move ahead with the idea i have ?

 

Vielen Dank,

Kapil Jain

awalsh
17-Peridot
(To:kjain-2)

I'm sorry Kapil, I don't have any ideas on this one. I don't think it's possible. 

Announcements


Top Tags