Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Counter in browse screen to manage waiting room.

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
yvesf
Posts: 315
Joined: Sun Mar 14, 2021 8:48 am
Location: Geneva
Has thanked: 87 times
Been thanked: 11 times

Counter in browse screen to manage waiting room.

Unread post by yvesf »

I would like to have a counter in a browse screen that calculates the waiting time for a client.
A client comes to an appointment. When the client arrives in the waiting room, the assistant mentionned that the client is arrived and a counter starts.
We would lilke to sort client list by waiting time to limit confusion in the waiting room. Having that information directly accessible and be able to sort this column would be an elegant solution. Any idea about how to perform that ? thx for your help.
kev1n
nuBuilder Team
Posts: 4304
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Counter in browse screen to manage waiting room.

Unread post by kev1n »

By counter you mean the difference (in minutes) between the time now and the time the customer arrived?

Add a calculation in a Display column like

Code: Select all

TIMESTAMPDIFF(MINUTE, `cus_arrived_at`, NOW())
To refresh a Browse form in a certain interval, look here.
yvesf
Posts: 315
Joined: Sun Mar 14, 2021 8:48 am
Location: Geneva
Has thanked: 87 times
Been thanked: 11 times

Re: Counter in browse screen to manage waiting room.

Unread post by yvesf »

Perfect answer, thx Kev1n
Post Reply