Uploaded image for project: 'Proforma Server & Data Centre'
  1. Proforma Server & Data Centre
  2. FORMDC-801

Provide a REST API to get the Forms layout with options of data connections

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • API
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Problem Definition

      The customer is aiming to get the layout of the Forms with the data connection options.

      as for now, the only way to get the layout of the form is from the database, from which not even there the JSON shows the options of the data connections.

      The actual REST API is only exporting data, and the need to get the details of the form has been requested for documentation.

      Actual Result:

      "design": {
        "conditions": {
          "113": {
                "t": "sh",
                "i": { "co": { "cIds": { "109": ["3", "342102"] } } },
                "o": { "sIds": ["7"] }
            }
        },
        "questions": {
          "109": {
              "type": "cd",
              "label": "System eller applikasjon",
              "description": "",
              "validation": { "rq": true },
              "dcId": "299c357b-f5f8-471b-86d1-700f4ba78a3a",
              "questionKey": "customfield_22860"
            }
        }
      }
      

      Suggested Solution:

      Provide the info of the form with:

      "design": {
        "conditions": {
          "113": {
                "t": "sh",
                "i": { "co": { "cIds": { "109": ["3", "342102"] } } },
                "o": { "sIds": ["7"] }
            }
        },
        "questions": {
          "109": {
                    "type": "cd",
                    "label": "System eller applikasjon",
                    "description": "",
                    "validation": {
                        "rq": true
                    },
                    "choices": [
                        {
                            "id": "183375",
                            "label": "A-krim"
                        },
                        {
                            "id": "183627",
                            "label": "A-ordningen"
                        },
                        {
                            "id": "184201",
                            "label": "Administrasjonsløsning for analyserom"
                        },
                        {
                            "id": "183373",
                            "label": "Adobe Acrobat Pro"
                        },
                        {
                            "id": "342102",
                            "label": "Adobe Creative Cloud"
                        }
                      ],
                      "dcId": "299c357b-f5f8-471b-86d1-700f4ba78a3a",
                      "questionKey": "customfield_22860"
          }
      }
      

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

              Unassigned Unassigned
              d001924c850a Francisco Crespo Smith
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: