Announcement

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

    Build errors when switching to smartgwtpower-6.0d.2017_05_10

    Hi,

    When upgrading to the version smartgwtpower-6.0d.2017_05_10, we are encountering these build errors in one of our projects. It seems some methods such as setTitleAutoFit() and setTitleAutoFitMargin() are completely missing for DrawRect and DrawPolygon objects. Why are these methods missing? They were in a previous version that I am actively using at the moment. How can this be resolved, so that I can switch to a newer version with these methods? Thanks.

    Some examples of the code that doesn't work in the newer version are these:
    Code:
                    rect.setTitleAutoFit(true);
                    rect.setTitleAutoFitRotationMode(TitleAutoFitRotationMode.NEVER);
                    rect.setTitleAutoFitMargin(2);

    SGWTPOWER_HOME = /projects/BEER/A0/lib/smartgwtpower-6.0d.2017_05_10
    SGWTPOWER_SUPPORT = /projects/BEER/A0/lib/support_libs-6.0d.2017_05_10/

    Description Resource Path Location Type

    The method setTitleAutoFitMargin(int) is undefined for the type DrawRect BEERChipSTAPOC.java /ChipSTA/src/beer/client/chipsta line 200 Java Problem
    TitleAutoFitRotationMode cannot be resolved to a variable BEERChipSTAPOC.java /ChipSTA/src/beer/client/chipsta line 139 Java Problem
    The method setValueMap(String...) in the type FormItem is not applicable for the arguments (Map<String,String>) HeatMap.java /ChipSTA/src/beer/client/chipsta line 498 Java Problem
    The method setTitleAutoFitMargin(int) is undefined for the type DrawPolygon BEERChipSTAPOC.java /ChipSTA/src/beer/client/chipsta line 140 Java Problem
    The method setTitleAutoFit(boolean) is undefined for the type DrawRect BEERChipSTAPOC.java /ChipSTA/src/beer/client/chipsta line 198 Java Problem
    TitleAutoFitRotationMode cannot be resolved to a variable BEERChipSTAPOC.java /ChipSTA/src/beer/client/chipsta line 199 Java Problem
    The import com.smartgwt.client.types.TitleAutoFitRotationMode cannot be resolved BEERChipSTAPOC.java /ChipSTA/src/beer/client/chipsta line 14 Java Problem
    The method setTitleAutoFit(boolean) is undefined for the type DrawPolygon BEERChipSTAPOC.java /ChipSTA/src/beer/client/chipsta line 138 Java Problem
    The method setValueMap(String...) in the type FormItem is not applicable for the arguments (Map<String,String>) ChipSTACharts.java /ChipSTA/src/beer/client/chipsta line 567 Java Problem
    The method setValueMap(String...) in the type FormItem is not applicable for the arguments (Map<String,String>) ChipSTACharts.java /ChipSTA/src/beer/client/chipsta line 544 Java Problem
    The method setValueMap(String...) in the type FormItem is not applicable for the arguments (Map<String,String>) ChipSTACharts.java /ChipSTA/src/beer/client/chipsta line 912 Java Problem
    The method setValueMap(String...) in the type FormItem is not applicable for the arguments (Map<Object,Object>) ChipSTACharts.java /ChipSTA/src/beer/client/chipsta line 861 Java Problem
    Last edited by user316; 9 Aug 2017, 05:57.

    #2
    It looks like you've got some confusion about versions.

    "d" indicates a development build (pre-release), however, 6.0 has been out for a long time (in fact 6.1 is also out), so there is no such build.

    As far as the feature you're trying to use, it first became available in 6.1. So it looks like you may actually be working with a 6.0 build (just not a "d" build), but it is expected that it would lack those APIs.

    Comment


      #3
      Hi,

      Those were actually just the SmartGWT variables, but the actual version we are using (taken from the console) is SmartClient Version: v11.0p_2017-05-10/PowerEdition Deployment (built 2017-05-10). Does this version not contain these APIs? Is this the correct version to be using?

      Comment


        #4
        Not sure what you mean by SmartGWT variables, but again that build version doesn't exist. You may have some misfiring automation on your side that is erroneously misnaming builds.

        The version of SmartGWT that has the features you're looking for is 6.1p. The corresponding SmartClient version is 11.1p.

        An 11.0p SmartClient version corresponds to SmartGWT 6.0p, which does not have this feature.

        Comment

        Working...
        X