Uploaded image for project: 'Pentaho BA Platform'
  1. Pentaho BA Platform
  2. BISERVER-10699

Lost functionality from 4.8 -> 5.0: Need alternative way of customizing startup behavior and settings to PUC

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: High
    • Resolution: Fixed
    • Affects Version/s: 5.0.0 GA (5.0.0 GA Suite Release)
    • Fix Version/s: 5.1.0 GA
    • Component/s: None
    • Labels:
      None
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.

      Description

      Let me try to go section by section and describe what's available in 5.0.

      show-explorer-view-on-startup=true
      show-advanced-features=false

      These are both unused, although they do exist in the client side, they are no longer referenced. The show-explorer-view-on-startup is no longer used, but I could see value in bringing it back to life. (It would go to the browse perspective instead of home)

      1. startup urls (each displays in its own tab)
        num-startup-urls=0
        startup-url-1=/pentaho/welcome/welcome.html
        startup-name-1=Welcome
        startup-url-2=http://www.pentaho.com
        startup-name-2=Pentaho Business Intelligence
        startup-url-3=/pentaho/ViewAction?solution=samples&path=/reporting&action=JFree_Quad.xaction
        startup-url-4=/pentaho/SampleDashboard

      The server-provided list of startup-urls is no longer used, however, you can still start PUC with a startup-url if specified on the URL of PUC itself. There are two parameters that drive this:
      startup-url This is the URL that you want opened in the Opened Perspective, the parameter must be encoded
      name This is the name you want to show up on the opened tab, again, this parameter must be encoded

      1. plugin perspectives
        num-plugin-perspectives=0
        plugin-perspective-url-1=/pentaho/adhoc/waqr.html
        plugin-perspective-name-1=Ad hoc Reporting
        plugin-perspective-url-2=/pentaho/interactive-reporting/index.html
        plugin-perspective-name-2=Interactive Reporting

      In 5.0 we actually have real PUC perspectives, this is fairly well documented in my blog (http://michaeldamour.blogspot.com/2011/10/puc-perspectives.html)
      This entire section is not used.

      To combine these two sections and make a general comment about both, you can now provide a startupPerspective (by id) on the URL, as noted in the original case description.
      The flag showOnlyPerspective is used if and when you want to remove all other PUC "decorations" around the content. This approach is actually used internally for an unlicensed
      server situation. We use admin as the startupPerspective and we only show it (no other decorations/PUC UI). This is done in code, rather than settings. There is no setting for
      specifying a startup perspective, at this time you can only add them to the URL.

      1. ui customization settings (if menu/toolbar are disabled, the logo panel is disabled automatically)
        show-menu-bar=true
        show-main-toolbar=true
        show-logo-panel=true
        show-theme-switcher=true
        user-console-revision=

      All UI customizations are now done via XUL and HTML (see mantle.xul/ Mantle.jsp)
      For more info on the subject check out this post (http://michaeldamour.blogspot.com/2011/11/plugin-overlays-puc-layout.html)
      Bear in mind things changed a little bit - I consolidated the xul files so there is no longer one named main_menubar.xul, it's all mantle.xul.

      #should the enter key to submit filechooser dialog (save, save as, open) be disabled?
      #turn to false if you need to use the enter key to choose multibyte characters from a dropdown
      submit-on-enter-key=true

      Yikes, this one is totally missed in 5.0. The client attempts to pull the value, but the server is no longer reading any settings for this. The default value true is used in 5.0.

      So it looks like there are alternative ways of doing a lot of this in 5.0. The glaring issues that should be logged as bugs are:
      1. submit-on-enter
      2. user-console-revision
      3. show-explorer-view-on-startup (this will be accomplished via startupPerspective)
      4. startupPerspective / showOnlyPerspective

      I would propose that instead of hiding in a properties file in a jar (that mantle.jar is removed in 5.0), we add these to the settings.xml of the default plugin or to pentaho.xml.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              krivera Kris Rivera (Inactive)
              Reporter:
              mdamour Michael D'Amour
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: