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

  • 0
    Certified Lead Developer
    in reply to moulikadas

    What grid do you mean? Please help us to understand what you are expecting to see.

  • I have to show the decision table's "output" value would be shown in "Recommended Corrective Action" this grid and the "total occurences" grid value is the "attendencepoints" value of decision table.

    so the above code is for "total occurences" grid where I have shown the "attendencepoints" value of decision table. and the same way I have to print the "Recommended Corrective Action" grid for the decision table's "output" value. But I can't. 

    Please help me how to write the code?

Reply
  • I have to show the decision table's "output" value would be shown in "Recommended Corrective Action" this grid and the "total occurences" grid value is the "attendencepoints" value of decision table.

    so the above code is for "total occurences" grid where I have shown the "attendencepoints" value of decision table. and the same way I have to print the "Recommended Corrective Action" grid for the decision table's "output" value. But I can't. 

    Please help me how to write the code?

Children