The following returns the name of the property whose formula is getting executed. It only works for Standard and ValidValues formulae:
Result = Me.CurrentProperty.ObjName
Note: When used for ValidValues the result will consist of the property name concatenated with "_ValiValues". To trim "_ValidValues" from this result:
Dim propName As String = Me.CurrentProperty.ObjName
Result = Split(propName, "_")(0)
It works fine for the Standard formulae. But If I'm trying to get the property name from the ValidValues using Me.CurrentProperty.ObjName (or Name) I'm getting "PropName_ValidValues", where the PropName is the property name. Then I need to work with this string to exclude "_ValidValues" from it.
Is there any way to get property name from ValidValues directly?
Thanks to Kirill_EI for the update to the article with regards to ValidValues.
I've used that
It gives you the function name. Rulestream property formula function is usually Formula_<propertyName>
This is a better way to get it. Thanks.