Radio Button group with images stored as BLOB files in database
Hey all!
I have radio button group, my idea is that radio button's LOV must display images, I mean BLOB files stored in a table.
How can I do this?
Hello Ken,
I asked similar question in the past, and I believe the answer is still the same.
Select List as an option of a Radio Group
In your case, I think you can use a select list with added functionality, like "Select List with Branch to Page" or "Select list with Submit", or you can just attach an onChange event (JavaScript) to each select list. The effect should be similar to a radio group as soon as the user select one item from any of the select lists, you can fire some action, based on the select list value.
Hope this can help,
Arie.
Similar Messages
-
Creating a radio button group in a column of a table in Web Dynpro
Hi,
I want to put a radio button group in a column of a table in Webdynpro. I added a column to a web dynpro view and then inserted a tableCellEditor for that column.. But I cannot define it as Radio Button group. I want the user to be able to select 3 statuses using this group.
Does anyone have a solution for this??
Thanks in advance...
NakulHi,
You wont be able create three RB in one cell.
Create as many column as the no of options is.Here it is 3.
Create 4 attributes inside the node , option 1,option 2,option 3 and selectedoption.
Map each RB s keytoSelect to option 1,2,3. Map all the RBs selectedKey atribute to selectedoption.
Now selection for each row will be stored in the selected option.
Regards
Bharathwaj -
Form UIBB: Radio Button Group: How to set default value?
Hello,
i've added a Radio Button Group in Forum UIBB (FPM_FORM_UIBB) with 3 possible values. How can I set the default value for this group? When starting the application, no radio button is selected..
Thanks & Regards
ChristopherHi Christopher,
i've the same requiremnt for adding a Radio Button Group and 3 Radio buttons under it in Forum UIBB (FPM_FORM_UIBB) with 4 possible values..
I have added 3 custom fields for 3 Radio buttons in the structure. In the desin time, I have added these 3 fields and taken as Radion button Group. But, Only label is coming on the output...
I totally stuck here. Can you please guide me on this in details as to how to add the Radio buttons and how its action can be handled?
It's bit urgent for me.
Thanks in advance,
Sumesh -
Calling radio button group by group name in SAP Appbuilder
Hi, I'm new to SAP Appbuilder but I do have some really beginner Javascript knowledge.
I'm trying to create a survey mobile app but I don't seem to be able to get the ID of a radio button based on the radio button group.
This is my logic to try to change the text of a label with the ID of the selected radio button.
This function has been set to the event of all 4 radio buttons that have the same radio button group name, "choices".
Help needed.
Regards RotiJohnFirst, why do you set the value in wdDoModifyView() and not in a non-static method of the controller?
In your code example you read the value from a node named "AddEmployeeTime" but you set the value on a node named "EmployeeTime". Is that correct?
Armin -
Dynamic creation of Radio Button Group
Hi,
I need to create a Radio Button Group dynamically and add Radio buttons to it.
I am able to create the Radio buttons dynamically. Could someone help me how to create Radio Button Groups.
I tried creating the Radio Button Group using the following code
DATA : lr_radiobuttongrp type REF TO CL_WD_RADIOBUTTON_GROUP_BY_IDX.
call method CL_WD_RADIOBUTTON_GROUP_BY_IDX=>NEW_RADIOBUTTON_GROUP_BY_IDX
EXPORTING
bind_texts = 'test'
RECEIVING
control = lr_radiobuttongrp.
cl_wd_matrix_head_data=>new_matrix_head_data( element = lr_radiobuttongrp ).
lr_container->add_child( lr_radiobuttongrp ).
But when I run it I am geting a dump "subnode viewname.ME does not exist".
Thanks,
Suvarna.
Edited by: Suvarna Chittor on Aug 12, 2008 12:10 PMwhat is 'test' in bind text parameter
you should provide the name in Capitals along with the node name,
if the node name is TEXTS and the context attribute under this node is TEXT then you have to pass
TEXTS.TEXT
also provide the VIEW parameter to the call
Abhi
Edited by: Abhimanyu Lagishetti on Aug 12, 2008 12:26 PM -
Hi ,
Is there any way we can create 'Text' along with radio button groups beside the text 'YES' and 'NO' dynamically in a VIEW through 'ABAP WEBDYNPRO'. Can we create a context node with 'TEXT' attribute.
Eg : TEXT RADIOBUTTON1 'yes' RADIOBUTTON2 'no'.
Thanks,
kumarhi,
check this out.
method wddomodifyview .
data : LR_RADIOBUTTON1 type ref to CL_WD_RADIOBUTTON,
CALL METHOD cl_wd_radiobutton=>new_radiobutton
EXPORTING
bind_selected_key = '01'
BIND_TEXT = 'One'
receiving
control = LR_RADIOBUTTON1.
I think with the above code you will be able to create text along with Radio button.
Thanx. -
Two radio button groups merging into one, and I don't want that. How do I fix it?
I have two sets of radio buttons that I want to be independent of each other. How do I do that? Just to be clear... I have one set with two buttons. The second set has six buttons. They are independent of each other - they just happen to fall in line one right after the other. LiveCycle keeps putting them together.
I have very limited knowledge and am learning as I go. Thanks for any help that you can give me.Select the Radio button that you want to be independent of the other radio buttons, RIGHT click and choose Wrap in New Radio Button Group.
This way it can be selected along with other radio buttons..
One question here. If you want each radio button to be independent of each other, why not change them to Check Boxes instead of Radio Buttons.
Thanks
Srini -
How to disable a lead selected item in a radio button group ?
Hi,
I have a radio button group and there are entries to create radio buttons dynamically. means there is only one radio button group in the UI design and in runtime I will be having two radio buttons (For ex: Yes and No ) . Now If I want to disable either Yes or No radio button, I am unable to do so. because If I disable the radio button group it disables both. So, I can have lead selected item for ex: Yes which I want to disable. I want to know specifically how this Yes button to be disabled by taking lead selected index item.
Please help.
Thanks
PraveenTry setting the radio button value of the lead selected button to abap_false/space.
-
Hi I am trying to create two radio button groups, one which contains other text buttons and names buttons, in this group only other text button or names can be chosen. But then within the other group I have all the names buttons, but i only want one of these to be chosen at a time. Heres my code
[AS]
import fl.controls.RadioButtonGroup;
//===========================All Name Buttons============================
var NameTxtRadio:RadioButtonGroup=new RadioButtonGroup("NameTxtRadio");
LBtextMenu.LBnames.group=NameTxtRadio;
RBtextMenu.RBnames.group=NameTxtRadio;
LStextMenu.LSnames.group=NameTxtRadio;
RStextMenu.RSnames.group=NameTxtRadio;
LBtextMenu.LBnames.addEventListener(MouseEvent.CLICK, NamesshowResult);
RBtextMenu.RBnames.addEventListener(MouseEvent.CLICK, NamesshowResult);
LStextMenu.LSnames.addEventListener(MouseEvent.CLICK, NamesshowResult);
RStextMenu.RSnames.addEventListener(MouseEvent.CLICK, NamesshowResult);
function NamesshowResult(event:MouseEvent):void {
switch (NameTxtRadio.selection) {
case RBtextMenu.RBnames :
trace ("RB names chosen");
RStextMenu.RSnames.selected = false;
RBtextMenu.RBnames.selected = true;
LBtextMenu.LBnames.selected = false;
LStextMenu.LSnames.selected = false;
break;
case LBtextMenu.LBnames :
trace ("LB names chosen");
RStextMenu.RSnames.selected = false;
RBtextMenu.RBnames.selected = false;
LBtextMenu.LBnames.selected = true;
LStextMenu.LSnames.selected = false;
break;
case LStextMenu.LSnames :
trace ("LS names chosen");
RStextMenu.RSnames.selected = false;
RBtextMenu.RBnames.selected = false;
LBtextMenu.LBnames.selected = false;
LStextMenu.LSnames.selected = true;
break;
case RStextMenu.RSnames :
trace ("RS names chosen");
RStextMenu.RSnames.selected = true;
RBtextMenu.RBnames.selected = false;
LBtextMenu.LBnames.selected = false;
LStextMenu.LSnames.selected = false;
break;
//==========================Right Breast text menu==========================
var RBTxtRadio:RadioButtonGroup=new RadioButtonGroup("RBTxtRadio");
RBtextMenu.RBotherTxt.group=RBTxtRadio;
RBtextMenu.RBnames.group=RBTxtRadio;
RBtextMenu.RBotherTxt.addEventListener(MouseEvent.CLICK, RBshowResult);
RBtextMenu.RBnames.addEventListener(MouseEvent.CLICK, RBshowResult);
function RBshowResult(event:MouseEvent):void {
switch (RBTxtRadio.selection) {
case RBtextMenu.RBotherTxt :
trace ("RB other chosen");
break;
case RBtextMenu.RBnames :
trace ("RB names chosen");
break;
//==============================================================================
//==========================Left Breast text menu==========================
var LBTxtRadio:RadioButtonGroup=new RadioButtonGroup("LBTxtRadio");
LBtextMenu.LBotherTxt.group=LBTxtRadio;
LBtextMenu.LBnames.group=LBTxtRadio;
LBtextMenu.LBotherTxt.addEventListener(MouseEvent.CLICK, LBshowResult);
LBtextMenu.LBnames.addEventListener(MouseEvent.CLICK,LBshowResult);
function LBshowResult(event:MouseEvent):void {
switch (LBTxtRadio.selection) {
case LBtextMenu.LBotherTxt :
trace ("LB other chosen");
break;
case LBtextMenu.LBnames :
trace ("LB names chosen");
break;
//==============================================================================
//==========================Left Shoulder text menu==========================
var LSTxtRadio:RadioButtonGroup=new RadioButtonGroup("LSTxtRadio");
LStextMenu.LSotherTxt.group=LSTxtRadio;
LStextMenu.LSnames.group=LSTxtRadio;
LStextMenu.LSotherTxt.addEventListener(MouseEvent.CLICK, LSshowResult);
LStextMenu.LSnames.addEventListener(MouseEvent.CLICK,LSshowResult);
function LSshowResult(event:MouseEvent):void {
switch (LSTxtRadio.selection) {
case LStextMenu.LSotherTxt :
trace ("LS other chosen");
break;
case LStextMenu.LSnames :
trace ("LS names chosen");
break;
//==============================================================================
//==========================Right Shoulder text menu==========================
var RSTxtRadio:RadioButtonGroup=new RadioButtonGroup("RSTxtRadio");
RStextMenu.RSotherTxt.group=RSTxtRadio;
RStextMenu.RSnames.group=RSTxtRadio;
RStextMenu.RSotherTxt.addEventListener(MouseEvent.CLICK, RSshowResult);
RStextMenu.RSnames.addEventListener(MouseEvent.CLICK,RSshowResult);
function RSshowResult(event:MouseEvent):void {
switch (RSTxtRadio.selection) {
case RStextMenu.RSotherTxt :
trace ("RS other chosen");
break;
case RStextMenu.RSnames :
trace ("RS names chosen");
break;
//==============================================================================
[/AS]
I have no problem choosing between either, other text button or names, only one is selected at a time, but this isnt the case for the other group im able to select multiple name buttons without the other one becoming deselected.
Thanks in advance for any help.Hi just if anyone else wants to do something like i have, I had to ditch the radio button component and make my own.
Heres the code.
[AS]
RBnamesTextButton.CustomRadioButton.stop();
LBnamesTextButton.CustomRadioButton.stop();
RSnamesTextButton.CustomRadioButton.stop();
LSnamesTextButton.CustomRadioButton.stop();
RBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState01);
LBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState01);
RSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState01);
LSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState01);
function rollOverState01(event:MouseEvent):void
if (event.target.currentFrame !== 3)
event.target.gotoAndStop("over");
RBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState01);
LBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState01);
RSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState01);
LSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState01);
function rollOffState01(event:MouseEvent):void
if (event.target.currentFrame !== 3)
event.target.gotoAndStop("off");
RBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState01);
LBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState01);
RSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState01);
LSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState01);
function rollupState01(event:MouseEvent):void
RBnamesTextButton.CustomRadioButton.gotoAndStop(1);
LBnamesTextButton.CustomRadioButton.gotoAndStop(1);
RSnamesTextButton.CustomRadioButton.gotoAndStop(1);
LSnamesTextButton.CustomRadioButton.gotoAndStop(1);
event.target.gotoAndStop(3);
//======================================OTHER TEXT========================================================
RBotherTextButton.CustomRadioButton.stop();
LBotherTextButton.CustomRadioButton.stop();
LSotherTextButton.CustomRadioButton.stop();
RSotherTextButton.CustomRadioButton.stop();
RBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState02);
RSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState02);
LBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState02);
LSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OVER, rollOverState02);
function rollOverState02(event:MouseEvent):void
if (event.target.currentFrame !== 3)
event.target.gotoAndStop("over");
RBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState02);
RSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState02);
LBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState02);
LSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_OUT, rollOffState02);
function rollOffState02(event:MouseEvent):void
if (event.target.currentFrame !== 3)
event.target.gotoAndStop("off");
//===============================RB BUTTONS================================================
RBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState03);
RBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState04);
function rollupState03(event:MouseEvent):void
RBnamesTextButton.CustomRadioButton.gotoAndStop(3);
RBotherTextButton.CustomRadioButton.gotoAndStop(1);
trace("Right Breast names clicked")
function rollupState04(event:MouseEvent):void
RBotherTextButton.CustomRadioButton.gotoAndStop(3);
RBnamesTextButton.CustomRadioButton.gotoAndStop(1);
trace("Right Breast text clicked")
//======================================================================================== =======
//===============================LB BUTTONS================================================
LBnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState05);
LBotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState06);
function rollupState05(event:MouseEvent):void
LBnamesTextButton.CustomRadioButton.gotoAndStop(3);
LBotherTextButton.CustomRadioButton.gotoAndStop(1);
trace("Left Breast names clicked")
function rollupState06(event:MouseEvent):void
LBotherTextButton.CustomRadioButton.gotoAndStop(3);
LBnamesTextButton.CustomRadioButton.gotoAndStop(1);
trace("Left Breast text clicked")
//======================================================================================== =======
//===============================RS BUTTONS================================================
RSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState07);
RSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState08);
function rollupState07(event:MouseEvent):void
RSnamesTextButton.CustomRadioButton.gotoAndStop(3);
RSotherTextButton.CustomRadioButton.gotoAndStop(1);
trace("Right Shoulder names clicked")
function rollupState08(event:MouseEvent):void
RSotherTextButton.CustomRadioButton.gotoAndStop(3);
RSnamesTextButton.CustomRadioButton.gotoAndStop(1);
trace("Right Shoulder text clicked")
//======================================================================================== =======
//===============================LS BUTTONS================================================
LSnamesTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState09);
LSotherTextButton.CustomRadioButton.addEventListener(MouseEvent.MOUSE_UP, rollupState10);
function rollupState09(event:MouseEvent):void
LSnamesTextButton.CustomRadioButton.gotoAndStop(3);
LSotherTextButton.CustomRadioButton.gotoAndStop(1);
trace("Left Shoulder names clicked")
function rollupState10(event:MouseEvent):void
LSotherTextButton.CustomRadioButton.gotoAndStop(3);
LSnamesTextButton.CustomRadioButton.gotoAndStop(1);
trace("Left Shoulder text clicked")
//======================================================================================== =======
[/AS]
There is probably a more efficent way to code this but im an AS noob :] -
Set a default value for a radio button populated with a List of value
Hi,
I am using jdeveloper 11.1.1.3.0. I need to set a default value for a radio button populated with a List of value(Yes/No). Here's the selectonechoice code.
<af:selectOneRadio value="#{bindings.Code.inputValue}"
label="#{bindings.Code.label}"
required="#{bindings.Code.hints.mandatory}"
shortDesc="#{bindings.Code.hints.tooltip}"
id="sor1" autoSubmit="true"
valuePassThru="true" layout="horizontal">
<f:selectItems value="#{bindings.Code.items}" id="si1"/>
</af:selectOneRadio>
I want to have the selectonechoice set to No by default. In the previous versions, I set the default value in the base attribute VO. But it is not working in the new version.
ThanksHi,
this should work in JDeveloper 11.1.1.3 the same as in 11.1.1.2. If it doesn't then it is better to file a bug than to work around it
Frank -
Problem in displaying images stored in Blob variable
Hi all,
I have a requirement where i need to retrieve the image stored in Blob variable in DB and display the image in JSP page.
I have written the below code to achieve this, it works fine
In JSP, I am calling a action in the <img tag
<img src='downloadPhoto.page?method=getPhotoInBytes&accessoryModelPictures.id.accessoryNumber=${photo.id.accessoryNumber}/> In my controller class
InputStream inputStream=accessoryPicturesLOB.getPicture().getBinaryStream();
byte[] theBytes = new byte[inputStream.available()];
inputStream.read(theBytes);
response.setContentType("image/jpg");
response.getOutputStream().write(theBytes);But the problem is, *if i right click on the image and select save picture as option i get a error saying "The system cannot find the specified file "*
Can you please tell me what is wrong in my approach/code
Is there any better approach to display image that is store in Blob variable ?
Please help on this.
Thanks in advance.You need at least to set the filename in the content disposition header.
-
Radio button grouping across boxes
I have 10 or so radio buttons on a shortcut screen that I need to put together in logical groupings. I've grouped them in boxes; however, I need them to group as a single radio button grouping. Is this possible? When I try to put them in a grouping, I can only group those items within a given box...not all items in all boxes.
Thanks in advance for your help.I dont think its possible to have in all diff box R-buttons in one group.
-
Button Group with Command SAVE_DATA execute with ENTER
Hello,
I created a Button Group with Command SAVE_DATA and execute it with ENTER. I use it in a Webtemplate.
Most of the time the Button is working in proper way.
Sometimes it happens that the Enter doesn't work and don't save data. To press the Button to Save data is always working.
Any ideas why?
Thanks a lot.
Kind Regards
DorisHello,
thank you for your answers. I checked the Notes for the Cache problems. I think this is not valid for my Template because the data are correctly saved if I press the Save Button after the Enter is not working.
The strange thing is the behavior that it is sometimes not working and not allways. Also it is not possible to place the Save Button outside the planning cells. But I will keep this in my mind.
Any other ideas?
Thanks a lot.
Kind Regards
Doris -
Radio Button Groups - always below each other?
Hello,
When you create a RadioButtonGroup either ByKey or ByIndex it always puts each element under the next one. I was wondering if there was a way to put each element NEXT to each other, so I read each option from left to right instead of from top to bottom.
Thanks in advance,
JenniferHi Jacobs,
Assign the 'colCount' property of RadioGroupByXX object to the number of radio buttons you want to have. Then you would get all ur radio buttons side-by-side instead of below to each other.
for example, if u have 2 radio buttongs in the radio button group then assign colCount=2.
Thanks,
Raags
PS: If useful assign points -
How to display and save a picture stored as BLOB in MySQL database in Jsp?
Hello i am doing a dataentry form where in i will display the picture stored as Blob in MySQL database to the browser. The form also allow changing the picture and updating the picture Blob in the database.
How can i do it? I try this
<img src'"<%=rs.getBlob("picture")%> but it doesn't display the picture.
another thing, how can i save it in the database, if is use the file field in the html form?
thanks in advance for your help.Hello i am doing a dataentry form where in i will display the picture stored as Blob in MySQL database to the browser. The form also allow changing the picture and updating the picture Blob in the database.
How can i do it? I try this
<img src'"<%=rs.getBlob("picture")%> but it doesn't display the picture.
another thing, how can i save it in the database, if is use the file field in the html form?
thanks in advance for your help.
Maybe you are looking for
-
Synch new contacts from Address Book no longer works.
My iphone will no longer synch new contacts in my Address Book on my Mac. It was working fine and then I loaded too much audio content and ran out of memory so I think it could not synch properly without memory available. I've since deleted all my a
-
Adobe Premiere CS 5.5 freezes and lags on a 1hour 45 minute video.
I'm running a quad core 2.7 GHz iMac with 32 gigs of RAM 1 GB graphics card and 500 GB of free space on the 7200 RPM hard drive. Whenever I load a 1 hour and 45 min. video (it's videogame play) I go to sync it with my audio from external audio source
-
Hi all Could you shoe me about an error 62 that i saw in Event Viewer when i send email in SAP B1 Thank you!
-
I am trying to re-install CS3 after having to replace my Hard drive, but it will not accept my serial #. How can I get it to allow me to continue using my software?
-
Question about ADF Table's detailStamp component..
Hi, I've written a skin... The thing is I want that table placed inside detailStamp component to have a bit lower height rows than the containing table.. but keeping the same skin. Is it possible somehow? It's very urgent..