Originally posted by Isomorphic
View Post
Hello ,
Thank you very much for your reply.
We had previous build of 6.1p (Dated 2017-07-05) and problem was the same and we thought maybe it was a bug and maybe fixed in the latest builds. We update the system to the latest build. Problem appears again.
After a week searching and comparing our code to the example which is into showcase, we found a problem :
Code:
advancedCube.setAlternateRecordStyles(true); advancedCube.setShowRecordComponents(true); advancedCube.setShowRecordComponentsByCell(true);
That was a reason of the problem. After removing this properties everything works as expected. We are not going to use custom components into CubeGrid, so for us this problem is resolved.
Thank you again for your attentions and support.
And if it will not be a off topic, We have another question regarding CubeGrid. (As I said it is first time we are using SmartGWT Analytics Module).
We want to implement somehow refresh of the Cubegid Data (I mean row Facet Values and the data of the grid).
We did not found any example like that. Our example :
Code:
// list of new Values List<FacetValue> newFacetValues = new ArrayList<>(); // iterate records which comes from DB for (Record addrAndBox : buildingsData) { String globalid = addrAndBox.getAttributeAsString("globalid"); String treeTitle = addrAndBox.getAttributeAsString("treeTitle"); String parent_id = addrAndBox.getAttributeAsString("parent_id"); FacetValue addrAndBoxElement = new FacetValue(globalid, treeTitle, parent_id); newFacetValues.add(addrAndBoxElement); } advancedCube.getFacet("address_or_box_id").setValues(newFacetValues.toArray(new FacetValue[0])); // refresh grid. advancedCube.invalidateCache(); advancedCube.fetchData();
But it doesn't work. Row facet values are not refreshed.
Thanks In Advance.
Regards,
Paata.
Leave a comment: