Web Connection
Dynamic Grid Columns
Gravatar is a globally recognized avatar based on your email address. Dynamic Grid Columns
  Luca
  All
  Sep 9, 2019 @ 11:42pm

Dear Rick,
I have a simple problem, but I cannot resolve it.
I would like to create dynamically Columns for a Grid, there could be until 31 columns (days of a month)
HeaderText, UniqueId and AddControl are ok, but I am not able to write the right command for Column.Expression.
Thank you very much for support!

* m.cDay from "1" to "31" but many values are excluded under certain conditions in a FOR/ENDFOR cycle  

m.Field1="Table1.Day"+m.cDay
m.Field2="Table1.Hour"+m.cDay
					
m.String="This.Column" + m.cDay + ".Expression=" + "=HRef('Calendar.wc?Day=' + '"+m.Field1 + "','" + m.Field2 + "')'"
&String  

© 1996-2024