I am trying to use the Dialog Object Filtered list and I just can't seem to get it to work. I keep getting javascript errors on the last line. Since I am using a date as the filter I have tried several variations as noted below. I even tried switching the filter to a straight character based field just to get it to work not on dates and still ended up the errors.
I can only think I am doing something wrong on creating the params filter.
Any help would be appreciated.
Tom
//with date in brackets and as a D type
var a_review_date ={dialog.Object}.getValue('review_date');
var params = '{'+a_review_date+'}'+'|||D|a_date' ;
alert(params);
{dialog.object}._filterList('Entered','actiondate=:a_date',,params);
// with date in brackets as a C type
var a_review_date ={dialog.Object}.getValue('review_date');
var params = '{'+a_review_date+'}'+'|||C|a_date' ;
alert(params);
{dialog.object}._filterList('Entered','actiondate=:a_date',,params);
// date not in brackets as a D type
var a_review_date ={dialog.Object}.getValue('review_date');
var params = a_review_date+'|||D|a_date' ;
alert(params);
{dialog.object}._filterList('Entered','actiondate=:a_date',,params);
// date not in brackets as a C type
var a_review_date ={dialog.Object}.getValue('review_date');
var params = a_review_date+'|||C|a_date' ;
alert(params);
{dialog.object}._filterList('Entered','actiondate=:a_date',,params);
Alpha prototype
//use \n to create a cr-lf delimited list
var params = 'Boston|||C|whatcity\nSmith|||C|whatname';
{dialog.object}._filterList('MYLIST1','city = :whatcity AND name = :whatname','',params);
I can only think I am doing something wrong on creating the params filter.
Any help would be appreciated.
Tom
//with date in brackets and as a D type
var a_review_date ={dialog.Object}.getValue('review_date');
var params = '{'+a_review_date+'}'+'|||D|a_date' ;
alert(params);
{dialog.object}._filterList('Entered','actiondate=:a_date',,params);
// with date in brackets as a C type
var a_review_date ={dialog.Object}.getValue('review_date');
var params = '{'+a_review_date+'}'+'|||C|a_date' ;
alert(params);
{dialog.object}._filterList('Entered','actiondate=:a_date',,params);
// date not in brackets as a D type
var a_review_date ={dialog.Object}.getValue('review_date');
var params = a_review_date+'|||D|a_date' ;
alert(params);
{dialog.object}._filterList('Entered','actiondate=:a_date',,params);
// date not in brackets as a C type
var a_review_date ={dialog.Object}.getValue('review_date');
var params = a_review_date+'|||C|a_date' ;
alert(params);
{dialog.object}._filterList('Entered','actiondate=:a_date',,params);
Alpha prototype
//use \n to create a cr-lf delimited list
var params = 'Boston|||C|whatcity\nSmith|||C|whatname';
{dialog.object}._filterList('MYLIST1','city = :whatcity AND name = :whatname','',params);
Comment