Can I create  a multi-selection list using a dynamic list of values?

I'm reading section 19.7.3 from the dev guide - it explains how to create a selectOneListbox using a dynamic list of values. Is it possible to create a multi-select listbox from a dynamic list of values?
What I would like to do - I have a read-only view object with a hard-coded query - I would like to display the results of the query in a dropdown list box, or dropdown list box with boolean checkboxes, to allow the user to select multiple items from the list. How can I accomplish this?
thanks

Hi JavaX,
I don't know of any JSF components (at least not any ADF Faces components) that lets you do multiple selection in a drop-down. There is an af:selectManyListbox, but it does not render as a drop-down.
John

Similar Messages

  • 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 Chhatbar

    Hi 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

  • How create temporary table from list of values

    Can you anybody advise me how can I create temporary table from list of values? I have list of values and need create temporary table for next use with command JOIN etc.
    Thank you for help

    NO, you can not create temporary table in oracle on the fly ( Like #Tabels in SQl Server or Sybase ) , you will have to use the GTT i.e Global Temporary Tables
    check the following link GTT :
    to flush the tables after commit
    CREATE GLOBAL TEMPORARY TABLE my_temp_table (
      column1  NUMBER,
      column2  NUMBER
    ) ON COMMIT DELETE ROWS;In contrast, the ON COMMIT PRESERVE ROWS clause indicates that rows should be preserved until the end of the session.
    so to keep rows in Table after commit
    CREATE GLOBAL TEMPORARY TABLE my_temp_table (
      column1  NUMBER,
      column2  NUMBER
    ) ON COMMIT PRESERVE ROWS;

  • How Do I Filter a Report Using a Multi Select List Box and Specifying Date Between Begin Date and End Date

    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)

  • Using Multi Select List in SQL Query

    Hi all,
    I am trying to using a Multi Select list for filtering of a report. I have :P2_RISK_SEVERITY which has has the possibility of values Very Low:Low:Medium:High:Very High. How do I use this Multi Select in the where section of a SQL query?
    I need to say something along the lines of:
    Select RISK_SEVERITY from TBL_RMD_RISKS where RISK_SEVERITY = (one of the options selected in the multi select)
    Thanks for the help.

    Hi there,
    The above suggestion will work perfectly as long as the table you're querying is relatively small, but keep in mind that applying the INSTR to the left side of the WHERE clause will always result in a full table scan. This means that if your table is large and RISK_SEVERITY is indexed, the index will never be used. Here is another approach (credit to AskTom) that converts your colon-delimited string of selected values to a list that can be used in an "IN(...)" clause, which will use an index on RISK_SEVERITY as long as the optimizer otherwise deems it appropriate:
    -- creates a type to hold a list of varchars
    CREATE OR REPLACE TYPE vc2_list_type as table of varchar2(4000);
    -- converts a colon-delimited string of values to a list of varchars
    CREATE OR REPLACE FUNCTION vc2_list(p_string in varchar2)
       return vc2_list_type is
       l_string       long default p_string || ':';
       l_data         vc2_list_type := vc2_list_type();
       n              pls_integer;
    begin
       loop
          exit when l_string is null;
          n := instr(l_string, ':');
          l_data.extend;
          l_data(l_data.count) := ltrim(rtrim(substr(l_string, 1, n - 1)));
          l_string := substr(l_string, n + 1);
       end loop;
       return l_data;
    end vc2_list;
    -- your WHERE clause
    where risk_severity in(
             select *
               from the(select cast(vc2_list(:P2_RISK_SEVERITY) as vc2_list_type)
                          from dual))
    ...Hope this helps,
    John

  • How to create a multi column list item and select these values from a LOV

    Hi all,
    My requirements are:
    1) create an LOV which holds the productno, productname and productprice fields (this is working)
    2) at run time, select one record from LOV and populate the list/grid with this selected record values of productno, productname and productprice fields, so we are showing them on the form in the form of a table/grid (not working)
    3) be able to select multiple records from LOV and be able to populate the list item with multiple records (not working)
    4) have two more columns in the list/grid, for productquatity and total price (not wokring)
    Please help me.
    how can i create this grid or list in oracle
    whats the possible way of acheiving this in oracle

    If you use a list item to display multiple columns then you'll need to use a fixed-width font. You can achieve a similar look with proportional fonts by using a normal block and setting the fields' bevel to 'None'.
    Each column in the LOV has a Return Item property (under Column Mapping Properties). Set this to a :block.item reference for each column to bring the data back into those referenced fields.
    You can't select multiple records from an LOV. For this you will need to create your own form. Check the help for system.mouse_button_modifiers to see how to respond to Ctrl+click and Shift+click.
    To add columns just modify the LOV's record group's query.

  • Populate multi select list  in on demand application process

    Hi all,
    To populate a multi select list we use this code:
    DECLARE
    l_counter number;
    l_o_name varchar2(2000);
    l_val varchar2(100);
    BEGIN
    l_val := wwv_flow.g_x01;
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<select>');
    FOR rec IN (
    SELECT DISTINCT DECODE(districtscode,NULL,'- Onbekend -',districtscode) as "NAME"
    , DECODE(districtscode,NULL,'-2',districtscode)as "ID"
    FROM table
    WHERE (UPPER(dienstcode) =(l_val)
    or l_val = '-1')
    and objectsubcategorie_id in (select objectsubcategorie_id from table where ind_actief = 'J')
    and ind_uitgesloten is null
    UNION
    SELECT '- Alle districten -', '-1'
    FROM DUAL
    ORDER BY 1
    LOOP
    htp.prn('<option value="' || rec.ID || '">' || rec.NAME
    || '</option>');
    END LOOP;
    htp.prn('</select>');
    END;
    However: L_val is determined by a multiselect list. So, L_id can be: 'A:B:C'. I can convert the value of l_id to 'A','B','C' (with eg replace function). However in a where clause one cannot say: WHERE UPPER(dienstcode) in l_val. So I created a refcursor which I put in a pl/qsl table. Then I looped through the pl/sql table.
    Somehow this did not have the same results. Eventhough the refcursor gave back the same data which I tested by logging the values of the pl/sql table just before the htp.prn command, the htp.prn did not return the values.
    Does anyone know why this happens? Is there a difference between the for loop in this code and looping through a self defined pl/sql table?
    Thanks in advance
    Maurice

    Please, anybody could help me with this?
    Thank you!

  • Multi-select list to select with in clause

    I have a multi-select list that the user can select from. P200_NODE_SELECTION.
    I take the value(s) of that list and parse them out in a process using this code:
    declare
    l_selected HTMLDB_APPLICATION_GLOBAL.VC_ARR2;
    v_char varchar2(2000);
    begin
    l_selected:=HTMLDB_UTIL.STRING_TO_TABLE(to_char(:P200_NODE_SELECTION) );
    for i in 1..l_selected.count
    loop
    if i=1
    then
    :P200_LIST_OF_NODES:=to_char(l_selected(i) );
    else
    :P200_LIST_OF_NODES:=to_char(:P200_LIST_OF_NODES)||','||to_char(l_selected(i) );
    end if;
    end loop;
    end;
    This PL/SQL is trying to create the in-list string to be used in as the LOV to populate another select list. The LOV query for the second multi-select list looks like this:
    select instance_name DISP, instance_id RET
    from instance
    where to_char(node_id) in (:P200_LIST_OF_NODES)
    I've tried this a couple of different ways. Without the to_char in the where clause (a terrible thing to do to a query I know) I get a numeric conversion error.
    When I do it with the to_char, it works if I select one record in the multi-select list, but if there are more than one then the in list fails.
    I'm sure there must be a better way to do this (or at least a way that works!).... anyone want to help me here?

    Robert - Try  where instr(','||:P200_LIST_OF_NODES||',',','||to_char(node_id)||',') > 0...and do get rid of all those to_chars in the process.
    Scott

  • Pass values fromSharePoint list multi-selection list box to Infopath Multi-selection list box and back

    Design overview:
    List A
    InfoPath Library - Form A
    SharePoint Designer workflow
    List A has a multi-selection column with multi-values.
    Form A has fields populated from the data in List A by using a data connection in the form.  I have a workflow that updates the values or creates a new item in List A. All fields work except the mufti-selection. The multi-selection has ;# separating
    the values and I am having trouble setting the list box properly(checking of the selecting values) instead it concats all values on one line. I basically need to get the multi-selection column from list 1  to show exactly in the Form A and be able to
    update the selection with the workflow. I can do this with single values with no problem. the multi-selection list is difficult. I read somewhere I can use a repeating table but I am not sure the workflow will work with that. That is only a read and not 
    a write.

    Wow over my head a little. I understand what an array is with script but not how to write the script to handle it. I made this:
    event.value = getField("LISTBOX").value;
    But still no change in the behavior with multi selections. Example below if you want to check it out.
    https://dl.dropboxusercontent.com/u/2944617/formtext2.pdf

  • Implementing multi-select lists in Oracle Forms

    Can anyone of you please tell me how to do multi select list in forms. I used picklist.fmb from oracle demo forms but it is not working fine. If someone could provide a working form I will be grateful to them.
    My mail id is [email protected]

    Some years ago I wrote (using Forms6i) utility MSLOV for such purposes, and even wrote an article about using it, but, of course, in Russian :-)
    I successfully use it in my Web Forms6i project and also test it in C-S Forms6i and Forms9i.
    If someone interesting, I also have short english usage description.
    It will be nice to hear your comments.
    At first, you need a code, which can be downloaded from http://www.geocities.com/luzanovp/mslov.html
    At the end of article there is a link to mslov.zip. Get it.
    Compile MSLOV.fmb and MSLOV.pll
    Run demo forms: EMP_DEMO.fmb, ORD_DEMO.fmb and see how it works.
    It requires Scott's tables: emp, dept, ord, item, product. You can create these tables from demobld.sql
    Below description about how to use it.
    You can show to user only one column, actually it can be expression (so, you
    are not limited here to one database column only ).
    Specify this column/expression by label_in parameter to fp_mslov.show_lov
    For example, if EMP table contains first_name and last_name columns and
    you want to show to the user full name do this:
    IF fp_mslov.show_lov (
       label_in => 'first_name || '' '' || last_name',
    Parameter id_in - this is what will be returned to you as a developer after user
    made his choice.
    For example, you want to receive array of EMPNO:
    IF fp_mslov.show_lov (
       label_in => 'first_name || '' '' || last_name',
       id_in => 'empno'
    In some cases you need to return more that one column.
    You can specify up to five additional columns for such purposes.
    For example, you want to return not only EMPNO, but also SAL and COMM columns:
    IF fp_mslov.show_lov (
       label_in => 'first_name || '' '' || last_name',
       id_in => 'empno',
       col1_in => 'sal',
       col2_in => 'comm'
    Also, you can use expressions in place of these columns:
       col3_in => 'sal + NVL(comm, 0)'
    From which table we must query?
    How to order by or specify some conditions(Where clause)?
    Where the place for GROUP BY?
    For all these questions you must use from_clause_in parameter.
    In our example we will query emp table and want order by salary in descending
    order:
    IF fp_mslov.show_lov (
       from_clause_in => 'FROM emp ORDER BY sal DESC',
    Parameter title_in to fp_mslov.show_lov is a self documented.
    This is a title for MSLOV dialog.
    So, to invoke mslov utility, we construct such call:
    IF fp_mslov.show_lov (
       label_in => 'first_name || '' '' || last_name',
       id_in => 'empno',
       col1_in => 'sal',
       col2_in => 'comm'
       col3_in => 'sal + NVL(comm, 0)',
       from_clause_in => 'FROM emp ORDER BY sal DESC',
       title_in => 'Select employees'
    THEN
    This function fp_mslov.show_lov will return TRUE if user made selection and
    FALSE if user press CANCEL (similar to SHOW_LOV builtin).
    Now, if it return TRUE we need to process returned rows (selected by user).
    I store it in global record group.
    But to work with this record group, you can use fp_mslov package, which
    provide desired API for this purpose.
    At first, you need to declare a variable of FP_MSLOV.OUT_RECORD_TYPE type.
    Actually this is a record type declared in fp_mslov package specification.
    DECLARE
       returned_rec  FP_MSLOV.OUT_RECORD_TYPE;
    To process selected rows we need a loop from 1 to a number of selected rows.
    Such number can be received by fp_mslov.rowcount function:
    FOR i IN 1 .. fp_mslov.rowcount
    LOOP
    END LOOP;
    To return one row we can use fp_mslov.get_row function.
    FOR i IN 1 .. fp_mslov.rowcount
    LOOP
       returned_rec := fp_mslov.get_row(i);
    END LOOP;
    Now, you can do what you want with returned row.
    RETURNED_REC record has the following fields which correspond to parameters of
    the
    fp_mslov.show_lov function: id, col1, col2, col3, col4, col5
    You know that in id field will be empno column, in col1 -> sal, etc
    So, you can process them:
    FOR i IN 1 .. fp_mslov.rowcount
    LOOP
       returned_rec := fp_mslov.get_row(i);
       message('Empno: ' || returned_rec.id);
       message('Sal: ' || returned_rec.col1);
       message('Comm: ' || returned_rec.col2);
       message('Sal+Comm: ' || returned_rec.col3);
    END LOOP;
    Remember that returned values always are varchar2 values.
    So if you need, for example, a date you need explicitly convert it to char when
    invoking
    fp_mslov.show_lov and then (after fp_mslov.get_row) convert it to date with the
    same format mask.
    For example:
       IF fp_mslov.show_lov (
          col4_in => 'TO_CHAR(hiredate, ''DD.MM.YYYY HH24:MI:SS'')',
       ... TO_DATE(returned_rec.col4, 'DD.MM.YYYY HH24:MI:SS');
    To clear memory structures which used by global record group and others
    variables,
    you need to use fp_mslov.clear procedure.
    And now all together:
    DECLARE
       returned_rec  FP_MSLOV.OUT_RECORD_TYPE;
    BEGIN
       IF fp_mslov.show_lov (
          label_in => 'first_name || '' '' || last_name',
          id_in => 'empno',
          col1_in => 'sal',
          col2_in => 'comm'
          col3_in => 'sal + NVL(comm, 0)',
          from_clause_in => 'FROM emp ORDER BY sal DESC',
          title_in => 'Select employees'
       THEN
          FOR i IN 1 .. fp_mslov.rowcount
          LOOP
             returned_rec := fp_mslov.get_row(i);
             message('Empno: ' || returned_rec.id);
             message('Sal: ' || returned_rec.col1);
             message('Comm: ' || returned_rec.col2);
             message('Sal+Comm: ' || returned_rec.col3);
          END LOOP;
       ELSE
          NULL; -- User press Cancel
       END IF;
       fp_mslov.clear;
    END;

  • How to create a multi select drop down filed in crm 7.0

    Hi All,
            I need to create a multi select drop down field in crm web ui where one field have 7 value and we can select more than one value at a time.I have no idea how to create a multi select drop down field in web ui.
    Please help.....

    Hi vishwas
    Please follow the thread where a similar requirement was posted.
    Re: Drop-down list box / pick-list with multiple selections at a time
    Here the suggestions say that a workaround could be to associate a table view to the field.
    Regards,
    Nisha

  • Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.

    hi all
    i have a table that name is:
    TiketsHeader 
    but i used this code
    SELECT TicketsHeaderId, Active, TH.PersonRef,P.Fname + ' ' + P.Lname AS NF, Serial, TicketsCnt, StartSerial, EndSerial, KindDate, StratDate, EndDate,
    MonthsRef1,(SELECT * FROM dbo.Months M WHERE M.MonthsId= MonthsRef1 ) AS MonthsName1 , MonthsRef2, MonthsRef3, WeekDaysRef,
    PoolTimesRef, TH.Descreption
    FROM dbo.TiketsHeader TH
    INNER JOIN Person P ON P.PersonId= TH.PersonRef
    i see this error:
    Msg 116, Level 16, State 1, Line 2
    Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.
    how to solve it
    please help me
    Name of Allah, Most Gracious, Most Merciful and He created the human

    SELECT TicketsHeaderId, Active, TH.PersonRef,P.Fname + ' ' + P.Lname AS NF, Serial, TicketsCnt, StartSerial, EndSerial, KindDate, StratDate, EndDate,
    MonthsRef1,(SELECT * FROM dbo.Months M WHERE M.MonthsId= MonthsRef1 ) AS MonthsName1 , MonthsRef2, MonthsRef3, WeekDaysRef,
    PoolTimesRef, TH.Descreption
    FROM dbo.TiketsHeader TH
    INNER JOIN Person P ON P.PersonId= TH.PersonRef
    A Sub query like this can only return one column, not serveral like here with the star *. Replace the star by one column Name that you want to query.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Can't create a Content Type List Item on Visual Studio 2010

    Can't create a Content
    Type List Item on Visual Studio 2010

    Hi,
    According to your description, my understanding is that you want to select the specific content type in new item form.
    This is a default behavior. The "Add new item" link uses the default content type and does not display a dropdown list to change that value. This behavior is hard coded into the control and can't be changed.
    Here are some similar threads for your reference:
    https://social.technet.microsoft.com/Forums/en-US/de60f2a1-df91-4a67-a606-02a593c977b4/choose-a-content-type-when-creating-a-new-list-item?forum=sharepointcustomizationlegacy
    http://sharepoint.stackexchange.com/questions/13281/content-type-field-missing-from-new-form
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • How to make multi select list as dropdown??

    Hi friends,
    using apex 4.0
    i want to make multi select list as dropdown,how can i do this??
    thanks in advance.. :)

    mn123 wrote:
    using apex 4.0You MUST include the following information with every question:
    <li>Full APEX version
    <li>Full DB version and edition
    <li>Web server architecture (EPG, OHS or APEX listener)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s)
    This cuts down on the need for a lot of follow-up questions or second-guessing. Appropriate solutions may differ according to any of these variables.
    i want to make multi select list as dropdown,how can i do this??Please define exactly what you mean by "multi select list" and "dropdown".
    Do you mean displaying a multi-select enabled select list as a drop-down list rather than as a list box? If so, this is not possible using standard APEX/web browser controls.

  • Reporting on a Multi-Select list field X:Y:Z

    I'm sure someone must have come across this problem but I can't find a reference to it on the forum.
    PROBLEM
    I have a data entry form with multi-select lists. Users choose a number of display values and the return values are stored in the field in the format
    20:30:50
    When I create an SQL report on a row, there is no option to Display the column as a "multi-select list" like there is with a standard List of Values.
    How do I report the display lookup values rather than the return code?
    Is it possible to display the selected values in a report for example
    red
    orange JOHN 10-JAN-07
    green
    red
    orange MARY 12-FEB-07
    orange
    green MARK 13-JUL-07
    regards
    Paul P

    Paul,
    I have several examples on this topic:
    http://htmldb.oracle.com/pls/otn/f?p=31517:87
    http://htmldb.oracle.com/pls/otn/f?p=31517:84
    http://htmldb.oracle.com/pls/otn/f?p=31517:75
    Basically, you will need to create a table out of your colon separated values and then
    join this table with other tables to be able to display it however you want.
    What just comes to my mind is that Dietmar presented a nice workarround for a similar
    problem here:
    Nested report howto?
    Denes Kubicek

Maybe you are looking for

  • LoadJava Privilege Error

    While loading a .jar using loadjava in Oracle 8.1.5 I had this error on all the classes within the jar. Does anyone know what the problem is ? Error while creating class javax/mail/internet/NewsAddress ORA-01031: insufficient privileges Error while c

  • Adobe flash player and run swf

    I creat a swf file with software demo builder version 9. but when run it with flash player version 11.8.800.94, flash player dosen't have any toolbar in below for move forward and move back video.but other swf file that creat with version 8 demo buil

  • Direct Database Request Aggregation Rule

    How can I do aggregations on a report created with a direct database request? While I can set the default aggregation rule in the fx formula, the aggregate E sign does not appear in the table view. How do I actually get to do a summation of the colum

  • Getting error please help

    1747 : 42000 : java.sql.SQLException: ORA-01747: invalid user.table.column, table.column, or column specification java.sql.SQLException: ORA-01747: invalid user.table.column, table.column, or column specification      at oracle.jdbc.driver.DatabaseEr

  • Mail Mavericks freeze

    Hello to all! I'm having a problem with my email since I installed the Mavericks. I use the native mail app in OS X, and it always worked perfectly, but now with the Mavericks he started to freeze when I access it twice, go out to do another task and