← Back to team overview

dhis2-devs team mailing list archive

Id attribute for back button in standard reports

 

Hi all, lately have been working on html reports. I have created custom
home page as a standard html report in which I have categorized the reports
as per user needs. When user selects any report from this page
corresponding html report will be generated. After generation of the report
when user clicks on BACK button it will take us to dhis default reports
page. To fix that in my html report I looked for second button (which is
back) and overwrote onclick event. This is working fine but if we add more
buttons or if button order changes then it won't work.

The easy and doable solution could be having id for button tag like the way
we have for print button.

If there is any other option please let me know. Thanks