Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, June 18, 2025 
 
slxdeveloper.com Community Forums  
   
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!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: A Strange Error
Richa
Posts: 45
 
A Strange ErrorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 May 07 1:22 AM
fiogf49gjkf0d
Hi,
This is Richa.
I've encountered this strange error in SLX Client.

Basic had an error......
Context: grdOpportunities
@0: Basic Contact:Opportunities Grid Dbl Clck
Status: 0x2C

Could someone plz lemme know if such an error has occured before and some speedy solution to it asap.
TIA.


[Reply][Quote]
Jeff Weight
Posts: 219
 
Re: A Strange ErrorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 May 07 9:21 AM
fiogf49gjkf0d
Which version of SalesLogix is it? It looks like you might be using a legacy basic script and view. The error isn't too specific, but it looks like you have an error in the function called Opportunities Grid Dbl Clck, and you'll probably need to go through it line by line and debug it.

Sorry if this post get to you too late... Maybe you already solved the issue.
[Reply][Quote]
Richa
Posts: 45
 
Re: A Strange ErrorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 May 07 4:03 AM
fiogf49gjkf0d
Actually i went through the code but couldnt find why this error occured. The following is the code :

option explicit
sub main
'*********************************************************************************************************
' Description: Contact script
' Purpose : Jumps to the Opportunity selected by the user, from the Contact Detail screen
' Called By : Contact detail, Opportunity tab
' Calls :
' Inputs :
' Outputs :
' Written :
' Updates : 02/00 dbell Localized
' : 01/01 dbell Changed datagrid access to dbGridGetSelectedIDs
' : 02/02 dbell Changed datagrid access to dbGridGetValue
'*********************************************************************************************************
call slx_Specific

'*********************************************************************************************************
' place your customization code here
'*********************************************************************************************************
end sub


sub slx_Specific()
'*********************************************************************************************************
' subroutine
'*********************************************************************************************************
Dim vOpportunityID as String
Dim vContactID as String
Dim vContactName as String

vOpportunityID = dbGridGetValue("grdOpportunities","OpportunityID")

If vOpportunityID = "" then
MsgBox Localize("No Opportunity has been selected")
else
vContactID = CurrentContactID
vContactName = GetDataPathValue("CONTACT:FIRSTNAME")& " " & GetDataPathValue("CONTACT:LASTNAME")

if left(vContactName,4)=" vContactName = "Contact"
end if

CreateTempOpportunityGroupForContact vContactName, vContactID, vOpportunityID
end if
end sub
[Reply][Quote]
Jeff Weight
Posts: 219
 
Re: A Strange ErrorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 May 07 9:26 AM
fiogf49gjkf0d
It has been a long time since I looked at Legacy Basic, but the line that looks like a problem to me is:
. if left(vContactName,4)=" vContactName = "Contact"
. end if

A couple of things look wrong there - right after the left(vContactName,4)= you have either one quotation mark or two single quotes, and both of them would mess up the rest of the line. You also don't have the word "Then" at the end of the line. I would write the code more like this:
If Trim(vContactName) = "" Then
vContactName = "Contact"
End If
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/18/2025 12:35:05 PM