Multi-Select List box selection as an array
On a JSP Search page I have a multi-select list box
\<select name="searchCampusMulti" size="4" multiple>
<c:forEach var="listEntry" items="${bindings.CampusCodeView1.rangeSet}">
<option value="<c:out value='${listEntry.CampusCode}'/>">
<FONT face="Times New Roman" size="2">
<c:out value="${listEntry.CampusNameShort}"/>
</FONT>
</option>
</c:forEach>
</select>
How do I pass the selected values as an array to a method in a DataAction?
Please give me the step by step run through
Any help is appreciated
Thanks
Hi,
didi you check teh request object for a request parameter "searchCampusMulti" ?
Frank
Similar Messages
-
Hi, I'm using SP13 and InfoPath2013.
I created a custom form and published it to SP13 document library. This form has many MSLB. Depending on the checkboxes selected in the 1st MSLB, the other MSLB will either hide or show. Each MSLB is in its own section. The requirement
is to have each MSLB to have at least one checkbox selected. Well, the problem is that when that MSLB isnot checked in the 1st MSLB it is not visible and shouldn't require any checkbox to be selected. However, the form can't get submitted instead
an error dialog would pop up and ask user to make a selection for MSLB that is not even displayed. Is there any way to fix this besides unchecking all MSLB to be not required at least one selection? Thank you.Eric,
I follow your reply post here and still doesn't work. I also noticed your screen shot of selecting a field is not the same as what I see in InfoPath 2013.
Here is what I did,
1.Check At least one selection required for
these Multiple-selection List Boxes
as you want .
2.Create a Formatting rule for the 2nd
Multiple-selection List Box.
3.Add a Condition as below:
4. I get a validation error if I don't
select at least one checkbox in the hidden MSLB control when submitting.
I think I'm following all the steps correctly
but please let me know if I'm not. -
How to un-check everything in a Multi-selection list box in SP2013?
When a radio button is selected/un-selected, i would like to clear all the checkboxes that were checked in a MSLB. I created a rule for the condition but in the action, how to create this uncheck action?
Thank youyes, that's what I've done but still not working. I even downloaded the sp,
InfoPath 2013 (KB2837648) 32-Bit Edition
and it still doesn't work. In the screen shot attached, ml prefix is for Multi-selection list box. So, in mlImprovement, if the Communication checkbox isn't checked then set the Multi-selection list box, Communicaiton, to blank so it should
show no selection.
In the preview of Infopath 2013, I would check Communication in mlImprovement and then check a couple of checkboxes in mlCommunicaiton. I then uncheck and check Communicaiton in mlImprovement and those previously checked checkboxes remains.
I have been very frstrated working the MLSB infopath 2013. there are other issues that does't work either. Please advise if I'm missing a step here and there, thank you. -
Hope someone can help. I have tried to find the best way to do this and can't seem to make sense of anything. I'm using an Access 2013 Database and I have a report that is based on a query. I've created a Report Criteria Form. I
need the user to be able to select multiple items in a list box and also to enter a Begin Date and End Date. I then need my report to return only the records that meet all selected criteria. It works fine with a ComboBox and 1 selection but can't
get it to work with a List Box so they can select multiple items. Any help is greatly appreciated while I still have hair left.The query should return all records.
Let's say you have the following controls on your report criteria form:
txtStart: text box, formatted as a date.
txtEnd: text box, formatted as a date.
lbxMulti: multi-select list box.
cmdOpenReport: command button used to open the report.
The text boxes are used to filter the date/time field DateField, and the list box to filter the number field SomeField.
The report to be opened is rptReport.
The On Click event procedure for the command button could look like this:
Private Sub cmdOpenReport_Click()
Dim strWhere As String
Dim strIn As String
Dim varItm As Variant
On Error GoTo ErrHandler
If Not IsNull(Me.txtStart) Then
strWhere = strWhere & " AND [DateField]>=#" & Format(Me.txtStart, "yyyy-mm-dd") & "#"
End If
If Not IsNull(Me.txtEnd) Then
strWhere = strWhere & " AND [DateField]<=#" & Format(Me.txtEnd, "yyyy-mm-dd") & "#"
End If
For Each varItm In Me.lbxMulti.ItemsSelected
strIn = strIn & "," & Me.lbxMulti.ItemData(varItm)
Next varItm
If strIn <> "" Then
' Remove initial comma
strIn = Mid(strIn, 2)
strWhere = strWhere & " AND [SomeField] In (" & strWhere & ")"
End If
If strWhere <> "" Then
' Remove initial " AND "
strWhere = Mid(strWhere, 6)
End If
DoCmd.OpenReport ReportName:="rptMyReport", View:=acViewPreview, WhereCondition:=strWhere
Exit Sub
ErrHandler:
If Err = 2501 Then
' Report cancelled - ignore
Else
MsgBox Err.Description, vbExclamation
End If
End Sub
If SomeField is a text field instead of a number field, change the line
strIn = strIn & "," & Me.lbxMulti.ItemData(varItm)
to
strIn = strIn & "," & Chr(34) & Me.lbxMulti.ItemData(varItm) & Chr(34)
Regards, Hans Vogelaar (http://www.eileenslounge.com) -
On button click of Infopath forms select multi select list box values...
Hi,
We have multi select list box on one of the info path forms. We have placed on button on this form. If user clicks on this button we want to select some of the values in Multi select list box (check box).
Is it possible if yes how can we achieve it?
Thanks.
Regards,
Amit ChhatbarHi Amit,
From your description, you would like to check items in a multi-selection box when a button is clicked.
I’d recommend you make use of rules in InfoPath form, i.e. when button is clicked, then set a field’s value.
However, if you are using multi-selection box, then you could only set the value of one item at a time. If you want to select several items at once, then we could use code. For more information:
http://www.bizsupportonline.net/blog/2009/07/understanding-multiple-selection-list-box-infopath/
http://www.bizsupportonline.net/infopath2007/programmatically-select-all-items-multi-select-list-box.htm
If you are using several check boxes to replace multi-selection box, then it will be more easy. The rule could be that when this button is clicked, set a field’s value (check box field) to true and repeat it.
Regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] .
Rebecca Tu
TechNet Community Support -
Multicolumn list box selection of Complete Row
Hi guys ,
I want to know that is there a way to select a complete Row from MultiColum List Box Or Table on the Front Penal and then paste on the next row. Its kinda same as microsoft Excel when you select a complete row and coloum and then paste it back to any other row or column and all the values are pasted. The program i am working on requires me to write bunch of values all together in the multi column list box and then copy the same values with jsut a little change(maybe in just one column) and then write them again ..
Thanks
Regards
Solved!
Go to Solution.Its just array manipulation if I understand your question right.
Something like this:
Beginner? Try LabVIEW Basics
Sharing bits of code? Try Snippets or LAVA Code Capture Tool
Have you tried Quick Drop?, Visit QD Community. -
Hi All,
Is there a UI element that will enable me to have a multiple selection list box (or similar)?
How do I go about implementing one if its not available, ie is there a workaround?
Thanks
TM.This is a (IWD)Table with single column, selection mode "auto" or "multi", table should be bound to node with cardinality 0..n and selection 0..n
VS -
How to select the contents in a select list box....
I want to look into a select list box and check whether something is existing if exists print that or add a new one...I want to count the number in the select list box....the selected lsit consists of string of names....i have to choose my favourite name ...if present....
Please help me...Akrisha wrote:
HTML List box ....in java script....This is Java forum.
In JavaScript you should use select.options[index] blah blah ... -
How to fix the length of select list box?
Halo, i am doing the research. I need to find out what is the method to fix the length of select list box. This is b'cos i can set the length of select list due to different length of record(s)/data(s).
Another question to select list box. What is the maximum length of the select list box?? Can i enter the character with 255 lenght??
Thank you very much..... a prompt reply will be appreciate!!Thanks for ur reply! actually that answer that you gave is right, but i also need to know what is the maximum lenght of character in the select list box?? any idea to that??
Meanwhile, i also need to know how can i make the character display in select list box dynamically?? that means i can change the font style or font size??
Anyway, thanks for ur answer.
bscs. -
Hiding of Select Options in screen based on selection in selection list box
Hi People,
I have a screen where i have put a selection list box, it is pre-filled with values, Now based on the value which user selects, I want to show/hide some select-options fields. I have declared the select options in the top include of my program,
SELECT-OPTIONS: so_user FOR ls_rsp_user-user_id MODIF ID 222,
so_userg FOR ls_rsp_usergrp-user_grp_id MODIF ID 333,
so_ccode FOR ls_vdmp-bukrs MODIF ID 444,
then in the PBO of my screen, I have written a module, set screen in which I loop over screen & check the group id's
LOOP AT SCREEN.
IF screen-group1 = '111'.
IF gv_hier_resp_fields_flag IS NOT INITIAL.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
ELSEIF screen-group1 = '222'.
IF gv_user_fields_flag IS NOT INITIAL.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
ELSEIF screen-group1 = '333'.
IF gv_user_group_fields_flag IS NOT INITIAL.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
I am setting some flags based on the value which user selects in the selection list box, When I debugged I found that the flags were being set correctly, but the screen group value never set to '222' or '333', these are id's i have used for select options. Hence I am unable to hide/show the select options fields. Kindly suggest some solutions for this.
Thanks & Regards,
Deepakthen in the PBO of my screen
Your SELECT-OPTIONS are defined in a SELECTION-SCREEN so the PBO actions must be maintained in a AT SELECTION-SCREEN OUTPUT block.
I suppose the selection-screen is a subscreen, if you dont want to get unwanted interactions with a main selection-screen of the report, check sy-dynnr
AT SELECTION-SCREEN OUTPUT.
CASE sy-dynnr.
WHEN '1000'. " main screen of report
WHEN '0100'. " selection-screen defined as subscreen
LOOP AT SCREEN.
CASE SCREEN-GROUP1.
WHEN '111'.
ENDCASE.
ENDLOOP.
ENDCASE.
Regards,
Raymond -
I would like to be able to submit an Infopath form with a multiple selection list box in Sharepoint as multiple entries on a Sharepoint list.
For example, a user has to complete the following fields:
First Name:
Last Name:
Favorite Color (can select more than one):
[] Blue
[] Red
[] Yellow
[] Green
If the user picks blue AND red and submits the form, the Sharepoint list would feature TWO entries, both with their first and last names, but with different colors in the "Favorite Color" column.
Please let me know if there is a way to do this. Any guidance would be helpful!Hi redhotc,
According to your description, my understanding is that you want to set multiple default values for a multiple checkbox list in InfoPath form.
I did a test with SQL database table. I set three default values for the checkbox list by adding three values field under the group field(Data->Default values), each value field is for a default value. Then publish it to my SharePoint site, everything
was fine.Please have a try as the below link:
http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
Note: if you are using SQL databse table, you may need to enable ‘Allow cross-domain data access for user form templates that use connection settings in a data connection file’ in CA. More information, please refer to:
http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010customization.aspx?ID=418b9423-a96c-4e5e-91f9-6a1b010ebb69
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
Value of Multiple-Selection List box is not appearing "calculated value" field of it
Hello,
We have created one selection list box using control "Multiple Selection List Box", where user can select one or more values.
We have created one view in InfoPath form, which have calculated value of fields(just showing purpose and printing purpose this view has ben created).
In this when we try to show calculated value of field is of Multiple Selection List Box, it's showing as "Off".
Could you please help us out.
Thanking you in advance.
Regards,
JayashriHi,
Thanks for your sharing! It will be beneficial to others in this forum who meet the same issue in the future.
Wendy
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Change from 4.5 to 5,1 with multiple select list boxes
Had a multiple select list box which worked fine in 4.5 i.e
a comma seperated list would be passed to the corresponding set method
in the bean. We switch to 5.1 and this no longer works any one know of
the solution or a work around to the problem
Hugh McBride
[email protected]
Vladimir,
I am using a JSP/Java Beans design where the name of the
set
method in the bean match the name of the ui component so when the form
is submitted the method in the bean is automatically called. The method
request is a workaround but one we wanted to avoid using
Thanks
Hugh McBride
[email protected]
Vladimir Andral wrote:
> How are you getting the values? request.getParameter()?
>
> You should be using request.getParameterValues() if the parameter
> has more than one value.
>
> Check out the documentation for the HttpServletRequest interface.
>
> --
> Vlad
>
> Hugh McBride wrote in message <[email protected]>...
> >Had a multiple select list box which worked fine in 4.5 i.e
> >a comma seperated list would be passed to the corresponding set method
> >in the bean. We switch to 5.1 and this no longer works any one know of
> >the solution or a work around to the problem
> >
> >
> >Hugh McBride
> >[email protected]
> >
-
Multiple-Selection List Box Values in Multiple Columns
I am using InfoPath 2010 with SharePoint 2013. I have a form with a multiple-selection list box which has A LOT of choices. Instead of displaying all the choices in one column, is it possible to display the values of my list box in several
columns?Hi Andrea,
I agree with Brij, one multiple-selection list box is associated with one list field, we cannot use the one multiple selection list box value for other multiple selection list boxes, we need to create multiple choices for each multiple-selection list box
control in InfoPath form.
Thanks
Daniel Yang
TechNet Community Support -
InfoPath 2010 - Multiple Selection List Box - Rule Does Not Run When Unchecking Value
I have a multiple selection list box on a form. I have a rule that sets the value of another field. There is not condition. Just any time item is checked or unchecked the value of the other field should
change. This works when checking an item in the list box but not when unchecking the item in the list box. My question is - do rules not fire for a multiple selection list box when unchecking an item?Hi,
I have tested in my lab environment, the rules seemed only fire for the latest checking action, and it did not fire when uncheck multiple-selection list box. Here is a workaround for your reference:
http://www.infopathdev.com/forums/p/17850/62269.aspx
However, I’d recommend you use check box instead, since it is much easier to set rule according to value of it. We can set it as true when we check the box, and set it as false when we uncheck it as below:
Then it is simple and clear to make rule according to the value of check box.
Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety,
or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
Regards,
Rebecca Tu
TechNet Community Support
Maybe you are looking for
-
Goods issue to customer without sales order or Outbound delivery
Dear all gurus, I have a case like that: Supposing we don't have neither Sales Order nor Outbound Delivery (because not implement SD, for eg). Then, we stil want goods issue to customer. So can u advise me how to do: which Tcode, which movement type,
-
I cannot do any searching....I have reset my system to no proxy but still get the message that the site has timed out and I get no results in either firefox or yahoo.....I can go to bookmarked sites but that is it.
-
Backing up entire iTunes library's
Hey all my HDD is on its way out clicking like a gooden! oO I have a spare old hard drive so wanting to backup to that just in case. My question is what's the easiest way yo back up Apps Music Photos Contacts iPhone back-up iPod backups basically eve
-
Rcapd to limit zone RSS usage - total confusion!
I'm trying to use rcapd to limit an entire zone to a certain RSS limit. i do this by setting all processes in the zone to run in within the 'system' project, with the following /etc/project file set to cap RSS at 128MB: system:0::*::process.max-file-
-
CRM exchange rate delta download from ECC
Hi experts, We are trying to download the exchange rate from ECC for the delta scenario. I've tried to schedule a job to run the program SMOF_DOWNLOAD with Object DNL_CUST_BASIS3, but it comes up with an err, which says "Error 004 DNL_CUST_BA