The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Calculated URLs fail on Citrix
Posted: 11 Feb 08 12:02 PM
|
SLX v6.2.3 and test v7.2.1 both behaiving the same way: static urls launch fine (www.saleslogix.com) but ones that are calculated (Mapquest button next to address) fail. all failing URLs are prepended with "http://%22%20", but even if you strip that off the remaining URL is invalid. Anyone else seen this?
Michael |
|
|
|
Re: Calculated URLs fail on Citrix
Posted: 11 Feb 08 4:43 PM
|
Seen it on 7.2 but not yet resolved it. Couldn't reproduce it on my PC, which is not running Citrix ... maybe that's why
Phil |
|
|
|
Re: Calculated URLs fail on Citrix
Posted: 12 Feb 08 7:54 AM
|
Yes, this is a problem with Citrix directly. There is a patch/workaround you will need to get from Citrix. The URL will work if you remove the pre-pended extra characters AND put the colon back in the right place (i.e., http: ) within the "real" URL string. |
|
|
|
Re: Calculated URLs fail on Citrix
Posted: 12 Feb 08 8:57 AM
|
I've seen that happen on many occasions and it all comes down to the Application.BasicFunctions.WebOpen method. What I've done to fix this in the past is change the call for WebOpen to use a standard VBScript Run instead.
Add the following code (from http://saleslogixblog.com/rfarley/archive/2004/02/10/331.aspx):
Sub OpenUrl(ByVal url) Dim shell Set shell = CreateObject("WScript.Shell") shell.Run url, 1, false Set shell = Nothing End Sub
Now, locate the line that makes a call to Application.BasicFunctions.WebOpen and change it to pass the URL to the OpenUrl method instead. All should work fine at that point.
-Ryan |
|
|
|
Re: Calculated URLs fail on Citrix
Posted: 12 Feb 08 9:25 AM
|
Our crack Citrix guy's found this regestry key that was adding the offending "%22%20" he deleted this key from the Citrix box OS and issue resolved .
[HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\SFTA] "DisableServerFTA"=dword:00000001
Hope this helps it sure did for us. ML |
|
|
| |
|
Re: Calculated URLs fail on Citrix
Posted: 26 Feb 08 8:15 AM
|
I discovered today that the issue appears to be with IE 6.0 and Win Server 2003: I get the same behaviour when I terminal service into the machine and log into SalesLogix. Any new ideas based on this observation?
|
|
|
|
Re: Calculated URLs fail on Citrix
Posted: 26 Feb 08 9:33 AM
|
Ryan,
Please forgive me:I must not have been testing the change with your code. I just tried it again and it worked like a charm.
Thank you once again for your help!
Michael |
|
|
|
Re: Calculated URLs fail on Citrix
Posted: 15 Jan 09 2:02 PM
|
Would anyone be able to post their code? I am having troubles passing the additional fields. I also switched using mapquest to google for my application. When using Application.BasicFunctions.WebOpen(strURL) everything works execpt the appended citrix data. If I use OpenURL(strURL) it only passes http://maps.google.com/maps?q=
Thank you in advance.
Sub CallMapQuest(ContactID, Description) Const adrAddress = 1 Const adrCity = 2 Const adrState = 3 Const adrPostalCode = 4 Const adrCountry = 5 Const adrMax = 5
Dim strFields, strWhere Dim strAddress() Dim strNameValue(5) Dim strURL Dim i
If ErrorCheck (Application.Translator.Localize("Error accessing address caption:")) > 0 Then Exit Sub
strNameValue(adrAddress) = "" strNameValue(adrCity) = "" strNameValue(adrState) = "" strNameValue(adrPostalCode) = "" strNameValue(adrCountry) = ""
strURL = "http://maps.google.com/maps?q="
strFields = "A1.ADDRESS1, A1.CITY, A1.STATE, A1.POSTALCODE, A1.COUNTRY" strWhere = "A1.ENTITYID = '" & ContactID & "' AND DESCRIPTION "
If Description = "" Then strWhere = strWhere & "IS NULL" Else strWhere = strWhere & " = '" & Description & "'" End If
If GetFields(strFields, "ADDRESS A1", strWhere, strAddress) Then For i = 1 To adrMax strURL = strURL & " " & strNameValue(i) & strAddress(i) Next Application.BasicFunctions.WebOpen(strURL) 'WORKS BUT APPENDS DATA IN CITRIX OpenURL(strURL) 'DOES NOT WORK ONLY PASSES http://maps.google.com/maps?q= ErrorCheck Application.Translator.Localize("Error opening web browser:") End If End Sub
Sub OpenUrl(ByVal url) Dim shell Set shell = CreateObject("WScript.Shell") shell.Run url, 1, false Set shell = Nothing End Sub |
|
|
|