im trying to make a pay pr seat function so my user can invite there employees to my application also.. so i have maked a field under my user called seat counter with a type of number there will count up with +1 for each seat bought
and to that i try to make an RG there can show a seat for each count that field have and then afterward make some condition for what color the seat should be depending on an employees status
but i cant figure out the logic in this.. do anyone have an idea how to get this to work?
Oh.. think i have mis explained ny self.. the admin part is just so users there has the user type “employee” can see the data from the admin user/the company
What i want is that the admin user has a field called seat counter/allocation there tells how many seats the admin user have available.. if the value in that field is 2 there is 2 seats available and he can have 2 employee user with the status of active
So what source i want to find is that the field “seat counter” there has a value af example 2 will show 2 seats in the RG and if the value is 5 it will show 5 seat in the RG
Try with the “List of numbers” plugin. That way you’ll be able to create a List of numbers from the seat count of the admin.
Then you’ll have to set that list of numbers in the RG as a data source and it will create the # of rows accordingly.
hi @ramaarana7
thank you i tried to dowload that and set the seat counter as being the source in the list of number.. but i cant choose that source in the RG
now it shows the amount of seats as the seat counter field says.. but then i want so that when a employee have the status of active 1 seat turn green as a symbol of the seat is not empty and when they are empty turn them red
because with the condition im using now there are all green even tho i only have 2 active employees