Dynamic interface loading on tree node selection

Certified Senior Developer

Hello All,

I have a 2 column layout. in left section I have a tree with multiple node like shown in below.

  • Category1
    • Interface1
    • Interface2
  • Category2
    • Interface3
    • Interface4
    • Interface5

In right section I have to display the selected node's interface. For example if "Interface1" node is clicked then it should call an expression rule which returns the interface name to be loaded for that node. Now as expression rule returns string value, I am not able to render that interface in right section.

Please note  - Each node has associated interface and entire list is maintained in records. On tree node click that expression rule finds the interface name for selected node.

Kindly help if there is any other way to achieve this?

Thanks in Advance.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    Hi  
    So, you are storing categories and interfaces related to those categories in one record?
    And when one node is clicked you are calling an expression right, can you send the expression rule code for reference. Like on what basis that expression rule is fetching the interface name.
    If you need another approach
    If there are some static values for nodes, you can handle them using choose condition based on the node selected.

Reply
  • 0
    Certified Senior Developer

    Hi  
    So, you are storing categories and interfaces related to those categories in one record?
    And when one node is clicked you are calling an expression right, can you send the expression rule code for reference. Like on what basis that expression rule is fetching the interface name.
    If you need another approach
    If there are some static values for nodes, you can handle them using choose condition based on the node selected.

Children
  • 0
    Certified Senior Developer
    in reply to Teja Kunchala

    Thanks Teja for your reply. Yes, I am storing categories and interfaces related to those categories in one record.

    Answer to second question - I already have all data available on that interface using records, so as of now no need of any expression rule to get the interface name. As soon as the node is clicked I am storing its interface name of that node, in one local variable. It gives me a string value and not sure how to convert that into an interface value.