<?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 data merge for rest api with variable using for loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/data-merge-for-rest-api-with-variable-using-for-loop/m-p/1956757#M1219936</link>
    <description>&lt;P&gt;Hi , I Have similar this code ..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GeoData:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;sortID, LongVal, LatVal&lt;BR /&gt;100, 40.222, 34.221&lt;BR /&gt;200, 41.111, 34.333&lt;BR /&gt;300, 43.777, 35.555&lt;BR /&gt;400, 44.888, 34.111&lt;BR /&gt;500, 45.666, 34.998&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;let i=0;&lt;BR /&gt;let vRecord=NoOfRows('GeoData');&lt;/P&gt;
&lt;P&gt;FOR i=0 to $(vRecord)&lt;/P&gt;
&lt;P&gt;let VarLongitude = peek('GeoData.LongVal', $(i), 'GeoData');&lt;BR /&gt;let VarLatitude = peek('GeoData.LatVal', $(i) , 'GeoData');&lt;BR /&gt;let VsortID= peek('GeoData.sortID', $(i) , 'GeoData');&lt;/P&gt;
&lt;P&gt;CUSTOM CONNECT TO "Provider=QvRestConnector.exe;url=&lt;A href="http://api.testname/arcgis/rest/services/MapServer/2/query" target="_blank"&gt;http://api.testname/arcgis/rest/services/MapServer/2/query&lt;/A&gt;?;&lt;BR /&gt;timeout=30;method=GET;queryParameters=geometry%2{x:$(VarLongitude),y:$(VarLatitude)}%1outFields%2City_ID";&lt;/P&gt;
&lt;P&gt;RestConnectorMasterTable:&lt;BR /&gt;SQL SELECT &lt;BR /&gt;"__KEY_root",&lt;BR /&gt;(SELECT &lt;BR /&gt;"__KEY_features",&lt;BR /&gt;"__FK_features",&lt;BR /&gt;(SELECT &lt;BR /&gt;"City_ID" AS "City_ID_",&lt;BR /&gt;"__FK_attributes"&lt;BR /&gt;FROM "attributes" FK "__FK_attributes")&lt;BR /&gt;FROM "features" PK "__KEY_features" FK "__FK_features")&lt;BR /&gt;FROM JSON (wrap on) "root" PK "__KEY_root";&lt;/P&gt;
&lt;P&gt;[attributes]:&lt;BR /&gt;LOAD [City_ID]&lt;BR /&gt;RESIDENT RestConnectorMasterTable&lt;BR /&gt;WHERE NOT IsNull([__FK_attributes]);&lt;/P&gt;
&lt;P&gt;Join&lt;/P&gt;
&lt;P&gt;LOAD $(VarLongitude) as Longitude_N ,&lt;BR /&gt;$(VarLatitude) as Latitude_N ,&lt;BR /&gt;$(VsortID) as sortID_N&lt;BR /&gt;Resident GeoData ;&lt;/P&gt;
&lt;P&gt;DROP Tables RestConnectorMasterTable;&lt;/P&gt;
&lt;P&gt;EXIT SCRIPT when i=$(vRecord);&lt;BR /&gt;Next i;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have&amp;nbsp;INLINE table and use for loop to read data , that is ok .&lt;/P&gt;
&lt;P&gt;But my problem is to associate the variables with a attributes table.&lt;/P&gt;
&lt;P&gt;when reload Myapp.qvw&lt;/P&gt;
&lt;P&gt;generate Syn Table , Because these tables are created ..&lt;/P&gt;
&lt;P&gt;attributes-1&amp;nbsp;&lt;/P&gt;
&lt;P&gt;attributes-2&lt;/P&gt;
&lt;P&gt;attributes-3&lt;/P&gt;
&lt;P&gt;attributes-4&lt;/P&gt;
&lt;P&gt;attributes-5&lt;/P&gt;
&lt;P&gt;what i do to solve this problem !&lt;/P&gt;</description>
    <pubDate>Sat, 16 Jul 2022 19:37:36 GMT</pubDate>
    <dc:creator>maohob1</dc:creator>
    <dc:date>2022-07-16T19:37:36Z</dc:date>
    <item>
      <title>data merge for rest api with variable using for loop</title>
      <link>https://community.qlik.com/t5/QlikView/data-merge-for-rest-api-with-variable-using-for-loop/m-p/1956757#M1219936</link>
      <description>&lt;P&gt;Hi , I Have similar this code ..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GeoData:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;sortID, LongVal, LatVal&lt;BR /&gt;100, 40.222, 34.221&lt;BR /&gt;200, 41.111, 34.333&lt;BR /&gt;300, 43.777, 35.555&lt;BR /&gt;400, 44.888, 34.111&lt;BR /&gt;500, 45.666, 34.998&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;let i=0;&lt;BR /&gt;let vRecord=NoOfRows('GeoData');&lt;/P&gt;
