Add major button in the footer of detail screen in binding does not work

Hi,

In our application we have contract form, and there are 2 screen, one of them is binding whenever i open one row in that binding screen i want to see my button in the footer, currently there are 2 default buttons Cancel and Apply, new custom button does not appear if i add to the footer, only works in the header. Do you have any idea?

Hi @chien-calm-dune

When you say that you can,

it sounds like you are using a Form Model based on a CDM. This would allow you to open the linked document and view it.

Can you confirm if my assumption is correct? Also, if you are using an FM based on a CDM, can you tell me if you modeled the button on the Child Document’s Form Model and are accessing this model with Child Activites in the Binding?

As you can see in the screenshot below, I was able to model footer buttons in the Advanced workspace by modeling these buttons on Contract_FM, which is used when adding or viewing Contracts in PersonEmployeeWithTeamsAndContracts_CFM as Child Activites are used.

in my case it looks like



So your 3rd screenshot looks like a detached repeat detail screen.

If I’m right, this means that you are trying to model your custom buttons in the “Contract_CFM” model. I’m suggsting modeling the buttons in the “Endosement_FM” and loading this Form Model using Child Activites.

Can you please confirm the modeling strategy that was used to achieve the result shown in your screenshot.

i was trying to add button in the contract_form ( which is the from of ContractCDM) inside binding screen:

{
        "id": "screen_2119d",
        "name": "EndorsementScreen",
        "screenElements": [
          {
            "type": "Section",
            "id": "section_666df",
            "name": "Endorsement",
            "screenElements": [
              {
                "type": "DetachedRepeat",
                "id": "detachedrepeat_1abc9",
                "name": "binding-ContractEndorsement_relationship",
                "title": {
                  "type": "Multilingual",
                  "multilingualText": {
                    "text": [
                      {
                        "locale": "de",
                        "text": ""
                      },
                      {
                        "locale": "en",
                        "text": ""
                      }
                    ]
                  }
                },
                "groupRef": "group_10098",
                "enableAdd": true,
                "detailScreen": {
                  "id": "screen_b5702",
                  "name": "binding-ContractEndorsement_relationship-detail-screen",
                  "subHeaderBox": {
                    "id": "headerfooter_6d992",
                    "majorButtons": {
                      "button": [
                        {
                          "type": "EVENT",
                          "id": "button_fdb69",
                          "name": "Accept Endorsement",
                          "buttonStyling": {
                            "label": {
                              "type": "Multilingual",
                              "multilingualText": {
                                "text": [
                                  {
                                    "locale": "de",
                                    "text": "Accept Endorsement"
                                  },
                                  {
                                    "locale": "en",
                                    "text": "Accept Endorsement"
                                  }
                                ]
                              }
                            },
                            "description": {
                              "text": [
                                {
                                  "locale": "de",
                                  "text": "Accept Endorsement"
                                },
                                {
                                  "locale": "en",
                                  "text": "Accept Endorsement"
                                }
                              ]
                            }
                          },
                          "event": "event_accept_endorsement",
                          "scope": "HIDDEN_IN_READONLY_MODE",
                          "annotations": [
                            {
                              "name": "relationshipModelName",
                              "value": "ContractEndorsement_relationship"
                            },
                            {
                              "name": "CustomDependentElement",
                              "value": "\"[{\\\"display\\\":\\\"disabled\\\",\\\"logic\\\":{\\\"condition\\\":\\\"or\\\",\\\"rules\\\":[{\\\"fieldPath\\\":\\\"Endorsement.EndorsementData.EndorsementStatus\\\",\\\"values\\\":[\\\"accepted\\\",\\\"rejected\\\"]},{\\\"roles\\\":[\\\"systemAdmin\\\"]}]}}]\""
                            }
                          ]
                        }
                      ]
                    }
                  },
                  "screenElements": [
                    {
                      "type": "ControlGrid",
                      "id": "controlgrid_a0326",
                      "name": "Endorsement",
                      "title": {
                        "type": "Multilingual",
                        "multilingualText": {
                          "text": [
                            {
                              "locale": "de",
                              "text": "Endorsement"
                            },
                            {
                              "locale": "en",
                              "text": "Endorsement"
                            }
                          ]
                        }
                      },
                      "layout": {
                        "lg": "4-4-4"
                      },
                      "row": [
                        {
                          "type": "Row",
                          "id": "row_62548",
                          "cell": [
                            {
                              "type": "Control",
                              "id": "control_09458",
                              "elementRef": "include_14b80_field_56d91"
                            },
                            {
                              "type": "Control",
                              "id": "control_867ba",
                              "elementRef": "include_14b80_field_52b79"
                            },
                            {
                              "type": "Control",
                              "id": "control_91a63",
                              "elementRef": "include_14b80_field_ada3c"
                            }
                          ]
                        },
                        {
                          "type": "Row",
                          "id": "row_3759a",
                          "cell": [
                            {
                              "type": "Control",
                              "id": "control_8569e",
                              "elementRef": "include_14b80_field_c78d6"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            ]
          }

So, you are trying to model directly on the detached repeat detail screen.

Have a look at the CFM modeling in the advanced workspace that comes with the installer. We use Child Activites to load a different form model where you can freely model buttons as I showed above.

This means that you can:

  1. Adjust the Binding to “Use CDM Child Activities”
  2. Add the Child Form to the App Model
  3. Model your button on the Child Form

Modeling the button on the Detahed Repeat Detail Screen will not work as you have observed.

Hello @chien-calm-dune, I am a member of the Discourse team. I can see that there was a new response to your question on Add major button in the footer of detail screen in binding does not work. Do you find it helpful, or should the question remain open?

Thanks ahead for your feedback and have a nice rest of the day!