Commit df4f4e8a authored by Susan Rati Lane's avatar Susan Rati Lane Committed by Jeffrey Schiller

Documentation Updates

* Make help for neg block match the actual neg block Issue ##1368
* Refine TinyDB documentation
* Fix link for tinywebdb server
* Add TinyDB namespace documentation

Change-Id: I7c844ce85ada92ab63f46d747ac1d7782506bfa1
parent eec2fcf9
......@@ -231,7 +231,7 @@ jQuery.extend(Drupal.settings, {"basePath":"\/","pathPrefix":"","ajaxPageState":
<li><a href="#max">max</a></li>
<li><a href="#sqrt">sqrt</a></li>
<li><a href="#abs">abs</a></li>
<li><a href="#neg">-</a></li>
<li><a href="#neg">neg</a></li>
<li><a href="#log">log</a></li>
<li><a href="#e">e^</a></li>
<li><a href="#round">round</a></li>
......@@ -328,7 +328,7 @@ jQuery.extend(Drupal.settings, {"basePath":"\/","pathPrefix":"","ajaxPageState":
<h3 id="abs">abs</h3>
<p><img src="images/math/abs.png" /></p>
<p>Returns the absolute value of the given number.</p>
<h3 id="neg">-</h3>
<h3 id="neg">neg</h3>
<p><img src="images/math/neg.png" /></p>
<p>Returns the negative of a given number.</p>
<h3 id="log">log</h3>
......
......@@ -615,12 +615,17 @@ none
<h2 id="TinyDB">TinyDB</h2>
<p>TinyDB is a non-visible component that stores data for an app. <p> Apps created with App Inventor are initialized each time they run. This means that if an app sets the value of a variable and the user then quits the app, the value of that variable will not be remembered the next time the app is run. In contrast, TinyDB is a <em> persistent </em> data store for the app. The data stored in a TinyDB will be available each time the app is run. An example might be a game that saves the high score and retrieves it each time the game is played. </p> <p> Data items are strings stored under <em>tags</em>. To store a data item, you specify the tag it should be stored under. Subsequently, you can retrieve the data that was stored under a given tag. </p><p> Each app has its own data store. There is only one data store per app. Even if you have multiple TinyDB components, they will use the same data store. To get the effect of separate stores, use different keys. You cannot use the TinyDB to pass data between two different apps on the phone, although you <em>can</em> use the TinyDB to share data between the different screens of a multi-screen app. </p> <p>When you are developing apps using the AI Companion, all the apps using that Companion will share the same TinyDB. That sharing will disappear once the apps are packaged and installed on the phone. During development you should be careful to clear the Companion app's data each time you start working on a new app.</p></p>
<p>TinyDB is a non-visible component that stores data for an app.
<p>Apps created with App Inventor are initialized each time they run. This means that if an app sets the value of a variable and the user then quits the app, the value of that variable will not be remembered the next time the app is run. In contrast, TinyDB is a <em> persistent </em> data store for the app. The data stored in a TinyDB will be available each time the app is run. An example might be a game that saves the high score and retrieves it each time the game is played. </p>
<p>Data items consist of <i>tags</i> and <i>values</i>. To store a data item, you specify the tag it should be stored under. The tag must be a text block, giving the data a name. Subsequently, you can retrieve the data that was stored under a given tag. </p>
<p>You cannot use the TinyDB to pass data between two different apps on the phone, although you <em>can</em> use the TinyDB to share data between the different screens of a multi-screen app. </p>
<p>When you are developing apps using the AI Companion, all the apps using that Companion will share the same TinyDB. That sharing will disappear once the apps are packaged and installed on the phone. During development you should be careful to clear the Companion app's data each time you start working on a new app.</p>
<h3>Properties</h3>
<dl>
<dt><code>Namespace</code></dt>
<dd>Namespace for storing data.</dd>
<dd>Namespace for storing data. All TinyDB components in the same app with the same namespace property access the same data.</dd>
<dd>Each namespace represents a single data store that is shared by the entire app. If you have multiple TinyDB components with the same namespace within an app, they use the same data store, even if they are on different screens. If you only need one datastore for your app, it's not necessary to define a namespace.</dd>
</dl>
<h3>Events</h3>
......
......@@ -484,8 +484,8 @@
<ul>
<li>
Download App Engine for Python at
<a href="http://code.google.com/appengine/">
http://code.google.com/appengine/
<a href="https://cloud.google.com/appengine/docs/standard/python/download#appengine_sdk">
https://cloud.google.com/appengine/docs/standard/python/download#appengine_sdk
</a>
. After installing it, run the
GoogleAppEngineLauncher by clicking its icon.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment