Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
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
Solved! Go to Solution.
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
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
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