Mutiple values in one cell

Hello everyone,
i am attempting to make some sort of settings page for my app. I have a number of rows that are labelled notifications, accessibility and other things you may find in a settings app. The only problem is that inside these cells i need multiple Booleans such as turn on email notifications, mobile notifications and more. Using the array column just uses the same values for all the rows if i try enter something into the array which is unhelpful.
I also attempted to use Row IDs to make a unique REL for each subsection of notifications and such. However, I then have multiple rows for each Row ID which the app does not let me use the second or third row of the that Row ID. Does anyone have a solution. I apologize if it not explained the best but i will elaborate if needed.

You may want to use boolean columns in the user’s table for this.

1 Like

Thank you for your responce. But in order for each boolean to appear in the correct section should i use Row IDs? I am not sure how to make sure it appears in the correct section as i am already using Row ID for each section, and now I need more sub sections for each thing to appear in.

This feels overly complicated to me. I think you only need boolean columns in your user table, then have a screen with corresponding switch components. One switch for each boolean. That should be it. Your screen would only be showing the detail screen for one row for the signed in user. Not sure what you are trying to do with relations and row IDs.

2 Likes

Not sure what you mean by sections. See Jeff’s response.

3 Likes

I see, my explanation wasn’t great. To give an example, if you were to go into settings in google, then click you and google, you can see some sections labelled Customize your Chrome profile and such, which lead you to another section. That is what I am trying to do, create a section in another section. In short, i am basically asking is there is a way to put multiple ‘cells’ inside one cell.

I think I’d still just use buttons or something similar to link to new screens for the same user row (This Item), and then design each screen just for the values in the user row that you want to edit.

I think I understand what you are saying. You basically want to have a separate table set up as multiple rows of categories for each setting item, and also have subcategories of settings under each category, and then dynamically map it to a specific user. While I’m definitely sure it’s possible, I think it’s overkill and probably difficult to maintain.

Just to give a real world example, I have a list of students in my app. When I select a student, I am taken to the detail screen for that student. I also have 4 different sections that I want to navigate to for that student, such as tests, competitions, etc., and see different information in the subsections for each student. What I do is present each section as a button (actually an action row component in my case). When I click on a button, the action is ‘Show New Screen’ → ‘This Item’ which takes me to a new screen still linked to that same student row. In that new screen, I only add components relative to that section.

2 Likes

Thanks for your patience, let me give it a try and come back to you.

1 Like

Thank you, I was over complicating it, i could even do the subsections without having to use any relations. Thanks for you help.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.