rice-framework/krad-web/src/main/webapp/krad/scripts/krad.lookup.js
/**
 * Select all checkboxes within the datatable/non datatable (all pages) that are marked with class 'uif-select-line'
 * (used for multi-value select collections)
 *
 * @param collectionId - id for the collection to select checkboxes for
 */
Select all checkboxes within the datatable/non datatable (all pages) that are marked with class 'uif-select-line'
(used for multi-value select collections)

@param collectionId - id for the collection to select checkboxes for
Select all checkboxes within the datatable / non datatable ( all pages ) that are marked with class ' uif - select - line ' ( used for multi - value select collections ) @param collectionId - id for the collection to select checkboxes for
function selectAllLines(collectionId) {
    var query = "input:checkbox." + kradVariables.SELECT_FIELD_STYLE_CLASS;
    var lookupCollectionDiv = jQuery("#" + collectionId);
    if (jQuery('table.dataTable').length > 0) {
        var oTable = getDataTableHandle(lookupCollectionDiv.find("table").attr('id'));
        jQuery(query, oTable.fnGetNodes()).each(function (index) {
            this.checked = true;
        });
    } else {
        jQuery(lookupCollectionDiv.find(query)).each(function (index) {
            jQuery(this).attr('checked', true);
        });
    }
    var lookupResultCount = lookupCollectionDiv.data('lookupresultscount');
    lookupCollectionDiv.data('selectedlinecount', lookupResultCount);
    setMultivalueLookupReturnButton(jQuery("#" + collectionId));
}
function selectAllLines ( collectionId ) { var query = "input:checkbox." + kradVariables . SELECT_FIELD_STYLE_CLASS ; var lookupCollectionDiv = jQuery ( "#" + collectionId ) ; if ( jQuery ( 'table.dataTable' ) . length > 0 ) { var oTable = getDataTableHandle ( lookupCollectionDiv . find ( "table" ) . attr ( 'id' ) ) ; jQuery ( query , oTable . fnGetNodes ( ) ) . each ( function ( index ) { this . checked = true ; } ) ; } else { jQuery ( lookupCollectionDiv . find ( query ) ) . each ( function ( index ) { jQuery ( this ) . attr ( 'checked' , true ) ; } ) ; } var lookupResultCount = lookupCollectionDiv . data ( 'lookupresultscount' ) ; lookupCollectionDiv . data ( 'selectedlinecount' , lookupResultCount ) ; setMultivalueLookupReturnButton ( jQuery ( "#" + collectionId ) ) ; }
Select all checkboxes within the datatable/non datatable (all pages) that are marked with class 'uif-select-line'
 (used for multi-value select collections)
Select all checkboxes within the datatable / non datatable ( all pages ) that are marked with class ' uif - select - line ' ( used for multi - value select collections )
// If results are displayed using dataTable
 // get a handle on the datatables plugin object for the results collection
 // Reset data attribute selectedlinecount to number of results in the lookup
