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

How to pass the parameter in Walk Query Section?

SOLVED
Highlighted

How to pass the parameter in Walk Query Section?

I don't how to pass parameters in the walktestsession Query?


for(var i=0;i<testSessionsDetails.length;i++)

{

tempSessionID=testSessionsDetails[i].toString();

<%beginrelationshipsdetail Query[(walktestsession[tempSessionID])]%>

alert("<%Relationship Expected Results%>");

<%endrelationshipsdetail%>

}

If I pass the value directly then it is working fine, but if we try to assign either Integer or String value then it is not accepting.

for(var i=0;i<testSessionsDetails.length;i++)

{

tempSessionID=testSessionsDetails[i].toString();

<%beginrelationshipsdetail Query[(walktestsession[“3856”])]%>

alert("<%Relationship Expected Results%>");

<%endrelationshipsdetail%>

}


Any help would be really appreciated.


Thanks in Advance,

Sithik

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to pass the parameter in Walk Query Section?

Hi Michael,

There is some limitation to this.We can't pass the variable in the tag.

The below tags works for me

<%RelationshipL2 Tests As Of Date%>

<%beginrelationshipsdetailL3 Query[(walktestsession[<%RelationshipL2 ID%>])]%>

Thanks,

Sithik

View solution in original post

4 REPLIES 4

Re: How to pass the parameter in Walk Query Section?

Hello Sithik Rahamedhulla,

When you dump the tempSessionID in the first example, is it the actual item ID or is it some other value? 

Regards,
Kael


Kind Regards,
Kael Lizak

Senior Technical Support Engineer
PTC Integrity Lifecycle Manager

Re: How to pass the parameter in Walk Query Section?

Sithik,

Assuming like Kael mentioned, that your tempSessionID, is resolving to what you expect, does this format work for you?

<%beginrelationshipsdetail Query[(walktestsession[<%<%tempSessionID%>%>])]%>

Re: How to pass the parameter in Walk Query Section?

Hi Kael,

There is some limitation to this.We can't pass the variable in the tag.

The below tags works for me

<%RelationshipL2 Tests As Of Date%>

<%beginrelationshipsdetailL3 Query[(walktestsession[<%RelationshipL2 ID%>])]%>

Thanks,

Sithik

Re: How to pass the parameter in Walk Query Section?

Hi Michael,

There is some limitation to this.We can't pass the variable in the tag.

The below tags works for me

<%RelationshipL2 Tests As Of Date%>

<%beginrelationshipsdetailL3 Query[(walktestsession[<%RelationshipL2 ID%>])]%>

Thanks,

Sithik

View solution in original post