Hi,
I have the following html for a user to choose an item and enter date:
itemchoice= "Please Select an Item: &nbsp<SELECT id='items'><OPTION VALUE='1'>Item1<OPTION VALUE='2'>Item2<OPTION VALUE='3'>item3</SELECT>&nbsp &nbsp &nbsp Date: &nbsp <INPUT TYPE='TEXT' SIZE='5' id='Date' VALUE=''>&nbsp"; itemchoice+= "<input type='button' onclick='getinvoices()' value='Results'>";
[SIZE=2][COLOR=#5c5c5c]When the user hit "Results" I would like it to call the following Suitelet while passing the [item] and [date] user input to the filters:[/COLOR][/SIZE] function getinvoices(request,response){ var ivcFilters = []; ivcFilters[0] = new nlobjSearchFilter('item', null, 'anyof', item); ivcFilters[1] = new nlobjSearchFilter('trandate', null, 'onorafter', date); var ivcColumns = []; ivcColumns[0] = new nlobjSearchColumn('internalid', null, null); ivcColumns[1] = new nlobjSearchColumn('type', null, null); var itemivcSearch = new Array(); itemivcSearch = nlapiSearchRecord('invoice', null, ivcFilters, ivcColumns);