Hey Friends,
Can anyone help me out how to generate dynamic columns at run time using displaytag.
depends on the user criteria i need to fetch the columns from database and generate them. so i need to iterate the display:column tag for all the columns.
say i have the list of different maps. each ap may contain property,amount
for example employee earning1 map : property:"Basic" amount:"$1000"
for example employee earning2 map : property:"HRA" amount:"$100"
so i put these maps into a list..
now while i print the columns i need to print the property "Basic" as one column heading(th) and tht corresponding amount "$1000" in the tr similarly i need to print another column "HRA" as th and tr value as "$100"
i am using forEach, but not able to get that.
please help me out how to get this done as the column names n vales r dynamic n needs to be generated at run time
Many Thanks in advance!
--
------------------
Best Regards
Kranti Kiran Kumar Parisa
Mobile: +91 - 9849 - 625 - 625 +91 - 9391 - 438 - 738
--
------------------
Best Regards
Kranti Kiran Kumar Parisa
Mobile: +91 - 9849 - 625 - 625 +91 - 9391 - 438 - 738

