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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

How to pass the parameter in Walk Query Section?

srahamedhulla
1-Newbie

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

1 ACCEPTED SOLUTION

Accepted Solutions

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
KaelLizak
14-Alexandrite
(To:srahamedhulla)

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

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

Sithik,

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

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

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

Top Tags