Hi to all. This is my first question in the forum, so if this allready been answered my apoligues!
Im creating an app that allows several staff members to schedule events on several diferent rooms (for several diferent days).
Everyone at the event (participants) will signin and schedule a room at almost the same time (lots of peolpe at the same time)
My problem is that two staff menbres can schedule the same room for the same hour and it only becomes aparent AFTER both of them syncs on saveโฆ
How can i prevent this from happening? Any workaround? Can the app check the server before save? This is a major problem since it makes the app useless!!!
Thanks in advance Jorge
PS: using goggle sheetsโฆ
Chiming in @Aleksi_Alkio Translate
Hi Levent. Didnโt undestand what you meanโฆ
@Mary_Jane_Pender Thanks for your idea Mary Jane! Iยดll try it!
Jorge
@Aleksi_Alkio Thnaks!!! Translate
Iโm afraid we are not able to generate a totally new row automaticallyโฆ not yet.
@Aleksi_Alkio I think saw a video where they (appsheet) demonstrates
how to pick data from a table and copied to another tableโฆ Iโm i wrong?
Any way, if i created a field that is updated with some useless information, wouldnโt that push for an sync?
Thanks Jorge
@Jorge_Santos you can copy and push row data to a form to edit it only. You cannot copy/create row(s) in another table silently.
Thanks!! i really understood that in a wrong wayโฆ Well, better than nothingโฆ
Can i at least delete that row from the original table once i push it to a form? (trought the same actionโฆ)
Thanks!!
@Jorge_Santos it will copy or update the data into an another table, but it wonโt sync that row in a same way if you open and save it. For exampleโฆ If you have app formulas in that record, it will not trigger that app formula.
Jorge,
This is a problem when two or more people book at the same time.
Here are some process suggestions that might help: 1)
You might be able to manage this by having users first do a Sync to pick up the latest bookings and then create a reservation first, save and sync
Then they can come back to the bookings table and open the reservation for Edit and thus complete the booking knowing that they have the room and date/time reserved. 2)
Assign each staff member to a set of rooms or a set of times that are their responsibility for booking.
Then they canโt clobber one anotherโs events.
@Jorge_Santos my business partner @Aleksi_Alkio
(he is a moderator also) is an expert in this kind of booking apps. He can show you some techniques on how to prevent the double bookings.
Hey thatโs great Levent โ could you get him to post his ideas here.
I am always looking for other methods and maybe better ideas.
thanks,
m.j.
Wellโฆ actually you canโt be 100% sure about this because you donโt have control for that. Normally Iโm adding a validation that if the duration between NOW() and last time synced is more than 1 minute, you canโt do anything with the form. It forces the user to sync the app first.
And after that, we normally check the situation from the backend, and if there is a problem, the script sends an alert that there is an duplicate.
Hi Aleksi.
Thanks for your ideia. Great one! Only one questionโฆ How do i get i last sync time & date so i can do a Validation?
Thanks! Jorge
Create additional dummy table with two rows (header and datarow) and ID column. Generate the table and add a virtual column with the app formula NOW(). Every time you sync the app, it will update this value as well and you can use it for validation.
One more thing.
Iยดve been looking into Actions, and discoverd that i can create rows with data (in another tabel).
Is it possible that the app syncs when insert a new row? (it is a change after all, and if i have automatic updates select it should workโฆ)
thanks Jorge
User | Count |
---|---|
14 | |
11 | |
9 | |
7 | |
4 |