Displaying interfaces

Hi All, 

I have a requirement in my project, 

I have 16 diffrent interfaces, which need to be displayed based on condition, 

ex: if ruleinput(id) value is 1 ,then 1st interface should get displayed. 

           if id=2, 2nd interface should get displayed. like that I have to display 16 interfaces vased on id value, 

can you please help me,how can i achive this other than using ifelse conditions?

Thanks

Divya 

  Discussion posts and replies are publicly visible

Parents
  • 1) you can use choose() like     

              choose(ri!id, rule!interface1, rule!interface2)

    2)you can use index() like       

              index(

                      {

                     rule!interface1,

                     rule!interface2,

                     rule!interface3

                     }

                     ri!id,

                     null

                     )

    3) You can use a decision rule 

Reply
  • 1) you can use choose() like     

              choose(ri!id, rule!interface1, rule!interface2)

    2)you can use index() like       

              index(

                      {

                     rule!interface1,

                     rule!interface2,

                     rule!interface3

                     }

                     ri!id,

                     null

                     )

    3) You can use a decision rule 

Children
No Data