Display a record view in an interface

Certified Senior Developer

Hello!

We are using the submenus of the Appian sites (which only accept interfaces). We have a logic where, depending on the role of the user that accesses, when clicking on the submenu of the site you will see one thing or another:

  • Role A: You will see a list of customers (through a record). So far so good, we can put the record list in an interface
  • Role B: You will see directly the detail/view of your customer. Having only one customer associated, we want to avoid the double step of seeing the list of customers (where only yours appears) and click this customer. What we want is that when you click on the submenu, it takes you directly to the detail of this customer (similar to the functionality of a!recordLink).


Do you know if there is any option to do this? Thanks!

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    Design it from interface not from site pages. Take a attribute that differs the roles use it in If condition

    a!localVariables(
      local!isusermember:a!isUserMemberOfGroup(loggedInUser(),"Group"),
    /*  or some other rule that defines the attributes your role*/,
      if(
        local!isusermember,
    rule!gridxyz,
    rule!Summarypage 
    /*(pass the id of the single user)*/
      )
    )

    Something like this. 

Reply
  • 0
    Certified Senior Developer

    Design it from interface not from site pages. Take a attribute that differs the roles use it in If condition

    a!localVariables(
      local!isusermember:a!isUserMemberOfGroup(loggedInUser(),"Group"),
    /*  or some other rule that defines the attributes your role*/,
      if(
        local!isusermember,
    rule!gridxyz,
    rule!Summarypage 
    /*(pass the id of the single user)*/
      )
    )

    Something like this. 

Children