Templates - get name of column inside calling script

I have my own function which is used to calculate template value.

Inside of this function I would like to get information for which column and table it was called?

Is it possible?

Parents Reply
  • Actually I found a way to do it. Each template is a separate function with name Tmpl_TableName_ColumnName() so we can get name of function which is called and get data.

    Dim TemplateObject As List(Of String) = System.Refelection.MethodBase.GetCurrentMethod().Name.Split("_"c).ToList
    Dim TableName As String = TemplateObject(1).ToString()
    Dim ColumnName As String = TemplateObject(2).ToString()

Children
No Data