Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, February 23, 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: Does anyone have a Datagrid popup menu code with clipboard options?
Lawrence Reid
Posts: 63
 
Does anyone have a Datagrid popup menu code with clipboard options?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Apr 12 4:20 PM
fiogf49gjkf0d

Does anyone have a Datagrid popup menu code with clipboard options?


This is in the LAN 7.5.3 version running on SQL Server 2005


I am storing a hyperlink in one column and a description in another of a datagrid.  I added a button to add and select a new row in the grid to avoid the need to frequently open an edit form.  The keyboard Ctl+ XCV work, and now I am working on the popup menu.  I am getting and setting the grid's ID, Column, and Value on the MouseDown and MouseUp events, and the comparing to see if they changed cells.  The inconsistancy comes depending on whether the whole cell's content is selected.  I thought that SetFieldValue would update the whole cell even if only part of it was selected.


Sub dgHyperlinkPopupMenuClick(Sender, Item)
'breakpoint


'dgHyperlink.Selection.Item( ' .Selection
'Application.Clipboard.AsText = "KeyId: " & strHyperlinkId & " FieldName: " & strHyperlinkColumn & " Value: " & strHyperlinkValue


    If IsNull(strHyperlinkID) Or IsEmpty(strHyperLinkId) Then
        Msgbox "Select a Cell."
        Exit Sub
    End If


    Select Case Item.Caption
        Case "&Cut"
            Application.Clipboard.AsText = strHyperlinkValue & ""
'            dgHyperlink.SetFieldValue strHyperlinkId, strHyperlinkColumn, strHyperlinkValue, True
            dgHyperlink.SetFieldValue strHyperlinkId, strHyperlinkColumn, "", True
        Case "C&opy"
            Application.Clipboard.AsText = strHyperlinkValue & ""
        Case "&aste"
            dgHyperlink.SetFieldValue strHyperlinkId, strHyperlinkColumn, Application.Clipboard.AsText, True
        Case "C&lear Cell"
            dgHyperlink.SetFieldValue strHyperlinkId, strHyperlinkColumn, "", True
        Case Else
            Msgbox Item.Caption & " is not a valid option."
    End Select


End Sub


Thanks for your help in advance.

[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): 2/23/2025 12:53:54 PM