Hello, can anyone help me for below case
I just want to create two interface and what i want , if I call those two interface through a radio button so what approached i need to use for the same.
Discussion posts and replies are publicly visible
Hi, You can configure two radio buttons and these two buttons you can save boolean values, and once its set as true , something like below,
a!localVariables( local!isRule1Visible:false, local!isRule2Visible:false, { a!radioButtonField( label: "Radio button 1", choiceLabels: {"yes","No"}, choiceValues: {true,false}, value: local!isRule1Visible, saveInto: local!isRule1Visible ), a!radioButtonField( label: "Radio button 2", choiceLabels: {"yes","No"}, choiceValues: {true,false}, value: local!isRule2Visible, saveInto: local!isRule2Visible ), if( local!isRule1Visible, rule!interface1, {} ), if( local!isRule2VisibleVisible, rule!interface2, {} ) } )
This code is working but it's showing only a value in the form of true or false. I want to show data of the both interfaces
This will depend completely on what you have in your interface rules that you call. The example code above with "rule!interface1" and "rule!interface2" is purely an example of how to implement such an interface picker - you will need to supply your own interface names in place of the above.