Announcement

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

    FilterBuilder AND, OR, NOT titles

    I'm trying to change the default values of the match titles in the filter builder, but the displayed value is not changing.

    Code:
            final DataSource dataSource = DataSource.get("supplyItem");
            this.filterBuilder = new FilterBuilder();
            filterBuilder.setDataSource(dataSource);
            filterBuilder.setMatchAllTitle("AND");
            filterBuilder.setMatchAnyTitle("OR");
            filterBuilder.setMatchNoneTitle("NOT");
    Displaying the title in a message triggered by a button-click, though, the word "AND" is displayed.
    Code:
    SC.say("Match All Title: " + filterBuilder.getMatchAllTitle());
    Is there an additional method to call to render the non-default titles?


    SmartGWT Version: SC_SNAPSHOT-2012-01-19_v8.2p/PowerEdition Deployment 2012-01-19

    Browser: IE 9, Chrome 17.0

    #2
    This is probably an artifact of the order of calls - can you try putting the setMatchAllTitle() call *before* the setDataSource() call?

    Comment


      #3
      No difference, I'm afraid.

      Comment


        #4
        We're getting "works for me". You realize this only has an effect if the topOperatorAppearance is "radio"?

        Comment


          #5
          I did not realize that.
          So, is there no way to make the drop-downs in the SmartGWT filter builder say "AND, OR, NOT", as in the SmartClient filter builder?

          Comment


            #6
            Those come from the system-wide setting for the "and", "or" and "not" logical operators, so you'd set it via SmartGWTMessages.operators_andTitle et al.

            Comment


              #7
              Other than duplicating the properties file into a copy of the i18n package in my own source tree (which works), is there a way to override the properties?

              Comment


                #8
                You can define a partial resource bundle using this technique.

                Comment

                Working...
                X