<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello All<div><br></div><div>I have a lookup query that I am trying to add into table-editor</div><div>here is my query:</div><div>[perl tables=products interpolate=1]<br>   my ($ary,$index_hash,$name_ary) = $Db{product_codes}->query("SELECT distinct category FROM products_codes WHERE owner = '[data session username]' ORDER BY category ASC");<br>       $Tmp->{category} = {<br>               mv_results => $ary,<br>                mv_field_names => $name_ary,<br>       };<br>    return;<br>[/perl][loop object=`$Tmp->{category}` prefix=cat]</div>      [cat-code]<br>[/loop]<div> I can loop the results as expected with [loop object=`$Tmp->{category}` prefix=cat]<br>        [cat-code]</div><div>[/loop]</div><div>But adding the resultant set into table editor I am having issues with</div><div>[table-editor<br>    auto_secure=1<br> form_name=item_editor<br> mv_data_table=products_code<br>    widget.category=combo<br>    filter.category=nullselect<br>    override.category=|[loop object=`$Tmp->{category}` prefix=cat][cat-code][/loop]|<br> override.owner=`$Session->{username}`<br>      hidden.owner=`$Session->{username}`<br>        override.company=`$Values->{company}`<br>    hidden.company=`$Values->{company}`<br>        ]<br></div><div><br></div><div>I've even tried using: lookup_query.category=`select distinct category from products_codes where owner='$Session->{username}'`</div><div><br></div><div>If I try lookup_query.category=`select distinct category from products_codes where owner='bob'`</div><div></div><div>the list populates</div><div><br></div><div>I am on IC 5.12</div><div>i am sure the issue is with interpolation but getting the list to show up correctly I am having a bugger of a time trying fo figure out.</div><div><br></div><div>Any direction would be helpful</div><div><br></div><div>Thank you </div><div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">J. Scott Andreas<br>Ph:541-729-6090<br>email: <a href="mailto:scott@tildaworks.com" target="_blank">scott@tildaworks.com</a></div></div></div></div></div></div>