﻿<?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 » WebForms (How do I?)  » MethodToExecute on a Listview with parameters.</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Thu, 24 Sep 2026 18:52:39 GMT</lastBuildDate><ttl>20</ttl><item><title>MethodToExecute on a Listview with parameters.</title><link>http://forum.strataframe.net/FindPost6970.aspx</link><description>This is so simple I probably just need to be pointed to an area in the manuals, but I cannot seem to find the answer on my own.&lt;br&gt;
&lt;br&gt;
I've got a ListView on a WebForm with the following PopulationDataSourceSettings:&lt;br&gt;
&lt;br&gt;
        &amp;lt;PopulationDataSourceSettings BusinessObjectType="BusinessObjects.AttributeNameType"&lt;br&gt;
            DisplayFieldNames="Name|TypeName|AttributeNameID|" MethodToExecute="FillByEntityTypeIDAndEntityID;System.Int32,System.Int32"&amp;gt;&lt;br&gt;
&lt;br&gt;
When I look at the SQL Debugging I see that the query was executed but with 0's in the where clause where the EntityTypeID and EntityID would be.&lt;br&gt;
&lt;br&gt;
For the life of me I can't figure out where I'm supposed to supply those values!&lt;br&gt;
&lt;br&gt;
Any help would be appreciated.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;</description><pubDate>Mon, 19 Feb 2007 16:18:04 GMT</pubDate><dc:creator>Justin Buist</dc:creator></item><item><title>RE: MethodToExecute on a Listview with parameters.</title><link>http://forum.strataframe.net/FindPost6987.aspx</link><description>Great!&amp;nbsp; Always remeber that you can search within the docs as well.&amp;nbsp; For example, you could search on ListView and see what shows up :)&amp;nbsp; Just FYI since at one point the search did not work :blush:</description><pubDate>Mon, 19 Feb 2007 16:18:04 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: MethodToExecute on a Listview with parameters.</title><link>http://forum.strataframe.net/FindPost6978.aspx</link><description>Ahhh.  Yes.  I was off looking at BO-related documentation and not UI documentation.&lt;br&gt;
&lt;br&gt;
Thanks for putting me on track.  Everything is all wired up and working exactly like I expected it to.&lt;br&gt;
&lt;br&gt;
Thanks!</description><pubDate>Mon, 19 Feb 2007 15:42:34 GMT</pubDate><dc:creator>Justin Buist</dc:creator></item><item><title>RE: MethodToExecute on a Listview with parameters.</title><link>http://forum.strataframe.net/FindPost6973.aspx</link><description>It is because you did not provide the parameter value in the ListPopulating event of the ListView. You can see an example of this in the Web Sample or the Advanced ListView sample...amongst others.&amp;nbsp; You can find this in the help under:&lt;/P&gt;&lt;P&gt;Application Framework -&amp;gt; UI Layer -&amp;gt; Controls -&amp;gt; ListView Population&lt;/P&gt;&lt;P&gt;The web population behaves the same as the WinForms in regards to the events.</description><pubDate>Mon, 19 Feb 2007 15:23:22 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>