It has been a popular request to add support into Lianja for "pick lists" so in Lianja 6.3 I have implemented Lianja.showPickList().
Code:
Lianja.showPickList(
"Select an Order", /* title */
function(rowdata) /* onok */
{
// rowdata is an object with members for all columns in the active grid record
console.log(rowdata);
},
function() /* oncancel */
{
},
600, /* width */
600, /* height */
"southwind", /* database */
"orders", /* table */
"", /* filter */
[ /* columns to display */
{caption: 'CustomerID', controlsource: 'customerid', type: 'C', width: 100},
{caption: 'OrderID', controlsource: 'orderid', type: 'C', width: 100},
{caption: 'Order Date', controlsource: 'orderdate', type: 'D', width: 100},
{caption: 'Required Date', controlsource: 'requireddate', type: 'D', width: 100},
{caption: 'Shipped Date', controlsource: 'shippeddate', type: 'D', width: 100}
]
);
The onok callback is called if the user double clicks a row to select it. It is passed an object which contains members for all columns in the active record.
See screenshots below.

You can search for text across the rows of the grid and a searchfilter is applied.
Bookmarks