• dwt03.1 - Error: this.container has no properties

    By Jose M Rodriguez 2 decades ago

    Hi:

    I'm very interested in testing the new PickList feature (BIG THANKS), but now I'm facing a more basic problem.



    I'm using the $$ViewTemplateDefault form with customized JS Header to use my own outline.



    The initial web page loads ok the outline and the view, but when I click any option on the outline (which should open another view as it did in dwt0.3.0) I ge the error:

    Error: this.container has no properties

    Source File: http://server/directory/dwt.nsf/dwt/source/widgets/DominoUIView.js

    Line: 159



    In DominoUIView.js this line is:

    var container = (this.container.getEl) ? this.container.getEl() : this.container;



    Any idea of what I'm doing wrong or any workaround?



    Thanks,

    Jose M Rodriguez

    • oops. I changed a property name and did not update the code for outlines

      By Jack Ratcliff 2 decades ago

      I'll post 0.3.1a with the fix in just a minute. To fix your copy (0.3.1) just make this one change in the 'dwt/source/widgets/DominoUIOutline.js' JavaScript library.



      old:

      this.view = new DWT.DominoUIView({

      layout : this.layout,

      viewUrl : viewUrl,

      viewParams : "",

      viewPanel : this.viewPanel,

      statusPanel : this.statusPanel

      });



      new:

      this.view = new DWT.DominoUIView({

      layout : this.layout,

      viewUrl : viewUrl,

      viewParams : "",

      container : this.viewPanel,

      statusPanel : this.statusPanel

      });





      the only change in this block is changing

      viewPanel : this.viewPanel,



      to this

      container : this.viewPanel,





      this block of code can be found in the 'openEntry' method. Just do a search on 'openEntry' to find where this method/function is defined.

      • 0.3.1a - new PickList feature

        By Jose M Rodriguez 2 decades ago

        Thank you very much for the very fast 0.3.1a release. Great.



        I have just tested the new PickList feature. I'm very impressed. It works great. I've been dreaming about this feature for years.



        Congratulations,

        Jose M Rodriguez