A jscript variable in a Query

Posted by lerac on Stack Overflow See other posts from Stack Overflow or by lerac
Published on 2010-03-24T17:27:54Z Indexed on 2010/03/24 17:43 UTC
Read the original article Hit count: 420

Filed under:
|
|
|
|

Maybe a very simple question.

How can I put in this code

<Query>
   <Where>
      <Eq>
         <FieldRef Name="Judge_x0020_1" />
         <Value Type="Text">mr. R. Sanches</Value>
      </Eq>
   </Where>
   </script>
</Query>

A variable from jscript in the area of the code where mr. R. Sanches is written. So my jScript contains a dynamic text variable I want to replace mr. R. Sanches with. See where it says THE JAVESCRIPT VAR underneath here:

<Query>
   <Where>
      <Eq>
         <FieldRef Name="Judge_x0020_1" />
         <Value Type="Text">THE JAVASCRIPT VAR</Value>
      </Eq>
   </Where>
   </script>
</Query>

© Stack Overflow or respective owner

Related posts about jscript

Related posts about query