8/18/2025 3:28:29 PM
|
|
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.
|
|
|
|
Best way of adding "double-click to edit" functionality?
Posted: 29 Jan 08 10:20 AM
|
I have a form with a DataGrid of records pulled from a new top-level table, and accessed from a new menu, Manage->Interests.
It kind of works okay now, and I can right-click to Add/Edit/Delete, the first two of which open up a second form bound using the EditView properties.
My question is, how do I add double-click functionality? I've seen it in some other places, but it seems to require a lot of coding in order to spawn a new instance of the form and set the recordset, and after saving I have to create functions for UPDATE or INSERT INTO to handle that. Seems a bit excessive.
Hoping there's an easier way,
Mark |
|
|
| |
| |
|
Re: Best way of adding "double-click to edit" functionality?
Posted: 29 Jan 08 4:47 PM
|
Hi Ted,
That way works too, but I can't recall what version it was added in (it was only added in a fairly recent version - I know for sure it doesn't exist in 6.2.6, haven't checked 7.0.1 or higher). Anyway, if your version doesn't have the ViewEdit method on the DataGrid you'll have to invoke the edit form using ShowViewForRecord.
-Ryan |
|
|
|
Re: Best way of adding "double-click to edit" functionality?
Posted: 30 Jan 08 2:30 PM
|
Yes, introduced in 7.0.
If you like ShowViewForRecord, you should also look at ShowViewForRecordEx which allows you to pass through the bind information of the datagrid (the way it is from the standard Add/Edit invoke).
ShowAddForm is also useful for Adding because it returns the New ID to the script.
Stephen
|
|
|
|
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!
|
|
|
|
|
|
|
|