&lt;P&gt;FOR i=0 to $(vRecord)&lt;/P&gt;
&lt;P&gt;let VarLongitude = peek('GeoData.LongVal', $(i), 'GeoData');&lt;BR /&gt;let VarLatitude = peek('GeoData.LatVal', $(i) , 'GeoData');&lt;BR /&gt;let VsortID= peek('GeoData.sortID', $(i) , 'GeoData');&lt;/P&gt;
&lt;P&gt;CUSTOM CONNECT TO "Provider=QvRestConnector.exe;url=&lt;A href="http://api.testname/arcgis/rest/services/MapServer/2/query" target="_blank"&gt;http://api.testname/arcgis/rest/services/MapServer/2/query&lt;/A&gt;?;&lt;BR /&gt;timeout=30;method=GET;queryParameters=geometry%2{x:$(VarLongitude),y:$(VarLatitude)}%1outFields%2City_ID";&lt;/P&gt;
&lt;P&gt;RestConnectorMasterTable:&lt;BR /&gt;SQL SELECT &lt;BR /&gt;"__KEY_root",&lt;BR /&gt;(SELECT &lt;BR /&gt;"__KEY_features",&lt;BR /&gt;"__FK_features",&lt;BR /&gt;(SELECT &lt;BR /&gt;"City_ID" AS "City_ID_",&lt;BR /&gt;"__FK_attributes"&lt;BR /&gt;FROM "attributes" FK "__FK_attributes")&lt;BR /&gt;FROM "features" PK "__KEY_features" FK "__FK_features")&lt;BR /&gt;FROM JSON (wrap on) "root" PK "__KEY_root";&lt;/P&gt;
&lt;P&gt;[attributes]:&lt;BR /&gt;LOAD [City_ID]&lt;BR /&gt;RESIDENT RestConnectorMasterTable&lt;BR /&gt;WHERE NOT IsNull([__FK_attributes]);&lt;/P&gt;
&lt;P&gt;Join&lt;/P&gt;
&lt;P&gt;LOAD $(VarLongitude) as Longitude_N ,&lt;BR /&gt;$(VarLatitude) as Latitude_N ,&lt;BR /&gt;$(VsortID) as sortID_N&lt;BR /&gt;Resident GeoData ;&lt;/P&gt;
&lt;P&gt;DROP Tables RestConnectorMasterTable;&lt;/P&gt;
&lt;P&gt;EXIT SCRIPT when i=$(vRecord);&lt;BR /&gt;Next i;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have&amp;nbsp;INLINE table and use for loop to read data , that is ok .&lt;/P&gt;
&lt;P&gt;But my problem is to associate the variables with a attributes table.&lt;/P&gt;
&lt;P&gt;when reload Myapp.qvw&lt;/P&gt;
&lt;P&gt;generate Syn Table , Because these tables are created ..&lt;/P&gt;
&lt;P&gt;attributes-1&amp;nbsp;&lt;/P&gt;
&lt;P&gt;attributes-2&lt;/P&gt;
&lt;P&gt;attributes-3&lt;/P&gt;
&lt;P&gt;attributes-4&lt;/P&gt;
&lt;P&gt;attributes-5&lt;/P&gt;
&lt;P&gt;what i do to solve this problem !&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2022 19:37:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-merge-for-rest-api-with-variable-using-for-loop/m-p/1956757#M1219936</guid>
      <dc:creator>maohob1</dc:creator>
      <dc:date>2022-07-16T19:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: data merge for rest api with variable using for loop</title>
      <link>https://community.qlik.com/t5/QlikView/data-merge-for-rest-api-with-variable-using-for-loop/m-p/1956776#M1219940</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To clarify what is required&lt;/P&gt;
