how to set up dynamiclink when switching between interfaces

Please tell me how to set up dynamiclink when switching between interfaces.

  Discussion posts and replies are publicly visible

Parents
  • I am not sure about your use case but try using the following snippet.

    Here I have taken choose() and declared identifying interfaces via numbers.

    Depending on your use you can either use this or use if else.


    a!localVariables(
      local!showInterface:1,
      a!sectionLayout(
        label: "INTERFACE 1",
        contents: {
          a!sideBySideLayout(
            items: {
              a!sideBySideItem(
                item: a!richTextDisplayField(
                  value: a!richTextItem(
                    text: "Redirect to interface 1",
                    link: a!dynamicLink(value: 1, saveInto: local!showInterface)
                  )
                )
              ),
              a!sideBySideItem(
                item: a!richTextDisplayField(
                  value: a!richTextItem(
                    text: "Redirect to interface 2",
                    link: a!dynamicLink(value: 2, saveInto: local!showInterface)
                  )
                )
              )
            }
          ),
          choose(
            local!showInterface,
            rule!EMS_TEST_INTERFACE_1(),
            rule!EMS_TEST_INTERFACE_2()
          )
        }
      )
    )

Reply
  • I am not sure about your use case but try using the following snippet.

    Here I have taken choose() and declared identifying interfaces via numbers.

    Depending on your use you can either use this or use if else.


    a!localVariables(
      local!showInterface:1,
      a!sectionLayout(
        label: "INTERFACE 1",
        contents: {
          a!sideBySideLayout(
            items: {
              a!sideBySideItem(
                item: a!richTextDisplayField(
                  value: a!richTextItem(
                    text: "Redirect to interface 1",
                    link: a!dynamicLink(value: 1, saveInto: local!showInterface)
                  )
                )
              ),
              a!sideBySideItem(
                item: a!richTextDisplayField(
                  value: a!richTextItem(
                    text: "Redirect to interface 2",
                    link: a!dynamicLink(value: 2, saveInto: local!showInterface)
                  )
                )
              )
            }
          ),
          choose(
            local!showInterface,
            rule!EMS_TEST_INTERFACE_1(),
            rule!EMS_TEST_INTERFACE_2()
          )
        }
      )
    )

Children