Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, August 29, 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: Enducing a key press in script
Andrew Grandin
Posts: 272
 
Enducing a key press in scriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Sep 09 8:34 AM
I have created a button on the Activity Details form that updates any changes to the database. Once the form closes and the user is taken back to the Main View they can not see these changes unless they press F5 on the all open activities data grid, or ctrl+F5 on the Opportunity Activities datagrid. Can i force the action that occurs on these key presses in script?
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Enducing a key press in scriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Sep 09 1:10 PM
You can try the following methods:
- Application.BasicFunctions.DoInvoke "Function", "View:Refresh" 'CTRL+F5
- Application.BasicFunctions.DoInvoke "Function", "View:RefreshCurrent" 'F5
- MainView.Refresh

[Reply][Quote]
Thomas Aussem
Posts: 57
 
Re: Enducing a key press in scriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Sep 09 6:35 AM
Beside the methods above you could use a VBScript:

option explicit

' simulate F5
Sub RefreshF5
Dim wshShell
Set wshShell = CreateObject("WScript.Shell")
wshShell.SendKeys ("{F5}")
Set wshShell = Nothing
end sub

' simulate CTRL + F5
Sub RefreshCtrlF5
Dim wshShell
Set wshShell = CreateObject("WScript.Shell")
wshShell.SendKeys ("^{F5}")
Set wshShell = Nothing
end sub

Cheers,
Thomas
[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): 8/29/2025 2:08:55 PM