Announcement

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

    Issues with Advanced HiLite editing

    Hi,

    We are using your latest 8.2 nightly build. I'm trying out the HiLite functionality. The basic editor seems to work fine. But, when I try the Advanced Rule editor, I am having problems.

    First, we have some grid columns where we've inserted html formatting such as <br> in the column headers. The advanced field drop-down is displaying these html tags and I'm trying to figure out how to format that drop-down. I have a stripTags function I call for this purpose but not sure where to use it. I've attached a screenshot showing this.

    Second, the drop-down next to the field list in the Advanced Editor is not getting refreshed with values. This is the drop-down that contains all the hilite conditions like "contains". If I select certain fields, it will update and show contents. And, after I select those fields, the drop-down will continue showing options. But, when I close the window and re-open and try to select a field, it usually doesn't get populated. I'm not sure how to debug this further because I don't see any documentation on the hilite editor. The attached screenshot shows the field I am talking about with focus but there are no values in the drop-down. Suggestions on how to debug this?

    Lastly, when the user clicks save in the HiLite Editor, I want to override this behavior to also save the HiLite state to our database. How can I customize the behavior of the save button in the HiLite editor to do this?
    Attached Files

    #2
    You can set a separate listGridField.summaryTitle as the title to use in contexts where you don't want HTML formatting like a <br> to be applied.

    Exiting the HiliteEditor will cause setHilites() to be called if hilites have changed, so you can override this, call super, and save off revised hilites.

    As far as the missing list of fields, general debugging techniques like clicking on the components in the HiliteEditor and interrogating them from the Eval JavaScript area apply, as usual. If these don't reveal the problem, isolating to a test case always works.

    Comment


      #3
      Hi, setting summaryTitle didn't help. I had to develop a patch for your HiliteEditor.getClientOnlyFieldDS function where I could modify the titles to strip out the tags. Once I fixed that, the other problem went away. So, there is some fatal error with hilite editing when html tags are used in title fields that probably makes sense for you to clean up in your code. Or, alter your code to actually use summaryTitle.

      Comment


        #4
        The HiliteEditor should now be respecting ListGridField.summaryTitle where it's been set. This should resolve your issue.

        Comment


          #5
          Thank you. I noticed that Formula Editor also seems to not respect the summary Title. Can you modify that as well?

          Comment


            #6
            Also, can you confirm that the drop-down field that appears after you select "Greater Than Field" in the Hilite Editor will also respect Summary Title ?

            Comment


              #7
              Hmm, sorry for the spam but can you also confirm that the field title you display on the left-hand side in the Hilite Editor where you list all existing Hilite Rules also uses summary title?

              Comment


                #8
                Sorry, to clarify this - summaryTitle is now a deprecated property so we don't want to keep extending its effects.

                What you should really be doing is not using HTML in the title attribute, and use it in listGridField.headerTitle only, so that it only affects the header.

                Comment


                  #9
                  Ok, thanks, I won't use summaryTitle. I tried to use headerTitle and it wasn't impacting the grid headers so that wasn't useful for me. We added the html to our field titles a long time ago and it looks like you've improved your grid header rendering since then so I think it is safe for us to remove the html.

                  I've had to do some custom things with field titles in the Highlight Editor and the Formula Builder because we have hundreds of columns in our grid and it is confusing for the user to sort through them without some additional identifying information in the field list. So, I created a separate property called menuTitle that shows the additional information and customized Highlight Editor and Formula Builder to use that. Just mentioning it in case anybody else stumbles across this post. For now, I am good.

                  Comment

                  Working...
                  X