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?
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?
No, this is not possible. You would need to provide the TableName/ColumnName to your function in your call from the value template manually.
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()
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()