Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RadioButton selection Issue #875

Open
pashminakazi opened this issue Jun 25, 2020 · 3 comments
Open

RadioButton selection Issue #875

pashminakazi opened this issue Jun 25, 2020 · 3 comments

Comments

@pashminakazi
Copy link
Contributor

Project Details are :
https://paste.apache.org/cpo8y
Test case is available on VDI.
Go to Inventory from Select in Menu
Go to PSSM -> Orifice Metering from Setups in Menu
File : com/dbz/modules/Common/dbzPlannimetryMaster.mxml

Click on Plus(+) button popup will be opened, In this Popup From Field and To Field AM/PM is separated,but i am unable to select 2 radio buttons AM or PM for from field and AM or PM for To field.
It is necessary to select one radioButton from From Field and one radioButton from To Field
System is allowing to select only one radio button from these 4
image
image

We are using our custom File dbzDateTimePicker for radiobuttons in dbzPlannimetryDetail.mxml like

s:Label id="FromTimeLabel" text=" From Time" x="60" y="37" verticalAlign="middle" height="20" width="111" textAlign="right"/>
<s:Label id="ToTimeLabel" text="To Time " x="60" y="68" verticalAlign="middle" height="20" width="111" textAlign="right"/>
<components:dbzDateTimePicker id="setupDetailTime1" x="138" y="34" tabIndex="2" height="26" width="234">
</components:dbzDateTimePicker>
<components:dbzDateTimePicker id="setupDetailTime2" x="138" tabIndex="3" y="65" height="26">
</components:dbzDateTimePicker> 

these radiobuttons are in our library file : dbzDateTimePicker.mxml which is in DbizLib
Path : D:/DbizLib/src/com/dbz/modules/components/dbzDateTimePicker,mxml
File : https://paste.apache.org/t6aiq

@aharui
Copy link
Contributor

aharui commented Jun 26, 2020

We could try to fix that, but it is probably easier if you adjust your code to choose a custom groupName for each instance of dbzDateTimePicker.

@pashminakazi
Copy link
Contributor Author

Are you saying me to create 2 different mx:RadioButtonGroup?
1 for AM RadioButton and 1 for PM RadioButton

@aharui
Copy link
Contributor

aharui commented Jun 26, 2020

I guess I wasn't clear enough. The browser is has different uniqueness rules than Flash. A RadioButton's group is effectively registered at the browser level, not the MXML document level as it is in Flash/Flex. So if you have more than one copy of a RadioButton group in Royale there browser sees it as one.

I think a simple workaround is to add a "groupName" property to your dbzDateTimePicker and use that groupName as the groupName for the RadioButtons. You might be able to use the "id" property as the groupName for the RadioButtons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants