ReportingAnalyst
MIS
Hi,
On load of the my page, I see one employee, 5 radio buttons for reports. I can drill down on the employee and see the subordinates.
I have a page where I click on a radio button to select an employee (typically a manager), select another radio button to select a report, based on the report radio button selected, dropdown boxes show up, users select the values in the dropdown boxes and click on the submit button.
I view the report, then want to come back to the previous page to see the report of another employee - say a manager's subordinate.
What happens is the page does not show the state I left it in.
Hierarchy is all collapsed. (but if I expand it again, I can see the selected subordinate)
Radio buttons for the reports shows. But the dropdown boxes for the selected radio button do not show. In order to show them again, I click on another radio button and go back to the previously selected radio button to see the drop down values.
So my question is how can I preserve the state of my page without the form elements hidden or collapsed
My javascript for the hierarchial tree is:
My Javascripf for the report radio buttons is:
On load of the my page, I see one employee, 5 radio buttons for reports. I can drill down on the employee and see the subordinates.
I have a page where I click on a radio button to select an employee (typically a manager), select another radio button to select a report, based on the report radio button selected, dropdown boxes show up, users select the values in the dropdown boxes and click on the submit button.
I view the report, then want to come back to the previous page to see the report of another employee - say a manager's subordinate.
What happens is the page does not show the state I left it in.
Hierarchy is all collapsed. (but if I expand it again, I can see the selected subordinate)
Radio buttons for the reports shows. But the dropdown boxes for the selected radio button do not show. In order to show them again, I click on another radio button and go back to the previously selected radio button to see the drop down values.
So my question is how can I preserve the state of my page without the form elements hidden or collapsed
My javascript for the hierarchial tree is:
Code:
function s_Hide(el){
obj = document.getElementById(el).style;
(obj.display == 'none')? obj.display = 'block' : obj.display = 'none';
}
My Javascripf for the report radio buttons is:
Code:
function showHide(el)
{
var f = el.form;
for(var i=0; i<f.crystalradio.length; i++)
{
if( f.crystalradio[i].checked )
{
switch( f.crystalradio[i].value )
{
case 'CommissionStatement':
case 'PaymentReconciliation':
document.getElementById( 'commpay' ).style.display = 'block';
document.getElementById( 'quarter_perf_team' ).style.display = 'none';
document.getElementById( 'salesrank' ).style.display = 'none';
document.getElementById( 'quarter_Perf' ).style.display = 'none';
document.getElementById( 'sales_prod' ).style.display = 'none';
//document.getElementByID( 'span').style.display = 'block'
break;
case 'QuarterlyPerformance-Team':
document.getElementById( 'commpay' ).style.display = 'none';
document.getElementById( 'quarter_perf_team' ).style.display = 'block';
document.getElementById( 'salesrank' ).style.display = 'none';
document.getElementById( 'quarter_Perf' ).style.display = 'none';
document.getElementById( 'sales_prod' ).style.display = 'none';
//document.getElementByID( 'span').style.display = 'block'
break;
}
}
}
}