How to remove automatic decimal separator from publication output property field value?

Hi All,

[Using SDL Tridion Docs 14.0.4101.2]

I have a custom metadata field implemented in MetadataConfig.xml as follows:

<ishfrmfield id="PublicationOutput.EditionYearField" name="PublicationOutput.EditionYearField" ishfieldref="FNIEDITIONYEAR" level="lng" ishfielddatatype="typestring">
      <label resourceref="FNIEDITIONYEAR.Label">&amp;Edition year</label>
      <description resourceref="FNIEDITIONYEAR.Description">Edition year</description>
</ishfrmfield>

Despite this, I if I open the publication output properties in the Content Manager, it displays the value with decimal separators:
Screenshot of Trados Studio's Publication Output Properties dialog showing fields for Output Format, Language combination, Part number, Edition Year, Edition Month, Output Name, and Print Location.

And it is still validated as if it would be a numbers only field. Even though I can't seem to find anything that would indicate that. The following screenshot was taken in Publication Manager, but I get a similar error in Content Manager as well:
Error message in Trados Studio stating 'Value 'valuehere' is invalid for the 'Edition Year' field of object '...' The given value 'valuehere' is not a valid number format (decimal separator - group separator).'


I think I'm missing some additional configuration. Could someone tell where to look for additional field configurations (if not in MetadataConfig.xml)? The current behavior is desired (only allow numbers), but I'd like to remove automatic decimal points for aesthetic reasons.

Thank You in advance!



Generated Image Alt-Text
[edited by: Trados AI at 6:43 AM (GMT 0) on 5 Mar 2024]
emoji
Parents
  • Hello Dave!

    I was able to retrieve the field configuration from the DB as you've suggested:
    <field element="FNIEDITIONYEAR" issystem="false" isbasic="true" ismandatory="false" isindexable="true">
        <label>Edition Year</label>
        <description>Edition Year</description>
        <typenumber ismultivalue="false" />
    </field>

    Thank you for tour help!

    Now that I know that it is a number type, is there a way to turn off the automatic formatting for this field on the Content Manager UI? Currently a decimal point is inserted after every third number. It does not break anything, it just looks out of place as a numeric representation of a year.

Reply
  • Hello Dave!

    I was able to retrieve the field configuration from the DB as you've suggested:
    <field element="FNIEDITIONYEAR" issystem="false" isbasic="true" ismandatory="false" isindexable="true">
        <label>Edition Year</label>
        <description>Edition Year</description>
        <typenumber ismultivalue="false" />
    </field>

    Thank you for tour help!

    Now that I know that it is a number type, is there a way to turn off the automatic formatting for this field on the Content Manager UI? Currently a decimal point is inserted after every third number. It does not break anything, it just looks out of place as a numeric representation of a year.

Children
No Data