Hi All,
Already we have Server report which is used to Exports a list of all servers with attributes. We need to edit some fields in that report. But the report headings are configured in the method named AttrTypeName.
setCell(oWS, r, c, oFilter.AttrTypeName(oAttrType), oCSHeader);
I am not aware of how to edit the values in the AttrTypeName.
Could somebody guide me how to add or delete the headings in the report. Please advice how to edit the method AttrTypeName.
Thanks in advance. Its urgent. Please help.
Martin Miskovic on
Hi Nisha,
AttrTypeName method changes the Attribute Type Number (oAttrType) to its Name as String.
setCell is your user defined function which I assume adds text and style to one header cell. For further info I would need to know how this function looks like. If I am right, then:
1. If you want to change the text of the heading, just change oFilter.AttrTypeName(oAttrType) to desired text.
2. If you want to add / remove header, just remove this line from code. But keep in mind, you have to also remove the line where you put cell values of this column to other rows. Script should add cells in specific row in each iteration, from left to right.
Martin