Import Handwritten List App

Hi Everyone. I created a sample app that will capture a handwritten list and then import each item as a record into a table. This is great for those or those who like to create handwritten lists while brainstorming a list of tasks, but want to easily convert them into itemized lists to track digitally.

3X_a_2_a28f722a5363daedb6a7c68113fd77fdad8511e6.gif

https://www.appsheet.com/samples/Vacation-and-Team-Outages?appGuidString=fb43b700-469c-4a73-a519-09e...

Try it out with your own list or use this image as an example:

Important!
Because this sample app uses the API functionality, you will need to make a copy of the app to test out the functionality.

After you copy this sample you will need to update the API ID called in the workflow to your new application name. Change the App ID by selecting your app name from the dropdown menu.

How it works

This app was made with 3 tables. Input, Scan and Qty List.

List: Contains the list of tasks

Scan Data: Records the images of the handwritten lists

Qty List: Used to create a workflow that loops through each list of handwritten items. The max number in this list is the most items your app can handle. ie. If you table stops at 10, then your app will only generate 10 items then stop.

Next, Scan Data table columns were updated/added:

  1. OCR text columnโ€™s initial value was set to extract text from the Camera scan image.

  2. OCR Text List virtual column added: The formula converts the handwritten image into text, then cleans the text by removing characters such as ; , and then converts the text to a list if there is a line break in the text. The result is a list of items from the image.

  3. Qty List virtual column added: This column creates a list of numbers 1 to n based on how many items are in the OCR Text List.

  4. List Count columnโ€™s initial value is set to count the number items in the OCR Text List.

Creating the Looping Workflow

Now that the app can convert an handwritten list and store it as a list of text in a column, we need to create a way for the app to create a record from each item in the list.

An Adds_Only workflow that targets the Scan Data table is created and setup to with a webhook action. The webhook sends an Add row post to the List table. The body of the POST uses the Start function to loop through each number in the Qty List column creating a new record for each action. As a result we are able to keep track of each iteration of the loop and the workflow will stop once the loop reaches the max number in the Qty list column.

3X_9_c_9c6c744561011043a9e5300da1763626123f1246.png

Lastly, since the workflows will happen on the server side I set an action to force a sync on save. This preserves the UX. If you do not do this the user will not see their list of items under the background sync completes.

There are several other small UX tweaks that were placed to prevent the user from doing things that would cause the OCR to break. For example, the OCR text function runs asynchronously in the app. This means unlike virtual columns which update as soon as data changes, OCR text can take up to 5 seconds to process. As a result, I placed some restrictions on form save to prevent users from saving a form with an empty OCR list.

Let me know if you have any questions. Please try it out and would love to see any improvements to this idea!

11 13 1,872
13 REPLIES 13

Interesting! I had a little trouble getting it to work, though. The scan seems to have successfully read my hand writing โ€“ in Japanese as well as in English!

3X_6_9_695f2e4fbdaad6ed5e8995a7544027c48270ed13.png

In both languages, however, it didnโ€™t always get the lines right.

Initially, I failed to follow the directions properly and to add my app ID, as you instructed. Perhaps thatโ€™s why I never got a proper menu, although I see that data has been written to my sheet.

It would be nice if there were a โ€œthis app IDโ€ expression or function that we could use for sample apps like yours. I understand that most creators are producing apps that will be used on a paid plan. In such cases, only the creator needs to worry about the app ID. If, however, one wants to make a prototype app that many people can copy and use immediately, the lack of a โ€œthis app IDโ€ expression could become a significant impediment to widespread adoption.

I understand that AppSheet is primarily interested in paid plans (which, of course, is your bread and butter as a business) but I think that increased support for free sample / prototype apps may help more people learn about the platform and thereby eventually increase the number of paying customers. Thanks!

Iโ€™ve often thought that myself when copying apps and modifying each version for a particular client. The AppName() would be useful, as well.

Hi! I think you probably know about this now but @tsuji_koichi later taught us that this is possible after all:

Iโ€™m not sure if it was already possible at the time we were discussion this.

Try:

CONTEXT("AppName")

Thanks @Steve! Sorry for my late response. Iโ€™ve been away from the community for a while. I see in your article that, as Glinda might say, โ€œweโ€™ve always had the power.โ€

This is good news for me because I think I will use the function to make it possible for people who download my sample app to be able to view their images in the Google spreadsheet automatically:

=CONCATENATE(โ€œhttps://www.appsheet.com/template/gettablefileurl?appName=โ€, ENCODEURL(โ€œAppName-Account#โ€), โ€œ&tableName=โ€, ENCODEURL(โ€œTableNameโ€), โ€œ&fileName=โ€, ENCODEURL(+ImageColumnCell))

Thanks again!!

Thatsโ€™ cool @Kirk_Masden
Donโ€™t forget to disable the โ€œRequire Image and File URL Signingโ€

Right!! I just did that recently!

Nice! Thanks for sharing, @Rich.

I like how youโ€™re looping through your own VC instead of a list of keys with the <<Start expression. Very creative.

Hi @Rich very cool thank you.
Why are you not using an Action to add all the List Items to the table? You would not have to force a sync.
Iโ€™m pretty sure there must be a reason why you choose workflow

@Fabian you can certainly use an action to accomplish this too! Honestly, when I thought of this idea I got creatively locked into using a workflow for this demo and didnโ€™t even consider an action. Now that you bring it up makes me want to update the app.

I think everyone should be aware that OCR requires an enterprise package AND the โ€œMachine learningโ€ add on. This is not a โ€œcheapโ€ feature to put into productionโ€ฆ

I think that in the tips and tricks section we should call out what plan package you need in order to roll it into production.

@Grant_Stead Iโ€™m using OCRTEXT() with different PRO Plans and it is working fine. You mean we need business plan?

According to their pricing pageโ€ฆ

Top Labels in this Space