- This topic is empty.
- AuthorPosts
-
- 10/08/2014 at 4:09 am #7365
AnonymousParticipantHello,
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
- 10/08/2014 at 4:39 am #7366
AnonymousParticipantHi ,
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.
- 10/08/2014 at 4:51 am #7367
AnonymousParticipantI 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 }, - 10/08/2014 at 4:55 am #7368
- 10/08/2014 at 4:59 am #7369
AnonymousParticipantThank you , It is working now.
- 10/08/2014 at 5:08 am #4610
AnonymousParticipantHi, 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
- 10/08/2014 at 5:08 am #7370
AnonymousParticipantI'm glad to hear that!
n
-
- AuthorPosts
You must be logged in to reply to this topic.