Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actualize and fix code example in Creating Chart with Incremental Data Update #764

Open
lovtsovaik opened this issue Oct 30, 2020 · 0 comments

Comments

@lovtsovaik
Copy link

lovtsovaik commented Oct 30, 2020

Environment

Description of the bug or enhancement

§2.6.5

  1. Actualize steps in point 4 according to the new version of the platform
    Designer tab -> Component Palette (?)
    Non-visual components -> Fasets

  2. The onTimer field is deprecated, needs to subscribe to TimerActionEvent in the screen controller instead (see https://doc.cuba-platform.com/manual-7.2/gui_Timer.html)
    So the example needs to be updated

  3. Typo in code: ;; in updateChart function (in point 5 and 6)

  4. Not working functionality:

When the queue size exceeds 10 items, the oldest item is excluded.

add itemsQueue.add(initialValue); after ordersDc.getMutableItems().add(initialValue);
and replace ordersDc.getMutableItems().add(item); on ordersDc.getMutableItems().remove(item);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant