Hyperlinking to open a Interface by Button

I want be hyperlink by button to open a interface of the same project Interface in same tab. Please provide me complete code how to link by one interface Button to open another interface. Thanks & regards 

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    You cannot do that using button.

    But what is the interface that you want to open? Is it a record Summary? Below is a code for opening external link. you can replace it with a!recordLink() if you are talking about opening a summary interface.

    /*external URL*/
    {
      a!cardLayout(
        contents: {
          a!richTextDisplayField(
            labelPosition: "COLLAPSED",
            value: {
              "Open Link"
            }
          )
        },
        link: a!safeLink(
          label: "Safe Link",
          uri: "https://community.appian.com/discussions",
          openLinkIn: "SAME_TAB"
        ),
        height: "AUTO",
        style: "TRANSPARENT",
        marginBelow: "STANDARD"
      )
    }
    
    /*Record Link*/
    {
      a!cardLayout(
        contents: {
          a!richTextDisplayField(
            labelPosition: "COLLAPSED",
            value: { "Open Link" }
          )
        },
        link: a!recordLink(
          recordType: "Your record Type",
          identifier: "Primary_key_field",
          openLinkIn: "SAME_TAB"
        ),
        height: "AUTO",
        style: "TRANSPARENT",
        marginBelow: "STANDARD"
      )
    }
    

Reply
  • 0
    Certified Senior Developer

    You cannot do that using button.

    But what is the interface that you want to open? Is it a record Summary? Below is a code for opening external link. you can replace it with a!recordLink() if you are talking about opening a summary interface.

    /*external URL*/
    {
      a!cardLayout(
        contents: {
          a!richTextDisplayField(
            labelPosition: "COLLAPSED",
            value: {
              "Open Link"
            }
          )
        },
        link: a!safeLink(
          label: "Safe Link",
          uri: "https://community.appian.com/discussions",
          openLinkIn: "SAME_TAB"
        ),
        height: "AUTO",
        style: "TRANSPARENT",
        marginBelow: "STANDARD"
      )
    }
    
    /*Record Link*/
    {
      a!cardLayout(
        contents: {
          a!richTextDisplayField(
            labelPosition: "COLLAPSED",
            value: { "Open Link" }
          )
        },
        link: a!recordLink(
          recordType: "Your record Type",
          identifier: "Primary_key_field",
          openLinkIn: "SAME_TAB"
        ),
        height: "AUTO",
        style: "TRANSPARENT",
        marginBelow: "STANDARD"
      )
    }
    

Children
No Data