cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically Change Column Names in Display Template

sidnooradarsh
Contributor
0 Kudos

Hi,

I have a BLS transaction which creates columns on fly and outputs the data.

for example say my transaction for selected date it gives me 10 columns and for some other selected date it gives me 20 columns.

But since I have mapped the earlier obtained columns i.e. 10 columns in Display template, I won't get any output when my transaction returns 20 columns. Display template looks for only earlier mapped columns not on those which are generated on fly.

Regards,

Adarsh S P

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

in that case you have to use an empty table and create the colums and the values inside them inside the wdDoModify method.

I think it would be good if you had a look at the tutorial where the dynamic creation of ui elements is beeing described.

[Wiki|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/dynamic%2bui%2bgeneration]

kind regards

Fabian