rice-framework/krad-web/src/main/webapp/krad/scripts/krad.lookup.js
/**
 * Function that returns results field values when a return link is invoked
 *
 * @param returnLink link that was selected
 */
Function that returns results field values when a return link is invoked

@param returnLink link that was selected
Function that returns results field values when a return link is invoked @param returnLink link that was selected
function returnLookupResultsByScript(returnLink) {
    setupImages();
    var jqReturnLink = jQuery(returnLink);
    var returnData = jqReturnLink.attr(kradVariables.ATTRIBUTES.DATA_RETURN);
    var returnFieldValues = jQuery.parseJSON(returnData);
    var returnField;
    for (var returnFieldName in returnFieldValues) {
        if (!returnFieldValues.hasOwnProperty(returnFieldName)) {
            continue;
        }
        var returnFieldValue = returnFieldValues[returnFieldName];
        returnField = findElement('[name="' + escapeName(returnFieldName) + '"]');
        if (!returnField.length) {
            continue;
        }
        returnField.val(returnFieldValue);
        returnField.focus();
        returnField.blur();
        returnField.change();
    }
    if (returnField) {
        returnField.focus();
    }
    closeIframeDialog();
}
function returnLookupResultsByScript ( returnLink ) { setupImages ( ) ; var jqReturnLink = jQuery ( returnLink ) ; var returnData = jqReturnLink . attr ( kradVariables . ATTRIBUTES . DATA_RETURN ) ; var returnFieldValues = jQuery . parseJSON ( returnData ) ; var returnField ; for ( var returnFieldName in returnFieldValues ) { if ( ! returnFieldValues . hasOwnProperty ( returnFieldName ) ) { continue ; } var returnFieldValue = returnFieldValues [ returnFieldName ] ; returnField = findElement ( '[name="' + escapeName ( returnFieldName ) + '"]' ) ; if ( ! returnField . length ) { continue ; } returnField . val ( returnFieldValue ) ; returnField . focus ( ) ; returnField . blur ( ) ; returnField . change ( ) ; } if ( returnField ) { returnField . focus ( ) ; } closeIframeDialog ( ) ; }
Function that returns results field values when a return link is invoked
Function that returns results field values when a return link is invoked
// trigger any ajax queries with the blur event
 // set focus to last returned field
