Skip to main content
1-Visitor
Mar 17, 2016 10:02 AM UTC
Solved

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-Visitor
    Apr 12, 2016 12:34 PM UTC

    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

    4 replies

    16-Pearl
    Apr 11, 2016 3:21 PM UTC

    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

    Translate
    1-Visitor
    Apr 12, 2016 12:33 PM UTC

    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

    Translate
    5-Regular Member
    Apr 11, 2016 11:44 PM UTC

    Sithik,

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

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

    Translate
    srahamedhulla1-VisitorAuthorAnswer
    1-Visitor
    Apr 12, 2016 12:34 PM UTC

    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

    Translate