Text Conversions
For texts, a default conversion is available from the text number as used in LN to the text contents (string) as used in the public attributes. This decision is made based on the DB Type property of the attribute implementation. If it is “db.text” then a default text conversion is done and if it has another value the conversion will not be done.
However, since the DB Type is options, the generator in the LN Studio may not have all native domain information from LN available in the data types. Consequently, an assumption is made regarding which data type is actually a text.
If the DB Type is empty, the following rule is used:
If the data type's native data type (which contains the domain) is ?????.text or ??text or ?????.txtn or ??txtn or ?????.txta or ??txta, where '?' can be any character, then the data type is assumed to indicate a text.
This means that domains that do not match this rule will be handled incorrectly and will result in failure when generating the LN implementation or at runtime. For example, if a domain is used that matches one of the patterns (for example pptext) but is not a text domain, or if a text domain is used that does not match one of the patterns (for example ppmytext).
If such a problem occurs, the solution is to fill in the DB Type or use another domain as the native data type.