<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 'System.Collections.HashTable' to type 'System.String'. at Erp.Adapters.POSuggAdapter.GetRowsPlant(SearchOptions opts, Boolean& 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] = "BuyerID = 'DM' BY Name, PartNum, OrderByDate";<br clear="none">whereClause[1] = String.Empty;<br clear="none">System.Collections.Hashtable wcHash = new System.Collections.Hashtable(2);<br clear="none">wcHash.Add("SugPoDtl",whereClause[0]);<br clear="none">wcHash.Add("SugPoMsc",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