Hi, you can use following approach:
You can add Map of parameters to all method that open new window (openWindow(), openEditor(), openLookup()…) and then read them from Controller in init() method from variable params.
Let me try and elaborate the question a little further.
Please consider this:
I have a web page where the user can supply input criteria:
An input field (textField in the context of CUBA platform) for email ID
Two date fields representing start/end dates(dateField in the context of CUBA platform)
User clicks on search button on the page.
I want the extract the values in these fields in my controller (the Java class corresponding to the screen in CUBA platform).
The intent is to use these values to perform DB search using middleware in CUBA platform.
when I understand the requirement correctly, you have a text input field, 2 date input fields and a search button in your screen.
To use these values in your controller after pressing the button do the following:
For all fields and the button give them a id, e.g searchButton, fromDate, toDate, searchText
For the button you also define an invoke method, e.g. onSearchButtonClick
Now in your controller you need to inject all these fields and the button
In your button click method you can then access the values of the fields and do e.g. your search in your service…
You should take a closer look on the documentation for button and how the controller can access data from screen elements.