Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..
2021-06-17 01:28 PM
Archer Community,
If anyone needs a function to show or collapse a section, e.g. simulate a click, here's a function to do it.
Pass the section name as the parameter. Written in Archer version 6.9. SP2.
function sectionClick( sectionName ) {
// find the spans with the section label text
$('.SectionLabel.sectionLabelWithInfo').each( function() {
// console.log( 'sectionClick: checking section = ' + $(this).text() );
// is this the one we're looking for?
if( $(this).text() == sectionName ) {
// console.log( 'sectionClick: found it' );
// yes, walk up the dom, click the enclosing row, and break the each loop
$(this).parents('tr')[0].click();
return false;
}
} );
}
Rus
2021-06-18 04:37 AM - edited 2021-06-18 04:38 AM
Jason Solar had something similar, which is nice to check too: https://community.rsa.com/t5/archer-custom-objects/collapse-all-sections-for-archer-version-6-x/ta-p/548442