Action don't reflect on the application

Hi Community,

I have a case that I add new row (Add new Goal) to my grid as the image below shown:

This action is work perfectly in the interface design as the image below shown:

But when I open the application, the add button don't give result.

Anybody know why this happens ?

Thanks in advance.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    Hi Ammar, Could you please share the code here so that we can have a look?

  • a!sectionLayout(
    label: "Linked Goals",
    contents: {
    a!cardLayout(
    contents: {
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!boxLayout(
    label: "Parent Goals",
    contents: {
    a!gridLayout(
    label: "",
    labelPosition: "ABOVE",
    headerCells: {
    a!gridLayoutHeaderCell(
    label: "Goal", align: "CENTER"
    ),
    a!gridLayoutHeaderCell(
    label: ""
    )
    },
    columnConfigs: {
    a!gridLayoutColumnConfig(
    width: "DISTRIBUTE"
    ),
    a!gridLayoutColumnConfig(
    width: "ICON"
    )
    },
    rows: {
    a!forEach(
    items: ri!parentGoals,
    expression: a!gridRowLayout(
    contents: {
    a!dropdownField(
    label: "",
    labelPosition: "ABOVE",
    placeholder: "--- Select a Value ---",
    choiceLabels: if(
    rule!APN_isEmpty(
    local!goals
    ),
    {},
    a!forEach(
    local!goals,
    fv!item.goal
    )
    ),
    choiceValues: if(
    rule!APN_isEmpty(
    local!goals
    ),
    {},
    a!forEach(
    local!goals,
    fv!item.pkgoalId
    )
    ),
    value: fv!item.fkgoalGoaltypeid,
    saveInto: fv!item.fkgoalGoaltypeid,
    searchDisplay: "AUTO",
    required: true,
    validations: {}
    ),
    a!richTextDisplayField(
    label: "Rich Text",
    labelPosition: "ABOVE",
    value: {
    if(
    rule!APN_isBlank(fv!item.pkgoalId),
    a!richTextIcon(
    icon: "times",
    link: a!dynamicLink(
    saveInto: {
    a!save(
    ri!parentGoals,
    remove(ri!parentGoals, fv!index)
    )

    }
    ),
    linkStyle: "STANDALONE",
    color: "NEGATIVE"
    ),
    {}
    )
    },
    align: "CENTER"
    )
    }
    )
    )
    },
    selectionSaveInto: {},
    selectable: false,
    selectionRequired: false,
    selectionDisabled: false,
    addRowLink: a!dynamicLink(
    label: "Add New Goal",
    saveInto: a!save(
    ri!parentGoals,
    append(
    ri!parentGoals, local!newRow
    )
    )
    ),
    shadeAlternateRows: false,
    borderStyle: "STANDARD"
    )
    },
    style: "STANDARD",
    shape: "SEMI_ROUNDED",
    marginBelow: "STANDARD"
    )
    }
    )
    }
    )
    },
    height: "AUTO",
    style: "NONE",
    marginBelow: "STANDARD"
    )
    },
    showWhen: ri!readOnly <> true
    )

  • 0
    Certified Senior Developer
    in reply to Ammar Alhayki

    Hi, As Stewart suggested please compare those two grids , check all the parameters,

Reply Children
No Data