1b.app
Link copied -

Automatic page refresh

Can we do this here https://univer.1b.app/desktop/ . Make a check. Every 5 seconds check if the status has changed and if it has changed - refresh the page. If it works out, then take into account another focus, they say if it fills in the info, then do not run the script, if there is no focus on the field, then do not run the script.
Can this be done and how many hours does it take?
Original question is available on version: ru

Answers:

Is it in the admin panel or in the personal account? If the order is opened in a popup (from the calendar), reload the popup? Maybe it's better not to reload the popup, but throw an error "The order has changed status, reload the page to view the current data" or something like that?
12.07.2022, 18:11
Original comment available on version: ru


anonymous hamster
OneBox production wrote:
Is it in the admin panel or in the personal account? If the order is opened in a popup (from the calendar), reload the popup? Maybe it's better not to reload the popup, but throw an error "The order has changed status, reload the page to view the current data" or something like that?

In a personal account. Although it would not hurt for the admin panel, but for now it is necessary for the personal account)
12.07.2022, 19:24
Original comment available on version: ru

what about the error? Checking whether the user writes something or not is an unreliable thing, because I can fill in the field and then remove the focus from it and the page will be right away. Unreliable. And it is difficult to check whether all fields were changed or not in the order, because 20+ different blocks can be displayed there.
12.07.2022, 19:42
Original comment available on version: ru


anonymous hamster
OneBox production wrote:
what about the error? Checking whether the user writes something or not is an unreliable thing, because I can fill in the field and then remove the focus from it and the page will be right away. Unreliable. And it is difficult to check whether all fields were changed or not in the order, because 20+ different blocks can be displayed there.

The error won't work. It needs a page refresh. Otherwise, maybe he fills in the data at the wrong time and in the wrong place :) And if the status has already changed, then that's it, it makes no sense to write in the fields that are displayed. You can even ignore the focus.
12.07.2022, 20:51
Original comment available on version: ru

Well, then let's just reload the page and that's it) 3 hours to make such a block. If the user is viewing the task and the status of the task does not match the current status of the task, the page will be reloaded
13.07.2022, 09:58
Original comment available on version: ru


anonymous hamster
OneBox production wrote:
Well, then let's just reload the page and that's it) 3 hours to make such a block. If the user is viewing the task and the status of the task does not match the current status of the task, the page will be reloaded

OK. Just so that somewhere in the settings of the lx it would be possible to set this for everything by default.
20.07.2022, 17:05
Original comment available on version: ru

Well, you also have a task view page. There you can add a block that will reload it, subject to a change in status. If it's not necessary, you remove the block and that's it, it doesn't work. Bill?
20.07.2022, 17:07
Original comment available on version: ru


Block "Reload the page if the process status has changed"
27.07.2022, 15:39
Original comment available on version: ru

https://univer.1b.app/app/contact/17/ go here https://univer.1b.app/client/order/129/ on behalf of the client and change the status here https://univer.1b accordingly .app/129/
Automatic update does not work ( da hong pao
04.08.2022, 12:34
Original comment available on version: ru

rechecked - everything works as it should
12.08.2022, 12:42
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment