on 01-11-2016 10:03 AM
I want to show different chart on click of radio button as of now. I have a radiobutton group. How did is fetch particular radiobutton. for example.
view::
<RadioButtonGroup id="RID" select="onSelect_Radiobutton" columns="3">
<buttons>
<RadioButton text="Domestic" id="Domestic" selected="true"
/>
<RadioButton text="Commertial" id="Commertial" />
<RadioButton text="Industrial" id="Industrial" />
</buttons>
</RadioButtonGroup>
Controller:
onSelect_Radiobutton : function(evt) {
if( ---"some code to fetch and evaluate which radiobutton"---)
{
var op3 = this.getView().byId("idPanel");
op3.removeAllContent();
op3.addContent(oVizFrame).addContent(oPopOver);
}
ifelse(){}.... continue
},
.....................................
How to perform "some code to fetch and evaluate which radiobutton".
One Possibility:
var whichBtn = evt.getSource().getSelectedButton();
and then
whichBtn.getText() == "Commertial"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One more Possibility:
<RadioButtonGroup id="RID" columns="3">
<buttons>
<RadioButton text="Domestic" id="Domestic" selected="true" select="onSelect_Radiobutton"/>
<RadioButton text="Commertial" id="Commertial" select="onSelect_Radiobutton"/>
<RadioButton text="Industrial" id="Industrial" select="onSelect_Radiobutton"/>
</buttons>
</RadioButtonGroup>
Controller:
onSelect_Radiobutton : function(evt) {
var _radioButtonID = evt.getParameter("id");
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.