You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We see from time to time questions from users about how to pass parameters to screens.
After taking a side look to this section, my personal opinion that it needs improvements:
I don't see clear enumeration that "you can do it by 3-4 the following different ways, pick the most convenient for you"
No sub-sectioning. The narrative quickly moves from one way to pass params to another one without full explanation. You need to fully and carefully read this chapter 2 times to understand all options.
No complete code samples. Working code samples is a must have! User should be able to copy-paste the code without careful reading. E.g. there are no example of screen controller code for "screen.setFancyMessage(message);" calling sample. Also generally you should start with code sample of the screen which is being opened first, because this is how most people develop code (valid first).
No mentioning of @WindowParam, though even CUBA developers still use this way, see this recently edited code: com.haulmont.reports.gui.report.history.ReportExecutionBrowser#filterByReports
The text was updated successfully, but these errors were encountered:
Also mention or give link to separate section with samples how to add screen parameters for standard actions (CreateAction, EditAction, PickerField.LookupAction).
Also mention that you can also open screens by using screen facets (ScreenFacet, LookupScreenFacet etc)
A screen can be opened from the main menu, by navigating to a URL, by a standard action (when working with browse and edit entity screens), or programmatically from another screen.
Environment
Description of the bug or enhancement
We see from time to time questions from users about how to pass parameters to screens.
After taking a side look to this section, my personal opinion that it needs improvements:
The text was updated successfully, but these errors were encountered: