Seeking advanced capabilities for data recording and relating in custom states

I want to save temporary data in custom states that can have multiple fields and I want to avoid reading from and writing to the database in this case (for performance).
For instance, I would like to save a user in a custom state, and in addition to that I want to save how often the user has clicked a certain object. I need to be able to clearly identify which user has clicked how often, which means the number of clicks and the user ID must be connected. With the database this would easily work because I would simply create a datatype that holds 2 fields, user and number of clicks. However, this seems difficult to implement in custom states: if I record static data in them (i.e. not loading/saving “things” from the database in them), such as numbers or text, it seems I cannot record connected data entries.

My question to the community is:

  • is there any workaround/procedure/function with which this can be accomplished that I have not noticed yet? For example, can I somehow make lists within lists in bubble?
  • if it actually doesn’t work, is there a plugin that can add the needed functionality?

Thanks in advance!

1 Like

Hi, I’m not aware of a way to use custom states like you are referencing.

However, if this is recording a user’s clicks, there’s only one user that is the “current user”, no? So any clicks you are temporarily capturing via a custom state are for that user.

Hi Ed,

You are right about the user amount, but I used a simplified example above. In my app, one user generates multiple data instances to which multiple other data instances have to be related.

You might be able to get there partway with custom states by getting creative with what is stored where.

Also I recall others posting on this issue in the past. If you dig up those posts you may find a workaround or plugin.

This topic was automatically closed after 70 days. New replies are no longer allowed.