6/18/2025 3:28:39 PM
|
|
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!
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.
|
|
|
|
A Strange Error
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.
|
|
|
|
Re: A Strange Error
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.  |
|
|
|
Re: A Strange Error
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 |
|
|
|
Re: A Strange Error
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 |
|
|
|
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!
|
|
|
|
|
|
|
|