How to insert radio button in application?
Hi tecs,
I want to insert the radio buttons in my form. But when i am writing
<h:selectOneRadio id="fileBackup" <f:selectItem itemValue="1" itemLabel="Installation"/>
<f:selectItem itemValue="2" itemLabel="Folder/File" />
<f:selectItem value="#{backup.fileBackup}" />
</h:selectOneRadio>
i m getting error-
javax.servlet.ServletException: javax.servlet.jsp.JspException: "{2}" Conversion Error setting value ''{0}'' for ''{1}''.
plz tell me how to solve this ? it wud b really nice if some one can tell me the coding of jsp & corresponding bean.
Thnx in advance.
<h:selectOneRadio id="fileBackup" value="#{pc_formname.varname}"><f:selectItem itemValue="1" itemLabel="Installation"/>
<f:selectItem itemValue="2" itemLabel="Folder/File" />
<f:selectItem itemvalue="#{backup.fileBackup}" itemLabel="Folder/Filetemp" />
</h:selectOneRadio>
-- value binding expression should be of same type as itemvalue-- raju
Similar Messages
-
How to insert a button in a form in a j2me application ?
Dear Friends,
I'm new to J2ME. I want to know that how to insert a button in a J2ME form. What are the button action listener available here ? Please provide sample code.Form form = new Form("Form Title");
StringItem button = new StringItem("", "Button text", Item.BUTTON);
Command buttonCommand = new Command("Button command", Command.ITEM, 1);
button.setDefaultCommand(buttonCommand);
button.setItemCommandListener(new ItemCommandListener() {
public void commandAction(Command c, Item item) {
System.out.println("Button was clicked");
form.append(button); -
How to insert a button on the column header of a table in webdynpro java
Hi
Can anyone tell me how to insert a button on the column header of a table in webdynpro java?
regards
sunitHi sunit,
Instead of adding button in the column header , in the column
add a fixed top cell.
right click on the column
Insert FixedTopCell
Right click on the fixedTopCell
insert Editor.
select button.
then button will be only in the top most row.
Hope it will satisfy ur requirement
Regards
Smitha -
How to deactive a button in application toolbar
how to deactive a button in application toolbar?
Simple example
This example shows how to create a toolbar with a single Exit button, used to exit the program.
Steps:
Create a screen and add a custom container named TOOLBAR_CONTAINER
Code:
REPORT sapmz_hf_toolbar .
TYPE-POOLS: icon.
CLASS cls_event_handler DEFINITION DEFERRED.
G L O B A L D A T A
DATA:
ok_code LIKE sy-ucomm,
Reference for conatiner
go_toolbar_container TYPE REF TO cl_gui_custom_container,
Reference for SAP Toolbar
go_toolbar TYPE REF TO cl_gui_toolbar,
Event handler
go_event_handler TYPE REF TO cls_event_handler.
G L O B A L T A B L E S
DATA:
Table for registration of events. Note that a TYPE REF
to cls_event_handler must be created before you can
reference types cntl_simple_events and cntl_simple_event.
gi_events TYPE cntl_simple_events,
Workspace for table gi_events
g_event TYPE cntl_simple_event.
CLASS cls_event_handler DEFINITION
CLASS cls_event_handler DEFINITION.
PUBLIC SECTION.
METHODS:
on_function_selected
FOR EVENT function_selected OF cl_gui_toolbar
IMPORTING fcode,
on_dropdown_clicked
FOR EVENT dropdown_clicked OF cl_gui_toolbar
IMPORTING fcode posx posy.
ENDCLASS.
CLASS cls_event_handler IMPLEMENTATION
CLASS cls_event_handler IMPLEMENTATION.
METHOD on_function_selected.
CASE fcode.
WHEN 'EXIT'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMETHOD.
METHOD on_dropdown_clicked.
Not implented yet
ENDMETHOD.
ENDCLASS.
START-OF-SELECTION.
SET SCREEN '100'.
*& Module STATUS_0100 OUTPUT
text
MODULE status_0100 OUTPUT.
IF go_toolbar_container IS INITIAL.
Create container
CREATE OBJECT go_toolbar_container
EXPORTING
container_name = 'TOOLBAR_CONTAINER'.
Create toolbar
CREATE OBJECT go_toolbar
EXPORTING
parent = go_toolbar_container.
Add a button
CALL METHOD go_toolbar->add_button
EXPORTING fcode = 'EXIT' "Function Code
icon = icon_system_end "ICON name
is_disabled = ' ' "Disabled = X
butn_type = cntb_btype_button "Type of button
text = 'Exit' "Text on button
quickinfo = 'Exit program' "Quick info
is_checked = ' '. "Button selected
Create event table. The event ID must be found in the
documentation of the specific control
CLEAR g_event.
REFRESH gi_events.
g_event-eventid = go_toolbar->m_id_function_selected.
g_event-appl_event = 'X'. "This is an application event
APPEND g_event TO gi_events.
g_event-eventid = go_toolbar->m_id_dropdown_clicked.
g_event-appl_event = 'X'.
APPEND g_event TO gi_events.
Use the events table to register events for the control
CALL METHOD go_toolbar->set_registered_events
EXPORTING
events = gi_events.
Create event handlers
CREATE OBJECT go_event_handler.
SET HANDLER go_event_handler->on_function_selected
FOR go_toolbar.
SET HANDLER go_event_handler->on_dropdown_clicked
FOR go_toolbar.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
http://www.erpgenie.com/abap/controls/toolbar.htm#Simple%20example
http://help.sap.com/saphelp_nw04/helpdata/EN/42/d2ab343e416635e10000000a1553f6/content.htm
help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCITOOLBAR/BCCITOOLBAR.pdf
Regards,
Jagadish -
How to add push button in application tool bar in SAP transaction VA01
How to add push button in application tool bar in SAP standard transaction VA01 and how to implement the code for that function code.
There is no scope to create a push button in application tool bar. Instead of that we can add in a menu bar.
-
How to define RADIO BUTTONS in MODULE POOL PROG.?
Hi Experts,
I need to keep the RADIO BUTTONS in 1000_screen of my_module_pool prog., like,
I hv 2 fields in this screen, as expected, the first shuld hv DEFAULT selection.
So, I just simply, dragged & dropped 2 radio buttons from left menu of the screen builder & given them the names as
R_SUMMARY
R_DETAIL
Then i executed the transaction, but, these above 2 fields are getting selected, as default??
I know that, if its a REPORT prog. we can define as w/ a GROUP, then the 1st one is hv the default selection.
so,
1 - How to define RADIO BUTTONS in this screen of a module pool prog.
2 - How to use these names in the prog.(PAI - i guess)?
thanq
Edited by: Srinivas on Jul 12, 2008 11:59 PMHi Srinivas,
Please check this link
Re: urgent:Regd radio buttons in module pool
http://saplab.blogspot.com/2007/10/sample-abap-program-for-module-pool_18.html
http://****************/Tutorials/ABAP/Checkbox/page1.htm
http://****************/Tutorials/ABAP/Checkbox/page2.htm
Best regards,
raam -
How to create radio button in reports
Hi Friends,
Can any body please tell how to create radio button in reports.
Thanks,
NagendraHi Nagendra,
But why do u need a single radio button, any specific reason...
try this
REPORT ZCHA1.
PARAMETERS : P_RAD1 RADIOBUTTON GROUP RAD,
P_RAD2 RADIOBUTTON GROUP RAD.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-NAME = 'P_RAD2'.
SCREEN-INVISIBLE = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP. -
How to create radio button between two slection screen
hello all.
could you please guide me how to create radio button between two SELECTION-SCREEN in screen painter.
Thank you,
srinivashi
SEE THIS CODE
REPORT ZNNR_REPORT NO STANDARD PAGE HEADING MESSAGE-ID ZNNR LINE-SIZE 100 LINE-COUNT 65(4).
******DATA DECLARATIONS**********
DATA : BEGIN OF IT_PLANT OCCURS 0,
MATNR LIKE MARA-MATNR,
WERKS LIKE MARC-WERKS,
PSTAT LIKE MARC-PSTAT,
EKGRP LIKE MARC-EKGRP,
END OF IT_PLANT.
DATA : BEGIN OF IT_PONO OCCURS 0,
EBELN LIKE EKKO-EBELN,
EBELP LIKE EKPO-EBELP,
MATNR LIKE EKPO-MATNR,
WERKS LIKE EKPO-WERKS,
LGORT LIKE EKPO-LGORT,
END OF IT_PONO.
TABLES EKKO.
********END OF DATA DECLARATIONS*********
********SELECTION SCREEN DESIGN ***********
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETER : P_WERKS LIKE MARC-WERKS MODIF ID S1.
SELECT-OPTIONS : S_EBELN FOR EKKO-EBELN NO INTERVALS MODIF ID S2.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R3 RADIOBUTTON GROUP G2 DEFAULT 'X'.
SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R3.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R4 RADIOBUTTON GROUP G2.
SELECTION-SCREEN COMMENT 5(20) TEXT-004 FOR FIELD R4.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-004.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R1 RADIOBUTTON GROUP G1 DEFAULT 'X'.
SELECTION-SCREEN COMMENT 5(20) TEXT-002 FOR FIELD R1.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : R2 RADIOBUTTON GROUP G1.
SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R2.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B2.
******END OF SELECTION SCREEN DESIGN****************
<b>rEWARD IF USEFULL</b> -
How to disable the button in application toolbar in report pgm
Can anyone help with How to disable the button in application toolbar in report pgm
Hi,
You can use it_excluding to disable button on the tool bar.You have to find the function code for the required button and append that function code to the it_excluding .The optional IMPORTING parameter IT_EXCLUDING is an internal table. It is only needed if the caller uses the list tool standard interface but wants to deactivate interface functions which he or she does not need.You can have your defined pf-status using I_CALLBACK_PF_STATUS_SET.
SAMPLE PROGRAM
tables spfli.
type-pools: slis.
DATA W_FCODE TYPE SLIS_EXTAB-FCODE.
data: t_spfli TYPE SPFLI OCCURS 0 WITH HEADER LINE.
select * from spfli into table t_spfli.
data : t_excluding TYPE SLIS_T_EXTAB .
W_fcode = '&OUP'.
append w_fcode to t_excluding.
W_fcode = '&ODN'.
append w_fcode to t_excluding.
call function 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_STRUCTURE_NAME = 'SPFLI'
IS_LAYOUT =
IT_FIELDCAT =
IT_EXCLUDING = T_EXCLUDING
tables
t_outtab = T_SPFLI
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
http://help.sap.com/saphelp_nw2004s/helpdata/en/99/49b844d61911d2b469006094192fe3/frameset.htm
Regards,
Priyanka. -
Inserting radio buttons in standard template of SRM EBP
Hi All,
We have modified the standard ITS service BBPSC01 template SAPLBBP_SC_UI_ITS 120 , to include two radio buttons as below:
`if (gs_scr_itmovr_h-is_approver == "X")`
<table>
<tr>
<td align="right" class="instruction">
<label for="apprrej"><input type="radio" name="apprrej" on click="java script:setAp prDefault();" ><b>Approve</b></label>
</td>
           
<td></td>
<td align="left" class="instruction">
<label for="apprrej"><input type="radio" name="apprrej" on click="javas cript:setReje ctDefault();" ><b>Reject</b></label>
</td>
</tr>
</table>
`end`
When the screen is displayed initially both radio buttons are deselected .Thats fine but after we select any radio button and click any button on screen both the radio buttons are again deselected.
How to keep the radio button selected after server event?
Thanks,
Anubhav
Regards,
AnubhavI think you have hit on a major conceptual issue that the
whole software
industry seems to be quite focussed on namely the
designer/developer
conundrum.
Who knows?
Maybe ther will be a solution of sorts soon?
The Krisper wrote:
> I am having an issue, as a newbie, figuring out how to
insert forms or radio
> buttons over top of an exported site design from
Fireworks 8. I have created my
> website entirely in Fireworks 8 and the site re-creates
nicely in DW 8, but I
> cant seem to just go ahead and insert anything overtop
the image once its
> imported into DW. I would love some help help with
export options (as fireworks
> sends a jumble of code when exporting html and slices)
and some help with best
> practices. I find it useful to create the site in
Fireworks and any help would
> be appreciated...
>
> Chris
> -
PAGE RADIO BUTTONS and APPLICATION ITEM VALUE
I have several pages that use same radio button group that permits filtering the report query (of course on each page, it is a page level radio button item).
I created an application item value to hold the last used value of a radio button item.
On login, I would like the application item value set to a default value.
For a given page using the recurring radio button group item,
I would like the radio button item value set to the application item value on entry into a page.
I would like the report to use the application item value on entry to a page.
I would like the application item value be updated anytime the page level radio button item value is changed, so that when you move to another page,
the next radio button group and report can use the last selected radio group button value.
I am trying to use a variety of solutions in COMPUTATION and CONDITIONAL COMPUTATION... to include use of set_session_state procedure, and I am not getting desired result, partial success, but not complete.
Can you have a computation item that is only for initialization of the report and radio button group on page entry?
And a separate computation item that senses user selection of another radio button, updating the report, and updating the application level item?
Help requested. Thank you.
Would be nice to have application level objects, like radio button groups.Created Page 0
Created an HTML region in COLUMN 2 and SEQUENCE 10.
Selected under region CONDITION:
Current Page is contained within Expression 1 as comma delimited list of pages
in the EXPRESSION 1 provided the requested comma delimited list of pages that I wished the HTML region to appear.
Created the radio button group item P0_RADIO and assigned to Page0 HTML region.
Selected under item CONDITION:
Current Page is contained within Expression 1 as comma delimited list of pages
in the EXPRESSION 1 provided the requested comma delimited list of pages that I wished theradio button group to appear.
In SHARED COMPONENTS I created an APPLICATION COMPUTATION
In the computation I created a PL/SQL function to initialize the radio group
BEGIN
IF :P0_RADIO IS NULL THEN
RETURN 'A_ALL';
ELSE
RETURN :P0_RADIO;
END IF;
END;
'A_ALL' being the default value for :P0_RADIO
Radio group appears on the desired pages, is initialized to the desired default value, and works properly on each page. -
How to handle radio-buttons in FB05 bdc????
How to change Additional selections radio-button from none to Document numbers in CALL TRANSACTION BACKGROUND MODE..............................................
Edited by: Raghavender Poosarla on Apr 8, 2008 10:32 AMI have BDC requirement of FB05 transaction... I am stuck at one point where this recordin is working in Foreground mode and not in Backgroung mode...The reason being there is a bit in which I am selecting a readio-button from value 'NONE' to 'Document numbers' WHICH IS HAPPENING IN FOREGROUND AND NOT IN BACKGROUND ....Can any one tell is there any special way for handling radio-buttons in recording of an transaction???
-
CRM Survey - How to remove Radio button defaults.
Hi experts,
I am trying to remove Radio button default. By default it is selected when I am trying to set attribute for answer options. Even if I unchecked, it reverts and set as selected again. Actually, I need remove Radio button default for the customer sees a response pre filled.
Please advise on how can I remove Radio button default for answer options.
BanuHi,
I see it now.
You need to change the config of your radio buttons in the transaction itself.
Goto CRM_SURVEY_SUITE, locate your survey, click on the change button ( a pencil) this will take you to the survey configuration.
There navigation to the section in the left hand pane that corresponds to the radio buttons. And you will see Yes and No for answers to the questions. Double click on each of them to display on the right side work area and change the property 'Selected' (which is a check box) to unchecked.
This should be easy.
Regards
Prasenjit -
I am not able to get <cfinsert> to work to insert into a remote DB2 database. I have been able to get cfquery INSERT's to insert into the DB2 database. I have not been able to get radio button data to INSERT into this database.
This is what I have tried:
surveyForm.cfm:
<html>
<head>
<title>Survey Form</title>
</head>
<body>
<h2>Enter a Survey Form</h2>
<cfform action="surveyAction.cfm" method="post">
Branch:
<cfinput type="text" name="BRANCH" size="4" maxlength="4"><br><br>
Contact Name:
<cfinput type="text" name="CONTACT_NAME" size="40" maxlength="40"><br><br>
Did you get what you needed today?  
<cfinput type="radio" name="NEED_FLAG" id="radio" value="Y">Yes
<cfinput type="radio" name="NEED_FLAG" id="radio" value="N">No
<cfinput type="radio" name="NEED_FLAG" id="radio" value="X">Did Not Answer<br><br>
<br><br>
<input type="Submit" value="Submit"> <input type="Reset"
value="Clear Form"></td>
</cfform>
</body>
</html>
surveyAction.cfm:
<html>
<head> <title>Insert Survey Form</title> </head>
<body>
<!--- This works until I add the radio button to the insert --->
<!--- Insert the new record --->
<cfquery datasource="AXMISC_SURVEY">
INSERT INTO SURVEY.CAF_SURVEY
(BRANCH, CONTACT_NAME, NEED_FLAG)
VALUES
( <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.BRANCH#">,
<cfqueryparam cfsqltype="cf_sql_char" value="#form.CONTACT_NAME#">
<cfqueryparam cfsqltype="cf_sql_char" value="#form.NEED_FLAG#">
</cfquery>
</body>
</html>
Thanks,
Jeannezer0Weaver wrote:
<!--- This works until I add the radio button to the insert --->
<!--- Insert the new record --->
<cfquery datasource="AXMISC_SURVEY">
INSERT INTO SURVEY.CAF_SURVEY
(BRANCH, CONTACT_NAME, NEED_FLAG)
VALUES
( <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.BRANCH#">,
<cfqueryparam cfsqltype="cf_sql_char" value="#form.CONTACT_NAME#">
<cfqueryparam cfsqltype="cf_sql_char" value="#form.NEED_FLAG#">
</cfquery>
</body>
</html>
Hi Jeanne,
Thanks for posting the relevant information, but you forgot to mention what _is_ happening now ;-) Does an error occur, and if so what is the error message, etcetera.. ? But my guess would be you are missing a comma in the VALUES (...) clause:
VALUES
<cfqueryparam cfsqltype="cf_sql_varchar" value="#form.BRANCH#"> ,
<cfqueryparam cfsqltype="cf_sql_char" value="#form.CONTACT_NAME#"> , <!--- should be a comma here --->
<cfqueryparam cfsqltype="cf_sql_char" value="#form.NEED_FLAG#"> -
How to check Radio buttons with Differfent button values
Good Day,
I am currently trying to write a script that would hide 5 of 6 radio buttons
I have a radio button called "3. Transfer"
with values of :
Yes;
Supp;
Reg; and
do_not_transfer
as well I have a drop down called "REL.ITEM"
with values of
3(A);
3(B);
4(A);
4(B); and
4(C)
I know how to get the value of the box and manipulate other fields
like
//START
var transfer = getField("3. Transfer").value
var relitem = getField("REL.ITEM").value
if (transfer = "Yes" || transfer = "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
getField("a. recommend").checkThisBox(0,true);
getField("a. recommend").display = display.visible
getField("a. I do not recommend").checkThisBox(0,false);
getField("a. I do not recommend").display = display.hidden
else if (transfer = "do_not_transfer")
getField("a. recommend").checkThisBox(0,false);
getField("a. recommend").display = display.hidden
getField("a. I do not recommend").checkThisBox(0,ftrue);
getField("a. I do not recommend").display = display.visible
//END
I would like to make it so that if REL.ITEM != 4(A); 4(B); 4(C) that the radio box's with values of "Yes", "Supp" and "Reg" are hidden while "do_not_transfer" is still displayed and checked.
I've been going through forums, google and acrobat documentation and I can't seem to find what I'm looking for.
Thanks for your help in advance.if (transfer = "Yes" || transfer = "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
This should be:
if ((transfer == "Yes" || transfer == "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
Similarly,
else if (transfer = "do_not_transfer")
should be:
else if (transfer == "do_not_transfer")
In order to work with an individual widgets of a form field, obtain an object that represents the widget using the getField method as specifically demonstrated in example #2 in the documentation: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.476.html
Maybe you are looking for
-
G/L account item without tax code in document with deferred taxes
Hi , While releasing the billing document to accounting i get this error " G/L account item without tax code in document with deferred taxes". Not able to release it to accounts. What could be the possible reason?? Actually, this error is occuring on
-
Excel 2003 to 2013 VBA migration bug
Hello! I need to convert mission critical workbooks with much VBA code from Excel 2003 to Excel 2013, of which some were originally created using Excel 97. When running any VBA macro I get 0x80028018 errors. A similar problem is described in KB320369
-
How do I get contacts list backed up in time machine?
I cant seem to get my contacts backed up into the time machine, how do i get this to happen automatically?
-
Hi Does anyone know what ports or addresses I need to block to stop iCloud backups? Since the release of IOS 5 we've notice a significant increase in our bandwidth usage and by the process of elimination I've tracked it back to everyone's iPhones as
-
Where are stats that are gathered using dbms_stats stored?
where are stats that are gathered using dbms_stats stored?