Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, April 20, 2024 
 
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 - Legacy Development
Forum to discuss SalesLogix legacy development including views, scripts, etc.. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Legacy Development | New ThreadView:  Search:  
 Author  Thread: Unknown error on Ok button Script
Douglas Walker
Posts: 27
 
Unknown error on Ok button ScriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 May 11 4:50 PM
fiogf49gjkf0d

I'm running into an issue where I get an error when a script that is associated with an OK button is run. 


It states:


-----------------------------------------------------------


General:Error on line: 3


---------------------------------------------------------


And the script is as simple as:


----------------------------------------------------------


sub main


CloseCurrentView False 


end sub


--------------------------------------------


It started happening when I moved this script to a production database as a bundle.


Any Ideas?


 

[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Unknown error on Ok button ScriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 May 11 5:25 PM
fiogf49gjkf0d

It's unlikely that worked before.


It should be Application.BasicFunctions.CloseCurrentView False


 

[Reply][Quote]
Douglas Walker
Posts: 27
 
Re: Unknown error on Ok button ScriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 May 11 5:54 PM
fiogf49gjkf0d

Mike,


 


When I try that, I get this in Architect:


Error on that line: Object Required.


thoughts?


 

[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Unknown error on Ok button ScriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 May 11 6:15 PM
fiogf49gjkf0d
Put the false in brackets ? Think that's the issue, but no ref to hand.

[Reply][Quote]
Douglas Walker
Posts: 27
 
Re: Unknown error on Ok button ScriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 May 11 6:35 PM
fiogf49gjkf0d

No luck.  Tried [False] as well as (False), with and without a space between them.

[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Unknown error on Ok button ScriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 May 11 3:19 PM
fiogf49gjkf0d

Can only imagine this plugin is corrupted somehow. Can you re-create it and see if it re-occurs.

[Reply][Quote]
Douglas Walker
Posts: 27
 
Re: Unknown error on Ok button ScriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 May 11 3:34 PM
fiogf49gjkf0d

Hey Mike,


I eventually figured this one out.  Using:


CloseCurrentView False    


vs.    


Application.BasicFunctions.CloseCurrentView False


Didn't seem to make a difference.  It ended up being a data validation issue. There was a picklist that was set in the "Manage Picklists" menu to be a required field, but it was on a panel that was being disabled. 


It turns out that this problem always existed when certain criteria were met (the same criteria that was disabling the panel).


The fix involved making the picklist NOT required, then adding validation on the OKButton script to not allow the picklist to be empty when the criteria was not met. 


Hopefully that makes sense and can help someone else out in the future!

[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Unknown error on Ok button ScriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 May 11 3:35 PM
fiogf49gjkf0d

Ah right, always something to catch you !

[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 © 2024 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): 4/20/2024 9:04:17 AM