Home Analyst Portal

PropertyName is displayed unwantedly

Marius_DobrzaniMarius_Dobrzani Customer IT Monkey ✭

Hello,


I have a Custom Form where I have several "columnFieldLists":


However (as seen in the screenshot above) the property name "Source_7f8dc960_97fe_457a_933b_3d7d92e1a56f" of the last List also gets displayed.


The code looks like this:

{

                "name": "Verantwortlicher Benutzer",

                "type": null,

                "rows": [

                  {

                    "columnFieldList": [                      

                      {

                        "DataType": null,

                        "PropertyDisplayName": null,

                        "PropertyName": "Source_7f8dc960_97fe_457a_933b_3d7d92e1a56f",

                        "Disabled": false,

                        "Required": false,

                        "MinLength": 0,

                        "MaxLength": 0,

                        "EnumId": null,

                        "ColSpan": 0,

                        "type": "multipleObjectPicker",

                        "ClassId": "eca3c52a-f273-5cdc-f165-3eb95a2b26cf",

                        "PropertyToDisplay": "{ \"DisplayName\": \"DisplayName\", \"FullClassName\": \"Type\", \"ObjectStatus.Name\": \"ObjectStatus\", \"LastModified\": \"LastModified\" }",

                        "SelectableRow": true,

                        "SelectProperty": "DisplayName"

                      }

                    ]

                  }

                ]

              },              

              {

                "DataType": "LongString",

                "PropertyDisplayName": "Notes",

                "PropertyName": "Notes",

                "Disabled": false,

                "Required": false,

                "MinLength": 0,

                "MaxLength": 4000,

                "EnumId": null,

                "ColSpan": 0,

                "type": null,

                "ClassId": null,

                "PropertyToDisplay": null,

                "SelectableRow": false,

                "SelectProperty": null

              }


I also noticed the following behaviors:

  • When I remove the "Notes" property, the unwanted PropertyName disappears and the rest looks like it should. But of course, I still want the "Notes" porperty in there.
  • When I remove the last "columnFieldList", the PropertyName of the List above gets displayed instead.


Is there any way to remove this property name and keep everything else the same?

I really appreciate any help you can provide!


Marius

Comments

  • Marius_DobrzaniMarius_Dobrzani Customer IT Monkey ✭

    I found the solution to my problem:

    I needed to place the notes field inside the row section and define it as it´s own columnFieldList. Everything works fine now!

    The updated code looks like this:


    {

                    "name": "Verantwortlicher Benutzer",

                    "type": null,

                    "rows": [

                      {

                        "columnFieldList": [                      

                          {

                            // "DataType": null,

                            "PropertyDisplayName": null,

                            "PropertyName": "Source_7f8dc960_97fe_457a_933b_3d7d92e1a56f",

                            "Disabled": false,

                            "Required": false,

                            // "MinLength": 0,

                            // "MaxLength": 0,

                            // "EnumId": null,

                            // "ColSpan": 0,

                            "type": "multipleObjectPicker",

                            "ClassId": "eca3c52a-f273-5cdc-f165-3eb95a2b26cf",

                            "PropertyToDisplay": "{ \"DisplayName\": \"DisplayName\", \"FullClassName\": \"Type\", \"ObjectStatus.Name\": \"ObjectStatus\", \"LastModified\": \"LastModified\" }",

                            "SelectableRow": true,

                            "SelectProperty": "DisplayName"

                          }

                        ]

                      },

                      {

                        "columnFieldList": [

                            { DataType: "LongString",

                              PropertyDisplayName: "Notes",

                              PropertyName: "Notes",

                              Disabled: false,

                              Required: false,

                              MinLength: 0,

                              MaxLength: 4000,

                              EnumId: null,

                              ColSpan: 0,

                              type: null,

                              ClassId: null,

                              PropertyToDisplay: null,

                              SelectableRow: false,

                              SelectedProperty: null

                            }

                        ],

                    },

                    ]

                  }

Sign In or Register to comment.