Calculate End Date for Treatment Plan (weekdays only)

This is one of those questions asked on the forum that you think, that should be easy enough to figure out, but when it comes down to it, there was a fair bit of thinking involved. The developer wanted to set a start date for a treatment plan (which had to be a weekday), then enter the number of days required for the treatment, and to then work out the end date for the treatment, which could only take place on weekdays…

 

Continue reading “Calculate End Date for Treatment Plan (weekdays only)”

Export CSV data (multiple data) to Google Sheet

From our lists in Appinventor we create suitably formatted strings for each “column” (e.g. ID or NAME) and send the entire string to the webapp as a single parameter. You can of course pull in a csv file using the file component.
 

Continue reading “Export CSV data (multiple data) to Google Sheet”

Decode a simple JSON using the Webviewer, webviewstring and some javascript

At the time of writing, the built in JsonTextDecode block:

returns a simple json in alphabetical order – by the key, as opposed to the same order in which it is presented. The method below uses a webviewer, the webviewstring, and some javascript to return a csv row string which can then be converted to a list in AppInventor Continue reading “Decode a simple JSON using the Webviewer, webviewstring and some javascript”