radio button

Hi 

 a!radioButtonField(
              labelPosition: "COLLAPSED",
              choiceLayout: "COMPACT",
              disabled: ri!isReadOnly_bool,
              choiceLabels: cons!CR_APP_TXT_CHOICE_LABELS_YES_NO,
              choiceValues: touniformstring(
                cons!CR_APP_INT_CHOICE_VALUES
              ),
              value: fv!item.overrideFlag_int,
              saveInto: {
                fv!item.overrideFlag_int,
                if(
                  isnull(
                    fv!item.id_int
                  ),
                  {},
                  {
                    a!save(
                      fv!item.updatedBy_txt,
                      loggedInUser()
                    ),
                    a!save(
                      fv!item.updatedOn_dt,
                      now()
                    ),
                    a!save(
                      fv!item.updatedByRole_txt,
                      rule!CR_FN_getUserRole(
                        inputUser_txt: loggedInUser()
                      )
                    )
                  }
                )
              }
            )

am getting this error for this code 

  Discussion posts and replies are publicly visible

Parents
  • Add toInteger() instead of toUniformstring().

    a!radioButtonField(
      labelPosition: "COLLAPSED",
      choiceLayout: "COMPACT",
      disabled: ri!isReadOnly_bool,
      choiceLabels: cons!CR_APP_TXT_CHOICE_LABELS_YES_NO,
      choiceValues: tointeger(
        cons!CR_APP_INT_CHOICE_VALUES
      ),
      value: fv!item.overrideFlag_int,
      saveInto: {
        fv!item.overrideFlag_int,
        if(
          isnull(
            fv!item.id_int
          ),
          {},
          {
            a!save(
              fv!item.updatedBy_txt,
              loggedInUser()
            ),
            a!save(
              fv!item.updatedOn_dt,
              now()
            ),
            a!save(
              fv!item.updatedByRole_txt,
              rule!CR_FN_getUserRole(
                inputUser_txt: loggedInUser()
              )
            )
          }
        )
      }
    )

Reply
  • Add toInteger() instead of toUniformstring().

    a!radioButtonField(
      labelPosition: "COLLAPSED",
      choiceLayout: "COMPACT",
      disabled: ri!isReadOnly_bool,
      choiceLabels: cons!CR_APP_TXT_CHOICE_LABELS_YES_NO,
      choiceValues: tointeger(
        cons!CR_APP_INT_CHOICE_VALUES
      ),
      value: fv!item.overrideFlag_int,
      saveInto: {
        fv!item.overrideFlag_int,
        if(
          isnull(
            fv!item.id_int
          ),
          {},
          {
            a!save(
              fv!item.updatedBy_txt,
              loggedInUser()
            ),
            a!save(
              fv!item.updatedOn_dt,
              now()
            ),
            a!save(
              fv!item.updatedByRole_txt,
              rule!CR_FN_getUserRole(
                inputUser_txt: loggedInUser()
              )
            )
          }
        )
      }
    )

Children