11/30/2024 5:35:29 AM
|
|
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.
|
|
|
| |
| |
|
Re: How do i call an another FORM from "Double click" Event of the Edit control.
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 |
|
|
|
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!
|
|
|
|
|
|
|
|