E10 Adapter Help

I’ll try that the next time…..

 

I found an embarrassingly simple way to do what I needed J

 

 

Thanks,

 

bw

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Monday, May 04, 2015 1:48 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] E10 Adapter Help

 




the instruction should be something like 

so.NamedSearch.WhereClauses.Add("SugPoDtl", "BuyerID = 'DM' BY Name, PartNum, OrderByDate");"

 

 

Kind Regards,

Sergio P. 

CTO, Sr. Partner

Kind Regards,

Sergio P.

 

Mayan Technologies USA, Inc.

(858) 900.1555

 

 

 

On Monday, May 4, 2015 12:42 PM, "sergio prieto s_a_prieto@... [vantage]" <vantage@yahoogroups.com> wrote:

 

 

Hey Bernie, try this out...

 

on line:

so.NamedSearch.WhereClauses.Add(wcHash, whereClause);

 

do this instead:

opts.NamedSearch.WhereClauses.Add("UDCodes", "Company='" + currentSession.CompanyID.ToString() + "' AND CodeTypeID = 'Plant' AND CodeID = '101'");// AND CodeID='" + currentSession.PlantID.ToString() + "'");

 

Kind Regards,

Sergio P. 

CTO, Sr. Partner

Kind Regards,

Sergio P.

 

Mayan Technologies USA, Inc.

(858) 900.1555

 

 

 

On Friday, May 1, 2015 10:20 AM, "bwalker@... [vantage]" <vantage@yahoogroups.com> wrote:

 

 

I am trying to call the GetRowsPlant method on the POSugg adapter

 

I am getting an error:

System.InvalidCastException: Unable to cast object of type 'System.Collections.HashTable' to type 'System.String'. at Erp.Adapters.POSuggAdapter.GetRowsPlant(SearchOptions opts, Boolean& morePages)

 

 

The code I am trying:

POSuggAdapter adapterPOSugg = new POSuggAdapter(this.oTrans);
adapterPOSugg.BOConnect();

 

string[] whereClause = new string[2];
whereClause[0] = "BuyerID = 'DM' BY Name, PartNum, OrderByDate";
whereClause[1] = String.Empty;
System.Collections.Hashtable wcHash = new System.Collections.Hashtable(2);
wcHash.Add("SugPoDtl",whereClause[0]);
wcHash.Add("SugPoMsc",whereClause[1]);
SearchOptions so = new SearchOptions(SearchMode.AutoSearch);
so.DataSetMode = DataSetMode.RowsDataSet;
so.NamedSearch.WhereClauses.Add(wcHash, whereClause);
bool morePages;

 

System.Data.DataSet dsPOSugg = adapterPOSugg.GetRowsPlant(so, out morePages);

 

 

Can anyone spot the error of my ways?

 

bw

 

 

 

 




I am trying to call the GetRowsPlant method on the POSugg adapter


I am getting an error:

System.InvalidCastException: Unable to cast object of type 'System.Collections.HashTable' to type 'System.String'. at Erp.Adapters.POSuggAdapter.GetRowsPlant(SearchOptions opts, Boolean& morePages)



The code I am trying:

POSuggAdapter adapterPOSugg = new POSuggAdapter(this.oTrans);
adapterPOSugg.BOConnect();


string[] whereClause = new string[2];
whereClause[0] = "BuyerID = 'DM' BY Name, PartNum, OrderByDate";
whereClause[1] = String.Empty;
System.Collections.Hashtable wcHash = new System.Collections.Hashtable(2);
wcHash.Add("SugPoDtl",whereClause[0]);
wcHash.Add("SugPoMsc",whereClause[1]);
SearchOptions so = new SearchOptions(SearchMode.AutoSearch);
so.DataSetMode = DataSetMode.RowsDataSet;
so.NamedSearch.WhereClauses.Add(wcHash, whereClause);
bool morePages;


System.Data.DataSet dsPOSugg = adapterPOSugg.GetRowsPlant(so, out morePages);



Can anyone spot the error of my ways?


bw



Hey Bernie, try this out...

on line:
so.NamedSearch.WhereClauses.Add(wcHash, whereClause);

do this instead:
opts.NamedSearch.WhereClauses.Add("UDCodes", "Company='" + currentSession.CompanyID.ToString() + "' AND CodeTypeID = 'Plant' AND CodeID = '101'");// AND CodeID='" + currentSession.PlantID.ToString() + "'");
 
Kind Regards,
Sergio P. 
CTO, Sr. Partner
Kind Regards,
Sergio P.

