Announcement

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

    CuybeGrid : Hilite doesn't work.

    Hello,

    I have a problem with the cubeGrid : the hilight doesn't work.

    first I declare myHilite :
    Code:
        private static Hilite[] hilites = new Hilite[]{
            new Hilite() {
                {
                    setTextColor("#FF0000");
                    setCssText("color:#FF0000");
                    setId("myHilite");
                }
            }}
    I set it to my cubeGrid :
    Code:
            cubeGrid.setHilites(hilites);
    Now I try to use it on 2 case :

    For hilite when i go out from a cell :
    Code:
            cubeGrid.addEditorExitHandler(new EditorExitHandler() {
                @Override
                public void onEditorExit(EditorExitEvent event) {
                    ListGridRecord listGridSelect = cubeGrid.getCellRecord(event.getRowNum(),
                            event.getColNum());
                    SC.logWarn("listGridSelect != null " + (listGridSelect != null));
                    cubeGrid.hiliteCell(event.getRowNum(), event.getColNum(), "myHilite");
                    //  cubeGrid.refreshCell(event.getRowNum(), event.getColNum());
                }
            });
    or for color a facet :
    Code:
      cubeGrid.hiliteFacetValue("month", "February", "myHilite");
    For the first I get an error : " Exception caught: (ReferenceError) : cellObj is not define" But the listGridSelect doesn't look null.

    For the second no change are done on the datagrid.

    Do I made a mistake or it's a bug on cubeGrid?

    I enclose the whole test case, if you want to reproduce it.

    Test made on the last chromium with smartgwt power edition from the 3.1p_2013-01-03

    Thanks by advance.
    Attached Files
    Last edited by schefferp; 14 Jan 2013, 05:04.

    #2
    An engineer is taking a look at this and we'll update this thread when we have more information.

    Comment


      #3
      We see that hiliteFacetValue() is not working correctly, and we've addressed that in 3.1p and 4.0d.

      However, we're not able to reproduce your first issue - hiliteCell() looks to be working fine in tests.

      Please retest with a nightly build of January 18 or later - that should certainly address the hiliteFacetValue() issue - for the hiliteCell() issue, if you still see failures with a new nightly, we'll need to see a standalone test that we can run to see the bad behavior.

      Comment


        #4
        Hello,

        I test with the nightly build, but no change... With my use case, the text color still doesn't change for facet ...

        If you want reproduce my problem you can use the use case I post previously and edit a cell value : when you leave you have a null pointer error.

        Code:
        SEVERE: Uncatched exception: Exception caught: (ReferenceError) : cellObj is not defined
        com.google.gwt.event.shared.UmbrellaException: Exception caught: (ReferenceError) : cellObj is not defined
        	at Unknown.com_google_gwt_core_client_impl_StackTraceCreator_createStackTrace__Lcom_google_gwt_core_client_JsArrayString_2(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@141)
        	at Unknown.com_google_gwt_core_client_impl_StackTraceCreator$CollectorChrome_fillInStackTrace__Ljava_lang_Throwable_2V(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@11)
        	at Unknown.com_google_gwt_core_client_impl_StackTraceCreator_fillInStackTrace__Ljava_lang_Throwable_2V(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@134)
        	at Unknown.java_lang_Throwable_$fillInStackTrace__Ljava_lang_Throwable_2Ljava_lang_Throwable_2(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@3)
        	at Unknown.java_lang_Throwable_$$init__Ljava_lang_Throwable_2V(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@3)
        	at Unknown.java_lang_Throwable_Throwable__Ljava_lang_String_2Ljava_lang_Throwable_2V(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@3)
        	at Unknown.java_lang_Exception_Exception__Ljava_lang_String_2Ljava_lang_Throwable_2V(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@77)
        	at Unknown.java_lang_RuntimeException_RuntimeException__Ljava_lang_String_2Ljava_lang_Throwable_2V(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@77)
        	at Unknown.com_google_web_bindery_event_shared_UmbrellaException_UmbrellaException__Ljava_util_Set_2V(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@91)
        	at Unknown.com_google_gwt_event_shared_UmbrellaException_UmbrellaException__Ljava_util_Set_2V(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@94)
        	at Unknown.com_google_gwt_event_shared_HandlerManager_$fireEvent__Lcom_google_gwt_event_shared_HandlerManager_2Lcom_google_gwt_event_shared_GwtEvent_2V(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@13)
        	at Unknown.com_smartgwt_client_widgets_BaseWidget_$fireEvent__Lcom_smartgwt_client_widgets_BaseWidget_2Lcom_google_gwt_event_shared_GwtEvent_2V(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@123)
        	at Unknown.com_smartgwt_client_widgets_BaseWidget_fireEvent__Lcom_google_gwt_event_shared_GwtEvent_2V(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@3)
        	at Unknown.anonymous(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@11)
        	at Unknown.com_google_gwt_core_client_impl_Impl_apply__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@23)
        	at Unknown.com_google_gwt_core_client_impl_Impl_entry0__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@16)
        	at Unknown.anonymous(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@14)
        	at Unknown.obj.editorExit(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@14)
        	at Unknown.isc_ListGrid__handleEditorExit(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Grids.js@9)
        	at Unknown.isc_ListGrid__changeEditCell(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Grids.js@61)
        	at Unknown.isc_ListGrid_startEditing(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Grids.js@20)
        	at Unknown.isc_ListGrid_handleEditCellEvent(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Grids.js@13)
        	at Unknown.isc_ListGrid_rowDoubleClick(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Grids.js@68)
        	at Unknown.eval(eval at isc_c_ListGrid_makeBodyMethods (http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Grids.js@58)
        	at Unknown.isc_GridRenderer_doubleClick(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Grids.js@31)
        	at Unknown.isc_Canvas_handleDoubleClick(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Core.js@667)
        	at Unknown.isc_c_EventHandler_bubbleEvent(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Core.js@49)
        	at Unknown.isc_c_EventHandler_handleClick(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Core.js@471)
        	at Unknown.isc_c_EventHandler__handleMouseUp(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Core.js@26)
        	at Unknown.isc_c_EventHandler_handleMouseUp(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Core.js@41)
        	at Unknown.isc_c_EventHandler_dispatch(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Core.js@155)
        	at Unknown.eval(eval at <anonymous> (http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Core.js@76)
        Caused by: com.google.gwt.core.client.JavaScriptException: (ReferenceError) : cellObj is not defined
        	at Unknown.com_smartgwt_client_widgets_cube_CubeGrid_$hiliteCell__Lcom_smartgwt_client_widgets_cube_CubeGrid_2IILjava_lang_String_2Ljava_lang_Boolean_2(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@32)
        	at Unknown.com_mars_helios_heliosweb_client_screen_debug_DynamicCubeGridSection$DataCallback$1_onEditorExit__Lcom_smartgwt_client_widgets_grid_events_EditorExitEvent_2V(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@3)
        	at Unknown.com_smartgwt_client_widgets_grid_events_EditorExitEvent_$dispatch__Lcom_smartgwt_client_widgets_grid_events_EditorExitEvent_2Lcom_smartgwt_client_widgets_grid_events_EditorExitHandler_2V(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@11)
        	at Unknown.com_smartgwt_client_widgets_grid_events_EditorExitEvent_dispatch__Lcom_google_gwt_event_shared_EventHandler_2V(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@3)
        	at Unknown.com_google_gwt_event_shared_GwtEvent_dispatch__Ljava_lang_Object_2V(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@8)
        	at Unknown.com_google_web_bindery_event_shared_EventBus_dispatchEvent__Lcom_google_web_bindery_event_shared_Event_2Ljava_lang_Object_2V(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@9)
        	at Unknown.com_google_web_bindery_event_shared_SimpleEventBus_$doFire__Lcom_google_web_bindery_event_shared_SimpleEventBus_2Lcom_google_web_bindery_event_shared_Event_2Ljava_lang_Object_2V(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@9)
        	at Unknown.com_google_web_bindery_event_shared_SimpleEventBus_$fireEvent__Lcom_google_web_bindery_event_shared_SimpleEventBus_2Lcom_google_web_bindery_event_shared_Event_2V(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@3)
        	at Unknown.com_google_gwt_event_shared_HandlerManager_$fireEvent__Lcom_google_gwt_event_shared_HandlerManager_2Lcom_google_gwt_event_shared_GwtEvent_2V(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@5)
        	at Unknown.com_smartgwt_client_widgets_BaseWidget_$fireEvent__Lcom_smartgwt_client_widgets_BaseWidget_2Lcom_google_gwt_event_shared_GwtEvent_2V(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@123)
        	at Unknown.com_smartgwt_client_widgets_BaseWidget_fireEvent__Lcom_google_gwt_event_shared_GwtEvent_2V(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@3)
        	at Unknown.anonymous(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@11)
        	at Unknown.com_google_gwt_core_client_impl_Impl_apply__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@23)
        	at Unknown.com_google_gwt_core_client_impl_Impl_entry0__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@16)
        	at Unknown.anonymous(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@14)
        	at Unknown.obj.editorExit(http://localhost:8080/HeliosWeb/heliosweb/23933E6540416F366266080D443BF4FC.cache.html@14)
        	at Unknown.isc_ListGrid__handleEditorExit(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Grids.js@9)
        	at Unknown.isc_ListGrid__changeEditCell(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Grids.js@61)
        	at Unknown.isc_ListGrid_startEditing(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Grids.js@20)
        	at Unknown.isc_ListGrid_handleEditCellEvent(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Grids.js@13)
        	at Unknown.isc_ListGrid_rowDoubleClick(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Grids.js@68)
        	at Unknown.eval(eval at isc_c_ListGrid_makeBodyMethods (http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Grids.js@58)
        	at Unknown.isc_GridRenderer_doubleClick(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Grids.js@31)
        	at Unknown.isc_Canvas_handleDoubleClick(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Core.js@667)
        	at Unknown.isc_c_EventHandler_bubbleEvent(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Core.js@49)
        	at Unknown.isc_c_EventHandler_handleClick(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Core.js@471)
        	at Unknown.isc_c_EventHandler__handleMouseUp(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Core.js@26)
        	at Unknown.isc_c_EventHandler_handleMouseUp(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Core.js@41)
        	at Unknown.isc_c_EventHandler_dispatch(http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Core.js@155)
        	at Unknown.eval(eval at <anonymous> (http://localhost:8080/HeliosWeb/heliosweb/sc/modules/ISC_Core.js@76)

        Comment


          #5
          We've made some fixes to address both of these issues - changes will hit nightly builds of 3.1p and 4.0d from January 26.

          Comment


            #6
            Now it's work. Thanks

            Comment

            Working...
            X