Skip to content

Setting up a XSD Data Value

In XSD by Simova we have the possibility to reproduce the XML structure for the formats XInvoice and ZUGFeRD with individual nodes. In these nodes we define from which tables the values should come. The first level is the Data Value page. In the Data Value level we can define from which table the values come.

The following steps need to be completed to create a new data value for XSD by Simova.

The way to the XML schemas

  1. Navigate to the search field.
  2. Enter XSD schemas.
  3. The XSD schema list opens.
  4. Select a XSD Schema.
  5. Navigate to the lines.
  6. Select the line, where you want to create a new Data value.
  7. Navigate to the Value column.
  8. Click on the Assist button.
  9. Click on New.
  10. The Data Value Card opens.
  11. Now follow the next steps.

General register

  1. Enter the Code for the data value.
  2. Enter the Description for the data value.
  3. Select the Table for the data value.

Info

  • Code = A short and unique description of the Data Value.
  • Description = A definition of what value has been set up in this node.
  • Table = The table from which the value comes.

Definition register

  1. Enter the Type for the data value. It gives seven types to get a value: Static, Field, DataMapping, FieldCaption, FieldName, FieldLinked and Codeunit.
  2. Enter the Value for the data value.
  3. Enter the Format. The default format is "9".

Standard Formats

The following tables list the predefined formats for each data type. This table shows the standard Decimal formats with the regional setting of a European country/region.

Europe Decimal Format Example
< Sign > < Integer Thousand > < Decimals > 0 -76.543,21
< Sign > < Integer > < Decimals > 1 -76543,21
< Sign > < Integer > < Decimals > < Comma,. > 2 -76543.21
< Integer Thousand > < Decimals > < Sign,1 > 3 76.543,21-
< Integer > < Decimals > < Sign,1 > 4 76543,21-
XML format 9 -76543.21

SIM_XSD Data Value Format register

  1. Enter the Function for data value. It gives eleven functions to format a Data Value: Replacetext, Delchr, Convertstr, Uppercase, Lowercase, Insstr, Delstr, Copystr, Copystrend, Getfileextension, Getfilename.
  2. The Description will entered automatically, when you select the function.
  3. Enter the field Value 1.
  4. Enter the field Value 2.

Example - Setting up a Data Value with the Type Field

The following steps need to be completed to set up a Data Value with the type Field.

Example: Node ExchangedDocument ID

  1. Select and open the XSD schema.
  2. Navigate to the Schema Data area.
  3. Open CrossIndustryInvoice.
  4. Open ExchangedDocument.
  5. Navigate to the line ID.
  6. Navigate to the Value column.
  7. Click on the Three dots action.
  8. Click on New in the menu bar.

General register

  1. Enter the Code for the new Data Value.
  2. Enter the Description for the new Data Value.
  3. Enter the Table for the new Data Value.

Definition register

  1. Select the Type "Field".
  2. Enter the Value "No.".
  3. Enter the Format "9".

SIM_XSD Data Value Format register

For this node example, we do not need any setup.

In this example we define directly a field on the selected table to get the value from it.