Code Monkey home page Code Monkey logo

Comments (4)

YvesJo avatar YvesJo commented on June 5, 2024 1

Do not miss the end of the sentence:

For "codelist", "id" is referring to the identifier of the codelist to be used for value selection and "parentId" to the listName attribute value to report when the listName attribute exists ... and the value shall defer from the one of "id".

meaning that, when it exists, the listName attribute shall have:

  • the "id" value, or
  • when "parentId" is specified in the json file, the "parentId" value.

The rule applies everywhere except for the few cases where the listName attribute is associated to a field (BT-03-notice, BT-26(a)-Lot, BT-26(a)-Part, BT-26(a)-Procedure).

from eforms-sdk.

YvesJo avatar YvesJo commented on June 5, 2024

Hi,
From the referred example, we may extract the following lines.

{
    "id" : "BT-23-Part",
    "parentNodeId" : "ND-PartProcurementScope",
    "name" : "Main Nature",
    "btId" : "BT-23",
    "xpathAbsolute" : "/*/cac:ProcurementProjectLot[cbc:ID/@schemeName='Part']/cac:ProcurementProject/cbc:ProcurementTypeCode[@listName='contract-nature']",
    "xpathRelative" : "cbc:ProcurementTypeCode[@listName='contract-nature']",
    "type" : "code",
    "legalType" : "CODE",
   
    --- removed lines ---

    "codeList" : {
      "value" : {
        "id" : "eforms-contract-nature",
        "type" : "flat",
        "parentId" : "contract-nature"
      },
      "severity" : "ERROR"
    },

For "codelist", "id" is referring to the identifier of the codelist to be used for value selection and "parentId" to the listName attribute value to report when the listName attribute exists (i.e. element of type code in the XSD) and the value shall defer from the one of "id".
KR

from eforms-sdk.

Havunen avatar Havunen commented on June 5, 2024

Ok good to know.

And this rule

For "codelist", "id" is referring to the identifier of the codelist to be used for value selection and "parentId" to the listName attribute value to report when the listName attribute exist

Applies universally to all fields in the field.json right?

from eforms-sdk.

Havunen avatar Havunen commented on June 5, 2024

Ok, makes sense now. Thank you

from eforms-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.