Author |
Message
|
new_to_wmb8 |
Posted: Tue May 20, 2014 2:37 am Post subject: Refering to InputRoot Elements in '' |
|
|
 Centurion
Joined: 28 May 2013 Posts: 127 Location: Hyderabad, India
|
Hi,
I have to create a command as a string which is taking some value from the InputRoot.
Ex:
I have to create a command like Query = ' {'ID' : 'Value' }' in esql
where
Value = InputRoot.XMLNSC.value.
The problem is i am not create aor put the Value as 'Value' because then it will take it as a string.
any suggestion ????? |
|
Back to top |
|
 |
mnair77 |
Posted: Tue May 20, 2014 1:18 pm Post subject: |
|
|
 Newbie
Joined: 02 Oct 2013 Posts: 4
|
Not sure if this is what you're looking for; but '||' is the concatenation operator, and single quotes are escaped in string literals by repeating the quote.
Code: |
Query = ' {''ID'' : ''' || Value || ''' }'; |
|
|
Back to top |
|
 |
McueMart |
Posted: Wed May 21, 2014 2:49 am Post subject: |
|
|
 Chevalier
Joined: 29 Nov 2011 Posts: 490 Location: UK...somewhere
|
I have read your post 5 times and still don't understand what you want. Please can you try and explain in more detail? |
|
Back to top |
|
 |
Esa |
Posted: Wed May 21, 2014 3:25 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2008 Posts: 1387 Location: Finland
|
How are you going to run the command?
Should 'Query = ' be a part of the command? |
|
Back to top |
|
 |
Tibor |
Posted: Wed May 21, 2014 5:42 am Post subject: |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
McueMart wrote: |
I have read your post 5 times and still don't understand what you want |
I have understood because I'm not a native English speaker
Anyway the solution was posted by mnair77 |
|
Back to top |
|
 |
|