How to print the value of an id?

If I select 40 then how to print the value of of 40 by a code?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    To invoke a decision object, simply use the syntax rule!decisionObjectName. For a practical example, consider the following code snippet in which I call the decision object within an interface:

  • a!gridColumn(
              label: "Recommended Corrective Action",
              value: a!tagField(
                labelPosition: "COLLAPSED",
                align: "END",
                tags: if(
                  index(
                    index(
                      ri!employeeList,
                      wherecontains(
                        fv!row.internalEmpId,
                        tointeger(
                          index(ri!employeeList, "internalEmpId", {})
                        )
                      ),
                      {}
                    ),
                    "designationId",
                    {}
                  ) = cons!INO_DESIG_ID_STAFF,
                  a!localVariables(
                    local!points: index(
                      ri!totalPointsList,
                      wherecontains(
                        fv!identifier,
                        tointeger(ri!attendanceDataSubset.data)
                      ),
                      {}
                    ),
                    a!tagItem(
                      text: local!points,
                      backgroundColor: rule!INO_getAttendanceScoreColour(score: local!points),
                      tooltip: rule!INO_determineAttendanceConsequence(attendancePoints: local!points)
                    )
                  ),
                  null
                )
              ),
              align: "END",
              showWhen: contains(
                tointeger(
                  index(ri!employeeList, "designationId", {})
                ),
                cons!INO_DESIG_ID_STAFF
              )
            ),

    Here how to show the decision table's output grid? please tell me

Reply
  • a!gridColumn(
              label: "Recommended Corrective Action",
              value: a!tagField(
                labelPosition: "COLLAPSED",
                align: "END",
                tags: if(
                  index(
                    index(
                      ri!employeeList,
                      wherecontains(
                        fv!row.internalEmpId,
                        tointeger(
                          index(ri!employeeList, "internalEmpId", {})
                        )
                      ),
                      {}
                    ),
                    "designationId",
                    {}
                  ) = cons!INO_DESIG_ID_STAFF,
                  a!localVariables(
                    local!points: index(
                      ri!totalPointsList,
                      wherecontains(
                        fv!identifier,
                        tointeger(ri!attendanceDataSubset.data)
                      ),
                      {}
                    ),
                    a!tagItem(
                      text: local!points,
                      backgroundColor: rule!INO_getAttendanceScoreColour(score: local!points),
                      tooltip: rule!INO_determineAttendanceConsequence(attendancePoints: local!points)
                    )
                  ),
                  null
                )
              ),
              align: "END",
              showWhen: contains(
                tointeger(
                  index(ri!employeeList, "designationId", {})
                ),
                cons!INO_DESIG_ID_STAFF
              )
            ),

    Here how to show the decision table's output grid? please tell me

Children