NEED CODE FOR RADIOBUTTON SELECTION
Hi,
I have a requirement that I need to display 5 Radiobuttons on output, when I select 1st Radiobutton it should show the message that "Button 1 is selected". like that if I select remaining Buttons they should display individually like 2,3,4,5 are selected.
I Need the coding and the steps from scratch to end.
Good answers are given excellent points.
Hi Manikandan,
First create a simple type in Dictionary. In the webDynpro structure go to [Dictionary -> Local Dictionary -> data Types -> Simple Types].
Create a simple type, with <b>Enumeration</b> from <i>Enumeration tab</i> values like 1,2,3,4,5 as per your requirement.
Now in create a attribute in context node (<i>Say: Selection</i>)and assign the type from the <b>Simple Type</b>. Select the package which you may have entered while creating the simple type and then finally bind this simple type with this attribute.
Now create a UI element [<b>RadioBUttonGroupByKey</b>], in the <b>SelectedKey</b> property of this UI element bind the attribute which you have now created.
Create a Action for this dropdown UI element. In this action you can write this code:
String selection = wdThis.wdGetContext().currentContextElement().getSelection();
if(selection.equalsIgnoreCase("1")){
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("Button 1 is selected");
else if(selection.equalsIgnoreCase("2")){
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("Button 2 is selected");
else if(selection.equalsIgnoreCase("5")){
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("Button 5 is selected");
I hope this will help you. For any further queries kindly revert back.
Regards
Pravesh
Similar Messages
-
Can i have html code for date select options (SEARCH HELP)
Hi frinds,
I have a BSP Page with input as date.
Can i have html code for date select options (SEARCH HELP)
MoosaHi
Please find the sample code below.
FROM DATE
<htmlb:inputField id = "dd"
width = "45%"
type = "DATE"
showHelp = "X" <- Search help
alignment = "CENTER"
maxlength = "10"
disabled = "TRUE"
value = "<%= w_FROMDATE %>" />
TO DATE
<htmlb:inputField id = "dd"
width = "45%"
type = "DATE"
showHelp = "X"
alignment = "CENTER"
maxlength = "10"
disabled = "TRUE"
value = "<%= w_TODATE %>" />
Thanks
kalyan -
Need code for sales order create report using bapi's
need code for sales order create report using bapi's
Hi,
Go through below link
http://www.saptechies.com/bapi_salesorder_createfromdat2/
<b>Reward points if it helps,</b>
Satish -
Need code for restarting my system
hello every body i need code for restarting system
this code does not work
try {
Runtime.getRuntime().exec("shutdown -s -t01") // stop
}catch(...
or
try {
Runtime.getRuntime().exec("shutdown -r -t01") // reboot
}catch(...
or
try {
Runtime.getRuntime().exec("shutdown -l -t01") // logout
}catch(...write a jni function that calls this method : ExitWindowsEx()
check the documentation -
Need code for Sales order creation in oops using xi as integration server
Need code for Sales order creation in oops using xi as integration server.
hi rocky,
could you pls give a bit explanation on what you are expecting.
regards,
Pavan -
I need code for gpib to ITC 502.
Need to set temperature and threshold,
thankxThe instruction manual for this instrument is available from Oxford
Instruments at no charge- they sent me a copy by email as a PDF file. I
don't have it to hand at the moment so can't dig out the relevant info but
it would be worth having the full manual, I think. There's a bit more to a
decent driver than simply setting the temperature, and I'm not sure what you
mean by "threshold".
"mdeleon" wrote in message
news:[email protected]..
> I need code for gpib to ITC 502.
> Need to set temperature and threshold,
> thankx -
Need code for padding (spacing) 5 navigation links in my #topnavbar internal style
need code for padding (spacing) 5 navigation links in my #topnavbar internal style
I'm new at this and the below code is regarding the navigation bar and links
I started using a template to create the first html page and made copies of it to create the other four.
All the links work but I wanted to space them apart further.
They look basically like this horizontally: Home About Us Photo Gallery Services Contact Us
#topnavbar {
text-align:center;
#topnavbar a:link a:visited{
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 100%;
font-weight: bold;
color: #039;
text-decoration: none;
margin: 0 25px:
#topnavbar a:hover a:active {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 100%;
font-weight: bold;
color: #039;
text-decoration: none;
<div id="topnavbar">
<nav>
<p><a href="index.html">Home</a>
<a href="aboutus.html">About Us</a>
<a href="photogallery.html">Photo Gallery</a>
<a href="services.html">Services</a>
<a href="contactus.html">Contact Us</a></p>
</nav>
</div> -
Urgently Need Code for Copy & Paste from Html Table in JSP to Excel file
I am creating a html table in JSP file .
I need code for 'Cut,Copy,Paste' functions ie. if someone wants to copy data from my table to excel file or from excel file to html table he shud be able to do that.
Can someone give me code for 'Cut,Copy and Paste' i.e. some javascript functions which can do cut, copy and paste which i can put in my jsp file
Thanks
Message was edited by:
javatechguru2007package com.chinmayananda
public class Tetris{
// complete here
code]
public abstract class AbstractTetris {
public abstract void start();
public abstract void stop();
}nearly done -
I'm new to jsf VWP..i need code for searching
Hi,
i need code for search...
just populate records from database using jsf VWP5.5.1
how to bind in table.
we enter name r value in textbox click button related records display to table.how write code in button.
pls help me....Don't crosspost. Please proceed here: http://forum.java.sun.com/thread.jspa?threadID=5211369
-
HI All,
i have table with data like this
select '[email protected]' mgr, null mgr1,null mgr2,null mgr3,'[email protected]:[email protected]:[email protected]'mgrfull from dual;
1)mgrfull column have with : sepreated email ,here last email split and update to mgr1 column and like this mgr2, mgr3.. Finaly need updated date
required like this see below
----------------------FINAL OUTPUT REQUIRED----------
select '[email protected]' mgr, '[email protected]' mgr1,'[email protected]' mgr2,'[email protected]' mgr3,'[email protected]:[email protected]:[email protected]' mgrfull from dual;
Please give me the code for this...set linesize 200;
with tab as
select '[email protected]' mgr, null mgr1,null mgr2,null mgr3,'[email protected]:[email protected]:[email protected]'mgrfull from dual
select mgr,
regexp_substr(mgrfull,'[^:]+', 1, 3) mgr1,
regexp_substr(mgrfull,'[^:]+', 1, 2) mgr2,
regexp_substr(mgrfull,'[^:]+', 1, 1) mgr3,
mgrfull
from tab;
MGR MGR1 MGR2 MGR3 MGRFULL
[email protected] [email protected] [email protected] [email protected] [email protected]:[email protected]:[email protected]
1 row selected.
update table_name
set mgr1 = regexp_substr(mgrfull,'[^:]+', 1, 3),
mgr2 = regexp_substr(mgrfull,'[^:]+', 1, 2),
mgr3 = regexp_substr(mgrfull,'[^:]+', 1, 1); -
Need code for FM REUSE_ALV_POPUP_TO_DISPLAY
If anyone can find the source code for FM REUSE_ALV_POPUP_TO_DISPLAY
pls post it....also the code for the pgm which calls that ...
Thanks for help.Hi Sona,
I tried in two ways:- 1)by pasing "i_structure_name" parameter 2)without passing this parameter also.
Following example is by passing "i_structure_name".
Just have look on the following example.
ALV POPUP report,need to pass the "I_STRUCTURE_NAME" parameter
Declaration of Data Base table
TABLES: VBAK.
Declaration of Internal table
DATA: ITAB TYPE VBAK OCCURS 0.
POPULATING DATA INTO THE INTERNAL TABLE
SELECT * FROM VBAK INTO TABLE ITAB.
Calling the function module and passing the internal table to it
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
I_TABNAME = 'ITAB'
I_STRUCTURE_NAME = 'VBAK'
TABLES
T_OUTTAB = ITAB
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.
reward points,if it is helpful.
Thanks,
chandu. -
Need Code For...
Hello i am new to java...I need help code for something i am doing.
Lets say. i have a start date(ex:1/01/03) and end date(ex:1/30/03),I
need to go to the server and get all the information(logs or .txt) between those two date, and save it temp so I can view it. Please help,Thanks alot!SQL supports the <= >= functionality so that you could look for something like this:
String SQLString = " SELECT * FROM MyTABLE WHERE dbStartDate > '" + strStartDate + "' AND dbEndDate < '" + strEndDate + "'";
You probably would want to modify to use a prepared statement to handle the date conversion. Check out the SimpleDateFormat for parsing a String date to a Date class, remembering there are two "Date" classes types: Util and SQL
If you search the forum on :
SimpleDateFormat
Converting dates
Prepared Statements
Hope this gets you started, and don't forget aobut the API, a great resource.... -
Need code for calculation of amount field(DMBTR)of BSEG table conditionally
Hi all,
I am selecting data for fields belnr(A/c doc.), dmbtr(Amount), hkont(G/L acc) from bseg cluster table giving the particular value for hkont in the selection screen.now there are some records fetched out of which there are few records in which same A/c no.(belnr) .So my requirement is to collect those same belnr records and do following calculation:
1. suppose for some record of same belnr , if all the value for field SHKZG is 'H' then summing up the values of field DMBTR.
2. suppose for some record of same belnr , if few value for the field SHKZG is 'H' and few are 'S' then the (summation the values of field DMBTR for all 'H' in field SHKZG -summation the values of field DMBTR for all 'S') and both the case the single record will fetched with belnr, sum(DMBTR) according to the condition, and hkont. Please provide me the reqd. code for the above problem.Thanks in advance.
regards
Anand.Hi Anand,
We can do like this.
This will take into account 'S', 'H' (debit/credit indicator) and BELNR wise sum.
1. Create new internal table, STAB with only two fields. (with header line)
BELNR "<------- refer below statement
HKONT "<------ Whatever unique combination of field(s) you want, you can put here 1,2,
DMBTR "<----
Numeric field
If you want only HKONT wise SUM, then remove BELNR
2. Now write this code.
Loop at Itab.
Clear STAB.
IF ITAB-SHKZG = 'H'.
STAB-DMBTR = ITAB-DMBTR.
else.
STAB-DMBTR = - ITAB-DMBTR. "<----- Negative Sign
endif.
STAB-BELNR = ITAB-BELNR.
STAB-HKONT = ITAB-HKONT.
COLLECT STAB. "<------ Important.
Endloop
Note:
Based upon the alphanumeric fields combination (BELNR and HKONT), the sum will be done.
Similar to group by in a select query
regards,
amit m.
Edited by: Amit Mittal on Jan 22, 2010 2:14 PM -
Need code for Dynamic check box creation in struts
dynamic checkbox should be created with details of data stored in database(with check mark for already selected check box).
once user make any change to that page and click submit the result ahould be saved in database..
can anybody explain me how to proceed this.
If any sample source code you have plz do sent me..consider these are the details in database
1. apple checked
2. orange
3. mango
4. grapes checked
consider a jsp page which should display list of fruits in the datsbase,
the jsp page should retrieve these data and diaplay with check box.
These should be generated dynamically.
Assume the jsp page has option for user to enter some other fruit name which should be updated into database of fruits and that should be displayed with the jsp page during next visit.(i.e) number of fruits in the database is not constant. -
Hi All,
My requirement is to create a selection screen with
1. browse field - selection for the files to be uploaded
2. Checkbox - Test run the transaction without parking the entries
3. Two push button Execute and Cancel
Execute - to lunch the program
Cancel - cancel the program and return to menu
Please provive the code and procedure to create screen. i am new for dialog program.
Thanks,
MadhuRather than waiting for someone here to write the code for you, you'd be better off looking at the examples in SAP as already mentioned and reading the SAP help at[http://help.sap.com/saphelp_47x200/helpdata/en/9f/dba66935c111d1829f0000e829fbfe/frameset.htm]
Maybe you are looking for
-
The problem is I like to track my play counts and like it to be correct, and it was having some errors so I reset my plays on all my songs however when I sync my iPod it will remember the amount of plays for example, if I play a song once on my
-
I updated my iphone 3gs to ios 6 and i cannot send mms now
I am having the same issue, can't send group messages or picture messages, the progress bar goes half way and then fail. I can send picture message to iphone users only but no one else. I searched the net and didn't see anyone talking about how to fi
-
Apple TV Connection help!
I just purchased an Apply TV and it will not work, it keeps asking for a profile that needs to be made? Then i changed my apple id email since that address will soon be deleted and it will not recognize on my apple tv!
-
请教Micriosoft, Google, Eclipse等大公司是如何通过构架和规范解决软件工程中Java API兼容性问题的
最近忙于写一篇关于<<Architecture patterns and rules for compatible development of Java components>>的文章.目的是考察业界针对J软件工程中Java API兼容性的研发解决过程,提出适合本公司的构架和规范. 因为这个题目的范围实在是广泛.在这里想集思广益,了解Microsoft, Google, Eclipse等软件开发商是如何利用architecture and Rules解决例如, Backward Compati
-
Closed DB backup, archivec generated
hi i had to take a tablespace for backup & issued command ALTER TABLESPACE <tablespacename> BEGIN BACKUP; during the backup lot of redo entries generated becaz header of datafile is freezed when BEGIN BACKUP- online redo log files are overwritten & t