<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using context variable in tFixedFlowInput in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Using-context-variable-in-tFixedFlowInput/m-p/2372337#M135188</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the whole string (json) has to be treated as a string in Java&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thus any required double-qutes by JSON - have to be skipped in Java&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"{\"name\":\"all\",\"group\":\"all\",\"level\":\"all\",\"frequency\":\"yearly\",\"start\":"&lt;B&gt;+ context.start +&lt;/B&gt; ",\"end\":" &lt;B&gt;+ context.end +&lt;/B&gt;"};"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: the double-quotes around the variables are not skipped by a backslash&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Oct 2021 08:10:46 GMT</pubDate>
    <dc:creator>XJ_1630</dc:creator>
    <dc:date>2021-10-22T08:10:46Z</dc:date>
    <item>
      <title>Using context variable in tFixedFlowInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-context-variable-in-tFixedFlowInput/m-p/2372336#M135187</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue where i want to write an API body request in tFixedFlowInput component. My job looks like below image&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000KBtWsAAL.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137354iEF7AE22A6EFA5004/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000KBtWsAAL.jpg" alt="0695b00000KBtWsAAL.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In tFixedFlowInput, i write the body request like this and it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{"name":"all","group":"all","level":"all","frequency":"yearly","start_date":"2021-10-01","end_date":"2021-10-31"};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I would like to define the date as context variable since it might change from time to time. I tried to put it like this but it doesn't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{"name":"all","group":"all","level":"all","frequency":"yearly","start":+context.start+,"end":+context.end+};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried with double quotes, single quotes, still it won't fetch the data. Can anyone help how should i put the context variable there? Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:36:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-context-variable-in-tFixedFlowInput/m-p/2372336#M135187</guid>
      <dc:creator>SR2210</dc:creator>
      <dc:date>2024-11-15T23:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using context variable in tFixedFlowInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-context-variable-in-tFixedFlowInput/m-p/2372337#M135188</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the whole string (json) has to be treated as a string in Java&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thus any required double-qutes by JSON - have to be skipped in Java&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"{\"name\":\"all\",\"group\":\"all\",\"level\":\"all\",\"frequency\":\"yearly\",\"start\":"&lt;B&gt;+ context.start +&lt;/B&gt; ",\"end\":" &lt;B&gt;+ context.end +&lt;/B&gt;"};"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: the double-quotes around the variables are not skipped by a backslash&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 08:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-context-variable-in-tFixedFlowInput/m-p/2372337#M135188</guid>
      <dc:creator>XJ_1630</dc:creator>
      <dc:date>2021-10-22T08:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using context variable in tFixedFlowInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-context-variable-in-tFixedFlowInput/m-p/2372338#M135189</link>
      <description>&lt;P&gt;Hi could you send a capture of the working tfixedflowinput ?&lt;/P&gt;&lt;P&gt;I suppose you use personalise content:&lt;/P&gt;&lt;P&gt;it will read it as base64 and decode it that's why it's only reading it as a pure string and not permit you to use context variable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;instead maybe you can use the first option : one row table and set it as a string in the schema and use escape char like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"{\"name\":\"all\",\"group\":\"all\",\"level\":\"all\",\"frequency\":\"yearly\",\"start_date\":\""+context.start+"\",\"end_date\":\""+context.end+"\"};"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;send me love and kudos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 08:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-context-variable-in-tFixedFlowInput/m-p/2372338#M135189</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-10-22T08:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using context variable in tFixedFlowInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-context-variable-in-tFixedFlowInput/m-p/2372339#M135190</link>
      <description>&lt;P&gt;we think the same thing a the same time &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;you're right XJ_1630 you just have to add an escape doble quote before and after context var &lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 08:43:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-context-variable-in-tFixedFlowInput/m-p/2372339#M135190</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-10-22T08:43:42Z</dc:date>
    </item>
  </channel>
</rss>

