Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, November 30, 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: How do i call an another FORM from "Double click" Event of the Edit control.
satz
Posts: 75
 
How do i call an another FORM from "Double click" Event of the Edit control.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 May 08 10:26 AM
hi,

i am using Edit control in my form. i want to call an another form on Double clicking the Edit control.

how do i call an another form from "Double click" Event of the Edit control.

Thanks.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: How do i call an another FORM from "Double click" Event of the Edit control.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 May 08 11:04 AM
Just wire up the double-click event of the control and call DoInvoke if it is a managed form or ShowViewForRecord if it is a bound form.
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: How do i call an another FORM from "Double click" Event of the Edit control.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 May 08 9:42 AM
Specifically:
Ryan's Method:
Sub dgOppProdSitesDblClick(Sender)
DIM opppid
opppid = dgOppProdSites.getCurrentField()
IF opppID > "" THEN
If Application.BasicFunctions.ShowViewForRecord("OPPORTUNITY_PRODUCT", dgOppProdSites.EditView.Name, opppid ) = mrOK Then
End If
END IF
End Sub

Or a 'Generic' Way to do it (Locked down for Read Only Grids!!!):

Sub dgOppProductsDblClick(Sender)
DataGridEditRow dgOppProducts
dgOppProducts.REFRESH
End Sub

Sub DataGridEditRow(Grid)
dim tname
With Grid
If ((.EditOptions.ShowEdit = False) or (.EditOptions.ShowAdd = False)) Then
Exit Sub
Else
tname = Left(.KeyField, Len(.KeyField) - 2)
SELECT CASE tname
CASE "OPPCONTACT"
tname = "OPPORTUNITY_CONTACT"
CASE "OPPPRODUCT"
tname = "OPPORTUNITY_PRODUCT"
CASE "OPPUSER"
tname = "OPPORTUNITY_USER"
CASE "LITREQ"
tname = "LITREQUEST"
END SELECT
If Application.BasicFunctions.ShowViewForRecord(tname, .EditView.Name, .GetCurrentField("")) = mrOK Then
.Refresh
End If
END IF
End With
End Sub
[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/30/2024 4:39:48 AM