Hi, On Fri, Nov 18, 2016 at 11:34 AM, Danoja Dias <[email protected]> wrote:
> Hi All, > > The current IS Analytics Alerts Dashboard shows 'Security View Alerts' > table with pagination. > I am implementing a new functionality to download all security alerts data > of the same as a PDF file. > > I need to get the column names of the view alerts table (for specific > alert type/s) to draw the table into the PDF file. In the current > implementation column names of the tables are hard coded in respective > gadget main.js files. > Please clarify this. Do you mean the table column name mapping with a user friendly name is hardcoded? eg: USR_ID > User Id DESC > Description If this is what you meant, I think better option is to change the query and add aliases to columns in the DML query so the both functions can use the same name without a column name mapping. > I decided to add new js file into "IsAnalytics_Gadget_Commons" directory > (this has common js files) to get the column names. Then both > 'IsAnalytics_Gadget_AlertsSummery' and 'IsAnalytics_Gadget_AlertsView' > gadgets can get these column names from a common place. > > Any suggestions or comments on this new implementation are welcome. > > Thanks. > -- > Best Regards, > Danoja Dias > Intern Software Engineering - WSO2 > > Email : [email protected] > Mobile : +94771160393 > > [image: http://wso2.com/signature] <http://wso2.com/signature> > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Lahiru Cooray* Software Engineer WSO2, Inc.;http://wso2.com/ lean.enterprise.middleware Mobile: +94 715 654154
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
