List Box Limitations?
I'm using Acrobat Pro 8 on a Mac Leopard OS
Is there a limit as to how many entries a list box can hold?
I'll probably end up with about 150 entries as part of a medical history form and the list box would repeat with each recordset.
Ideally, once I learn more, I'd like the recordset to repeat with unique fields as the user requires.
They used to say the limit was quite low, someting less than 100, but it wasn't enforced by the user interface like you're describing, at least on Windows. I seem to recall it involved a performance issue with older Macs.
Anyway, as a test, try setting up a button and place the following code in the Mouse Up event:
var f1 = getField("list1");
var array1 = [];
for (var i = 0; i < 1000; i++) {
array1[i] = "This is item " + i;
f1.clearItems();
f1.setItems(array1);
Where "list1" is the name of a list box on your form. For me with Acrobat 9 in WinXP, this loads all 1000 items. The UI acts a bit weird when I try to edit any of the items, however.
So, a solution may be to use JavaScript to load the values. You can also use an FDF file for this, which is what I often do.
George
Similar Messages
-
How do you add a multiple entries at once to a drop-down list box?
I'm making a form for students to fill out and I want them to be able to pick from about 200 different courses. In the Field/List Items place, it would appear that you can only enter one item one at a time. I did this for 56 faculty,which took too much time, but for over 200 course titles, it would be much more convenient just to copy/paste them from an Excel spreadsheet, which is what I've tried doing. Any help or tips would be appreciated. I've attached a PDF of what I'm working on. The drop-down box is the one next to "Course." Thanks.
Hi,
The next version of LiveCycle Designer ES2 will allow user to copy and paste a long list of items into a dropdown or list box at design time. But until then your choices are limited.
Paste them one at a time;
You could set up a global variable in the (File/Form Properties) with the 200 items in the one variable. Then it would depend if your users have Acrobat/Reader v9 or earlier versions of Acrobat/Reader. John Brinkman has (several) blogs on this topic: http://blogs.adobe.com/formfeed/2009/01/populating_list_boxes.html
If you are going with v9 then you can use the setItem script. However if you want your form to be compatible with earlier versions then you will need the addItem script.
Also check out a sample by Steve Walker. http://forums.adobe.com/message/1939873#1939873 and http://forums.adobe.com/message/2038932#2038932 The first one dealt with adding user entered data onto a dropdown, which is not exactly what you are after, but it will give you direction in populating a dropdown from an array.
You would place the script in the docReady event of the dropdown, which would populate the dropdown every time the form is opened.
Good luck,
Niall -
How to increase the width of the drop down list box in SSRS multi value parameter
Hi,
I am using SSRS 2012. I have a parameter, which accepts multi value.
The width of the drop down list box is very small, and the user need to scroll to the right to view the complete view of the content in the list box. But, if I don't use multi value then the length is good. Kindly suggest how to I increase the width
of the list box when it set to multi value parameter.
Thanks in advance,
Mahalengam ArumugamHi Mahalengam,
After testing the issue in my local environment, I can reproduce it. When the values for a single parameter are too long, the drop-down list of the parameter will automatically enlarge to an appropriate size. While the values for a multiple parameter are
too long, we need to scroll to the right to view the complete view of the content in the list box in SSRS 2008. But in SSRS 2008R2 and SSRS 2012, we can directly drag the black control at the bottom of the list box to control the size.
The following screenshot is for your reference:
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support
Hi Katherine,
Thanks for your reply. I understood we need to drag the list box to a maximum size to view the contents.
But, this seems an additional task, i know this is a limitation in the current version of SSRS and hope it will be resolved in the next versions.
Thanks for your efforts,
Mahalengam Arumugam -
Warning using DWR to populate list box
hi all,
iam trying to use DWR for populating list box wen a check box is checked.iam using Tomcat 4.1 & j2sdk 1.4.2
but iam getting an alert: illegal access to default constructor Aug 20, 2006 6:30:43 PM uk.ltd.getahead.dwr.util.CommonsLoggingOutput warn
WARNING: Method execution failed:
java.lang.InstantiationException: Illegal Access to default constructor
at uk.ltd.getahead.dwr.create.NewCreator.getInstance(NewCreator.java:62)
at uk.ltd.getahead.dwr.impl.ExecuteQuery.execute(ExecuteQuery.java:172)
at uk.ltd.getahead.dwr.impl.DefaultExecProcessor.handle(DefaultExecProce
ssor.java:48)
at uk.ltd.getahead.dwr.impl.DefaultProcessor.handle(DefaultProcessor.jav
a:81)
at uk.ltd.getahead.dwr.AbstractDWRServlet.doPost(AbstractDWRServlet.java
:162)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22
3)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:594)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:619)
at java.lang.Thread.run(Thread.java:534)
Aug 20, 2006 6:30:43 PM uk.ltd.getahead.dwr.util.CommonsLoggingOutput warn
WARNING: Erroring: id[53_1156078843109] message[uk.ltd.getahead.dwr.OutboundVari
able@497904]my code goes here,
package db;
import java.util.*;
class ArrayL
public ArrayL()
System.out.println("In constructor");
public ArrayList getA(String x)
ArrayList al=new ArrayList();
al.add("1");
al.add("6");
al.add("42");
al.add("16");
al.add("3");
System.out.println("al-------"+al);
return al;
public int[] getNumbers(boolean big)
if (big)
return new int[]
1000, 2000, 3000, 4000
else
return new int[]
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 1.0//EN"
"http://www.getahead.ltd.uk/dwr/dwr10.dtd">
<dwr>
<allow>
<create creator="new" javascript="Demo" scope="session">
<param name="class" value="uk.ltd.getahead.dwr.Demo"/>
</create>
<create creator="new" javascript="ArrayL" scope="session">
<param name="class" value="db.ArrayL"/>
</create>
</allow>
</dwr>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<script type='text/javascript'
src='/ajax1/dwr/engine.js'></script>
<script type='text/javascript'
src='/ajax1/dwr/interface/ArrayL.js'></script>
<script type='text/javascript'
src='/ajax1/dwr/util.js'></script>
<SCRIPT type='text/javascript'>
<!--
function continentSelected()
var searchexp = $("continent").value;
ArrayL.getNumbers(searchexp, displayItems);
return false;
function displayItems(items)
DWRUtil.removeAllOptions("country");
DWRUtil.addOptions("country", data);
if (items.length == 0)
alert("No matching products found");
$("country").style.visibility = "hidden";
//-->
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="countryform" ID="countryform" ACTION="doCountry" METHOD="POST">
<SELECT name="continent" id="continent" onChange="continentSelected();">
<OPTION VALUE="Africa">Africa</OPTION>
<OPTION VALUE="America">America</OPTION>
<OPTION VALUE="Asia">Asia</OPTION>
<OPTION VALUE="Australia">Australia</OPTION>
<OPTION VALUE="Europe">Europe</OPTION>
</SELECT>
<SELECT name="country" id="country">
</SELECT>
</BODY>
</HTML>can any one help with this problem
Thank u in advanceI'm not sure if the code you display is 'Exactly' how it is written.
If it is:
1) The class needs to be public (i.e. public class ArrayL {.....})
2) In the code below, the value of searchexp is a string
var searchexp = $("continent").value;
ArrayL.getNumbers(searchexp, displayItems); but the function
public int[] getNumbers(boolean big) takes a boolean.
3) In the call DWRUtil.addOptions("country", data); 'data' isn't defined did you mean 'items'?
Finally in the statement that you have if (items.length == 0) I have found that does not work with Collections (at least Maps) returned from a method to DWR (as of 1.1.3).
Good luck -
Limit of no. of items shown in ABAP List-box?
Hi All,
I am doing a development and I came across this limitations of the no. of items in a list box. Is it limited to a single digit..? Cause when i use call function 'VRM_SET_VALUES', the value returned in the field is the KEY, which is only 1 digit in my case. I have over 100 entries to be displayed in the list box. Can anyone tell me how to increase the no. of digits which get returned by the FM 'VRM_SET_VALUES'?
Please let me know.
Awaiting your reply.
Regards,
Pankaj.Show us the code that you use to build the VRM table please.
I'm simply not understanding your problem. VRM table has 2 fields, key and text. Text is what is displayed and key is what is
returned from the user selecting one item on the list. Only one value is returned. There is not multiple selection options.
This is code I use to generate a custome dropdown list.
* this is in my TOP (Global area)
DATA: ltype_field TYPE vrm_id,
ltype_result TYPE STANDARD TABLE OF vrm_value,
ltype_val LIKE LINE OF ltype_result.
* this is in my PBO routine
REFRESH ltype_result. CLEAR ltype_result.
* Drop down values
SELECT ltype ltypex
INTO TABLE ltype_result
FROM zlmltyp
WHERE auth NE '9'. "System Only
* Field name to assign drop down values
ltype_field = 'WK_LTYPE'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = ltype_field
values = ltype_result
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
Edited by: Paul Chapman on May 1, 2008 12:36 PM -
List box multiselect resulting in pulsating cursor
I followed the coding suggestion found in the following Topic link to create a multiselect Listbox that saves all its selections to the submitted XML output file.
http://www.adobeforums.com/cgi-bin/webx/.3bbda6ea/9
In the Listbox initialize event, I use this code:
this.ui.choiceList.open = "multiSelect";
this.rawValue = "-1";
In the invisible Textbox preSubmit event, I use this code:
this.rawValue = Listbox1.rawValue;
However, in Designer's PDF Preview, as well while testing in Acrobat 7, the moment I have selected two or more items in the Listbox with the Ctrl key AND THEN click into any other field in the form, the cursor rapidly pulsates between either the text cursor and the hourglass, or the hand cursor and the hourglass.
I can continue to fill out the form just fine and submit by email, and all the selected data is preserved in the XML output -- however, the pulsing cursor will totally unnerve the users.
Does anyone have any idea why it does this? This behavior doesn't happen in the example that I borrowed it from.[email protected] wrote:
> Note that this will only work if the text and value assigned to an item in the list box are the same as well as only work in the single-selection case.
>
> xfa.event.newText will only be set to the item text of the item which was clicked by the mouse. If an item's value differs from its text (e.g. you have an item named "Vegetables" with a value of "1"), xfa.event.newText will be set to "Vegetables", not "1". Although you can determine that the value of the new selected item is "1" by using this.boundItem(xfa.event.newText), you can't determine the value of all items that were selected.
>
> In a multi-select list box, simply using xfa.event.newText won't work in all cases because even when the user shift-clicks an item to select all items from the last selected item to the item clicked, xfa.event.newText will still only be set to the item that was clicked as opposed to being, for example, a newLine-delimited string of all items that were selected as a result of the shift-click.
>
> Although we shouldn't have to be calling this.saveXML() prior to retrieving this.rawValue, it's the only way we've found to successfully retrieve the value of all items that were selected at the time of the Change event.
>
> Stefan
> Adobe Systems
Sorry, I misunderstood the problem. I think the real issue here is that
multiselect list boxes are not fully supported. Be careful when using
these. If you try to export xml data from the form, you will get mixed
results. Sometimes it exports all of the values, sometimes it exports
one of the values, and sometimes it exports some of the values...none of
which seem to match what was actually selected. At least this is what I
experienced in limited testing. Proceed with caution!!!
Justin Klei
Cardinal Solutions Group
www.cardinalsolutions.com -
Measurement Results in Execution list box
Anyideas or reliable procedures on adding measurement results to the existing pass/fail line in the execution display list box ?
Test Engineering
Empower RF Systems Inc.Hi,
I guess as long as you put in the preconditions to handle those steps that dont have your extra properties and resize your list box to handle the extra information. You should be alright.
I have used the example in the Resource Library | TestStand | Step Types | Custom Steps Types - adding limits to the description in the Sequence Display without any problems.
Ray.
Regards
Ray Farmer -
Hi All,
I have a requirement to use some components called List Box and Tabs in my WebI report for presenting the information by dynamic dimension and measure selection using list box and segregate information by using Tabs as in below image.
Image was prepared in MSPaint not executable webi report.
Is it possible to integrate the list box and tabs into Report Zone in BO Webi? as show in below image?
Thanks in Advance
Muralidhar Reddy NHello Muralidhar Reddy,
The exact tool for your requirement is SAP BO Dashboard or SAP BO Design studio. WebI is a tool for ad-hoc reporting tool and we have limited functionalities to make dashboards using webI. You can have all those chart options in WebI and you can use Input controls or drill filters for restricting data. But you cannot have these selection components in reporting area. Tabs as shown in above post, you can have in bottom of the report.
find below a good example of dashboard using WebI
http://blog.davidg.com.au/2011/04/webi-as-dashboard.html
hope it helps
Regards,
Nikhil Joy -
Drop Downl list box using model binding
Hi friends
I observed one thing that for drop down list box if we set the attribte 'helpValues' using Model Data Binding. Then the list is showing if the search help assigned to field or data element contains only 2 fields.
For example in SFLIGHT table drop down list box shows for 'CARRID' Field not for 'CONNID' .
The same problem for get_simple_helpvalues2() method also.
Is it right ? or Wrong?That is a limitation of those methods that I have observed as well.
Recently I picked through the code of get_simple_helpvalues2. I am currently using in my Value Help Custom Extension (along with the BAPI for HELP_VALUES). I wanted something simpler to use than the BAPI, but with more functionality than get_simple_helpvalues2. I used some of the code from get_simple_helpvalues2 and extended it to support any elementary search help (it works for both CARRID and CONNID).
I used calls to DD_SHLP_GET_HELPMETHOD and DD_SHLP_GET_HELPVALUES. The end result is quite a bit of code, but once completed very easy to reuse. I hope to update the example I have on SDN for Value Help with this additional solution, but I have been quite busy trying to get ready for TechED. Also I have a few bugs left to work out in my method. -
Reg: Drop-Down list Box not displaying values
Hi Experts,
i am publishing a module pool program in the internet using SICF Transaction . In the internet my drop down list box is not displaying the default value but in my sap it works fine .
What may be the problem?
Regards,
VikramHello Thorsten Domsalla ,
My Problem is in my sap module pool program there is a drop down list box which disaplays default values its working fine in sap gui but when i access through internet (SICF) Transaction the Drop down list box not listing out default values .
i am using Integrated ITS Version 7.0 and Support package 08.
Regards,
Vikram -
Getting multiple values from a list box
Hi,
I am not able to get multiple selected values from a list box using the getParameterValues(). I used the following code..
String[] names=request.getParameterValues("lname");
can anyone tell me what the error is or is there any other way i can get multiple selected values from a list box.
Thanks
SatishFragment 1
This is the JSP Code am using for testing
<%
String[] name =request.getParameterValues("D1");
if(name.length==1)
String value=name[0];
Instead of name.lenght==1 try with name!=null
Fragment 2
out.println(value);
replace the above fragment with
%>
<%-- print result -->
<%=name[0]%>
<%
Fragment 3
else
%>
The list box D1 is a multiple select list box.
If it still doesn't work, check that the checkboxes have the same name as well as different values
<input type="checkbox" name="D1" value="1">
<input type="checkbox" name="D1" value="2">I hope this helps :-)
Good luck
touco
ps: i want duke -
How to capture the selected values from module pool dialog list box !
Hi experts,
Can anyone help me out in capturing the values from the list box.
i am able to set the values in the list box.But i am not able to capture the selected value from the list box. Always the list box name is getting as "space"
I also tried in using the FM "VRM_GET_VALUES" but it is retireving all the values. Is there is any flag for filttering out the selected value.
Your inputs are appreciated.
Thanks,
Vijay.Along with the PBO and PAI event, add a POV event in the flow logic of the screen
DEMO_DROPDOWN_LIST_BOX -is a good demo example.
PROCESS ON VALUE-REQUEST.
FIELD structure_name-field_name MODULE create_dropdown_box.
In the report :
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.
In the layout, assign a Function Code , for eg : 'SELECTED' to the listbox and lets say name of the field is SDYN_CONN-CARRID. So in the PAI module,
MODULE user_command_0100 INPUT.
CASE ok_code.
WHEN 'SELECTED'.
MESSAGE i888(sabapdocu) WITH sdyn_conn-carrid.
ENDCASE.
ENDMODULE.
sdyb_conn-carrid will contain your selected field -
Hello Everyone
I have two drop downs. Both are coming from look up fields from two lists. i want to set a default value(first list item) for the first drop down list box and then apply cascading based on the default value for the next drop down list box. I found one article(http://www.bizsupportonline.net/infopath2010/display-first-item-drop-down-list-box-infopath-2010.htm)
where in i can set a default value but i can't apply cascading based on that default value. Any suggestions would be highly appreciated.
Thanks
Ramanjulu Naidu NHey Ramanjulu,
Take a look at the below article which I believe will answer your question.
http://basquang.wordpress.com/2010/03/29/cascading-drop-down-list-in-sharepoint-2010-using-infopath-2010/
Daniel Christian (MCTS) -
How to get the selected value/key of a drop down list box in webdynpro Java
Dear SDN Members,
I have added some static data into a drop down list box by key UI element using the procedure specified in value help tutorial.
Now i want to display the value selected in a dropdown list box on view whenever i select an item in a dropdown list box.
Can any one put here the code part relating to this.
Your help will be awarded.
Thanks in advance,
Regards,
Sireesha.BHi Sireesha,
You want to display value based on the key selected in dropdown list. If you want to do like that
1) Create a context attribute for ex: key_value
2)In the properties of the attribute select the calculated as true.
3)It will create getter and setter methods for your attribute.
4)Go to implementation add the following code in getter method of your attribute
String attributeName = IPrivateCreate.IContextElement.KEY;
//KEY is your dropdown key attribute not the value attribute.
IWDAttributeInfo attributeInfo = element.node().getNodeInfo().getAttribute(attributeName);
ISimpleTypeModifiable simpleType = attributeInfo.getModifiableSimpleType();
IModifiableSimpleValueSet valueset = simpleType.getSVServices().getModifiableSimpleValueSet();
Object key = element.getAttributeAsText(attributeName);
return valueset.getText(key);
Regards
Suresh -
i am populating a list box with Id's and names from a database and im trying to get the values from the list box depending what the user chooses, i.e if they choose the first choice in the list box the value i want to put in a variable is 1, etc
here is the code for the list box, please help
<select name="lstFilm" size="1">
<%while (result4.next())
{%>
<option value="<%result4.getInt(1);%>">
<%out.println(result4.getString(2));%>
</option>
<%}%>
</select>String[] lstFilm = request.getParameterValues("lstFilm");
Of course, it'll only return selected values. It'll be whatever the option values are.
Maybe you are looking for
-
Excel Pivot Table with Date Hierarchies - query performance degradation
For the sake of this explanation, I’m going to try and keep it simple. Slicing the data by additional dimensions only makes the issue worse. I’ll keep this description to one fact table and three dimensions. Also, I’m fairly new to SSAS Tabular; I’ve
-
SAP R/3 HW migration steps
Dear all, We are purchasing new servers for our SAP R/3 environment, because current one's are almost five years old. SAP R/3 4.6C on Oracle 9.2.0.5 on HP-UX 11.00 I was wondering about this procedure for SAP application and DB copy to the new server
-
Get USB device attached to this computer has malfunctioned error message
Hi All, my first post. iPod was working fine and been synching without issue for 2 years. I have recently had a couple of intermittent problems where it gets stuck playing and will not respond to clicking on wheel. However, seemed to be over that but
-
Print Detail Lines on One Page?
Hi Friends I am creating xml template for Printed Purchase Order Report in Potrait Style. If the Detail Lines are more than 2, the third one is going to next page. I want all the Information Including Header and Detail LInes to be printed in one Page
-
Getting SSLHandshakeException when trying to login to OCOD using Jdev 11g
Hi, I used the following code to login to OCOD in JDev 10g and SOA 10g. public String logon(String wsLocation, String userName, String password) String sessionString = "FAIL"; try // create an HTTPS connection to the On Demand webservices URL wsURL =