How to peoplecode with radio button - peoplesoft

Anyone of you who knows how to peoplecode with the value choosen with radio button?
I have this page with radio button of academic programs and when a user select from one of the programs, I want to print a report basing on that program chosen in the radio button.
Any idea where to start and how to do this?
Thanks so much for the help.

Open the page in Application Designer and check the properties of the radio button fields.
They will look something like this:
All the related radio buttons will have the same record and field, but a different value.
To execute code, based on the selected radio button, you would evaluate the value:
Evaluate RECORD.FIELD.Value
When "VAL1"
RunReport1();
When "VAL2"
RunReport2();
When-Other
/* Error */
End-Evaluate;
Note: Fields used for radio buttons have to have XLAT validation IIRC

Related

Change select drop down into radio buttons in wordpress

I'm trying to make it so all the options in the drop down are represented with a radio button and clicking on a radio button changes the drop down selection.
However since I'm on WordPress I'm struggling on knowing where to put the code and what code to put.

Cypress multiple radio button selection with dynamic value

Single radio can be selected using
cy.get('[type="radio"]').first().check()
If there is multiple radio buttons code on page with dynamic values for buttons.
How to select multi radio buttons in cypress automation testing?
There is a documentation about it : https://docs.cypress.io/api/commands/check.html#No-Args
its mentioned you should use 'cy.get('[type="radio"]').check()' in order to select all radio buttons.
hope this helps.see the image also

Radio button click in Selenium Webdriver

I have write a code for radio button click by using XPath but it is not click on radio button during execution of code.
My code is:
driver.FindElement(By.XPath("//a[contains(id(),rptShoppingServiceGroup_dlAddons_2_ctl01_2)]")).Click();
Kindly help how to button select particular radio button and after selection it move to another radio button.
Thanks in advance.
Actually the click() works, but the webdriver can't properly refresh the user interface...
The unique methode i've found to refresh that is to use the submit() function on it.
Like :
myRadioBtn.click();
myRadioBtn.submit();
tell me what's up =)
It might be case that you're checking radio button which is already checked. Hence now, you have radio button unchecked which you don't want(you want radio button to be checked). First check whether radio button is checked. If it's checked, don't click on it(otherwise, it'll result into uncheck of radio button). If it's not checked, then click on it so it will be checked.
button = driver.FindElement(By.XPath("//a[contains(id(),rptShoppingServiceGroup_dlAddons_2_ctl01_2)]"))
if (!button.isSelected()){
button.click();
assetTrue(button.isSelected)
}
Do you want RadioButton checked?
if yes, try ...Checked=true
var radioButton = driver.FindElement(By.XPath("//a[contains(id(),rptShoppingServiceGroup_dlAddons_2_ctl01_2)]"));
radioButton.Checked=true;
(or radioButton.Click())

List of Checkboxes in Android App using Flex and Flashbuilder

I am trying to implement a list of checkboxes and a Android Form App I am working on. I want the list to only have single selection, i.e. I can only select one option from the list.... for some reason I can not find any code to do this, I am using Flashbuilder and the Flex framework, anyone know of a way to do this ??
Thanks in advance for any help!
If you want a single selection, use radio buttons with a radio button group.
The only reason you'd want to use checkboxes is if you want to turn off all selections (with radio buttons, once you've clicked a button one is always selected).
If you still want to use checkboxes, do the following:
onCheckBoxSelected(e:Event){
for each(checkbox:CheckBox in collectionOfCheckBoxes){
if(checkbox != e.currentTarget){
checkbox.selected=false;
}
}
}

Check is a radio button is checked after post back in ASP.NET

I am looping through all the posted data on my website and grabbing the values, this will then be used later on. The user is going to put 2 radio buttons on the page, one with a correct answer and one with an incorrect answer. I need to know how to see if a Radio Button is checked or not based on the posted data. Is this possible?
Thanks.
If the radio button is checked, there will be an entry in the posted data, keyed with its UniqueID:
if (Request.Form[yourRadioButton.UniqueID] != null) {
// Radio button is checked, do something.
}
If you insist on reading directly from the request collection, read Request.Form["radiobuttonname"] and it will contain the value of the selected button.
However, it's much better to check the radio button control itself - why can't you do that?

Resources