Use pyDecimalPrecision on String properties
I created a post (referenced below) to understand behavior of String properties when values are set from a Double property
Following up on this -
I've been looking at options to remove the decimal point added to the string value even though the original double value doesn't have any decimal point and one of the options I thought I could use was to set the pyDecimalPrecision property qualifier on the String property and set precision to 0.
While I understand that it makes sense to use this qualifier against properties of decimal type only, the usage on that qualifier rule indicates that it can be used for STRING/DECIMAL types but it doesn't work on STRING types i.e can't add this qualifier and set precision to 0 as system throws error that the qualifier cannot be used for string properties.
Can someone please confirm that the qualifier shouldn't work for STRING types or if this is a product bug and the qualifier rule usage is correct?
Usage on the rule for quick reference:
Add this qualifer to a STRING/DECIMAL property to provide a specific number of dicimal digits of precision at which its value should be clamped. This qualifier is ignored on any other type property.
Keep up to date on this post and subscribe to comments
- pyDecimalPrecision Property Qualifier Issue and text input
- How does a OOTB property qualifier work? e.g. pyDecimalPrecision
- How to copy a string from a text type property to a date type property
- FAIL message at the Property-Set-XML step- Encountered a withEmbedded tag with property $this of non-page mode String; it will be ignored
- Can initialize a TrueFalse property by a String property