How i use list box in runtime or fill runtime asper user given data
hi master
my user want he writ any word such as a writ in text box then show the list box that have the name who's start with a character and select any one name and transfer name and code in other text box.
please give me sample or setp or code
i am new in oracle
Thanking you
Aamir
Aamir, appears that you are asking Forms questions in the wrong area, please note you are in the Collaboration Suite area, which does not use Forms.
Try posting your question to Forms
Similar Messages
-
How to use list box parameter in crystal Reports
Hi Experts,
How to acheive list box parameter in sap B1 crystal reports.
Regards
VinothHi,
check this thread
Crystal Report Drop Down Selection List
Drop down list parameter
https://scn.sap.com/thread/1782598 -
How can we use list box on selection screen
hi, howe can we use list box on selection screen and how can we populate the dat ainto the list box and how can we retrive data based on list box from ther database.
thanks in advance
rajuUse the VRM_SET_VALUES function module.
DATA: list TYPE vrm_values,
value LIKE LINE OF list.
AT SELECTION SCREEN OUTPUT
AT SELECTION-SCREEN OUTPUT.
name = 'P_OBJECT'.
CLEAR list.
REFRESH list.
CLEAR value.
value-key = '1'.
value-text = 'Development Class'.
APPEND value TO list.
CLEAR value.
value-key = '2'.
value-text = 'Program'.
APPEND value TO list.
CLEAR value.
value-key = '3'.
value-text = 'Function Module'.
APPEND value TO list.
CLEAR value.
value-key = '4'.
value-text = 'Database Table'.
APPEND value TO list.
CLEAR value.
value-key = '5'.
value-text = 'Structure'.
APPEND value TO list.
CLEAR value.
value-key = '6'.
value-text = 'View'.
APPEND value TO list.
CLEAR value.
value-key = '7'.
value-text = 'Data Element'.
APPEND value TO list.
CLEAR value.
value-key = '8'.
value-text = 'Table Type'.
APPEND value TO list.
CLEAR value.
value-key = '9'.
value-text = 'Class / Interface'.
APPEND value TO list.
CLEAR value.
value-key = '10'.
value-text = 'Type Group'.
APPEND value TO list.
CLEAR value.
value-key = '11'.
value-text = 'Domain'.
APPEND value TO list.
CLEAR value.
value-key = '12'.
value-text = 'Search Help'.
APPEND value TO list.
CLEAR value.
value-key = '13'.
value-text = 'Lock Object'.
APPEND value TO list.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = name
values = list
EXCEPTIONS
id_illegal_name = 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. -
How to populate list box in module pool program
How to populate list box in module pool program.
Please give me reply as soon as posible
regards,
Venu.hi,
go thrugh the folling code .
TABLES sdyn_conn.
DATA ok_code TYPE sy-ucomm.
Global data
TYPES: BEGIN OF type_carrid,
carrid type spfli-carrid,
carrname type scarr-carrname,
END OF type_carrid.
DATA itab_carrid TYPE STANDARD TABLE OF type_carrid.
*& Processing Blocks called by the Runtime Environment *
Event Block START-OF-SELECTION
START-OF-SELECTION.
CALL SCREEN 100.
Dialog Module PBO
MODULE status_0100 OUTPUT.
SET PF-STATUS 'SCREEN_100'.
ENDMODULE.
Dialog Modules PAI
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE user_command_0100 INPUT.
CASE ok_code.
WHEN 'SELECTED'.
MESSAGE i888(sabapdocu) WITH sdyn_conn-carrid.
ENDCASE.
ENDMODULE.
Dialog Module POV
MODULE create_dropdown_box INPUT.
SELECT carrid carrname
FROM scarr
INTO CORRESPONDING FIELDS OF TABLE itab_carrid.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'CARRID'
value_org = 'S'
TABLES
value_tab = itab_carrid
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
ENDIF.
ENDMODULE.
the following code should be included in flow logic of screen
process on value-request.
field scarr-carrname module create_dropdown_box.
in module pool select list box.
hope it is useful.
regards,
sreelakshmi. -
Handle text using list box in dialog program
hi,
I am working on dialog program , Created two fileds , one is list box type I/O field and another is i/O field which displays text based on value selected in list box.
Please provide any inf how to Handle text using list box value in dialog program.
thanksHi,
<li>Check the screen to know how to set I/O field to set as listbox.[ dropdown box picture|http://2.bp.blogspot.com/_O5f8iAlgdNQ/Sm7RBrqfjcI/AAAAAAAAFaU/RateViiVqrU/s1600-h/drop_down-754481.JPG]
<li>in the above screen we need to set FctCode for the dropdown box field so that when you select value from the dropdown box PAI event is triggered.
<li>screen flow logic like below
PROCESS BEFORE OUTPUT.
MODULE values_into_dropdown.
FIELD g_bukrs.
FIELD g_text.
PROCESS AFTER INPUT.
FIELD g_bukrs.
FIELD g_text MODULE get_bukrs_txt.
<li>Logic to fill Dropdown field with values.
PROGRAM sapmztest_dropdown.
DATA: g_bukrs TYPE t001-bukrs.
*& Module VALUES_INTO_DROPDOWN OUTPUT
MODULE values_into_dropdown OUTPUT.
TYPE-POOLS:vrm.
DATA:
field TYPE vrm_id,
it_values TYPE vrm_values,
wa_values LIKE LINE OF it_values.
DATA: t001 TYPE t001 OCCURS 0 WITH HEADER LINE.
IF it_values[] Is INITIAL.
SELECT * FROM t001 INTO TABLE t001 UP TO 10 ROWS.
LOOP AT t001.
wa_values-key = t001-bukrs.
wa_values-text = t001-butxt.
APPEND wa_values TO it_values.
CLEAR wa_values.
ENDLOOP.
ENDIF.
field = 'G_BUKRS'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = FIELD
values = it_values.
ENDMODULE. " VALUES_INTO_DROPDOWN OUTPUT
*& Module get_bukrs_txt INPUT
MODULE get_bukrs_txt INPUT.
read table it_t100 into wa_t100 with key bukrs = g_bukrs.
g_text = t001-butxt.
ENDMODULE. " VALUES_INTO_DROPDOWN INPUT
I hope that it helps you.
Thanks
Venkat.O -
How to use check box in flash 8?
How to use check box in flash 8?
If you want it to happen when someone clicks the checkbox, then you need to add a listener for that event.
var cbListener:Object = new Object();
cbListener.click = function (evt:Object) {
if (cb.selected) {
gotoAndStop(2);
cb.addEventListener("click", cbListener);
(Note: "cb" and "cbListener" are names that were made up for this example. They could be anything you want to name them) -
How to use List within javaFX(*.fx) script?
How to use java.util.List within javaFX(*.fx) script?
The following is my code in Java
PDBFileReader pdbreader = new PDBFileReader();
pdbreader.setPath("/Path/To/PDBFiles/");
pdbreader.setParseSecStruc(true);// parse the secondary structure information from PDB file
pdbreader.setAlignSeqRes(true); // align SEQRES and ATOM records
pdbreader.setAutoFetch(true); // fetch PDB files from web if they can't be found locally
try{
Structure struc = pdbreader.getStructureById(code);
System.out.println("The SEQRES and ATOM information is available via the chains:");
int modelnr = 0 ; // also is 0 if structure is an XRAY structure.
List<Chain> chains = struc.getChains(modelnr);
for (Chain cha:chains){
List<Group> agr = cha.getAtomGroups("amino");
List<Group> hgr = cha.getAtomGroups("hetatm");
List<Group> ngr = cha.getAtomGroups("nucleotide");
System.out.print("chain: >"+cha.getName()+"<");
System.out.print(" length SEQRES: " +cha.getLengthSeqRes());
System.out.print(" length ATOM: " +cha.getAtomLength());
System.out.print(" aminos: " +agr.size());
System.out.print(" hetatms: "+hgr.size());
System.out.println(" nucleotides: "+ngr.size());
} catch (Exception e) {
e.printStackTrace();
}The following is my code in JavaFX(getting errors)
var loadbtn:SwingButton = SwingButton{
text:"Load"
action: function():Void{
var pdbreader = new PDBFileReader();
var structure = null;
try{
structure = pdbreader.getStructure(filepath.text);
List<Chain> chains = structure.getChains(0);
foreach (Chain cha in chains){
List < Group > agr = cha.getAtomGroups("amino");
List < Group > hgr = cha.getAtomGroups("hetatm");
List < Group > ngr = cha.getAtomGroups("nucleotide");
} catch (e:IOException) {
e.printStackTrace();
};I'm using Netbeans 6.5 with JavaFX
(PDBFileReader, Chain, Structure etc are classes from my own package, already added to the library folder under the project directory)
Simply put, How to use List and Foreach in JavaFX?We can not use Java Generics syntax in JavaFX. But we can use Java Collection classes using the keyword 'as' for type-casting.
e.g.
import java.util.LinkedList;
import java.util.List;
import javafx.scene.shape.Rectangle;
var outerlist : List = new LinkedList();
var innerlist : List = new LinkedList();
innerlist.add(Rectangle{
width: 10 height:10});
innerlist.add(Rectangle{
width: 20 height:20});
outerlist.add(innerlist);
for (inner in outerlist) {
var list : List = inner as List;
for (element in list) {
var rect : Rectangle = element as Rectangle;
println("(width, height)=({rect.width}, {rect.height})");
} -
How to apply List box for multiple selection of rows in ALV report ?
Hi Exprots,
1: How to apply List box for multiple selection of rows in ALV report ?
Thanking you.
Subashhi,
check the below program.
REPORT zalv_dropdowns.
*Type pools declarations for ALV
TYPE-POOLS : slis.
*data declarations for ALV container,ALV grid, Fieldcatalogues & layout
DATA: g_grid TYPE REF TO cl_gui_alv_grid,
g_custom_container TYPE REF TO cl_gui_custom_container,
gt_fieldcat TYPE lvc_t_fcat,
gs_layout TYPE lvc_s_layo.*INTERNAL TABLE AND WA DECLARATIONS FOR t517 A table
DATA: gt_outtab TYPE STANDARD TABLE OF t517a INITIAL SIZE 0,
wa_outtab TYPE t517a.
START-OF-SELECTION.*Call to ALV
CALL SCREEN 600.*On this statement double click it takes you to the screen painter SE51.
*Create a Custom container and name it CCONT and OK code as OK_CODE.
*Save check and Activate the screen painter.
*Now a normal screen with number 600 is created which holds the ALV grid.
PBO of the actual screen , Here we can give a title and customized menus
Here we also call the subroutine for ALV output.
MODULE PBO OUTPUT *
MODULE pbo OUTPUT.
PERFORM alv_output.
ENDMODULE. "pbo OUTPUT
MODULE PAI INPUT *
MODULE pai INPUT.
ENDMODULE. "pai INPUT
*& Form BUILD_FIELDCAT
FORM build_fieldcat.
DATA ls_fcat TYPE lvc_s_fcat.
*Build the field catalogue
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'T517A'
CHANGING
ct_fieldcat = gt_fieldcat.
To assign dropdown in the fieldcataogue
LOOP AT gt_fieldcat INTO ls_fcat.
CASE ls_fcat-fieldname.
WHEN 'SLART'.
*is the first list box
ls_fcat-drdn_hndl = '1'.
ls_fcat-outputlen = 15.
MODIFY gt_fieldcat FROM ls_fcat.
is the second list box
WHEN 'ABART'.
ls_fcat-drdn_hndl = '2'.
ls_fcat-outputlen = 15.
MODIFY gt_fieldcat FROM ls_fcat.
ENDCASE.
ENDLOOP.
ENDFORM. "build_fieldcat
*& Form ALV_OUTPUT
FORM alv_output .*Create object for container
CREATE OBJECT g_custom_container
EXPORTING container_name = 'CCONT'.
*create object for grid
CREATE OBJECT g_grid
EXPORTING i_parent = g_custom_container.
Build fieldcat and set column
*Assign a handle for the dropdown listbox.
PERFORM build_fieldcat.
*Build layout
PERFORM build_layout.
Define a drop down table.
PERFORM dropdown_table.
*fetch values from the T517A table
SELECT * FROM t517a INTO TABLE gt_outtab.
*Display ALV output
CALL METHOD g_grid->set_table_for_first_display
EXPORTING
is_layout = gs_layout
CHANGING
it_fieldcatalog = gt_fieldcat
it_outtab = gt_outtab.ENDFORM. "ALV_OUTPUT
*& Form dropdown_table
text
--> p1 text
<-- p2 text
FORM dropdown_table.*Declarations for drop down lists in ALV.
DATA: lt_dropdown TYPE lvc_t_drop,
ls_dropdown TYPE lvc_s_drop.
First SLART listbox (handle '1').
ls_dropdown-handle = '1'.
ls_dropdown-value = '01 Primary school'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '1'.
ls_dropdown-value = '02 Lower Secondary'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '1'.
ls_dropdown-value = '03 Upper Secondary'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '1'.
ls_dropdown-value = '04 Professional School'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '1'.
ls_dropdown-value = '05 College'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '1'.
ls_dropdown-value = '06 University'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '1'.
ls_dropdown-value = '09 Other Establishment'.
APPEND ls_dropdown TO lt_dropdown.* Second ABART listbox (handle '2'). ls_dropdown-handle = '2'.
ls_dropdown-value = '10 Primary School certificate'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '2'.
ls_dropdown-value = '20 Lower secondary/Junior high'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '30 High school diploma(B-levels)'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '2'.
ls_dropdown-value = '31 Vocational'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '32 Matriculation'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '40 Specialist vocational certificate'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '50 College degree Level1'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '51 College degree Level2'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '52 Masters degree'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '60 Univ Degree level1'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '61 Bachelors degree'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '62 Masters degree'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '63 Licenciate'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '64 Doctors Degree Ph.D'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '89 None'.
APPEND ls_dropdown TO lt_dropdown. ls_dropdown-handle = '2'.
ls_dropdown-value = '90 Unknown'.
APPEND ls_dropdown TO lt_dropdown.*method to display the dropdown in ALV
CALL METHOD g_grid->set_drop_down_table
EXPORTING
it_drop_down = lt_dropdown.ENDFORM. " dropdown_table
*& Form build_layout
text
*layout for ALV output
FORM build_layout . gs_layout-cwidth_opt = 'X'.
gs_layout-grid_title = 'ALV DROPDOWN LISTS'.
gs_layout-no_toolbar = 'X'.ENDFORM. " build_layout
endform.
Edited by: S.r.v.r.Kumar on Jun 1, 2009 2:48 PM -
HOw to add list box using enhacement of standard infotype
Hi,
Using enahancement infotype, I wanted to add a list box field in inftyp 01.
The module pool ZP000100 & screen no 200 already existed .In the layout editor the field didnot get displayed hence I took it from dictionary.
I have adde the code in pbo & pai for adding values in list box.
problem is that data is not getting saved when i enter data in pa30 inftyp 01.
Kindly guide me.
Regards,
Rachel*
-
How to use check box & dropdownlist in smart forms
can anybdy explain(any examples) how i can use check box or drop down list in smart forms.is ther any provision like that
Hi Ranjith,
To use Check box in smartform do the following:
Change the editor to 'PC Editor' and take the menu.
in text editor of TEXT ELEMENTS..
Insert -> Characters -> SAP Symbols
in print preview u can't see these changes..
for more details check this link..
How to create checkbox in smartforms??
Ashven -
How to use input box LOV in query panel (search region)
Hi,
We are having JDeveloper version 11.1.2.4.0
In one of the JSF page, we are showing some data (absences).
Requirement is to add search region at the top so that user can filter the data, based on search parameters like Business Group, Job etc.
The search parameters are inter-dependent e.g. Job is dependent on Business Group. So when user selects some particular Business Group, Job search field should show jobs for that Business Group only.
This works fine we use Choice List for both Business Group and Job.
However since there are huge number of jobs, Job choice list makes page rendering very slow.
So we tried to use Input box with LOV for Job.
But now when job is selected in the LOV popup and returned to main page, job search field shows job id instead of job name.
Please note that our base VO (AbsencesVO) contains JobId attribute. We have added List of Values on JobId, which fetches Job Name through JobVO1 view accessor.
How to make Job LOV field show selected Job Name instead of ID? Kindly advise.
Thanks,
VivekThanks Timo/Bangaram, for prompt replies
Timo, the link mentioned by you talks about showing IDs (DepartmentId, ManagerId etc.) in the search region. I need to show names in the form of Input box LOV.
Bangaram, as per your suggestion I tried using transient JobName attribute. However now when I select any value in the Job LOV popup and return to main page, it shows first Job Name in the Job Name search field.
Also when I click 'Search' button in Search panel, it shows error - Attempt to set a parameter name that does not occur in the SQL: BindJobName
Please note that I have added both JobName and JobId in the List configuration as you suggested.
In View criteria, I have removed previous item (condition) on JobId and added condition on JobName.(This is required because JobId condition shows JobId search field)
I also tried making JobName dependent on JobId..still same behaviour.
Kindly advise.
Thanks,
Vivek -
Hi gurus
I have set list box value through vrm_set_value and in the screen level it's working fine
In the custom program I need to fetch data from table using that selected list box value , but its always coming blank .
please help me how to catch that list box value in the program .
ThanksThis is the code
*************SELECTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS : P_bukrs TYPE bukrs OBLIGATORY , " Company Code
p_psc TYPE psc_name OBLIGATORY ,
p_monat TYPE MONAT AS LISTBOX VISIBLE LENGTH 5 OBLIGATORY , " Quarter
p_gjahr TYPE gjahr DEFAULT sy-datum+0(4) OBLIGATORY . " Year
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS : P_KIND AS CHECKBOX USER-COMMAND abc , " Check Box
P_prcent(6) TYPE P DECIMALS c_val_three , " Take in kind percentage
p_prod TYPE PSA_PRODUCT AS LISTBOX VISIBLE LENGTH 10 . " Take in kind product
SELECTION-SCREEN END OF BLOCK b2.
A T S E L E C T I O N S C R E E N *
AT SELECTION-SCREEN on BLOCK b1 .
Validate Company Codes.
PERFORM sub_validate_com_code.
Validate PSC
AT SELECTION-SCREEN on VALUE-REQUEST FOR p_psc .
PERFORM sub_validate_psc.
Validate Quarter
PERFORM sub_validate_quarter .
AT SELECTION-SCREEN on BLOCK b2 .
Validate Take in kind percentage
PERFORM sub_validate_percnt .
Validate Take in kind Percentage
PERFORM sub_prod_disp .
form sub_prod_disp .
populated internal table lt_prod_val .
LOOP AT SCREEN.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'p_prod'
values = lt_prod_val
EXCEPTIONS
id_illegal_name = 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.
ENDLOOP.
in start of selection the p_prod is always coming initial . -
How to use text boxes or rich text boxes inside loops in array format
Help me,
I try to use text boxes load automatically showing the character in the text box.One text box showing one character (ex: " A"). I use 5 text boxes.I try to code using for loop but i don't know how to use array format.
Please explain any solution.
I am using Microsoft Visual Basic 2008 Express EditionHi
And yet again, this version uses a list of textbox names (IN REQUIRED ORDER) to fill.
' this is an overly simplified example
' in the form of a Project
' start a new Project with a default
' Form1 with many TextBoxes.A list of
' required textboxes to fill IN THE
' REQUIRED ORDER is used.
' Copy/paste this code to replace
' all Form1 code with this.
' NOTE: there is plenty of oppertunity
' for exceptions as no exception handling is
' included here.
Option Strict On
Option Explicit On
Option Infer Off
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
Dim tbNames As New List(Of String)
' add names IN THE ORDER required
tbNames.AddRange({"TextBox2", "TextBox5", "TextBox1", "TextBox3", "TextBox4"})
Dim s As String = "boxes"
Dim counter As Integer = 0
For Each name As String In tbNames
For Each c As Control In Me.Controls
If c.GetType() Is GetType(TextBox) Then
If c.Name = name Then
c.Text = s(counter)
counter += 1
End If
End If
Next
Next
End Sub
End Class
Regards Les, Livingston, Scotland -
How to use List String in JSP page?
Hello All,
I am having problem using List<String> in my JSP page. Below is my JSP code.
<%@ page import="java.util.*, java.io.*"%>
<html>
<body>
<h1 align="center">Beer Recommendations JSP</h1>
<p>
<%
List<String> beerBrands = (List<String>)request.getAttribute("styles");
Iterator<String> it = beerBrands.iterator();
while(it.hasNext()){
out.print("<br>try: " + it.next());
%>
</body>
</html>
When I compile the above JSP code in Eclipse 3.4 (using JBoss 4.2 as my Application Server), I get the following Warning.
Type safety: Unchecked cast from Enumeration to Enumeration<String>
If I add the "@SuppressWarnings("unchecked")" to the code, Eclipse does not give any Error during compilation. But, at runtime, I get the following Error.
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 10 in the jsp file: /BeerAdvice.jsp
Syntax error, annotations are only available if source level is 5.0
7: <p>
8:
9: <%
10: @SuppressWarnings("unchecked")
11: List<String> beerBrands = (List<String>)request.getAttribute("styles");
12: Iterator<String> it = beerBrands.iterator();
13: while(it.hasNext()){
An error occurred at line: 11 in the jsp file: /BeerAdvice.jsp
The type List is not generic; it cannot be parameterized with arguments <String>
8:
9: <%
10: @SuppressWarnings("unchecked")
11: List<String> beerBrands = (List<String>)request.getAttribute("styles");
12: Iterator<String> it = beerBrands.iterator();
13: while(it.hasNext()){
14: out.print("<br>try: " + it.next());
An error occurred at line: 11 in the jsp file: /BeerAdvice.jsp
Syntax error, parameterized types are only available if source level is 5.0
8:
9: <%
10: @SuppressWarnings("unchecked")
11: List<String> beerBrands = (List<String>)request.getAttribute("styles");
12: Iterator<String> it = beerBrands.iterator();
13: while(it.hasNext()){
14: out.print("<br>try: " + it.next());
Any help is very much appreciated.
Thank you for your help.
Thanks,
ChubhaHi anotherAikman,
Thank you for your help. I currently have the following version of the Java.
{color:#800000}java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
{color:#000000}{color:#000000}Does it mean I have Java SE Version 6 Update 17 and you are suggesting me to download the Java EE Version 6?{color} If this is correct, can you please let me know what difference does it make?
I am now going to install the Java EE 6 and try this out.
Thank you for your help.{color}
{color:#000000}Thanks,
Chubha{color}
{color} -
How do I use my Vision Box on another tv to view recordings without being connected to BT?
When I power up it tries to search for a connection and goes no further.bds1958 wrote:
How do I use my Vision Box on another tv to view recordings without being connected to BT?
When I power up it tries to search for a connection and goes no further.
Hi,
Your Vision box needs to be connected to your BT BB to boot-up. If it's not connected, it wont.
If you boot your box up whilst it is connected, then disconnect it from your BB, you WILL be able to view your recordings and use the box to watch Freeview. But you won't have an EPG. And you won't be able to record any further programmes on the box. It would basically be a makeshift doorstop.
Hope that helps.
Rank - Mostly Harmless.
Maybe you are looking for
-
Final cut pro 6 not able to find movie during launch
hi, everytime i launch final cut pro 6 it comes up with a message telling me a 'movie file cannot be found' and that 'without this file the movie cannot play properly' the file is there, it has not been renamed this happens no matter what project i t
-
Setting up mobile accounts to delete after logout issues
Running a network with about 2,000 users. Due to the amount of time to login the sever at each workstation we set up about half of them to sync and to be mobile account within workgroup manager. We have the settings as followed for the sync.... creat
-
Mac App Store not showing Updates or Purchases
After upgrading my Mac OS to Yosemite, my App Store isn't showing anything under the "Updates" tab (It did some automatic updates in the background, so the number of pending updates dropped from 13 to 2). Although I have already signed in to Mac App
-
Fan - Mine not working (do I need to switch it on)
the perfromance on my MacBook Pro is VERY slow - and I now realize it could be because the Fan is not working - Does it need ot be activated or something? This is so frustrating, We have 8 macs in our studio, 6 of which have had to be replaced due to
-
My iPod is ejecting itself almost as soon as i connect it.
When connected, my third generation Nano briefly connects, but then ejects itself when plugged into my computer. The following text box appears: "An iPod has been detected, but could not be identified properly. Please disconnect and reconnect the iPo