How to call decision rule in interface

Here, I have created a decision rule, My requirements are if I call this decision rule in the interface in the orgName field the tax Id and Address should be displayed.

How can i configure this in the interface?

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to gaddamv0001

    Sorry, I didn't get your full code (or) what you're trying to do exactly. But I've attached a sample of how the decision can be used.

    a!localVariables(
      local!address: rule!ALM_decisionRule(input1: "AKSHARA FOUNDATION"),
      {
        a!sectionLayout(
          label: " ",
          contents: {
            a!boxLayout(
              label: "Donation Details",
              contents: {
                a!sideBySideLayout(
                  items: {
                    a!sideBySideItem(
                      item: a!textField(
                        label: "Organization Tax Id",
                        labelPosition: "ABOVE",
                        readOnly: true(),
                        value: local!address.output1
                      )
                    ),
                    a!sideBySideItem(
                      item: a!textField(
                        label: "Organization Address",
                        labelPosition: "ABOVE",
                        readOnly: true(),
                        value: local!address.output2
                      )
                    )
                  }
                )
              }
            )
          }
        )
      }
    )

Children