Mayan Technologies USA, Inc.
(858) 900.1555
sprieto@...




On Friday, May 1, 2015 10:20 AM, "bwalker@... [vantage]" <vantage@yahoogroups.com> wrote:


 
<div id="ygrps-yiv-1415998685yiv2826665728ygrp-text">
  
  
  <div></div><div><span>I am trying to call the GetRowsPlant method on the POSugg adapter</span></div><div><span><br clear="none"></span></div><div><span>I am getting an error:</span></div><div><span>System.InvalidCastException: Unable to cast object of type &#39;System.Collections.HashTable&#39; to type &#39;System.String&#39;. at Erp.Adapters.POSuggAdapter.GetRowsPlant(SearchOptions opts, Boolean&amp; morePages)</span></div><div><span><br clear="none"></span></div><div><span><br clear="none"></span></div><div><span>The code I am trying:</span></div><div><span>POSuggAdapter adapterPOSugg = new POSuggAdapter(this.oTrans);<br clear="none">adapterPOSugg.BOConnect();</span></div><div><span><br clear="none"></span></div><div><span>string[] whereClause = new string[2];<br clear="none">whereClause[0] = &quot;BuyerID = &#39;DM&#39; BY Name, PartNum, OrderByDate&quot;;<br clear="none">whereClause[1] = String.Empty;<br clear="none">System.Collections.Hashtable wcHash = new System.Collections.Hashtable(2);<br clear="none">wcHash.Add(&quot;SugPoDtl&quot;,whereClause[0]);<br clear="none">wcHash.Add(&quot;SugPoMsc&quot;,whereClause[1]);<br clear="none">SearchOptions so = new SearchOptions(SearchMode.AutoSearch);<br clear="none">so.DataSetMode = DataSetMode.RowsDataSet;<br clear="none">so.NamedSearch.WhereClauses.Add(wcHash, whereClause);<br clear="none">bool morePages;</span></div><div><br clear="none"></div><div>System.Data.DataSet dsPOSugg = adapterPOSugg.GetRowsPlant(so, out morePages);</div><div><br clear="none"></div><div><br clear="none"></div><div>Can anyone spot the error of my ways?</div><div><br clear="none"></div><div>bw</div><span></span><div><br clear="none"></div><div><br clear="none"></div>

</div>
 


