﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » ListView PerformEditActionOnDoubleClick not working...</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 18 Sep 2026 09:37:44 GMT</lastBuildDate><ttl>20</ttl><item><title>ListView PerformEditActionOnDoubleClick not working...</title><link>http://forum.strataframe.net/FindPost20905.aspx</link><description>I recently was working with a parent-child-grandchild situation using listviews and child form dialogs.  On the child form dialog for the child, the edit on double click doesn't work with the BO that was translated from the parent....The easiest way to see this error is to just modify the Child Form Dialog sample provided with SF.&lt;br&gt;
&lt;br&gt;
1. On the CustomerNotesItems form, simply modify the listview by setting the BO to the CustomerNotes BO on the form. &lt;br&gt;
2. Run it, select a customer, view notes.&lt;br&gt;
3. Double click on a note...boom&lt;br&gt;
&lt;br&gt;
Manually calling edit on the CustomerNotes works fine, as is done when clicking the Edit  button.  Any ideas what's happening?</description><pubDate>Mon, 01 Dec 2008 11:52:25 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: ListView PerformEditActionOnDoubleClick not working...</title><link>http://forum.strataframe.net/FindPost20942.aspx</link><description>That makes sense. Thanks Trent!</description><pubDate>Mon, 01 Dec 2008 11:52:25 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: ListView PerformEditActionOnDoubleClick not working...</title><link>http://forum.strataframe.net/FindPost20941.aspx</link><description>Not necessarily.&amp;nbsp; The only time this would happen is on a child form called through a BO translation class (i.e. ChildFormDialog, etc).&amp;nbsp; If the records are showing up correctly, I would leave this alone.&amp;nbsp;</description><pubDate>Mon, 01 Dec 2008 11:30:41 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: ListView PerformEditActionOnDoubleClick not working...</title><link>http://forum.strataframe.net/FindPost20939.aspx</link><description>Hi Trent,&lt;/P&gt;&lt;P&gt;I have one ChildForm in which I had to do the same, don't quite remember the reasons now, but does this mean that it should be a common practice when using the ListView with ChildForm features to confirm the ListView?&lt;/P&gt;&lt;P&gt;If so I will add that to my own ChildForm template ;)</description><pubDate>Mon, 01 Dec 2008 10:47:08 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: ListView PerformEditActionOnDoubleClick not working...</title><link>http://forum.strataframe.net/FindPost20934.aspx</link><description>Using the ChildFormDialog sample, here is how to fix the problem:&lt;/P&gt;&lt;P&gt;[codesnippet]Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyBase.OnLoad(e)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lvNotes.BusinessObject = Me.CustomerNotes&lt;BR&gt;End Sub[/codesnippet]&lt;/P&gt;&lt;P&gt;Notice that in the OnLoad &lt;STRONG&gt;&lt;EM&gt;&lt;U&gt;AFTER&lt;/U&gt;&lt;/EM&gt;&lt;/STRONG&gt; the base logic has been called, I am resetting the object instance on the list to the one on the form.&amp;nbsp; Technically this is what you had done within the designer...right?&amp;nbsp; Well, yes and no.&amp;nbsp; StrataFrame "translates" the business objects using reflection in the Load.&amp;nbsp; However, we do not reflect over every object on the form so see if there is another instance of that BO used someplace else.&amp;nbsp; This could really slow things down.&amp;nbsp; So by resetting the object instance after the base logic has done its thing, the translated instance will then be used since the form level BO has been translated to use the BO from the calling form.</description><pubDate>Mon, 01 Dec 2008 09:37:44 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>