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

@param collectionId - id for the collection to select checkboxes for
Select all checkboxes within the collection div that are marked with class ' uif - select - line ' ( used for multi - value select collections ) on the current page and updates the selectedlinecount @param collectionId - id for the collection to select checkboxes for
function selectAllPageLines(collectionId) {
    var selectedLineCount = jQuery('#' + collectionId).data('selectedlinecount');
    jQuery("#" + collectionId).find("input:checkbox." + kradVariables.SELECT_FIELD_STYLE_CLASS).each(function (index) {
        if (jQuery(this).attr('checked') != true) {
            jQuery(this).attr('checked', true);
            selectedLineCount = selectedLineCount + 1;
        }
    });
    var lookupCollectionDiv = jQuery('#' + collectionId);
    lookupCollectionDiv.data('selectedlinecount', selectedLineCount);
    setMultivalueLookupReturnButton(jQuery("#" + collectionId));
}
function selectAllPageLines ( collectionId ) { var selectedLineCount = jQuery ( '#' + collectionId ) . data ( 'selectedlinecount' ) ; jQuery ( "#" + collectionId ) . find ( "input:checkbox." + kradVariables . SELECT_FIELD_STYLE_CLASS ) . each ( function ( index ) { if ( jQuery ( this ) . attr ( 'checked' ) != true ) { jQuery ( this ) . attr ( 'checked' , true ) ; selectedLineCount = selectedLineCount + 1 ; } } ) ; var lookupCollectionDiv = jQuery ( '#' + collectionId ) ; lookupCollectionDiv . data ( 'selectedlinecount' , selectedLineCount ) ; setMultivalueLookupReturnButton ( jQuery ( "#" + collectionId ) ) ; }
Select all checkboxes within the collection div that are marked with class 'uif-select-line' (used
 for multi-value select collections) on the current page and updates the selectedlinecount
Select all checkboxes within the collection div that are marked with class ' uif - select - line ' ( used for multi - value select collections ) on the current page and updates the selectedlinecount