<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[store() function]]></title><description><![CDATA[<p dir="auto">Hello team!</p>
<p dir="auto">I know you have an API for accessing browser local storage, store()</p>
<p dir="auto">Do you have any documentation for how it works? I see it takes 3 parameters, but I'm not sure what they all do.</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://community.appdrag.com/topic/2/store-function</link><generator>RSS for Node</generator><lastBuildDate>Mon, 11 May 2026 09:28:25 GMT</lastBuildDate><atom:link href="https://community.appdrag.com/topic/2.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 May 2020 09:33:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to store() function on Tue, 12 May 2020 17:06:16 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Wassim</p>
]]></description><link>https://community.appdrag.com/post/105</link><guid isPermaLink="true">https://community.appdrag.com/post/105</guid><dc:creator><![CDATA[Konrad Hylton]]></dc:creator><pubDate>Tue, 12 May 2020 17:06:16 GMT</pubDate></item><item><title><![CDATA[Reply to store() function on Mon, 11 May 2020 06:06:43 GMT]]></title><description><![CDATA[<p dir="auto">Hello, no I would recommand you to use store('name') as it's more safe. Yes it works as a source for CloudBackend triggers with the formula type!</p>
]]></description><link>https://community.appdrag.com/post/78</link><guid isPermaLink="true">https://community.appdrag.com/post/78</guid><dc:creator><![CDATA[Wassim]]></dc:creator><pubDate>Mon, 11 May 2020 06:06:43 GMT</pubDate></item><item><title><![CDATA[Reply to store() function on Sat, 09 May 2020 06:46:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/2">@wassim</a> Hey Wassim, would you say that this is a better solution to using localStorage.getItem('name’) and localStorage.setItem('name’), in most instances? And would it work in as the source, when the source type is formula when enabling a cloud backend trigger?</p>
]]></description><link>https://community.appdrag.com/post/61</link><guid isPermaLink="true">https://community.appdrag.com/post/61</guid><dc:creator><![CDATA[Konrad Hylton]]></dc:creator><pubDate>Sat, 09 May 2020 06:46:10 GMT</pubDate></item><item><title><![CDATA[Reply to store() function on Mon, 04 May 2020 11:13:35 GMT]]></title><description><![CDATA[<p dir="auto">Brilliant, thank you!</p>
]]></description><link>https://community.appdrag.com/post/4</link><guid isPermaLink="true">https://community.appdrag.com/post/4</guid><dc:creator><![CDATA[Daniel Mulroy]]></dc:creator><pubDate>Mon, 04 May 2020 11:13:35 GMT</pubDate></item><item><title><![CDATA[Reply to store() function on Mon, 04 May 2020 09:52:29 GMT]]></title><description><![CDATA[<p dir="auto">Hello Daniel,</p>
<p dir="auto">Sure, let me explain to you how <strong>store</strong> function works on AppDrag.<br />
First of all it is used to read and write to the <strong>local storage</strong> and to fallback on cookies if local storage isn't available on a device/browser.</p>
<p dir="auto">The prototype is : <strong>store(key, value, onlyCookie);</strong></p>
<p dir="auto"><em>To write to the local storage (with cookie fallback) :</em></p>
<pre><code>store("name", "John Doe");
</code></pre>
<p dir="auto"><em>To get a value from the local storage (or cookie if it fell back) :</em></p>
<pre><code>store("name"); // returns "John Doe";
</code></pre>
<p dir="auto">You can force to use cookies only with the optional third parameter.</p>
<p dir="auto"><em>To write a cookie :</em></p>
<pre><code>store("name", "John Doe", true);
</code></pre>
<p dir="auto"><em>To Read a cookie (note that we use undefined because we want to get a value and don't want to write anything :</em></p>
<pre><code>store("name", undefined, true); // returns "John Doe";
</code></pre>
]]></description><link>https://community.appdrag.com/post/3</link><guid isPermaLink="true">https://community.appdrag.com/post/3</guid><dc:creator><![CDATA[Wassim]]></dc:creator><pubDate>Mon, 04 May 2020 09:52:29 GMT</pubDate></item></channel></rss>