Details

    • Proposal:
      Hide

      1. add schema changes: input-required.diff
      2. add new in part 3:

      <quote>
      19.xyz form:input-required
      The form:input-required attribute specifies whether a control that is bound to a database field requires user input for the form to submit.
      The attribute is not evaluated for a control that is not bound to a database field via 19.263 form:data-field, or that has the 19.259 form:convert-empty-to-null attribute evaluate to "false".
      The defined values for the form:input-required attribute are:
      • false: a control that has no user input does not prevent submission of the form.
      • true: a control that has no user input does prevent submission of the form.
      The default value for this attribute is false.
      </quote>

      Show
      1. add schema changes: input-required.diff 2. add new in part 3: <quote> 19.xyz form:input-required The form:input-required attribute specifies whether a control that is bound to a database field requires user input for the form to submit. The attribute is not evaluated for a control that is not bound to a database field via 19.263 form:data-field, or that has the 19.259 form:convert-empty-to-null attribute evaluate to "false". The defined values for the form:input-required attribute are: • false: a control that has no user input does not prevent submission of the form. • true: a control that has no user input does prevent submission of the form. The default value for this attribute is false. </quote>
    • Resolution:
      Hide

      19.281 form:input-required

      The form:input-required attribute specifies whether a control that is bound to a database field requires user input for the form to submit.

      The attribute is not evaluated for a control that is not bound to a database field vi form:data-field 19.263, or that has the form:convert-empty-to-null 19.259 attribute evaluate to "false".

      The defined values for the form:input-required attribute are:

      • false: a control that has no user input does not prevent submission of the form.
      • true: a control that has no user input does prevent submission of the form.

      The default value for this attribute is false.

      Show
      19.281 form:input-required The form:input-required attribute specifies whether a control that is bound to a database field requires user input for the form to submit. The attribute is not evaluated for a control that is not bound to a database field vi form:data-field 19.263, or that has the form:convert-empty-to-null 19.259 attribute evaluate to " false ". The defined values for the form:input-required attribute are: false : a control that has no user input does not prevent submission of the form. true : a control that has no user input does prevent submission of the form. The default value for this attribute is false .

      Description

      some time in 2008 OpenOffice.org started to produce a form:input-required attribute on various form elements:

      form:text
      form:textarea
      form:password
      form:formatted-text
      form:combobox
      form:listbox
      form:checkbox
      form:radio
      form:image-frame
      form:date
      form:time

      there is a description of this feature in this bug report:
      https://bz.apache.org/ooo/show_bug.cgi?id=92322

        Attachments

          Activity

          Hide
          regina.henschel Regina Henschel added a comment -

          Why are checkbox and radio included? Can they have a state of 'empty'?

          Why is <form:number> missing? It has the attribute form:convert-empty-to-null, so I assume, that is can have state of 'empty'.

          Show
          regina.henschel Regina Henschel added a comment - Why are checkbox and radio included? Can they have a state of 'empty'? Why is <form:number> missing? It has the attribute form:convert-empty-to-null, so I assume, that is can have state of 'empty'.
          Hide
          michaelstahl Michael Stahl added a comment -

          > Why are checkbox and radio included?

          well i have no idea about forms, but:

          case FormComponentType::CHECKBOX:
          ...
          [[fallthrough]];
          case FormComponentType::RADIOBUTTON:
          ...
          m_nIncludeDatabase = DAFlags::DataField | DAFlags::InputRequired;
          ...
          break;
          

          > Why is <form:number> missing?

          because i am unable to find an implementation of this form element.

          Show
          michaelstahl Michael Stahl added a comment - > Why are checkbox and radio included? well i have no idea about forms, but: case FormComponentType::CHECKBOX: ... [[fallthrough]]; case FormComponentType::RADIOBUTTON: ... m_nIncludeDatabase = DAFlags::DataField | DAFlags::InputRequired; ... break; > Why is <form:number> missing? because i am unable to find an implementation of this form element.
          Hide
          michaelstahl Michael Stahl added a comment -

          The question came up of what should happen if a form is a sub-form.

          Apparently the idea is that forms with sub-forms are set up such that the upper form is bound to one database table and the sub-form is bound to another database table which is connected to the upper form's table via a foreign key column.

          in this case, the upper form will edit a row in its table, and the sub-form will edit a row in its table, and the submissions are independent.

          Show
          michaelstahl Michael Stahl added a comment - The question came up of what should happen if a form is a sub-form. Apparently the idea is that forms with sub-forms are set up such that the upper form is bound to one database table and the sub-form is bound to another database table which is connected to the upper form's table via a foreign key column. in this case, the upper form will edit a row in its table, and the sub-form will edit a row in its table, and the submissions are independent.
          Hide
          patrick Patrick Durusau added a comment -

          As per TC March 14th, 2022

          Show
          patrick Patrick Durusau added a comment - As per TC March 14th, 2022

            People

            • Assignee:
              Unassigned
              Reporter:
              michaelstahl Michael Stahl
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: