Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=2863594
By: srisubu

We found the work around using the Javascript.  Here is the javascript that
you need to call in your onclick event of your checkbox

function saveProcess() {
    var urlpath = '/myProject/do/SaveProcess?';
    
    // dprtElement is shorthand for the displayTable 
    // displayTable is your displayTag Table id
HTMLTableElement 
    var dprtElement = document.getElementById( 'displayTable' );    
        
    // dtscElement is short for displaytag sortable column element
    // we find that in the for loop that follows
    var dtscElement = null;
    var headerCells = dprtElement.rows[0].cells;
    
    for( var i = 0; i < headerCells.length; i++ ) {
        var cell = headerCells[i];
        //Name is your sortable column name
        if( cell.innerHTML.match(/Name/i) != null ) {
            dtscElement = cell;             
            break;
        }
    }
    //Getting the AnchorTag parameterlist    
    var displayTagAnchorElement = dtscElement.getElementsByTagName('a')[0];
       
    var queryStringMap = getQueryStringMap( displayTagAnchorElement.search );
        
    for( var key in queryStringMap ) {
        
     urlpath = urlpath + key + '=' +queryStringMap[key] + '&';
    }    
    
    openedWindow = window.open(urlpath,'_self','',false);
    openedWindow.focus();
}


    // Examine a query string and attempt to return an object that may
    // be used as a map (JavaScript associative array) where each key in
    // the query string is a property of the object property having the
    // same value inidicated by the key of the same name in the query
    // string.  Psuedo JavaScript may help explain.  Given a call that
    // is effectively something like
    //
    //    map = getQueryStringMap( '?bar=baz&homer=doh' );
    //
    //        then
    //
    //    map['bar'] would return 'baz'
    //
    //        and
    //
    //    map['homer'] would return 'doh'
    //
 function getQueryStringMap( queryString ) {
        var arrayOfKeyedValues = parseKeyValues( queryString );
        var map = parseKeyValuesIntoAssocativeArray( arrayOfKeyedValues );
        return map;
    }

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=249317


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to