Vai al contenuto principale

BIN lG5kx Documentation

  • Author:

  • Version: 5

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

  • Created: 2017-03-08

  • Modified: 2020-12-26

  • Source:

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

    Printers Embed Responsive

    <complexType name='Form' description='Percentage display with xs:decimal, fractionDigits facet and nc.minFractionDigits extra attribute - readonly - bin:XF0bE bin:laz6F' extra:form.ccontrol='print'>
        <field name='DecimalPercentFormat' type='xs:decimal' 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='DecimalPercentFormatFractDig4' type='xs:decimal' 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='DecimalPercentFormatFractDig4Min2' type='xs:decimal' 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>