Set focus on item that selected in multiple-selection list box field in infopath
Hi
I have multiple-selection list box field in infopath that have for example 40 items. (I customize sharepoint list with infopath),then
publish infopath form in to sharepoint list. users want to add new item,when they selected or checked each item in multiple selection list box, after that automatically control focus on first item, but I want to focus remain on that item
I was selected. Why this happen?! I also set postback settings to “never” in multiple-selection list box properties. But didn’t work.
Thanks.
Hi,
According to your post, my understanding is that you wanted to find several columns based on user selection of checkboxes in one of the Multiple-selection List Box.
I recommend to customize the form to concatenate values from choice field (with multiple values) into single line text box, and then hide the fields based on the text box value.
We can follow the steps as following:
Add a text box control(filed 3) on the form to hold the value selection in the multiple selection list box.
Set the default value for the text box control as
substring-after(eval(eval(Value, 'concat(., ";")'), ".."), ";")
(you need to change the ‘Value’ in the formula to your multiple selection list box name: filed1).
Add the conditional formatting on the flied: flied 3 does not contain value (you need to change the ‘Value’ in the formula to your multiple selection list box value.).
In addition, you can add Formatting action to hide the text box control.
Here are the result screenshots for you to take a look at:
Best Regards,
Linda Li
Linda Li
TechNet Community Support
Similar Messages
-
Insert items from two different Multiple Select Lists into a single table
I need help. I have a training tracking system that tracks the courses taken by employees.
I have created two multiple select lists, one is SelectEmployees and the other is SelectCourses. I want to insert
the selected item from those two multiple select lists into Training_Record table.
Note, SelectEmployees" is from Employee table and SelectCourses is from Courses table. Those two table has no intersetion.
Train_Record is the table that joins those two together.
Please advice and your help is appreciate.Thank you for your help.
I tried your code and changed the table/field name to my actual table/field name and the iitem name to actual item name.
declare
cursor c_Employees is
select PERSONNEL_NEW.EMPLOYEEID from PERSONNEL_NEW where PERSONNEL_NEW.EMPLOYEEID in (:P15_SELECTEDEMP);
cursor c_Courses is
select COURSES.COURSE_ID from COURSES where COURSES.COURSE_ID in
(:P15_SELECTEDCOUR);
begin
foreach :=r_employee in c_Employees loop
foreach :=r_course in c_Courses loop
insert
into COPYOFTRAINREC ( EMPLOYEEID, COURSEID )
values ( r_employee.EMPLOYEEID, r_course.COURSE_ID );
end loop;
end loop;
end;
I got error message as :
ORA-06550: line 12, column 25: PLS-00103: Encountered the symbol "C_EMPLOYEES" when expecting one of the following: (
Error
OK -
Trying to retrieve the editValue of a list box selection with multiple selections
I have a requirement to display the text and the value of a multiple choice list box but as soon as there are multiple selections the value displayed is the rawValue.
My code is something like this:
verifSubTaskDescID.addItem(this.editValue);
verifSubTaskDesc.addItem(this.rawValue);
When "this" which is a list box with ["a","first"],["b","second"] is set to a or b it works perfectly, displaying "a" in the ID and "first" in the Desc as follows:
a first
OR
b second
but when I select both this list looks like this:
first first
second second
Any ideas on how to preserve the letters without making the code too complex or hard to maintain??
Thanks!!!Hi,
you can use a for loop to get all selected values from a choice list.
This could look like this.
This sample script goes to the exie event of the choice list.
It refers to the dataNode which holds the multiple values.
The for loop the then extracts the selected values and their associated display items.
var r = ""
for i = 0 upto $.dataNode.nodes.length - 1 do
r = Concat(r, $.dataNode.nodes.item(i).value, " ", $.getDisplayItem(i + 1) )
endfor
Textfield1 = r -
2 cascading multiple dropdown list boxes that fill a form field in Infopath
I have a request to do this:
first field is a cascading list box is type of work (can select more than 1 type of work)( separate list)
then based on the choices above the
second cascading list box has the various people's names from the first list box (can select more than 1 person)(separate List )
then I need to from the second list box have a form field hold the various email addresses of all the people selected in the second list box.
how would I do a multiple tier cascade in Infopath form?those are good examples, but here is the thing the first two dropdowns can be more than 1 selection, could be 50 items selected.
and selection 2 dropdown doesnt lookup into selection 1. but they do have a related column.
company name..... ( just saying). -
An item that already exist in the list
if someone insert an item that already exist in the list- I want that an email will send to the manager.
can I do this? how?I will write code that send an email, but my question is in which event?
ItemUpdating event will not help me because the item will not update if the item already exist in the list...
thank you!
in item adding get the column value of the item which is getting added
string value= properties.AfterProperties["ColumnName"].ToString(); OR string name= web.Lists[properties.ListId].Fields["Column Display Name"].InternalName;string value= properties.AfterProperties[name].ToString();
after getting the value search if the item exists which has the same field value.
you can iterate the list for searching but i will recommend you to use CAML query -
Set the column name of a table in a list box
is there any code to set the column name of a table in a list box at oracle devloper 6i?
pls help.I dont want to go for pl/sql . It should work any table.You want Dynamic SQL without using PL/SQL? Tricky. I'm sure there's a possible way using some very complex and convoluted XML functionality of SQL but in reality you are asking for something that isn't natural to SQL queries, especially if you are expecting a dynamic number of columns to be produced for each row of data. SQL expects a table structure, including output formats, to be a defined number of columns with any number of rows, not a defined number of rows with any number of columns.
Perhaps if you explain why you need this sort of functionality then we may be able to offer a better solution.
;) -
How do I set up a template that works for multiple folder levels
I want to segregate groupings of pages on my site because
they focus on specific content areas. The template that I created
works fine for pages in the root but if I try to create a
template-based page in a sub-folder then I get all kinds of "not
founds" on includes, css files, etc.
How do I set up a template that will cover both the root
pages and sub-folder pages?
TIA,You use root relative links in your includes and CSS links.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"lwoods" <[email protected]> wrote in
message
news:e9qpol$meg$[email protected]..
>I want to segregate groupings of pages on my site because
they focus on
> specific content areas. The template that I created
works fine for pages
> in
> the root but if I try to create a template-based page in
a sub-folder then
> I
> get all kinds of "not founds" on includes, css files,
etc.
>
> How do I set up a template that will cover both the root
pages and
> sub-folder
> pages?
>
> TIA,
> -
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 -
Number of options selected in multiple selection
Hi,
I have a multiple selection, how can i get the number of options selected from this multiple selection?
So that i can change CHART width accordingly?
For example, if i choose one option, chart width = 150
if i choose two options, chart width = 300
thanks for the reply.
wcyHi
If your using standard charts then I gues the easy way would be to have multiple charts and make them conditional on INSTR(:P_ITEM, ':') + 1, this would give you the number of items in the string generated by the multi-select list.
If you are building XML in PL/SQL then you could do this dynamically in one chart.
You could also try having hidden item defined as INSTR(:P_ITEM, ':') + 1 and then use the &P_HIDDEN_ITEM. substitution in the chart width field. I have no idea if this would work but you could give it a try.
Cheers
Ben
http://www.munkyben.wordpress.com
Don't forget to mark replies helpful or correct ;) -
How to disable the SELECT-OPTINS multiple selection screen's Ranges options
Hi this is sekhar,
I have used the Select-options: statement with 'No-Interval' option. Now I need to restrict the user not to enter the values in the Ranges column of multiple selection screen. How can I do it....You can also refer this code as below : CHECK OUT SELECT OPTION sel_1_0.
*& Report ZTESTREP
REPORT ztestrep.
Include type pool SSCR
TYPE-POOLS sscr.
Define the object to be passed to the RESTRICTION parameter
DATA restrict TYPE sscr_restrict.
Auxiliary objects for filling RESTRICT
DATA opt_list TYPE sscr_opt_list.
DATA *** TYPE sscr_***.
Define the selection screen objects
First block: 3 SELECT-OPTIONS
SELECTION-SCREEN BEGIN OF BLOCK block_0 WITH FRAME TITLE text-bl0.
SELECT-OPTIONS sel_0_0 FOR sy-tvar0.
SELECT-OPTIONS sel_0_1 FOR sy-tvar1.
SELECT-OPTIONS sel_0_2 FOR sy-tvar2.
SELECT-OPTIONS sel_0_3 FOR sy-tvar3.
SELECTION-SCREEN END OF BLOCK block_0.
Second block: 2 SELECT-OPTIONS
SELECTION-SCREEN BEGIN OF BLOCK block_1 WITH FRAME TITLE text-bl1.
SELECT-OPTIONS sel_1_0 FOR sy-subrc.
SELECT-OPTIONS sel_1_1 FOR sy-repid.
SELECTION-SCREEN END OF BLOCK block_1.
INITIALIZATION.
Define the option list
ALL: All options allowed
MOVE 'ALL' TO opt_list-name.
MOVE 'X' TO: opt_list-options-bt,
opt_list-options-cp,
opt_list-options-eq,
opt_list-options-ge,
opt_list-options-gt,
opt_list-options-le,
opt_list-options-lt,
opt_list-options-nb,
opt_list-options-ne,
opt_list-options-np.
APPEND opt_list TO restrict-opt_list_tab.
NOPATTERN: CP and NP not allowed
CLEAR opt_list.
MOVE 'NOPATTERN' TO opt_list-name.
MOVE 'X' TO: opt_list-options-bt,
opt_list-options-eq,
opt_list-options-ge,
opt_list-options-gt,
opt_list-options-le,
opt_list-options-lt,
opt_list-options-nb,
opt_list-options-ne.
APPEND opt_list TO restrict-opt_list_tab.
NOINTERVLS: BT and NB not allowed
CLEAR opt_list.
MOVE 'NOINTERVLS' TO opt_list-name.
MOVE 'X' TO: opt_list-options-cp,
opt_list-options-eq,
opt_list-options-ge,
opt_list-options-gt,
opt_list-options-le,
opt_list-options-lt,
opt_list-options-ne,
opt_list-options-np.
APPEND opt_list TO restrict-opt_list_tab.
EQ_AND_CP: only EQ and CP allowed
CLEAR opt_list.
MOVE 'EQ_AND_CP' TO opt_list-name.
MOVE 'X' TO: opt_list-options-cp,
opt_list-options-eq.
APPEND opt_list TO restrict-opt_list_tab.
JUST_EQ: Only EQ allowed
CLEAR opt_list.
MOVE 'JUST_EQ' TO opt_list-name.
MOVE 'X' TO opt_list-options-eq.
APPEND opt_list TO restrict-opt_list_tab.
Assign selection screen objects to option list and sign
KIND = 'A': applies to all SELECT-OPTIONS
MOVE: 'A' TO ***-kind,
'*' TO ***-sg_main,
'NOPATTERN' TO ***-op_main,
'NOINTERVLS' TO ***-op_addy.
APPEND *** TO restrict-***_tab.
KIND = 'B': applies to all SELECT-OPTIONS in block BLOCK_0,
that is, SEL_0_0, SEL_0_1, SEL_0_2
CLEAR ***.
MOVE: 'B' TO ***-kind,
'BLOCK_0' TO ***-name,
'I' TO ***-sg_main,
'*' TO ***-sg_addy,
'NOINTERVLS' TO ***-op_main.
APPEND *** TO restrict-***_tab.
KIND = 'S': applies to SELECT-OPTION SEL-0-2
CLEAR ***.
MOVE: 'S' TO ***-kind,
'SEL_0_2' TO ***-name,
'I' TO ***-sg_main,
'*' TO ***-sg_addy,
'EQ_AND_CP' TO ***-op_main,
'ALL' TO ***-op_addy.
APPEND *** TO restrict-***_tab.
KIND = 'S': Applies to SELECT-OPTION SEL_0_3
CLEAR ***.
MOVE: 'S' TO ***-kind,
'SEL_0_3' TO ***-name,
'I' TO ***-sg_main,
'N' TO ***-sg_addy,
'JUST_EQ' TO ***-op_main.
APPEND *** TO restrict-***_tab.
Call function module
CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
EXPORTING
restriction = restrict
DB = ' '
EXCEPTIONS
too_late = 1
repeated = 2
not_during_submit = 3
db_call_after_report_call = 4
selopt_without_options = 5
selopt_without_signs = 6
invalid_sign = 7
report_call_after_db_error = 8
empty_option_list = 9
invalid_kind = 10
repeated_kind_a = 11
OTHERS = 12. -
Multiple Selection not working on List Box Properties/Option Screen
When I select multiple selection on the List Box Properties/Options tab, I get no difference from the single selection default. It still highlights only the last of the multiple entries (like a single selection) and displays only the last entry. Is there something else I need to do?
Thanks for your help.To select multiple items, you need to hold down the Ctrl key when clicking additional items.
-
SELECT-OPTIONS Multiple selection
Hello
I have the following line of code:
SELECT-OPTIONS: p_matnr FOR mara-matnr.
The users would like to use the multiple selection button to paste/upload from the clip board but unable until at least one entry is entered before the multiple selection will work. Is there a way for the multiple selection to work without entering a material?
THANKSHi Gary, Clicking the button shown below bring up the multiple selection screen without requiring a value. Do not add the obligatory keyword on the select-options statement as pointed out by Ramon.
see below: -
How can i display Value in Report which i select from Multiple select list
Dear All,
i am using multiple select List in form with report page.
When i create new Entry with select Multiple value in Multiple Select List then in report Value display me in below format
my SQL Query are
select NAME D, CODE R from COUNTRY_MAS WHERE ACTIVE_FLG ='Y' order by NAME
AS:AI:AG:AM these are return value .i want to display NAME in report .
How can i do this ?
Thanks
Edited by: Vedant on Apr 25, 2012 11:14 PMShort answer, use the apex_util.string_to_table to convert to a table; then you can either iterate through the table to generate a string of names, or accomplish the same with a bulk operation.
http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#CHDFEEJD
Encapsulate all this within a pl/sql function. -
Faster selection of elements in list-boxes...
I've a long listbox and I like to find my values faster by typing the first letter of the search-value and the marker should jump to the first element starting with that letter. How can I do this?
The same problem holds with using the scrolling function of the mouse - how can I activate it?> I've a long listbox and I like to find my values faster by typing the
> first letter of the search-value and the marker should jump to the
> first element starting with that letter. How can I do this?
> The same problem holds with using the scrolling function of the mouse
> - how can I activate it?
This should be on by default.
When the VI is running, or when the panel is in run mode, tab to the
listbox and type ahead. It should move around like you expect. If not,
you can tweak using the Keyboard Mode. Also keep in mind that typeahead
works best when lists are sorted, or almost sorted.
If you want the keyboard there without tabbing, set the Key Focus
property for the listbox to TRUE whenever you want it to be the keyboard
focus.
The menus should
alread type ahead when they have are opened and have a
scrollbar.
Greg McKaskle -
Selected value in dropdown list box
hi forums,
how to capture the selected value in drop down list box and how it will link with the table.
layout:
<htmlb:dropdownListBox id = "d1%>"
nameOfKeyColumn = "vbeln"
nameOfValueColumn = "vbeln"
table = "<%=it_sales%>" />
in dropdown list box,how do i capture the selected values.
OnInitialization:
Select vbeln from vbak
into corresponding fields of table it_sales.
regards,
ravi.hi Ravikiran,
In button even,we r mension the event_type = 'click'.
but in dropdownListBox what is the event_type.
i tryed like this.
DATA : EVENT TYPE REF TO CL_HTMLB_EVENT.
***this is for button************
*event = CL_HTMLB_MANAGER=>get_event( RUNTIME->SERVER->REQUEST ).
*IF event->NAME = 'button' AND event->event_TYPE = 'click'.
DATA : button_event TYPE REF TO CL_HTMLB_EVENT_BUTTON.
button_event ?= event.
*ENDIF.
*********this is for dropdownListBox**********
event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
IF event->name = 'dropdownListBox' AND event- >event_type = 'selection'.
DATA : dd_listbox_event TYPE REF TO CL_HTMLB_EVENT_SELECTION.
dd_listbox_event ?= event.
CASE EVENT->ID.
when 'id1'.
CALL METHOD REQUEST->GET_FORM_FIELD
EXPORTING
NAME = 'id1'
RECEIVING
VALUE = SEL.
WHEN 'myButton'.
CALL METHOD REQUEST->GET_FORM_FIELD
EXPORTING
NAME = 'id1'
RECEIVING
VALUE = SEL.
ENDCASE.
endif.
with regards,
ravi.
Maybe you are looking for
-
I can't upgrade my ZTE Open to 1.2 or 1.1 using their instructions.
I recently bought a ZTE Open off of eBay in the US. I'm currently working on building an app for the phone. I need to upgrade to 1.2 to use the Firefox emulator that comes with FF nightlies now and test out this app on a real device. It's currently r
-
Saving a PDF file when printing is not supported.
Hi Guys, I upgrade from leopard to snow and now I don't have the possibility anymore to to print PDF as a PDF. Before I was going to print and then choose save as a pdf and everything ok. Now after the upgrade to snow every time that I am going to pr
-
Tolerance Limit for GRN.
If I have maintained the upper tolerance limit in PO. And if the PO will have no open items, then system will allow to make the GRN of extra quantity(within this tolerance limit). Is there any configuration for this?
-
Pixelated pictures in Photos v.1.0 in OS 10.10.3
After upgrading from 10.10.2 to Mac OS 10.10.3, on my wife's iMac, and thereby gaining Photos v.1.0, I find that a small, but significant, number of pictures are pixellated. If I click "Edit"on an individual picture and then "Done" the pixellation
-
i plan to add online camera to my website. in website, it should be able to display live image that capture by camera. previously i used axis camera which was an old camera. below are the following code i used. function video() { document.write("<OBJ