Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    FacetValue title doesn't refresh

    Hi,

    I'm not able to change FacetValue title on an advanced cubeGrid.

    I tried way to do this, the only one which work was to recreate the cube.

    Code:
    // Each facet of the cube grid (row or colum)
    for (String facetId : facetIdList) {
           // Get the facet corresponding to its Id.
           Facet facet = cubeGrid.getFacet(facetId);
            if (facet != null) {
                    // For each facet get facetvalues and change title
                    for (FacetValue facetValue : facet.getValues()) {
                        facetValue.setTitle("New title");
                    }
            }
    }
    I tried to redraw the cube, remove it from canvas re-add it, but nothing happend the displayed titles are always the same, they don't change.

    Thx in advance for your help.










    SmartClient Version: v8.3p_2013-01-28/PowerEdition Deployment (built 2013-01-28)

    Chrome : Version 24.0.1312.56 Ubuntu 12.04 (24.0.1312.56-0ubuntu0.12.04.1)
    Last edited by Emilien; 11 Mar 2013, 00:34.

    #2
    Use CubeGrid.setFacetTitle()

    Comment


      #3
      This function set the title of a Facet, Here I want to change the title of a FacetValue.

      Join a screen of which values I want to change.
      Attached Files

      Comment


        #4
        Then use CubeGrid.setFacetValueTitle(), and please make use of the documentation in the future.

        Comment


          #5
          Thx it works now, and ok for the documentation, it's a function that I missed ... sorry for that.

          But for me the setTitle directly on the FacetValue and refresh the cube should do the same result as using the setFacetValueTitle of the cube.

          Comment

          Working...
          X