<div style="color:#fff;height:0;"></div></div>
#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728 -- #ygrps-yiv-1415998685yiv2826665728ygrp-mkp { border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-mkp hr {
border:1px solid #d8d8d8;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-mkp #ygrps-yiv-1415998685yiv2826665728hd {
color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-mkp #ygrps-yiv-1415998685yiv2826665728ads {
margin-bottom:10px;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-mkp .ygrps-yiv-1415998685yiv2826665728ad {
padding:0 0;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-mkp .ygrps-yiv-1415998685yiv2826665728ad p {
margin:0;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-mkp .ygrps-yiv-1415998685yiv2826665728ad a {
color:#0000ff;text-decoration:none;}
#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-sponsor #ygrps-yiv-1415998685yiv2826665728ygrp-lc {
font-family:Arial;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-sponsor #ygrps-yiv-1415998685yiv2826665728ygrp-lc #ygrps-yiv-1415998685yiv2826665728hd {
margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-sponsor #ygrps-yiv-1415998685yiv2826665728ygrp-lc .ygrps-yiv-1415998685yiv2826665728ad {
margin-bottom:10px;padding:0 0;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728actions {
font-family:Verdana;font-size:11px;padding:10px 0;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728activity {
background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728activity span {
font-weight:700;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728activity span:first-child {
text-transform:uppercase;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728activity span a {
color:#5085b6;text-decoration:none;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728activity span span {
color:#ff7900;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728activity span .ygrps-yiv-1415998685yiv2826665728underline {
text-decoration:underline;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 .ygrps-yiv-1415998685yiv2826665728attach {
clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 .ygrps-yiv-1415998685yiv2826665728attach div a {
text-decoration:none;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 .ygrps-yiv-1415998685yiv2826665728attach img {
border:none;padding-right:5px;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 .ygrps-yiv-1415998685yiv2826665728attach label {
display:block;margin-bottom:5px;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 .ygrps-yiv-1415998685yiv2826665728attach label a {
text-decoration:none;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 blockquote {
margin:0 0 0 4px;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 .ygrps-yiv-1415998685yiv2826665728bold {
font-family:Arial;font-size:13px;font-weight:700;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 .ygrps-yiv-1415998685yiv2826665728bold a {
text-decoration:none;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 dd.ygrps-yiv-1415998685yiv2826665728last p a {
font-family:Verdana;font-weight:700;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 dd.ygrps-yiv-1415998685yiv2826665728last p span {
margin-right:10px;font-family:Verdana;font-weight:700;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 dd.ygrps-yiv-1415998685yiv2826665728last p span.ygrps-yiv-1415998685yiv2826665728yshortcuts {
margin-right:0;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 div.ygrps-yiv-1415998685yiv2826665728attach-table div div a {
text-decoration:none;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 div.ygrps-yiv-1415998685yiv2826665728attach-table {
width:400px;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 div.ygrps-yiv-1415998685yiv2826665728file-title a, #ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 div.ygrps-yiv-1415998685yiv2826665728file-title a:active, #ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 div.ygrps-yiv-1415998685yiv2826665728file-title a:hover, #ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 div.ygrps-yiv-1415998685yiv2826665728file-title a:visited {
text-decoration:none;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 div.ygrps-yiv-1415998685yiv2826665728photo-title a, #ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 div.ygrps-yiv-1415998685yiv2826665728photo-title a:active, #ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 div.ygrps-yiv-1415998685yiv2826665728photo-title a:hover, #ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 div.ygrps-yiv-1415998685yiv2826665728photo-title a:visited {
text-decoration:none;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 div#ygrps-yiv-1415998685yiv2826665728ygrp-mlmsg #ygrps-yiv-1415998685yiv2826665728ygrp-msg p a span.ygrps-yiv-1415998685yiv2826665728yshortcuts {
font-family:Verdana;font-size:10px;font-weight:normal;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 .ygrps-yiv-1415998685yiv2826665728green {
color:#628c2a;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 .ygrps-yiv-1415998685yiv2826665728MsoNormal {
margin:0 0 0 0;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 o {
font-size:0;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728photos div {
float:left;width:72px;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728photos div div {
border:1px solid #666666;height:62px;overflow:hidden;width:62px;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728photos div label {
color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728reco-category {
font-size:77%;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728reco-desc {
font-size:77%;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 .ygrps-yiv-1415998685yiv2826665728replbq {
margin:4px;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-actbar div a:first-child {
margin-right:2px;padding-right:5px;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-mlmsg {
font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-mlmsg table {
font-size:inherit;font:100%;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-mlmsg select, #ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 input, #ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 textarea {
font:99% Arial, Helvetica, clean, sans-serif;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-mlmsg pre, #ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 code {
font:115% monospace;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-mlmsg * {
line-height:1.22em;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-mlmsg #ygrps-yiv-1415998685yiv2826665728logo {
padding-bottom:10px;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-msg p a {
font-family:Verdana;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-msg p#ygrps-yiv-1415998685yiv2826665728attach-count span {
color:#1E66AE;font-weight:700;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-reco #ygrps-yiv-1415998685yiv2826665728reco-head {
color:#ff7900;font-weight:700;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-reco {
margin-bottom:20px;padding:0px;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-sponsor #ygrps-yiv-1415998685yiv2826665728ov li a {
font-size:130%;text-decoration:none;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-sponsor #ygrps-yiv-1415998685yiv2826665728ov li {
font-size:77%;list-style-type:square;padding:6px 0;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-sponsor #ygrps-yiv-1415998685yiv2826665728ov ul {
margin:0;padding:0 0 0 8px;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-text {
font-family:Georgia;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-text p {
margin:0 0 1em 0;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-text tt {
font-size:120%;}

#ygrps-yiv-1415998685 #ygrps-yiv-1415998685yiv2826665728 #ygrps-yiv-1415998685yiv2826665728ygrp-vital ul li:last-child {
border-right:none !important;}
#ygrps-yiv-1415998685



the instruction should be something like 
so.NamedSearch.WhereClauses.Add("SugPoDtl", "BuyerID = 'DM' BY Name, PartNum, OrderByDate");"

 
Kind Regards,
Sergio P. 
CTO, Sr. Partner
Kind Regards,
Sergio P.

Mayan Technologies USA, Inc.
(858) 900.1555
sprieto@...




On Monday, May 4, 2015 12:42 PM, "sergio prieto s_a_prieto@... [vantage]" <vantage@yahoogroups.com> wrote:


 
<div id="ygrps-yiv-1195858004yiv9876923368ygrp-text">
  
  
  <div></div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><div id="ygrps-yiv-1195858004yiv9876923368yui_3_16_0_1_1430760580016_20996"><span>Hey Bernie, try this out...</span></div><div id="ygrps-yiv-1195858004yiv9876923368yui_3_16_0_1_1430760580016_20996"><span><br clear="none"></span></div><div id="ygrps-yiv-1195858004yiv9876923368yui_3_16_0_1_1430760580016_20996">
on line:
so.NamedSearch.WhereClauses.Add(wcHash, whereClause);

do this instead:
opts.NamedSearch.WhereClauses.Add("UDCodes", "Company='" + currentSession.CompanyID.ToString() + "' AND CodeTypeID = 'Plant' AND CodeID = '101'");// AND CodeID='" + currentSession.PlantID.ToString() + "'");
 
Kind Regards,
Sergio P. 
CTO, Sr. Partner
Kind Regards,
Sergio P.

Mayan Technologies USA, Inc.
(858) 900.1555
sprieto@...




On Friday, May 1, 2015 10:20 AM, "bwalker@... [vantage]" <vantage@yahoogroups.com> wrote:


 
<div id="ygrps-yiv-1195858004yiv9876923368ygrp-text">
  
  
  <div></div><div><span>I am trying to call the GetRowsPlant method on the POSugg adapter</span></div><div><span><br clear="none"></span></div><div><span>I am getting an error:</span></div><div><span>System.InvalidCastException: Unable to cast object of type &#39;System.Collections.HashTable&#39; to type &#39;System.String&#39;. at Erp.Adapters.POSuggAdapter.GetRowsPlant(SearchOptions opts, Boolean&amp; morePages)</span></div><div><span><br clear="none"></span></div><div><span><br clear="none"></span></div><div><span>The code I am trying:</span></div><div><span>POSuggAdapter adapterPOSugg = new POSuggAdapter(this.oTrans);<br clear="none">adapterPOSugg.BOConnect();</span></div><div><span><br clear="none"></span></div><div><span>string[] whereClause = new string[2];<br clear="none">whereClause[0] = &quot;BuyerID = &#39;DM&#39; BY Name, PartNum, OrderByDate&quot;;<br clear="none">whereClause[1] = String.Empty;<br clear="none">System.Collections.Hashtable wcHash = new System.Collections.Hashtable(2);<br clear="none">wcHash.Add(&quot;SugPoDtl&quot;,whereClause[0]);<br clear="none">wcHash.Add(&quot;SugPoMsc&quot;,whereClause[1]);<br clear="none">SearchOptions so = new SearchOptions(SearchMode.AutoSearch);<br clear="none">so.DataSetMode = DataSetMode.RowsDataSet;<br clear="none">so.NamedSearch.WhereClauses.Add(wcHash, whereClause);<br clear="none">bool morePages;</span></div><div><br clear="none"></div><div>System.Data.DataSet dsPOSugg = adapterPOSugg.GetRowsPlant(so, out morePages);</div><div><br clear="none"></div><div><br clear="none"></div><div>Can anyone spot the error of my ways?</div><div><br clear="none"></div><div>bw</div><span></span><div><br clear="none"></div><div><br clear="none"></div>

</div>
 


<div style="color:#fff;height:0;"></div></div>


</div>
 


<div style="color:#fff;height:0;"></div></div>
#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368 -- #ygrps-yiv-1195858004yiv9876923368ygrp-mkp { border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-mkp hr {
border:1px solid #d8d8d8;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-mkp #ygrps-yiv-1195858004yiv9876923368hd {
color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-mkp #ygrps-yiv-1195858004yiv9876923368ads {
margin-bottom:10px;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-mkp .ygrps-yiv-1195858004yiv9876923368ad {
padding:0 0;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-mkp .ygrps-yiv-1195858004yiv9876923368ad p {
margin:0;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-mkp .ygrps-yiv-1195858004yiv9876923368ad a {
color:#0000ff;text-decoration:none;}
#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-sponsor #ygrps-yiv-1195858004yiv9876923368ygrp-lc {
font-family:Arial;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-sponsor #ygrps-yiv-1195858004yiv9876923368ygrp-lc #ygrps-yiv-1195858004yiv9876923368hd {
margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-sponsor #ygrps-yiv-1195858004yiv9876923368ygrp-lc .ygrps-yiv-1195858004yiv9876923368ad {
margin-bottom:10px;padding:0 0;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368actions {
font-family:Verdana;font-size:11px;padding:10px 0;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368activity {
background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368activity span {
font-weight:700;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368activity span:first-child {
text-transform:uppercase;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368activity span a {
color:#5085b6;text-decoration:none;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368activity span span {
color:#ff7900;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368activity span .ygrps-yiv-1195858004yiv9876923368underline {
text-decoration:underline;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 .ygrps-yiv-1195858004yiv9876923368attach {
clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 .ygrps-yiv-1195858004yiv9876923368attach div a {
text-decoration:none;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 .ygrps-yiv-1195858004yiv9876923368attach img {
border:none;padding-right:5px;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 .ygrps-yiv-1195858004yiv9876923368attach label {
display:block;margin-bottom:5px;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 .ygrps-yiv-1195858004yiv9876923368attach label a {
text-decoration:none;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 blockquote {
margin:0 0 0 4px;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 .ygrps-yiv-1195858004yiv9876923368bold {
font-family:Arial;font-size:13px;font-weight:700;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 .ygrps-yiv-1195858004yiv9876923368bold a {
text-decoration:none;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 dd.ygrps-yiv-1195858004yiv9876923368last p a {
font-family:Verdana;font-weight:700;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 dd.ygrps-yiv-1195858004yiv9876923368last p span {
margin-right:10px;font-family:Verdana;font-weight:700;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 dd.ygrps-yiv-1195858004yiv9876923368last p span.ygrps-yiv-1195858004yiv9876923368yshortcuts {
margin-right:0;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 div.ygrps-yiv-1195858004yiv9876923368attach-table div div a {
text-decoration:none;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 div.ygrps-yiv-1195858004yiv9876923368attach-table {
width:400px;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 div.ygrps-yiv-1195858004yiv9876923368file-title a, #ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 div.ygrps-yiv-1195858004yiv9876923368file-title a:active, #ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 div.ygrps-yiv-1195858004yiv9876923368file-title a:hover, #ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 div.ygrps-yiv-1195858004yiv9876923368file-title a:visited {
text-decoration:none;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 div.ygrps-yiv-1195858004yiv9876923368photo-title a, #ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 div.ygrps-yiv-1195858004yiv9876923368photo-title a:active, #ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 div.ygrps-yiv-1195858004yiv9876923368photo-title a:hover, #ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 div.ygrps-yiv-1195858004yiv9876923368photo-title a:visited {
text-decoration:none;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 div#ygrps-yiv-1195858004yiv9876923368ygrp-mlmsg #ygrps-yiv-1195858004yiv9876923368ygrp-msg p a span.ygrps-yiv-1195858004yiv9876923368yshortcuts {
font-family:Verdana;font-size:10px;font-weight:normal;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 .ygrps-yiv-1195858004yiv9876923368green {
color:#628c2a;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 .ygrps-yiv-1195858004yiv9876923368MsoNormal {
margin:0 0 0 0;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 o {
font-size:0;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368photos div {
float:left;width:72px;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368photos div div {
border:1px solid #666666;height:62px;overflow:hidden;width:62px;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368photos div label {
color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368reco-category {
font-size:77%;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368reco-desc {
font-size:77%;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 .ygrps-yiv-1195858004yiv9876923368replbq {
margin:4px;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-actbar div a:first-child {
margin-right:2px;padding-right:5px;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-mlmsg {
font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-mlmsg table {
font-size:inherit;font:100%;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-mlmsg select, #ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 input, #ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 textarea {
font:99% Arial, Helvetica, clean, sans-serif;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-mlmsg pre, #ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 code {
font:115% monospace;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-mlmsg * {
line-height:1.22em;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-mlmsg #ygrps-yiv-1195858004yiv9876923368logo {
padding-bottom:10px;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-msg p a {
font-family:Verdana;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-msg p#ygrps-yiv-1195858004yiv9876923368attach-count span {
color:#1E66AE;font-weight:700;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-reco #ygrps-yiv-1195858004yiv9876923368reco-head {
color:#ff7900;font-weight:700;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-reco {
margin-bottom:20px;padding:0px;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-sponsor #ygrps-yiv-1195858004yiv9876923368ov li a {
font-size:130%;text-decoration:none;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-sponsor #ygrps-yiv-1195858004yiv9876923368ov li {
font-size:77%;list-style-type:square;padding:6px 0;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-sponsor #ygrps-yiv-1195858004yiv9876923368ov ul {
margin:0;padding:0 0 0 8px;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-text {
font-family:Georgia;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-text p {
margin:0 0 1em 0;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-text tt {
font-size:120%;}

#ygrps-yiv-1195858004 #ygrps-yiv-1195858004yiv9876923368 #ygrps-yiv-1195858004yiv9876923368ygrp-vital ul li:last-child {
border-right:none !important;}
#ygrps-yiv-1195858004