4 Replies Latest reply on Jun 14, 2019 4:52 AM by Tuomas Heittola

    How to change fields in reference creation drag & drop screen?

    Tuomas Heittola Active Member

      Hello

       

      In standard PIM the reference amount is an Integer field. We have created a custom field instead to have it as a Decimal instead.

      The problem is that when user drag and drops they will get the screen which has the standard integer field. Is there is any possibilities on changing the field of this screen?

       

      Screenshot of the screen:

       

      -Tuomas

        • 1. Re: How to change fields in reference creation drag & drop screen?
          sai prasad Active Member

          Hi Tuomas,

           

          Yes, you can change in the repository. You can have the dynamic fields through the respository property files. I tested with the static value by keeping as "Decimal"

           

          After server restart

          Thank you

          Sai Prasad

          • 2. Re: How to change fields in reference creation drag & drop screen?
            Tuomas Heittola Active Member

            Hello Sai

             

            That is just the name of the field. The field type would still remain as Integer. This is not the solution.

             

            -Tuomas

            • 3. Re: How to change fields in reference creation drag & drop screen?
              Slava Pedak Guru

              Hi Tuomas,

               

              This should be possible through java programming and using SDK.

               

              Idea is to find where this dialog is starting in the code, then write your own dialog and replace existing one with your (PIM has ability to replace existing functionality through extension points by SDK). But all this is quite complex and requires quite big java programming.

               

              Thanks,

              Slava Pedak

              • 4. Re: How to change fields in reference creation drag & drop screen?
                Tuomas Heittola Active Member

                Hello Slava

                 

                Yes. We have quite a lot of experience in Java customization. But we would like to avoid overriding standard code because if there is some change or bug fix then the it won't be applied to our custom codes automatically.

                 

                I did some digging and seems like we would need to override at least these three classes (as in create custom versions of):

                com.heiler.ppm.articlereference.ui.internal.transfer.ArticleReferenceDropChoice (com.heiler.ppm.std.ui.entityItemEditors)

                 

                com.heiler.ppm.articlereference.ui.internal.command.CreateReferenceHandler (org.eclipse.ui.handlers) which opens dialog com.heiler.ppm.articlereference.ui.internal.view.CreateReferenceDialog

                 

                In parenthesis are the extension points those are attached to. Not sure if those allow overriding the existing classes. Obviously the standard dialog should not show up when we have a custom dialog.

                 

                So anyway, yes, it could be possible to make these as Java customizations, but if there is a simpler and safer solution it would be much appreciated.

                 

                -Tuomas