TinyWebDB
Last Updated On 2021-07-16
Version 2MinSDK 7Tutorial Video
Non-visible component that communicates with a Web service to store and retrieve information.
Properties
You can set the below properties in the UI part of the builder.
- ServiceURL - it's a string value which is set to http://tinywebdb.appinventor.mit.edu by default.
Block Properties
You can set the below blocks properties in the blocks section of the builder.
ServiceURL
The URL of the web service database.
Methods
You can set the below method blocks in the blocks section of the builder.
GetValue
Sends a request to the Web service to get the value stored under the given tag. The Web service must decide what to return if there is no value stored under the tag. This component accepts whatever is returned.
StoreValue
Asks the Web service to store the given value under the given tag
Events
You can set the below event blocks in the blocks section of the builder.
GotValue
Indicates that a GetValue server request has succeeded.
ValueStored
Event indicating that a StoreValue server request has succeeded.
WebServiceError
Indicates that the communication with the Web service signaled an error.