Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, November 27, 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 - 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: Need help using 'DoInvoke' function
Darren Savery
Posts: 51
 
Need help using 'DoInvoke' functionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Nov 06 5:31 AM
fiogf49gjkf0d
Hi,

I've created a button that sits on the 'contact detail' form that, when clicked, calls a contact process called 'LG Satisfaction Questionnaire'. The code I used is as follows:

Sub Button1Click(Sender)
Application.BasicFunctions.DoInvoke "Process", "LG Satisfaction Questionnaire"
End Sub

However, when I click the button, nothing happens! What am I doing wrong?

Thanks!

Darren
[Reply][Quote]
Jeremy Brayton
Posts: 491
Top 10 forum poster: 491 posts
 
Re: Need help using 'DoInvoke' functionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Nov 06 3:58 PM
fiogf49gjkf0d
Do you have the LAN Developer's reference from the support.saleslogix.com website? Here's it's example: Application.BasicFunctions.DoInvoke "Form", "Contact:Tickets"

What are you missing? The "Family:" prefix to LG Satisfaction Questionnaire. The family prefix is pretty standard to just about all of the DoInvoke functions.

Most likely any function existing in documentation already exists in stock code. Try searching all projects for something if you have a problem in the future. Yeah it's like shooting ants with a shotgun, but Sage's code is typically "the right way"(TM).
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Need help using 'DoInvoke' functionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Nov 06 8:12 PM
fiogf49gjkf0d
Quote:
Originally posted by Jeremy Brayton

...
...
Most likely any function existing in documentation already exists in stock code. Try searching all projects for something if you have a problem in the future. Yeah it's like shooting ants with a shotgun, but Sage's code is typically "the right way"(TM).


A - I DO agree that one should have the Lan Dev .chm file always handy....
B - I DO STRONGLY DISAGREE that Sage's code is typically the right way....
.. some is and a bunch is not..
--
rjl
[Reply][Quote]
Darren Savery
Posts: 51
 
Re: Need help using 'DoInvoke' functionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Nov 06 2:41 AM
fiogf49gjkf0d
Hi Guys,

No, I don't have the document you speak of. I shall trot along and get it today :o)

Darren
[Reply][Quote]
Darren Savery
Posts: 51
 
Re: Need help using 'DoInvoke' functionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Nov 06 2:41 AM
fiogf49gjkf0d
Hi Guys,

Right, I have said document and can reveal that my button does what it says on the tin!

Thanks,

Darren
[Reply][Quote]
Jeremy Brayton
Posts: 491
Top 10 forum poster: 491 posts
 
Re: Need help using 'DoInvoke' functionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Nov 06 11:21 AM
fiogf49gjkf0d
B - Totally correct. I should have been more specific.

When it comes to a function call or routine that is defined in Lan Dev, stock code typically gets it right. The code immediately preceeding or following the function call? That's debatable.
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Need help using 'DoInvoke' functionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Nov 06 8:21 AM
fiogf49gjkf0d
Agree...
--
rjl
[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): 11/27/2024 12:33:26 AM