Skip to main content

BIN XF0bE Documentation

  • Author:

  • Version: 5

  • Description: Percentage display with xs:double, fractionDigits facet and nc.minFractionDigits extra attribute - readonly - lG5kx laz6F

  • Created: 2020-12-26

  • Modified: 2020-12-26

  • Source:

     Edit Bin W3C Schema Json-Schema Java Bean Code Default Value as XML

    Printers Embed Responsive

    <complexType name='Form' description='Percentage display with xs:double, fractionDigits facet and nc.minFractionDigits extra attribute - readonly - bin:lG5kx bin:laz6F' extra:form.ccontrol='print'>
        <field name='DoublePercentFormat' type='xs:double' default='0.23232425' extra:nc.format='percent' extra:form.explanation='In this input one can insert more than two decimals, they will be displayed as two, the persisted value may have the inserted decimals, possible more than two'/>
        <field name='DoublePercentFormatFractDig4' type='xs:double' default='0.232' extra:nc.format='percent' extra:form.explanation='In this input one cannot insert more than two decimals, if more are inserted a validation error happens, after error display the input contains the correct number of decimals for next submit'>
            <facet name='fractionDigits' value='4'/>
        </field>
        <field name='DoublePercentFormatFractDig4Min2' type='xs:double' default='0.23' extra:nc.format='percent' extra:nc.minFractionDigits='2' extra:form.explanation='In this input one cannot insert more than two decimals like the input before but here the formatting is always with two decimals'>
            <facet name='fractionDigits' value='4'/>
        </field>
    </complexType>