Hello,
first, the scenario:
A javascript web resource receives Guids of companies located within a selected area of an html map resource. These are filtered and used to populate a subgrid with the following code snippet:
var fetchXML = ''; for (var i = 0; i < IDs.length; i ) { if (IDs[i] != null) { fetchXML = ''; } } fetchXML = ""; gridContext.setFilterXml(fetchXML); gridContext.refresh();