Home Survey App

Issues with info card related to WI

Adrian_MataiszAdrian_Mataisz Customer Advanced IT Monkey ✭✭✭
edited October 2016 in Survey App

Answers

  • seth_coussensseth_coussens Member Ninja IT Monkey ✭✭✭✭
    Are there any errors in the web developer console when you view that survey result?
  • Adrian_MataiszAdrian_Mataisz Customer Advanced IT Monkey ✭✭✭

    Not sure is this is what you need but I get this:

    jquery.min.js?v=787:5 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
    custom-bindings.js?v=787:870 Localization Key Not Found Survey App
    controllers.js:1 '//@ sourceURL' and '//@ sourceMappingURL' are deprecated, please use '//# sourceURL=' and '//# sourceMappingURL=' instead.
    services.js:1 '//@ sourceURL' and '//@ sourceMappingURL' are deprecated, please use '//# sourceURL=' and '//# sourceMappingURL=' instead.

  • Adrian_MataiszAdrian_Mataisz Customer Advanced IT Monkey ✭✭✭
    @seth_coussens - This worked when we we were on V4 of the template and broke when we changed the smile faces to drop down lists for the answers on V6 of the template. 
  • Adrian_MataiszAdrian_Mataisz Customer Advanced IT Monkey ✭✭✭
    edited October 2016

    We figured out what was wrong with the info card missing but now when we click on it it doesn't take us to the WI because it puts a space between ServiceRequest in the URL:

    Server Error in '/' Application.

    The resource cannot be found.

    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

    Requested URL: /Service Request/Edit/SR53694





    It looks like this:  /Service%20Request/Edit/SR53694

    Should be:  /ServiceRequest/Edit/SR53694


    How we can remove the space?  Where is this in the js code?

  • Adrian_MataiszAdrian_Mataisz Customer Advanced IT Monkey ✭✭✭

    The URL issue from the results survey page to the WI got fixed with John D.'s help from Cireson:

    1. Edit the file: C:\inetpub\CiresonPortal\CustomSpace\SurveyApp\app\controllers.js

    2. Go to about line 304 and modify the code so it looks like this: if(s && s.WorkItemId){ sSurvey.getSurveyWorkItemById(s.WorkItemId) .then(function (w) { w.FullClassName = w.FullClassName.replace(/ /g,''); $scope.workitem = w; });

    adding the line that starts w.FullClassName.



Sign In or Register to comment.