<?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: Connexion conditionnelle à un webservice in Francophones</title>
    <link>https://community.qlik.com/t5/Francophones/Connexion-conditionnelle-%C3%A0-un-webservice/m-p/2258#M56</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour, voici le script qu'il te faut pour exécuter du code une fois par jour :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; WebService_LastExecution = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;();&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;IF&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DayStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()) &amp;lt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DayStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;WebService_LastExecution&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;THEN&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Cette partie du code va s'executer une fois par jour&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; WebService_LastExecution = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;();&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;ENDIF&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Après la 1ère exécution, il faut supprimer ou commenter la première initialisation de la variable WebService_LastExecution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jan 2018 21:14:14 GMT</pubDate>
    <dc:creator>sfatoux72</dc:creator>
    <dc:date>2018-01-17T21:14:14Z</dc:date>
    <item>
      <title>Connexion conditionnelle à un webservice</title>
      <link>https://community.qlik.com/t5/Francophones/Connexion-conditionnelle-%C3%A0-un-webservice/m-p/2257#M55</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J'ai un souci avec une application.&lt;/P&gt;&lt;P&gt;J'ai besoin de me connecter à un webservice et récupérer un certain nombre de données. Ce processus est très long (6 minutes) pour une application qui est lancée toutes les 5-10 minutes. Je n'ai besoin de me connecter à ce service une seule fois par jour, lors du premier lancement de l'application le matin puis plus jusqu'au lendemain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;L'instruction &lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;"Buffer (Stale After 1 day)" &lt;/STRONG&gt;ne fonctionne pas juste avant l'instruction &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CUSTOM CONNECT TO "Provider......";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quelqu'un aurait une solution à ce souci pour avoir une connexion "conditionelle" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Merci à tous&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 13:30:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Connexion-conditionnelle-%C3%A0-un-webservice/m-p/2257#M55</guid>
      <dc:creator>jennybetty</dc:creator>
      <dc:date>2018-01-17T13:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Connexion conditionnelle à un webservice</title>
      <link>https://community.qlik.com/t5/Francophones/Connexion-conditionnelle-%C3%A0-un-webservice/m-p/2258#M56</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour, voici le script qu'il te faut pour exécuter du code une fois par jour :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; WebService_LastExecution = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;();&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;IF&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DayStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()) &amp;lt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DayStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;WebService_LastExecution&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;THEN&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Cette partie du code va s'executer une fois par jour&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; WebService_LastExecution = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;();&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;ENDIF&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Après la 1ère exécution, il faut supprimer ou commenter la première initialisation de la variable WebService_LastExecution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 21:14:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Connexion-conditionnelle-%C3%A0-un-webservice/m-p/2258#M56</guid>
      <dc:creator>sfatoux72</dc:creator>
      <dc:date>2018-01-17T21:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Connexion conditionnelle à un webservice</title>
      <link>https://community.qlik.com/t5/Francophones/Connexion-conditionnelle-%C3%A0-un-webservice/m-p/2259#M57</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour et merci pour votre réponse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Cela nécessite alors une intervention manuelle dans le script tous les jours après la première exécution...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;C'est justement mon souci, car l'application est lancée automatiquement tous les jours, ouvrés et non ouvrés alors je ne peux pas intervenir dans le script tous les jours...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;De plus, j'ai besoin de garder les informations précédemment chargées via le webservice, hors le fait de "sauter" cette partie de script ne me permet pas d'obtenir la dernière valeur des champ, obtenue à la 1ère execution...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Je ne sais pas si je suis claire, mais en gros l'instruction&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;"&lt;STRONG&gt;buffer (stale after 1 day)&lt;/STRONG&gt;"&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;réalise ce que je veux faire, mais j'ai besoin de l'attribuer à une connexion et pas à un LOAD.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Merci&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Jenny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 06:37:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Connexion-conditionnelle-%C3%A0-un-webservice/m-p/2259#M57</guid>
      <dc:creator>jennybetty</dc:creator>
      <dc:date>2018-01-18T06:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Connexion conditionnelle à un webservice</title>
      <link>https://community.qlik.com/t5/Francophones/Connexion-conditionnelle-%C3%A0-un-webservice/m-p/2260#M58</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;C'est juste après la &lt;STRONG&gt;première exécution&lt;/STRONG&gt; qu'il faut supprimer la 1ère ligne. Après la variable est créée et initialisée dans l'application, donc on a plus besoin de cette ligne.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Je te propose de simuler "&lt;STRONG&gt;buffer (stale after 1 day)&lt;/STRONG&gt;" en sauvegardant le résultat de ton WebService dans un QVD lors de la première exécution de la journée (il sera écrasé chaque jour) et en chargeant ce QVD lors des exécutions suivantes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//A supprimer après la première exécution, car sert uniquement à créer et initialiser la variable&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; WebService_LastExecution = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;();&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;IF&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DayStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()) &amp;lt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DayStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;WebService_LastExecution&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;THEN&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Cette partie du code va s'executer une fois par jour&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; WebService_LastExecution = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;();&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//Exécution du WebService&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//Sauvegarde du résultat dans un QVD (en imaginant que les données du webService se trouve dan sla table WebServiceTable)&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;STORE&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; WebServiceTable &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;into&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; WebServiceTable.qvd (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;ELSE&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//Chargement du QVD à la place d'appeler le web service&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;From&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; WebServiceTable.qvd (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;ENDIF &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 17:14:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Connexion-conditionnelle-%C3%A0-un-webservice/m-p/2260#M58</guid>
      <dc:creator>sfatoux72</dc:creator>
      <dc:date>2018-01-18T17:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Connexion conditionnelle à un webservice</title>
      <link>https://community.qlik.com/t5/Francophones/Connexion-conditionnelle-%C3%A0-un-webservice/m-p/2261#M59</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah oui d'accord autant pour moi.&lt;/P&gt;&lt;P&gt;Merci c'est exactement ce qu'il me faut.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bonne journée à toi et un grand merci pour ton aide !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2018 08:32:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Francophones/Connexion-conditionnelle-%C3%A0-un-webservice/m-p/2261#M59</guid>
      <dc:creator>jennybetty</dc:creator>
      <dc:date>2018-01-19T08:32:54Z</dc:date>
    </item>
  </channel>
</rss>

