Fetching values from javascript

Can the Window.executeJavaScript(String script) used to get values.

List valuesList;
“valuesList = getValues()”

getValues() is the Java Script method which will return the selected values list.

function getValues()
valuesArray = new Array();
// Code to fill valuesArrray with values
return(valuesArray );

Can we run the Java Script and get the array from it and assign it to any variable using Vaadin?

You should create a
develop a new component
and use
on the client side.