how compare Enumerations data type with String data type in XPATH?

1
getCaption and getKey function can be use in expression for return the Enumerations data type, how compare Enumerations data type with String data type in XPATH?
asked
3 answers
1

You can create an enum variable and set it based on the string. In the xpath you can then compare with the enum variable instead of the string.

answered
0

You can’t change an enum at runtime. The enum values are always hard coded. I don’t think an enum is what solves your problem.

You need to be able to select one object in a dropdown. Why don’t you use an association between the object shown in your page (or a helper object that you create to do this) and a reference selector. The reference selector can be a dropdown that is dynamic and shows all possible values from the DB.

answered
0

I have solve the problem.

because the enumeration can not compare with string type directly. there two methods to solve it.

  1. in microflow, create a string variable, then use change variable action, in change variable dialog window. in the expression, use GetKey(enumeration) or GetCaption(enumeration) to set the variable
  2. or , can design a entiny with string type, use change object action, in change object dialog window, in the expression, GetKey(enumeration) or GetCaption(enumeration) to set the variable.
answered