Hi there,
It was already adressed briefly but without an answer (Thread 1578)
I'm building an interface for an admin gui of a web shop, where you can edit all the data.
Since there are multiple users, users potentially might be logged in the whole day and never refresh the site, so they won't get any updates other users entered.
Scenario:
User1 edits the list of distributors.
User2 is entering a new product (where he can select a distributor), but since his datasource of distributors was loaded before User1 edited these, he won't see the changes.
In the worst case he wont ever see the distributor unless he hits reload in the browser.
Generally I don't destroy any "pages", once loaded they stay (using tabs or a navigation). While it's no problem with users searching through lists (a fetch needed), it is with small datasources where the whole List is loaded only once.
Users might sit right next to each other and wonder why they don't see the same data.
Unless i provide an "refresh" button they can only reload the whole app to refresh the lists, since "paging" is in fact only displaying another tab an there is no server roundtrip involved.
In an traditional webapp, a reload of a page or simply navigating would solve that problem.
What do you suggest to solve such problems?
The solutions I've come up with:
- auto refresh. Not very beautiful and for a certain amount of time the data is out of date
- refresh button. Would need the users to actively do something.
- reload datasources everytime a page is accessed.
- server push notification. Sounds quite cool but no experience so far
- ...?
when i think about it: is it a good idea to use a datasource "distributor" for the editable list AND the mask where users can enter products?
If I'm to use two DS, the problem even arises for a single user, since his second DS won't reflect the changes until I reload it. Indeed, it's simple but I need to handle all the links explicitly.
It was already adressed briefly but without an answer (Thread 1578)
I'm building an interface for an admin gui of a web shop, where you can edit all the data.
Since there are multiple users, users potentially might be logged in the whole day and never refresh the site, so they won't get any updates other users entered.
Scenario:
User1 edits the list of distributors.
User2 is entering a new product (where he can select a distributor), but since his datasource of distributors was loaded before User1 edited these, he won't see the changes.
In the worst case he wont ever see the distributor unless he hits reload in the browser.
Generally I don't destroy any "pages", once loaded they stay (using tabs or a navigation). While it's no problem with users searching through lists (a fetch needed), it is with small datasources where the whole List is loaded only once.
Users might sit right next to each other and wonder why they don't see the same data.
Unless i provide an "refresh" button they can only reload the whole app to refresh the lists, since "paging" is in fact only displaying another tab an there is no server roundtrip involved.
In an traditional webapp, a reload of a page or simply navigating would solve that problem.
What do you suggest to solve such problems?
The solutions I've come up with:
- auto refresh. Not very beautiful and for a certain amount of time the data is out of date
- refresh button. Would need the users to actively do something.
- reload datasources everytime a page is accessed.
- server push notification. Sounds quite cool but no experience so far
- ...?
when i think about it: is it a good idea to use a datasource "distributor" for the editable list AND the mask where users can enter products?
If I'm to use two DS, the problem even arises for a single user, since his second DS won't reflect the changes until I reload it. Indeed, it's simple but I need to handle all the links explicitly.
Comment