&lt;P&gt;i need final output like this..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="99.86504723346829%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="24.966261808367072%" height="25px"&gt;City_ID&lt;/TD&gt;
&lt;TD width="24.966261808367072%" height="25px"&gt;Longitude_N&amp;nbsp;&lt;/TD&gt;
&lt;TD width="24.966261808367072%" height="25px"&gt;Latitude_N&amp;nbsp;&lt;/TD&gt;
&lt;TD width="24.966261808367072%" height="25px"&gt;sortID_N&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="24.966261808367072%" height="25px"&gt;8&lt;/TD&gt;
&lt;TD width="24.966261808367072%" height="25px"&gt;40.222&lt;/TD&gt;
&lt;TD width="24.966261808367072%" height="25px"&gt;34.221&lt;/TD&gt;
&lt;TD width="24.966261808367072%" height="25px"&gt;100&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="24.966261808367072%" height="25px"&gt;6&lt;/TD&gt;
&lt;TD width="24.966261808367072%" height="25px"&gt;41.111&lt;/TD&gt;
&lt;TD width="24.966261808367072%" height="25px"&gt;34.333&lt;/TD&gt;
&lt;TD width="24.966261808367072%" height="25px"&gt;200&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="24.966261808367072%" height="25px"&gt;12&lt;/TD&gt;
&lt;TD width="24.966261808367072%" height="25px"&gt;43.777&lt;/TD&gt;
&lt;TD width="24.966261808367072%" height="25px"&gt;35.555&lt;/TD&gt;
&lt;TD width="24.966261808367072%" height="25px"&gt;300&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="24.966261808367072%" height="25px"&gt;14&lt;/TD&gt;
&lt;TD width="24.966261808367072%" height="25px"&gt;44.888&lt;/TD&gt;
&lt;TD width="24.966261808367072%"&gt;34.111&lt;/TD&gt;
&lt;TD width="24.966261808367072%" height="25px"&gt;400&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="24.966261808367072%" height="25px"&gt;15&lt;/TD&gt;
&lt;TD width="24.966261808367072%"&gt;45.666&lt;/TD&gt;
&lt;TD width="24.966261808367072%"&gt;34.998&lt;/TD&gt;
&lt;TD width="24.966261808367072%" height="25px"&gt;500&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jul 2022 06:09:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-merge-for-rest-api-with-variable-using-for-loop/m-p/1956776#M1219940</guid>
      <dc:creator>maohob1</dc:creator>
      <dc:date>2022-07-17T06:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: data merge for rest api with variable using for loop</title>
      <link>https://community.qlik.com/t5/QlikView/data-merge-for-rest-api-with-variable-using-for-loop/m-p/2462791#M1225818</link>
      <description>&lt;P&gt;As an addition to this topic, I'm excited to share my latest tutorial on integrating Asana with Qlik Cloud using REST APIs!&lt;/P&gt;
&lt;P&gt;In this step-by-step guide, you'll learn:&lt;BR /&gt;- How to use Asana REST APIs with Postman&lt;BR /&gt;- Creating REST Data Connections in Qlik Cloud&lt;BR /&gt;- Extracting data from Asana and saving as Parquet files&lt;BR /&gt;- Enhancing connections with custom parameters and pagination&lt;/P&gt;
&lt;P&gt;Check out the full video on YouTube:&lt;BR /&gt;&lt;STRONG&gt;Integrate Asana with Qlik Cloud Using REST APIs: A Step-by-Step Guide&lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="https://youtu.be/lFwar30BNkQ?si=UZoM_x9L5amdJSnf" target="_blank"&gt;https://youtu.be/lFwar30BNkQ?si=UZoM_x9L5amdJSnf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Mark Costa&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2024 22:14:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/data-merge-for-rest-api-with-variable-using-for-loop/m-p/2462791#M1225818</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2024-06-15T22:14:56Z</dc:date>
    </item>
  </channel>
</rss>

