You can pass textField values to the search action which is certainly responsible of the next screen loading.
...
<button onAction="search(name.text,surname.text)">Search</button>
...
And in the frame which intercept the search action, you can create a new dataProvider and use it to load the second screen.
...
final String name = (String) arguments[0];
final String surname = (String) arguments[1];
DataProvider dp = new DataProvider() {
protected Object getUserDefinedValue(String property) {
if ("nameProperty".equals(property)) {
return name;
}
if ("surnameProperty".equals(property)) {
return surname;
}
return null;
}
}
// Load the screen
Kuix.loadScreen("secondScreen.xml", dp).setCurrent();
Example of secondScreen.xml :
<screen>
<text>${nameProperty}</text>
<text>${surnameProperty}</text>
</screen>

