on 08-24-2015 10:22 AM
Hi All,
I have created a demo SAPUI5 application in Web IDE. It operates well in the App. Preview. When I deploy it to the Gateway and start from the FLP the Radiobutton's texts disappear. I use sap.m.RadioButtonGroup with buttons aggregation. If I use the RadioButtons with groupName property (and without RadioButtonGroup) the texts are displayed well. I wonder whether it is the speciality of the fiori sandbox rendering or something else.
Thanks for your help in advance.
BR,
Peter
post the code/xml how you do bind of buttons aggregatnio and text property
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Maksim,
The code from xml view:
<RadioButtonGroup id="ans1" width="100%">
<buttons>
<RadioButton id="ans11" text="i18n>ans11"/>
<RadioButton id="ans12" text="{i18n>ans12}"/>
<RadioButton id="ans13" text="{i18n>ans13}"/>
<RadioButton id="ans14" text="{i18n>ans14}"/>
</buttons>
</RadioButtonGroup>
I have realized that the problem is with the resource text. The text of the first button is displayed well, the others are not. I have no problem with any other text from resource, only in this kind of RBG.
BR,
Peter
Hi Maksim,
I deleted the curly braces on purpose to show that the text can be rendered in this way.
If I code the view in this way:
<RadioButton id="ans11" groupName="ans1" text="{i18n>ans11}"/>
<RadioButton id="ans12" groupName="ans1" text="{i18n>ans12}"/>
<RadioButton id="ans13" groupName="ans1" text="{i18n>ans13}"/>
<RadioButton id="ans14" groupName="ans1" text="{i18n>ans14}"/>
the texts from resource are also coming and everything is fine.
BR,
Peter
hmm, magic...
just tried
<RadioButtonGroup id="ans1" width="100%">
<buttons>
<RadioButton id="ans12" text="{i18n>MY_APPROVALS}"/>
<RadioButton id="ans13" text="{i18n>RECORD}"/>
<RadioButton id="ans14" text="{i18n>DATE}"/>
</buttons>
</RadioButtonGroup>
and it works fine for me
right click on radio button and try Inspect Element, what's in DOM?
Hi Peter,
Just a mild guess, is same UI5 library version used on both instances?
Since, sap.m.RadioButtonGroup is introduced from 1.25.0 version.
JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.m.RadioButtonGroup
Regards,
Sai Vellanki.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Discussion successfully moved from SAP Fiori to SAPUI5 Developer Center as the more appropriate community for this topic.
Regards, Mike (Moderator)
SAP Technology RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.