﻿<?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 » WinForms (How do I?)  » Manually pop combo and pass params</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Thu, 17 Sep 2026 22:44:44 GMT</lastBuildDate><ttl>20</ttl><item><title>Manually pop combo and pass params</title><link>http://forum.strataframe.net/FindPost9459.aspx</link><description>Hi &lt;/P&gt;&lt;P&gt;I am new to this stuff and I used this post &lt;A href="http://forum.strataframe.net/Topic2062-7-1.aspx?Highlight=fill+combobox"&gt;http://forum.strataframe.net/Topic2062-7-1.aspx?Highlight=fill+combobox&lt;/A&gt;&amp;nbsp;to work out how to manually pop. a combobox. Took me more time than getting a whole app running!&lt;/P&gt;&lt;P&gt;Now I cant seem to find a way pass a param to the fill procedure. &lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Howard</description><pubDate>Tue, 12 Jun 2007 09:10:26 GMT</pubDate><dc:creator>Howard Rybko</dc:creator></item><item><title>RE: Manually pop combo and pass params</title><link>http://forum.strataframe.net/FindPost9495.aspx</link><description>It's because you've asked those questions that you know the answers :)&amp;nbsp; We don't expect you to know things clairvoiantly.</description><pubDate>Tue, 12 Jun 2007 09:10:26 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Manually pop combo and pass params</title><link>http://forum.strataframe.net/FindPost9479.aspx</link><description>It's just exciting that I actually know the answer sometimes, what with the zillion questions I've asked!  :D</description><pubDate>Mon, 11 Jun 2007 13:58:36 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Manually pop combo and pass params</title><link>http://forum.strataframe.net/FindPost9468.aspx</link><description>Way to go Greg :)&amp;nbsp; You're on top of things.</description><pubDate>Mon, 11 Jun 2007 08:26:34 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Manually pop combo and pass params</title><link>http://forum.strataframe.net/FindPost9461.aspx</link><description>There are two ways to pass parameters to the method selected in the ListPopulationSettings to fill the list via a BO.&lt;br&gt;
&lt;br&gt;
The first is to simply pass the parameters to the Requery() method.  I.e. if you have a fill method that takes two parameters: FillByAccountDate(accountID As Integer, txDate As Date), you would use a requery like this: Requery(theAccountID, theTxDate).  This is generally fine if you are only calling the requery method from one place in code.&lt;br&gt;
&lt;br&gt;
If you call it from more than one place (a frequent situation), you'd hand the ListPopulating event of the listbox/listview.  The event arg has a property called Paramters, which is an array of objects. You load the parameters here. I.e.&lt;br&gt;
&lt;br&gt;
[codesnippet]Private Sub lstAny_ListPopulating(ByVal e As Microfour.StrataFrame.UI.ListPopulatingEventArgs) Handles lstAny.ListPopulating&lt;br&gt;
  e.Parameters(0).Value = theAccountID&lt;br&gt;
  e.Parameters(1).Value = theTxDate&lt;br&gt;
End Sub[/codesnippet]&lt;br&gt;
&lt;br&gt;
This gets called just before the list is populated and fills the parameters that are passed to the fill method.&lt;br&gt;
&lt;br&gt;
I hope this helps.&lt;br&gt;
&lt;br&gt;
NOTE: I just typed this in, so the code might not be 100%, but hopefully you get the idea.</description><pubDate>Sat, 09 Jun 2007 18:17:29 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>