Forum Discussion

pashooo's avatar
pashooo
Contributor
13 years ago

Parametrize JavaScript Issue

HELLO!





Please help me to parametrize a simple example.




I have already use this constructon:


 * treeview.ExpandItem(BA);




in the place of:


 * treeView.ExpandItem("|LKOH"); BA is array...




But  I have faced this construction further:


 * treeView.ExpandItem("|LKOH|LKH2");


... does smb. know how to parametrize it? I need to get BA in the place of LKOH and Fut in the place of LKH2.





Thanks.

















2 Replies

  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)
    Hi Pasha,



    You just need to concatenate the two values, like this:

    treeView.ExpandItem(BA + Fut);


    Or like this if the array element values don't include pipeline characters:

    treeView.ExpandItem("|" + BA + "|" + Fut);
  • Thank you, for advice, Helen)

    You help me to solve the problem.