Announcement

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

    customise setUseAdvancedFieldPicker(Boolean)

    BuildDate Wed Mar 05 15:52:00 IST 2014
    Version 4.1p
    SCVersionNumber v9.1p_2014-03-05

    Team,

    We are trying to use setUseAdvancedFieldPicker(true) in our application.My problem is that we want a 2-tier menu in place of list of attributes that come as available attributes.
    Is there any way to achieve this and how?

    #2
    We're not clear on what you want the interface to look like, but in general your options would be:

    1. implement your own field picking dialog

    OR

    2. use Feature Sponsorship to have your interface added to the built-in dialog, if it's general purpose and clearly an improvement or good alternative to the default interface

    Comment


      #3
      So the present interface displays a grid with fields and their sample values.
      What we want is these fields to be clubbed in categories and this then appears as a 2-tier menu.First tier as list of categories and then second tier opens on clicking of a category in first tier.

      Second question -
      As you said I have to implement my own dialog then it will be like building from scratch or customising your given dialog ?

      Lastly,
      I am already handling the submit action through addFieldStateChangedHandler(). So what you are saying , how is that different from what i am doing??

      Comment


        #4
        We're not familiar with the term "clubbed" as in "clubbed in categories".

        Probably the best thing would be for you to mock up the interface you have in mind.

        Yes, the first possibility from our last response means implementing the dialog from scratch.

        Comment


          #5
          Isomorphic team,

          I have attached the snapshot as asked.
          This is the present scenario we have.We have achieved this by overriding

          protected MenuItem[] getHeaderContextMenuItems(Integer fieldNum){}

          and creating a menu according to our requirements.
          Attached Files

          Comment


            #6
            If you have already achieved this, can you clarify whether you need help with something further?

            Comment


              #7
              I have achieved this for right click menu(header context menu). Not for Picker fields dialog.GWT is creating dialog itself and so far i couldn't find a way to override it as i did for header context menu.

              Comment


                #8
                It's an AutoChild so a variety of customizations can be applied. However we have no idea how you imagine that your hierarchical menu could be incorporated into the AdvancedFieldPicker dialog - still waiting for a specific and concrete design for how you'd like to modify this built-in dialog (or again, you could create your own).

                Comment


                  #9
                  Can you please explain how being AutoChild helps in allowing customisations. Also we need to disable and hide "Highlites" buuton and column ordering buttons(right side) from field picker window.
                  How do we do that?

                  Comment


                    #10
                    Docs for using AutoChildren to customize widgets appears here. As you can see, there are properties for the controlling visibility of AutoChildren. Access to the created AutoChild also gives you the ability to add additional widgets.

                    As the docs explain, deeply customizing AutoChildren can ultimately lead to breaking them by interfering with their built-in event handling and logic.

                    However we still, after several requests, don't have a clear picture of what you want to do with this widget and so can't make specific recommendations. So please refer back to our very first reply for your best options.

                    Comment

                    Working...
                    X