• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Column Customization in the Listing using Parameters set in database

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a requirement where we have two different section called 'Export' and 'Admin>>Setup>>Customization'. In the 'Export' Section we display the details in a list format by fetching the details from the database. I have attached the image which shows the listing screen of export. Then we have admin customization section where we specify how the column should be displayed in the listing. For example if I select 'Column 1' as 'Report Identifier' and 'Column 4' as 'Message Number' then in listing screen should be altered dynamically to display the same.

I have attached the customization screen also with this


In simple terms, the columns 'Message Number' and 'Report Identifier' should be interchanged according to the configuration in Admin Customization screen

Kindly Help

Thanks and Regards
Dilip H P
export.png
[Thumbnail for export.png]
Export Listing
Customization.png
[Thumbnail for Customization.png]
Admin Customization
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So what have you tried so far and where are you stuck?
 
Dilip H Pashupathi
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have tried using struts logic tags with some back end database codes, it works. But we can't use that, we need to refine it such that we can avoid multiple conditions in the jsp page. If i add another, I again need to alter the jsp page to display the same. I am trying with AJAX and JQuery but not sure how to work with them.

 
Dilip H Pashupathi
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

This customization will affect the entire application as a hole. Just like the export listing screen I have shown above there are another 7 other listing screen in the application.
 
Dilip H Pashupathi
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

This is how the JSP code for Headings look like.



And data for the same would be as follows


This entire application is based on Struts.

reply
    Bookmark Topic Watch Topic
  • New Topic