Select List multiple values

All,
I am in urgent need of this requirement referencing/copying all selected multiple values in select List and putting them into text item/text-area separated by ","/comma delimiter.....any help
appreciated.
example:
select list
=======
aaaa
bbbb (selected)
cccc
dddd(selected)
ffffff
copied is:
bbbb, dddd

No worries, I've found a way.
You need to create a pl-sql function that generates the necessary HTML code that will render the select list using the selected="selected" attribute when the option value is selected.
This is an example of the expected HTML code for a multiple selection list:
<select name="favoritefood" id="favoritefood" multiple=true; size=4;>
<option value=1>Cheese</option>
<option value=2 selected="selected">Egg</option>
<option value=3>Cabbage</option>
<option value=4 selected="selected">Ham</option>
</select>
I created this function in order to find the matches within the saved code and the option value. And then include the selected="selected" string in the returned HTML code.
Finally, I'm using this function in the SQL query that generates a tabular report and I changed the column Display Attribute to "Standard Report Column". Then the report instead of showing the HTML code, will render it to a HTML item.
Regards
Edited by: user9982480 on Jul 30, 2012 8:32 AM
Edited by: user9982480 on Jul 30, 2012 8:33 AM
Edited by: user9982480 on Jul 30, 2012 8:34 AM

Similar Messages

  • 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

  • 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-To populate SELECT LIST default value from SQL Query

    OK, I've done my homework, and did not find my answer in the Forum, so here it is.
    I have a Page that displays fields from a SQL Query. The Page also has below that radiogroups, checkboxes, and Select Lists to allow the user to change values in the fields that are displayed at the top of the Region. I am able to pre-populate the radiogroups and checkboxes by performing a SELECT in the 'Source value or expression' of the Source area of the Page Item.
    However, I am unable to do the same for the Select List fields. Their default value ends up being the first value in the LOV ('-- None --' for NULL values). Source Used: Only when current value in session state is null. Source Type: SQL Query. Also, when I first go into the Page when running it, and check the Session State values, they are all null, so I don't understand why the field is not populated by the SQL Query statement as the radiogroups and checkboxes are.
    Any suggestions??? I've tried all sorts of combinations.

    Thank you for the suggestion.
    I had considered that, but cannot do so, because we are using Oracle Application Express more for development than for data containment.
    We have all our data in an Oracle 10.g DB which is separate from the OAEX server, and the OAEX app will reference that data via VIEWs and DB LINKs. We are doing so primarily as an added data security layer, where the data is housed separate from the app, in case the Web site is ever compromised. The data that can be viewed is restricted to a subset of the actual data that is available.
    Since the data is on a separate server, (I assume) we will not be able to set the source type to Database column, because (I asume) that is dependent upon the data being housed by the OAEX server.
    That still leaves me with having to populate the field with a SELECT statement from the Oracle DB. This unfortuneately is almost a show-stopper for me because of down-stream processing data requirements. Have not been able to come up with contingencies yet.

  • Dynamic Select List Allowed Values

    Howdy Folks,
    I am trying to allow end users to select their username. The usernames are generated from a rule library, and displayed in a select form element. I am doing this by having the allowedValues call the rule that generates the possible names directly. The rule returns a list of valid names. The problem I am currently having, is that if the page reloads or refreshes, then the allowedValues calls the rule again. Some of the username choices involve random numbers, so it is possible (and very likely), that separate calls to the rule will generate different potential values. So what is now happening, is that when a user selects the value, the page reloads, and the end user sees an error that looks like this:
    ( ) - Warning: Selected value for field 'Select a Valid User Name' does not match any of the allowed values.
    The reason I am reloading the page, is that I am also trying to show the user what their email address will look like with the new value. So I have a different form element that is loading is value dynamically, and referencing the select form element. This mostly works, but the warning above is unacceptable.
    Is there a way I can load the dynamically created list only once, the first time the form is viewed, and not load it again every time the page refreshes?
    Another thing I tried to do (but didn't have luck with, so I sorta gave up on it) was to use the onChange of the select to change the value of email display field. This way the page never reloads and I don't have to deal with that issue. I'm thinking the onChange might actually work, but I would need to execute javascript or something, and not just use an express <set/> command to set the value of the field name that displays the email text.
    Does anyone have advice on how to make the values only load once? Or how to change the value on the onChange event?
    Thanks!
    Jim

    Mike,
    Thanks for the feedback. I actually did try that eventually. I created a variable in the form, and initialized that variable to the list of possible values. Then I referenced the variable in the 'allowedValues' of the select form item. At that point in time I still had the select box set as an action, so it would reload the page, hoping to reload the value in the email display field. This still did not work. Each time the action fired off, the variable was re-initializing itself. I eventually tried to put in a check, so it would not re-initialize itself if it had already been initialized. That caused a syslog error.
    I ended up solving the problem using javascript. I changed the field that reported the potential email address to an html element. Then for the html attribute I made a div with an ID. I then set a line of javascript into the onChange attribute of the select form element. This worked when ever the select form value changed. I then added the same line of javascript to the onLoad attribute of the jsp pages body element. This worked for loading the page.
    This solved the problem of the page reloading and the select getting new values. That still happens if you actually reload the page, but all the form elements work without the reload now.
    Thanks!
    Jim

  • Select list display value in javascript function

    Hi All,
    I have a select list in a tabular form having a display value & return value.
    I am using $x(var_name).value or $v(var_name) for retreving return value of the select list in a javascript function.
    Can anyone let me know how can I get the display value of the select list in a javascript function? Im using Apex 3.2
    Thanks & Regards,
    Sandeep

    What if the select list is not an item. Select list I am talking about is in a tabular form.Regardless of how they're generated in APEX, in JavaScript they're all DOM nodes. There are many ways of accessing the node of the required element. Consider the Items for Order... tabular form on page 29 of the Sample Application:
    var productNameLOV = document.wwv_flow.f04[0] // select list containing name of product on first order line
    var productNameLOV = $x("f04_0001") // another way of accessing the same node, using the ID attribute generated by apex_itemWe can see this using the Safari console:
    => productNameLOV = document.wwv_flow.f04[0]
        <select name="f04" id="f04_0001" autocomplete="off">…</select>
    => productNameLOV = $x("f04_0001")
        <select name="f04" id="f04_0001" autocomplete="off">…</select>Once you've got the node&mdash;however you get it&mdash;you then use the methods shown above:
    => i = productNameLOV.selectedIndex
        3
    => productNameLOV.options.text
    "Business Shirt [$50]"
    So it appears you would use:var item = document.wwv_flow.f01[i];
    var selected = item.selectedIndex;
    var selectedOption = item.options[selected].text;
    This is meaningless:...
    var my_var = document.wwv_flow.f01[i].id; // f01 is tabular column of select list
    if ($x(my_var) == 'display_value') //$x(my_var) is having return value, but i need display_value there
    <tt>$x(my_var)</tt> returns a DOM node object, whilst <tt>'display_value'</tt> is a string: they are not comparable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • SELECT LIST - with values after have values in other Select List

    My friends.
    I need a select list that is self - complemented, after being selected a value in another select list above.
    Can you help?
    pesquisar

    Good afternoon,
    Try this for the definition of your select list:
    select emp.emp_name as display_column,
           emp.emp_id as return_column
      from employees emp
    where emp.department = :P1_DEPT_NO
    order by emp.emp_name;This will look at the select_list called :P1_DEPT_NO, capture the value that is currently selected and then populate the EMPLOYEE select list based on the results. Just use a query like this as the one that defines your second select list.
    This seems to be a popular question. Search this forum for other information.
    Don.
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! :)

  • Select list null value issue - for filtering the tabular form report

    hello,
    I have a tabular form created on emp table and in the table their are entries for the employees who don't have a location, like it is null for some of the employees.
    Now I have created a select list item - for filtering the results based on location.
    my select query for select list item is
    select distinct location_name d,location_id r from emp order by 1
    -- so my select list contains all the distinct location_name including the null on my tabular form.
    so based on the selelcted value(in the select list), I am able to filter the results in my tabular form.
    but the thing is that when i try to select an null value from my select list - i am not able to filter my report - like its displaying all the records, its not filtering.
    can anyone help me out with this.
    thanks.

    Hi
    Try below select for LOV
    select distinct nvl(location_name,'No Location') d,nvl(location_name,'No Location') r from emp order by 1 And then change tabular from select where clause also use nvl(location_name,'No Location') like
    SELECT *
    FROM emp
    WHERE nvl(location_name,'No Location') = :Px_YOUR_ITEMBr, Jari

  • Select list return value displayed in another item

    The subject pretty much defines it. I have 3 items on a page select list, displays as text (based on LOV), and a text box. My idea is to display a control number in the select list. When the user selects the number that they want I would like the return value to fill in the displayed as text item. Then user can then use the text box to update that information.
    My question is how do I get the return value to display on the users selection?
    Thanks,
    Derek

    Try to compute that item.
    Denes Kubicek

  • Select List Default Value

    I have wondered about this for a while but haven't found an answer, maybe because I haven't searched for the right thing.
    With a select list, is there a straightforward way to specify the first item on the list for the default value?
    What is the best way to handle a case where the query providing the list of values may take a while to complete? I don't want to double the setup time by repeating the query just for the sake of finding the first item.

    Yes, it is. I am never using default values but computations. Default value will be set only after page submittion and not on load. A computation will set the item session state on load. Usually, you use some kind of condition for the computations to set the value of the item to something only if the item value is NULL. One of the reasons is also that the computations are visible in the page property and default values are hidden within the item properties.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Select List Display Value

    Hello All,
    Does anyone know how to make a Select List ReadOnly and display the Display Value not the Return Value when modifying the data? I have made the Select List a Text Field, Text Area, etc.. but then the Return Value is diplayed and not the Display Value. I do not want my end-users to modify the Item but I do want to show them the Display Value. Any ideas and help is appreciated, thanks.

    Hi,
    I kept getting the [] no matter what I did.
    Just realised, though, that the styling would hide valid values as well. D'oh!
    I've been testing something here: [http://apex.oracle.com/pls/otn/f?p=33642:9] Click on a link for an employee on the right to see the data on the left - try ones with and without an entry in the MGR column.
    Originally, P9_MGR was a normal select list, but I have now set it to "Hidden and Protected" and immediately followed it with a new "Display as Text (does not save state") item called P9_MGR_DISPLAY.
    The source of this new item is a SQL query of:
    SELECT NVL(MIN(ENAME),'Unselected')
    FROM EMP
    WHERE EMPNO = :P9_MGRThis will either return an ENAME value if one exists for P9_MGR or 'Unselected'
    Andy

  • Select list -null value?

    When you create a select list on a column, and run the page for the first time, the drop down doesn't show any value. I realized that once you click on the drop down to see what the values are, at the bottom of the list there is a blank value. But you can only see this the first time you load the page. Once you click on any other value, that blank value is gone. How does this work? How can I select the blank value even after you had selected other values previously?
    Thanks,

    Modify the Item Definition's List of Values options (Edit Page Item->LOV)
    Display Null: Yes
    Null Display Value:  

  • Select lists - remember values after submit not working in IE7

    I have two dynamic select lists that are populated using .csv
    files.
    On submit, a set of results is returned based on the two
    options that were chosen.
    In IE7 when the results are returned the select lists default
    back to the last option in the select list. I would like it to
    default to what ever option was just chosen.
    I'm using the code below and it works as I would like it to
    in both Firefox and Safari, but just defaults to the last option in
    the list for IE7.
    The variable "actualLitType" is pulled from the URL and
    should be part of the id of the selected option.
    Any ideas why it doesn't work like I would like it to in IE7?
    Thanks in advance,
    Jesse

    I posted this in another forum and received an answer that
    fixed the issue. See the link below for more information:
    http://www.dynamicdrive.com/forums/showthread.php?t=35473

  • Popup to select the multiple values

    hi ,
    i have one input field called PROTOCAL CAT.
    If the user chooses one the PROTOCAL CAL from help ex : 103. the 103 will be linked to many PROTOCALS ex 5 protocals.
    21, 22, 23,24,25.
    i have created a button called ADD. When the user click on the Button ADD he should get a screen with those 5 values displayed above ex: 21,22,23,24,25.
    if it is displayed then the user will select one of those values or all of them according to his/her requirment.
    my concern is am able to fetch the data but not able to display via a screen so that user can select.
    if anyone can come up with an info will be much appriciated.
    thank you,
    pasala.

    THANK YOU ALL ITS SORTED WITH ONE OF YOUR SDN SOLUTIONS...THANKS GUYS FOR GREAT WORK.

  • Select List Conditional Value

    Hi,
    I have a seleclist which have two options (included) and (not included). I wrote something like this.
    if('P2_SELECT'=="included"){
    a=0;
    else{
    a=1;
    Is this correct?

    What did you write this in? PL/SQL or Javascript?
    If javascript, it should be:
    <script language = "javascript">
    if($x('P2_SELECT').value=="included")
    a=0; 
    else{
    a=1;
    </script>If PL/SQL, it should look something like:
    DECLARE
    BEGIN
    IF :P2_SELECT = "included" THEN
      a = 0;
    ELSE
      a = 1;
    END IF
    END;

Maybe you are looking for

  • Searching 'Title' and 'Caption' metadata

    I've searched a bit on this and am not getting anywhere. The issue I am having is when I apply content to the Title and Caption fields of metadata, they are not searcheable. Meaning, when I use the 'Find' section on the sidebar, it doesn't locate ima

  • ICloud Control Panel

    Hi, So I have used the MobileMe and iCloud control panels on a number of windows machines in my life and have previously been very happy with the service syncing all my bookmarks. However 3 months ago I change jobs and so have a new PC. Its a 64-bit

  • Can we specify frontend host at web app level?

    Hi, We previously specified the frontend host in cluster settings. (same for all web apps) Now we want two (portal) web applications deployed in the same cluster to have two different frontend host settings. Is it possible? Thanks, Mehmet

  • Increase PDF print size

    Hi guys, We are facing an issue when printing a report in PDF. If the size of the PDF file is > 1 MB then pdf is not generated, is there a way to fix this issue, is there any parameters available to set in instance/NQSConfig files. Thanks for the hel

  • Workflow to show package contents

    I have 190 'incremental backup packages' created by Apple's Backup software. I need to search within those packages for all files with a certain file extension, but it's a fairly laborious process to open each one: 1. Right-click each and 'show packa