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

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • API
    • 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

            [FORMDC-801] Provide a REST API to get the Forms layout with options of data connections

            Marc Dacanay made changes -
            Labels New: ril
            Marc Dacanay made changes -
            Remote Link New: This issue links to "Internal ticket (Web Link)" [ 980059 ]
            Patrick Turbett made changes -
            Description Original: h3. 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.
            h4. Actual Result:
            {noformat}
            "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"
                  }
              }
            }
            {noformat}
            h3. Suggested Solution:

            Provide the info of the form with:
            {noformat}
            "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"
                }
            }
            {noformat}
            h3. Workaround

            No Workaround for the moment.
            New: h3. 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.
            h4. Actual Result:
            {noformat}
            "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"
                  }
              }
            }
            {noformat}
            h3. Suggested Solution:

            Provide the info of the form with:
            {noformat}
            "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"
                }
            }
            {noformat}
            h3. Workaround

            Currently there is no known workaround for this behavior. A workaround will be added here when available
            Patrick Turbett made changes -
            Link New: This issue relates to FORMDC-767 [ FORMDC-767 ]
            Francisco Crespo Smith created issue -

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

                Created:
                Updated: