﻿<?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 » Enhancement Requests  » Add method to BusinessLayer</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 15:03:02 GMT</lastBuildDate><ttl>20</ttl><item><title>Add method to BusinessLayer</title><link>http://forum.strataframe.net/FindPost2030.aspx</link><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face="Times New Roman" color=#000000 size=3&gt;Create “&lt;/FONT&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Fixedsys; mso-no-proof: yes"&gt;Protected&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Fixedsys; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;ReadOnly&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Property&lt;/SPAN&gt;&lt;FONT color=#000000&gt; AllFieldNamesStringCollection() &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;StringCollection” &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face="Times New Roman" color=#000000 size=3&gt;method for use with QueryInformation objects.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Currently, you must use the following construct (C#):&lt;/FONT&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Fixedsys; mso-no-proof: yes"&gt;string&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Fixedsys; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;[] allFields = &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;&lt;FONT color=#000000&gt;.AllFieldsList.ToArray();&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Fixedsys; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;queryInfo.Fields = &lt;/FONT&gt;&lt;SPAN style="COLOR: teal"&gt;StringBasics&lt;/SPAN&gt;&lt;FONT color=#000000&gt;.CreateStringCollection(allFields);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Fixedsys; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face="Times New Roman" color=#000000 size=3&gt;This should be encapsulated in this new method as follows:&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face="Times New Roman" color=#000000 size=3&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Fixedsys; mso-no-proof: yes"&gt;string()&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Fixedsys; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt; allFields = &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Me&lt;/SPAN&gt;&lt;FONT color=#000000&gt;.AllFieldsList.ToArray();&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Fixedsys; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;&lt;FONT color=#1111ff&gt;return&lt;/FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;SPAN style="COLOR: teal"&gt;StringBasics&lt;/SPAN&gt;&lt;FONT color=#000000&gt;.CreateStringCollection(allFields);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Fixedsys; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Tue, 01 Aug 2006 13:36:58 GMT</pubDate><dc:creator>Joe Paquette</dc:creator></item><item><title>RE: Add method to BusinessLayer</title><link>http://forum.strataframe.net/FindPost2049.aspx</link><description>Good point!&amp;nbsp; That works for me.&amp;nbsp; Thanks.</description><pubDate>Tue, 01 Aug 2006 13:36:58 GMT</pubDate><dc:creator>Joe Paquette</dc:creator></item><item><title>RE: Add method to BusinessLayer</title><link>http://forum.strataframe.net/FindPost2034.aspx</link><description>Joe, &lt;/P&gt;&lt;P&gt;You can add the fields through the AllFieldsList property with one line of code (after the QueryInformation constructor).&lt;/P&gt;&lt;FONT color=#008080 size=2&gt;&lt;P&gt;QueryInformation&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; info = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;QueryInformation&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt;();&lt;BR&gt;&lt;/FONT&gt;info.Fields.AddRange(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;this&lt;/FONT&gt;&lt;FONT size=2&gt;.AllFieldsList.ToArray());&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;There's no need to create another string collection object, since the QueryInformation class is initialized with an empty string collection.&amp;nbsp; Just AddRange the fields list to an array.&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Tue, 01 Aug 2006 08:58:02 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>