Number of Field Types

Hi Everyone,

I have field which has values "a", "b", "c" and I need to get the count of these values in record types. Can anyone please help me with this.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    Hi   I would like to get more information about what you are trying to achieve.

    *are you trying to save the values on differente record types or just one record type?

    *what is the input values are you receiving on your field ? if comma its present.

    for now I can give you a possible solution:

    Rule: 

    a!localVariables(
      local!textField, 
      {
        a!sectionLayout(
          contents: {}
        ),
        a!sectionLayout(
          label: "Field Values Into Record Types",
          contents: {
            a!textField(
              label: "Field",
              labelPosition: "ABOVE",
              value: local!textField,
              saveInto: local!textField,  
              refreshAfter: "UNFOCUS",
              validations: {}
            ),
            a!buttonArrayLayout(
              buttons: {
                a!buttonWidget(
                  label: "Save",
                  value: ri!theRecord,
                  saveInto: a!save(ri!theRecord, length(split(local!textField, ","))), 
                  submit: true,
                  style: "OUTLINE"
                )
              },
              align: "START",
              marginBelow: "NONE"
            )
          }
        )
      }
    )

    Interface: 

    Results:

    I hope this works for you, greetings.

Reply
  • 0
    Certified Senior Developer

    Hi   I would like to get more information about what you are trying to achieve.

    *are you trying to save the values on differente record types or just one record type?

    *what is the input values are you receiving on your field ? if comma its present.

    for now I can give you a possible solution:

    Rule: 

    a!localVariables(
      local!textField, 
      {
        a!sectionLayout(
          contents: {}
        ),
        a!sectionLayout(
          label: "Field Values Into Record Types",
          contents: {
            a!textField(
              label: "Field",
              labelPosition: "ABOVE",
              value: local!textField,
              saveInto: local!textField,  
              refreshAfter: "UNFOCUS",
              validations: {}
            ),
            a!buttonArrayLayout(
              buttons: {
                a!buttonWidget(
                  label: "Save",
                  value: ri!theRecord,
                  saveInto: a!save(ri!theRecord, length(split(local!textField, ","))), 
                  submit: true,
                  style: "OUTLINE"
                )
              },
              align: "START",
              marginBelow: "NONE"
            )
          }
        )
      }
    )

    Interface: 

    Results:

    I hope this works for you, greetings.

Children
No Data