Reply
Employee
mcrampsey
Posts: 38
Registered: ‎04-02-2009
Accepted Solution

Web Admin 2011 R1

[ Edited ]

I have installed the admin bundle and built and deployed my SLX web client.

 

When i log in as admin and go to Resources, Qualifications or Secured Actions i get an Error on Page:

 

'Sage.TaskPane.SharedResources.saveasnewgroup_linktext' is null or not an object

sage-controls-sharedtasks.js                 line: 51

Code: 0                                                        Char:13

URI: http://localhost:3333/slxclient/jscript/sage-controls/sage-controls-sharedtasks.js

 

The integrity check reported no errors.

 

I have added new qualification items using the menu right-click options but they do not appear (same error). When i check in my LAN client - they have been added.

Please use plain text.
Employee
brianlpope
Posts: 4
Registered: ‎06-25-2009

Re: Web Admin 2011 R1

 
Please use plain text.
Employee
brianlpope
Posts: 4
Registered: ‎06-25-2009

Re: Web Admin 2011 R1

My original intention was to include entries in the base.master, but I was concerned about requiring a merge of that file in order to prevent overwriting any modifications you may have made.  The solution to the error you are receiving is to register missing .js files.  The best way to do that is to add some entries in the Model\Portal\SupportFiles\jscript\SageSalesLogixWebControls.jsb file.  Add the following entries to the top part of the file between the section starting with <directory name="sage-controls" /> and ending with <target name="sage controls"....

  <file name="sage-controls\sage-controls-sharedtasks.resources.en-us.js" path="" />
  <file name="sage-controls\sage-controls-sharedtasks.js" path="" />
  <file name="sage-controls\sage-controls-tasklet.resources.en-us.js" path="" />
  <file name="sage-controls\sage-controls-tasklet.js" path="" />
  <file name="sage-controls\sage-controls-taskpaneitem.js" path="" />

Then add the following entries just above the closing </target> tag.

    <include name="sage-controls\sage-controls-sharedtasks.resources.en-us.js" />
    <include name="sage-controls\sage-controls-sharedtasks.js" />
    <include name="sage-controls\sage-controls-tasklet.resources.en-us.js" />
    <include name="sage-controls\sage-controls-tasklet.js" />
    <include name="sage-controls\sage-controls-taskpaneitem.js" />

Then build and re-deploy the site.  By adding the entries to the .jsb file, the contents of the scripts will be minified into the sage-controls.js file which is referenced in the base.master page.

As an alternative, you could add a reference to each of the 5 above files to the base.master file right after the script reference to sage-controls.js.

    <script pin="pin" type="text/javascript" src="jscript/sage-platform/sage-platform.js"></script>
    <script pin="pin" type="text/javascript" src="jscript/sage-controls/sage-controls.js"></script>

    <script pin="pin" type="text/javascript" src="jscript/sage-controls/sage-controls-sharedtasks.resources.en-us.js"></script>
    <script pin="pin" type="text/javascript" src="jscript/sage-controls/sage-controls-sharedtasks.js"></script>
    <script pin="pin" type="text/javascript" src="jscript/sage-controls/sage-controls-tasklet.resources.en-us.js"></script>
    <script pin="pin" type="text/javascript" src="jscript/sage-controls/sage-controls-tasklet.js"></script>
    <script pin="pin" type="text/javascript" src="jscript/sage-controls/sage-controls-taskpaneitem.js"></script>

    <script pin="pin" type="text/javascript" src="jscript/sage-common/sage-common.js"></script>

Please use plain text.
Employee
mcrampsey
Posts: 38
Registered: ‎04-02-2009

Re: Web Admin 2011 R1

Thanks Brian

 

The first part (SageSalesLogixWe​bControls.jsb) didn't seem to work so i followed the second part (base.master) as well which did work.

 

Kind regards

 

Michael

Please use plain text.
Employee
mcrampsey
Posts: 38
Registered: ‎04-02-2009

Re: Web Admin 2011 R1

This has worked on my VM image but has not been successful on my local install.

 

When i look in the base.master and sagesaleslogixwebcontrols.jsb files, they contain the additional information but i am still getting the same error.

 

Is there anything else i may need to do?

 

Thanks

 

Michael

Please use plain text.
Employee
brianlpope
Posts: 4
Registered: ‎06-25-2009

Re: Web Admin 2011 R1

The original defect was showing that the scripts were not being loaded.  By adding them to the base.master page, they should be found.  If you have added them in the same place in the base.master and there are no typos, this should work.  If you use Firebug within Firefox, you should be able to see the loaded scripts in the Scripts tab just to confirm that they are being loaded.

 

These scripts work with the TaskletControl that is part of the Sage.SalesLogix.Client.GroupBuilder.dll and the Tasklet controls that are in the SlxClient\SupportFiles\TaskPane\AdminTasks folder.

Please use plain text.
Employee
brianlpope
Posts: 4
Registered: ‎06-25-2009

Re: Web Admin 2011 R1

In reviewing the implementation of the admin accelerators, I realized that in order to minimize any conflicts with existing files, I implemented the loading of the javascript files in a different way.  They are loaded using a Module associated to the SlxClient portal.  The module configuration file is named Sage.SalesLogix.AcceleratorsModule.ScriptSetup.module.xml.  The contents of the file should be:

 

 

<?xml version="1.0"?>
<WebModule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" id="062441d2-6b42-452e-bac7-42da1366c6d3">
  <InstanceId>62b11e143df54186b6969c8f7a6edcd8</InstanceId>
  <ModuleTypeName>Sage.SalesLogix.Web.AcceleratorsModule.ScriptSetup, Sage.SalesLogix.Web.AcceleratorsModule</ModuleTypeName>
  <RunInMode />
  <AllowRoles />
  <Scope>Page</Scope>
</WebModule>

 

This module simply inserts the scripts into the current page.  The normal build process is described in my other posts, but for the accelerator, it was done this way.  So make sure you have this module by checking in AppArchitect under the SlxClient Portal.

 

Please use plain text.
Employee
mcrampsey
Posts: 38
Registered: ‎04-02-2009

Re: Web Admin 2011 R1

The module.xml file existed with the contents you mentioned.

 

I solved this by copying the jsb and base.master from my vm image over the top of my local files (in inetpub directory)

 

This has got the admin and standard prob/resolution working but my subsequent install of the twitter social media feed is not working- see attached screenshot.

 

Thanks

 

Michael

 

 

Please use plain text.