<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: create table or display some text from code</title><link>https://www.infopathdev.com:443/forums/thread/26808.aspx</link><pubDate>Wed, 27 Feb 2008 12:16:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26808</guid><dc:creator>thefronciak</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26808.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=26808</wfw:commentRss><description>Okay I fortunately solved the problem. I&amp;#39;ve created the data connection with normal sql query. And on button click event I access it from code and change the sql command to the parametrized one. Works perfect (for now:). Thanks for help! Here&amp;#39;s the piece of code:

DataConnection tblWorkerDataConnection = this.DataSources[&amp;quot;tableName&amp;quot;].QueryConnection;
AdoQueryConnection queryConnection = tblWorkerDataConnection as AdoQueryConnection;

queryConnection.Command = FormatSearchQuery(searchFieldNames, searchData);
queryConnection.Execute();


Cheers and thanks again!</description></item><item><title>Re: create table or display some text from code</title><link>https://www.infopathdev.com:443/forums/thread/26802.aspx</link><pubDate>Wed, 27 Feb 2008 07:12:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26802</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26802.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=26802</wfw:commentRss><description>&lt;p&gt;Dynamic queries can be done with Web Services, which is probably best practice or in code by creating the SQL query manually.&lt;/p&gt;
&lt;p&gt;Do you want to bind controls to the secondary data directly or you want to move the secondary data into a group in your form schema?&lt;/p&gt;</description></item><item><title>Re: create table or display some text from code</title><link>https://www.infopathdev.com:443/forums/thread/26801.aspx</link><pubDate>Wed, 27 Feb 2008 07:00:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26801</guid><dc:creator>thefronciak</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26801.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=26801</wfw:commentRss><description>Of course. But I have dynamic list of table rows and I have to bind it to some table or something.

If calling custom database query can be done from the form design - I don&amp;#39;t know that:) Is that really possible? And how to do it?</description></item><item><title>Re: create table or display some text from code</title><link>https://www.infopathdev.com:443/forums/thread/26794.aspx</link><pubDate>Wed, 27 Feb 2008 01:52:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26794</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26794.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=26794</wfw:commentRss><description>&lt;p&gt;You would want a repeating table.&lt;/p&gt;
&lt;p&gt;If you drag the repeating group on to the form it will ask you whether you want a repeating section or table.&lt;/p&gt;
&lt;p&gt;All of what you are describing can be done without&amp;nbsp;coding, in the form design, I hope you know.&lt;/p&gt;</description></item><item><title>create table or display some text from code</title><link>https://www.infopathdev.com:443/forums/thread/26786.aspx</link><pubDate>Tue, 26 Feb 2008 21:52:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26786</guid><dc:creator>thefronciak</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26786.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=26786</wfw:commentRss><description>Hello everyone.

I got the form, on button click i&amp;#39;m doing the SQL search, and I have a dataset with few result rows. Here&amp;#39;s the deal: I want to display these data in some kind of table, or just like blank text in some section on the form, and I have no idea how to do it... I tried rich textbox, but this is not satisfied solution. In view files [.xsl] exists some html for section, for example:


		&lt;div class="xdSection xdRepeating" style="MARGIN-BOTTOM:6px;WIDTH:629px;" align="left"&gt;
			
			
		&lt;/div&gt;
	


but I have no idea how to edit it at runtime from code. Please guys help, this is extremely important for me. Is this doable and how? I will be greeting for any replies and ideas.

Regards and thanks in advance!</description></item></channel></rss>