I also have an other table (Participants), where I have next to the name a counter (számláló) as well, like this:
I’d like to have in the Expenses table the “számláló” numbers.
For example “Paidby_P2” in the first row is “Robi”, so it should be 4, and for the 2nd row (Mikes) it should give 3.
Thx, I could make it work.
I’m new with Glide, so I am just playing around. It was just a part of my tables, there are already lots of columns. I hope I can continue my plan thx to your help.
I’ll try to describe what I can’t do and I hope you can help me.
I’d like to have:
Events (it has a name and it has also participants (selected from users)
Expenses (relate to the event, location, spent amount, paid by (selected from event’s participants) and I also would like to define who spent how much)
So, I’d like to create an Event and either with click on the event, or separately on the Expenses Page add a new expense (but it should be related to the Event). After that they need to define the Paid Amount, and also who paid it (could be multiple persons). After that it should be defined who paid how much.
I don’t want to go further, I’ll be more than happy if I could manage this all.
On a summary page I’d like to see by events who spent how much and what was the total.
I made an Events table, an Expenses table and have the Users table.
With this setup am I able to have that, or do I need more tables with more relations?
I think you should have a form to add an event, and leave the expenses and payments later.
In the details view of an event, have a collection/form to add an expense, and in an expense, have a form to add payments related to that expense. You can bring over IDs for relations inside the form using special values.
thanks for that, most of the things are the same how I built up this previously. The only thing is different is the Expense payments table. That makes sense, thank you.
But how can I add multiple rows to this table (same Expense ID but different User IDs)?
I mean at once.
Because multiple participants can be selected as payers, I’d like to name them and give the paid amount to them. It’d be nice not to make it step-by-step with form.
If you would still need to type things out, I would suggest using a Form Container. You don’t need to click and open a form, it’s a component right on the screen, and you don’t need to leave the screen. Just choose a payer and an amount, then click add, then do the next one. Is that good enough?
Hmmm, I think I might still missing something.
For example: I have 5 participants (1,2,3,4,5) to an event.
For that event I create an expense about 50 Eur. 50 Eur was paid by participant 2 and 5. I’d like to define who paid how much.
With the Form Container I can’t get the names only for 2 and 5. And I’d like to be sure that the given numbers (paid amount each) are not greater or less than 50 Eur.