Author Topic: Content Navigator Developing  (Read 542 times)

jneetz

  • Jr. Member
  • **
  • Posts: 26
    • View Profile
Content Navigator Developing
« on: November 03, 2018, 11:19:18 AM »
Hi,

Where can I get help on costume coding for Content Navigator ?
    I tried to find a developerworks forum and doesn't seem to exist anymore

Here is my code in case this place can help .. launch.jsp

Notice where I have the ALERT messages my issue is explained there.
    Do I need another dojo.require ? Is my logic placement incorrect ? 

Not sure why having an alert would make it work which also depends on the location ?

I am just trying to logon a user and send them to the main Search Panel with Default Desktop

===================================================

<%@ include file="header.jsp" %>

<script>
    dojo.registerModulePath("ecm", "/navigator/ecm");
    dojo.registerModulePath("idx", "/navigator/idx");
    dojo.require("ecm.Logger");
    dojo.require("dijit._Templated");
    dojo.require("ecm.model.Desktop");
   
    function dxcLogonDesktop() {

      
      var edmsrepositoryId = "RepositoryIP";
        var edmsuserId = "<%=usrNameID%>";
        var edmspassword = "dummypass";
      
      alert("Alert Here Works Fine ?);
      
      ecm.model.desktop.repositoryId = edmsrepositoryId;
        ecm.model.desktop.userId = edmsuserId;
        ecm.model.desktop.setServicesUrl("https://myurl/navigator");
      
      //alert("Alert here Invalid UserID");
      
      ecm.model.desktop.logon(edmspassword, void(0));
      
      document.getElementById("ECMWebUI").style.display="inline";
    }
   
</script>

<body class="<%=bodyClasses%>" style="width: 100%; height: 100%; position: absolute;" onload="dxcLogonDesktop();">
   <script type="dojo/require">at: "dojox/mvc/at"</script>
   <%
   if (Util.isMobileDevice(request)) {
   %>
      <div id="ECMWebUIloadingAnimation" style="display: table; width: 100%; height: 100%;">
        <div style="display: table-cell; vertical-align: middle; text-align: center;">
         <div id="ECMWebUIloadingAnimationImage" class="ecmLoading"></div>
         <div id="ECMWebUIloadingText" class="contentNode loadingText"></div>
        </div>   
      </div>
   <%
   } else {
   %>
      <div id="ECMWebUIloadingAnimation">
        <div style="position: absolute; top: 40%; text-align: center; width: 100%;">
         <div id="ECMWebUIloadingAnimationImage" class="ecmLoadingApp">
            <svg class="ecmLoader" viewBox="25 25 50 50">
               <circle class="ecmLoader__path" cx="50" cy="50" r="20" />
            </svg>
         </div>
         <div id="ECMWebUIloadingText" class="contentNode loadingText"></div>
        </div>
      </div>
   <%
   }
   %>
   
   <div dojoType="ecm.widget.DesktopPane" id="ECMWebUI" style="display:none; width: 100%; height: 100%" browserLocale="<%=browserLocale%>"></div>
   
</body>

</html>