Skip to content

Notice X01 issue #465

Closed Answered by rouschr
rengit62 asked this question in Q&A
May 15, 2023 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

add a new field called cbc:ID with value DUMMY ?

If cbc:ID is mandatory (<xsd:element ref="cbc:ID" minOccurs="1" maxOccurs="1"/>)
Then you need to add it, the value you put into the form field may also be restricted by a pattern, but in general mandatory means some value must be put inside of it.
The example DUMMY value is just one possible that was put there in order to fill the mandatory field.
As long as the pattern does not enforce something you are free to put some values there (user filled, machine filled, ...).

Example of a pattern would be:

 "pattern" : {
      "value" : "^UBO-\\d{4}$",
      "severity" : "ERROR"
    },

And in some cases you even have this to help you with ID g…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@rengit62
Comment options

@YvesJo
Comment options

@rengit62
Comment options

Comment options

You must be logged in to vote
3 replies
@rengit62
Comment options

@YvesJo
Comment options

@rouschr
Comment options

Answer selected by YvesJo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
fields Related to field metadata (/fields/fields.json) notice-types Related to the notice type definitions (/notice-types). xml generation Discussions on how to generate valid XML
3 participants