Skip to main content
1-Visitor
March 17, 2016
Solved

How to pass the parameter in Walk Query Section?

  • March 17, 2016
  • 2 replies
  • 2656 views

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

    Best answer by srahamedhulla

    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

    2 replies

    16-Pearl
    April 11, 2016

    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

    1-Visitor
    April 12, 2016

    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

    5-Regular Member
    April 11, 2016

    Sithik,

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

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

    srahamedhulla1-VisitorAuthorAnswer
    1-Visitor
    April 12, 2016

    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