Need help with TinyDB savings logic and updating dashboard balances in my App

Hi everyone,

I am building a member management and personal finance tracker app using MIT App Inventor.

I have stored member data in TinyDB with the prefix "Mem_". Currently, the total member count displays correctly on my summary dashboard (e.g., showing "2জন"). However, the financial balances (Total Balance, Bank Balance, Cash Balance, etc.) on the dashboard are not updating or adding up when a new entry is made.

Could someone please check my logic or guide me on how to properly sync the global variables and TinyDB stored values with the dashboard summary labels whenever a new member/income entry is saved?

Any advice or example blocks would be greatly appreciated. Thank you!

Please provide you relevant blocks, other images or example aia that demonstrate your problem, we cannot really help otherwise.

Here are my blocks and the AIA file for review.

Where ?

Sorry for the confusion! Here is the AIA file and relevant blocks for my project. Please have a look and guide me on how to fix the dashboard calculation issue.

Sorry for the confusion! Here is the AIA file and relevant blocks for my project. Please have a look and guide me on how to fix the dashboard calculation issue.

Both images are unreadable

This URL allows you to open AI2 to the Project List, without opening any project.
http://ai2a.appinventor.mit.edu/?autoload=false
From that list, you can request Exports of Projects without trying to open them.

If you require repair assistance, upload the aia file here.

Hi everyone,

I am working on an app using MIT App Inventor. I need help setting up the blocks for my app.

What I am trying to do:

  1. Switch between different sections (Home, Income, Expense, More, Members) using Navigation Buttons on a single screen.

  2. Save Income, Expense, and Member data into TinyDB.

  3. Calculate and display Total Balance, Total Income, and Total Expense dynamically on the dashboard.

I have attached a single composite image of my layout. Could someone please share an example image or block combination for this setup?

Thank you in advance!

  1. Switching between arrangements
    https://groups.google.com/d/msg/mitappinventortest/K-zAr2X3nio/qzrDox_pBgAJ

  2. Saving Data
    Given you are using tinydb for this, I would setup a "log" for each transaction and then adjust the "balance" for each member.

  3. Calculate
    You would need to fetch all balances for each member and total each element (Income/Expenses etc.) then display these on your dashboard

While you can use lists, it might be easier to use a dictionary for each member, making it easier to return data from each member, and totalise...

You didn't show us the data model, how you keep details about each transfer of money to support later summarization by each dimension (member, type, datetime)

I don't see any work here on distinguishing details about transactions.

Pull in the Clock component to get access to date manipulation blocks.

Also check out the NameSpace feature of TinyDB, which can add a dimension to your TinyDB access.

I don't see any effort to use lists or dictionaries for the detail transactions..

Title: Need help with MIT App Inventor blocks for Monthly Summary (Income, Expense, Balance) & Member Entry with TinyDB

Hello Everyone,

I am building a Personal Finance / Accounting app using virtual screens (VerticalArrangement containers and dynamic tab navigation).

I need assistance with creating the logic/blocks for the following features using TinyDB:

  1. Current Month's Summary Dashboard:

    • Calculate and display Total Income of the Current Month (CurrentIncome).
    • Calculate and display Total Expense of the Current Month (CurrentExpense).
    • Automatically update the Remaining Balance (CurrentRemaining = CurrentIncome - CurrentExpense).
    • Note: The data should automatically filter or reset based on the active month.
  2. Member Entry & Storage Logic (MemberSection):

    • Save new member details (Date, Name, Address, Amount/Rate) into TinyDB as a list.
    • Fetch and display the list of members dynamically in a ListView or dynamic layout.

If anyone could share an example block setup, procedure logic, or a sample AIA snippet for storing and filtering monthly finance transactions with TinyDB, it would be greatly appreciated!

Thank you in advance for your guidance!

This sounds familiar.

It probably should be merged into another thread.

Do you have a requirement to allow online access to members?

Tinydb only runs on one phone at a time.

You might need a central data store like Google Sheets for that.

If you need introduction to lists

What is Bkash ?

Only my phone