6/21/2025 2:33:10 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.
|
|
|
|
OnDeleteRow data grid question
Posted: 19 Nov 07 7:39 AM
|
When deleting a row in a data grid, I have some code that needs to run only after the user clicks on Yes, that it is OK to delete the row. Right now, I have the code in the OnDeleteRow event, and that code is firing before the user clicks Yes to allow the row to be deleted. I assume I need to at least temporarily return False, but I don't know the syntax to do that. Also, then, if the user clicks yes, how to I then allow the code to fire?
Thank you.
|
|
|
|
Re: OnDeleteRow data grid question
Posted: 19 Nov 07 9:48 AM
|
Hi Paul,
What I do delete, instead of using onDeleteRow, I use onPopupMenuClick. Under this subroutine, I check to see what the user selected from the menu option:
Select Case Item.Caption Case "&Add..."
'do add
Case "&Edit..."
'do edit
Case "&Delete"
strId = datagrid.GetCurrentField()
If strId <> "" Then If MsgBox("Are you sure you want to delete this item?", vbYesNo, "Confirm Delete") = vbYes Then
'Do your delete here
End If End If
End Select
Hope it helps. |
|
|
| |
|
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!
|
|
|
|
|
|
|
|