Quantcast
Channel: SCN : Discussion List - SAP Enterprise Portal : Administration and Development
Viewing all articles
Browse latest Browse all 2686

Drop Down requirement

$
0
0

Hi All,

 

I have a JSPdynpage application in that i have a requirement for drop downs where i have created  three drop downs for ex: Reports, Month,Year after selecting Reports, Month, Year i am displaying some documents from KM based on the selection for (ex: Report: X Month:January Year: 2013)

i have written code for drop downs using javascript and it is working fine. Here issue is that for every selection i have to write a IF conditions like that i have to write conditions for 12 reports and 12 months

 

ex:

if(Report==X && Month==Jan && Year==2013))

{

//some code for displaying Jan Files

}

if(Report==X && Month==Feb && Year==2013)

{

//some code for displaying Feb Files

}

...... writing conditions for same 'X' report 12 times for 12 months Jan-Dec.

and my code will be too long is there any alternative way to do that like dynamically getting documents on selection of drop downs without writing too many conditions.

 

Please help....

 

Thanks,

Rahul.


Viewing all articles
Browse latest Browse all 2686

Trending Articles