Loading...

qListView field pass multiple parameters to a Javascript function syntax

qListView field pass multiple parameters to a Javascript function syntax

  • This topic is empty.
Viewing 6 reply threads
  • Author
    Posts
    • #7365
      Anonymous
      Anonymous
      Participant

      Hello,

      n

        Try to debug your js or display in an alert dialog the values that you pass in the function. I suspect that there is a double quotation issue or something that confuses your js call.

      n

      Please let me know how it goes.

      n

      Thanks,

      n

      n

      PS

      n

      Please let me know your SP and QuickApps versions.

      n

        

    • #7366
      Anonymous
      Anonymous
      Participant

      Hi ,

      n

      Thank you and I believe you are correct. There is a ' in the cancel reason data for some of the records and these records are causing the error.  Would you know of a way around this? Thanks again.

    • #7367
      Anonymous
      Anonymous
      Participant
      I google'ed it and I found this. Give it a try. Also there are plenty of posts and solutions out there. Find the one that works best for you.
      If you have issues with that please let me know and I can help further.



      function(str){n var i = str.length,n aRet = [];nn while (i--) {n var iC = str[i].charCodeAt();n if (iC < 65 || iC > 127 || (iC>90 && iC<97)) {n aRet[i] = '&#'+iC+';';n } else {n aRet[i] = str[i];n }n }n return aRet.join(''); n },
    • #7368
      Anonymous
      Anonymous
      Participant

      n

      n

      n

      n

      n

      n

      n

      n

      n

      n

      n

      Here is a screenshot of the script.

      n

      n

    • #7369
      Anonymous
      Anonymous
      Participant

      Thank you ,  It is working now.

    • #4610
      Anonymous
      Anonymous
      Participant

      Hi, I’m trying to pass multiple parameters to a Javascript function from a qListView new field and can’t seem to get the syntax correct. What I have done is:

      n

      1. Create a new field.2. In the calculated value field I have <script>ReturnCancelReason(‘<%CancelApp%>’ , ‘<%Cancel Reason%>’)</script>

      n

      The function looks at the value of CancelApp and if it is yes it just returns the Cancel Reason, otherwise it returns an empty string.  This actually seems to work but I get a Javascript error : Expected “)”

      n

      Any help would be greatly appreciated.

      n

       

    • #7370
      Anonymous
      Anonymous
      Participant

      I'm glad to hear that!

      n

Viewing 6 reply threads

You must be logged in to reply to this topic.