Skip to content

Add sub-categories in a table with an option to change them #10664

Answered by melohagan
BismaIftekhar asked this question in Help
Discussion options

You must be logged in to vote

Hey @BismaIftekhar

This is an interesting use-case - thank you for the diagram!

It was fairly complicated, but I was able to come up with a solution using the community Super Table by @poirazis in combination with the Budibase JSON data type.


Step 1 - Create the Data table

Create a new table called Scores to keep track of the marks for each attribute, i.e. Attendance, Behaviour, Courses.

This tutorial won't cover relationships, but most likely you would want to link this table to your Teachers table.

Create a JSON type column called Attributes. Click Open schema editor and provide the following JSON schema:

{
  "name": "Courses",
  "subcat1": "Math",
  "submarks1": 20,
  "subcat2": "English

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@BismaIftekhar
Comment options

Answer selected by BismaIftekhar
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
forms app-state Using the Update State action in Budibase bb-plugins bb-components
2 participants