on 08-17-2018 11:09 AM
My Question is about : I am doing dynamic table and getting the result but i want to show in different way like Transpose. because I am having N numbers of column values and only 5 row values. So I want to show my table as Vertical way means like Transpose (column value should show as Row and Row value as Column)
var columnData = [{ columnName: "Attr1" }, { columnName: "Attr2" }, { columnName: "Attr3" }, { columnName: "Attr4" }, { columnName: "Attr5" }, { columnName: "Attr6" }, { columnName: "Attr7" }, { columnName: "Attr8" }, { columnName: "Attr9" }, { columnName: "Attr10" }, { columnName: "Attr11" }];
var rowData = [{ Attr1: "Mat1", Attr2: "Product1", Attr3: "Reason1", Attr4: "Global1", Attr5: "India", Attr6: "Brand1", Attr7: "Size-L", Attr8: "Falv1", Attr9: "Mat1", Attr10: "Cat1", Attr11: "UOM1" }, { Attr1: "Mat2", Attr2: "Product2", Attr3: "Reason2", Attr4: "Global2", Attr5: "UK", Attr6: "Brand2", Attr7: "Size-M", Attr8: "Falv2", Attr9: "Mat2", Attr10: "Cat2", Attr11: "UOM2" }, { Attr1: "Mat3", Attr2: "Product3", Attr3: "Reason3", Attr4: "Global3", Attr5: "US", Attr6: "Brand3", Attr7: "Size-XL", Attr8: "Falv3", Attr9: "Mat3", Attr10: "Cat3", Attr11: "UOM3" }];
This is my actual Result what I am getting:
Expected Result what i want:
Thanks & Regards
Preeti
Hey I am stuck with similar requirement.....need to transpose a column . Could you please help.me with some guidance
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
8 | |
8 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.