Multi-Select Box Not Displaying Values Passed From Grid?

Coldfusion 8
I inherited an application and am trying to maintain and improve it... hit a snag today.
I have a multi-select box that is not displaying what I expect.  The values come from a ColdFusion grid which is based off a database query.
Here is the code for the select - does not work - nothing is selected:
<cfselect name="USER_IDS" multiple="true" queryposition="below" selected="USER_IDS" query="ActiveUsersPlus" disabled="#disabled#" value="G_USER_WORK_UNIT_SK" display="G_USER_ID" >
</cfselect>
Now if I change the multiselect to a single select like below - it takes the first item in the field list (from the grid) and selects it in the drop down.
<cfselect name="USER_IDS" multiple="false" queryposition="below" selected="USER_IDS" query="ActiveUsersPlus" disabled="#disabled#" value="G_USER_WORK_UNIT_SK" display="G_USER_ID" >
</cfselect>
Or if I assign a variable like this and use the multi-select code it seems to work as well.
testlist = "22,26";
<cfselect name="USER_IDS" multiple="true" queryposition="below" selected="#testlist#" query="ActiveUsersPlus" disabled="#disabled#" value="G_USER_WORK_UNIT_SK" display="G_USER_ID" >
</cfselect>
I have displayed the value of "User_IDs" in the grid and in the data entry part of the screen to see values of:  22,26
to make sure that wasn't my issue.
Do grids and multiselects require something additional?  Any advice on how to resolve?

Problem was related to some javascript for the select box.  There was a function for a single select box but not a multiple select box - this fixed it: 
if(theForm.elements[i].type == "select-multiple"){
                    var selectBox = theForm.elements[i];
                    var sbname = selectBox.name;
                    cpvalue = String(eval('record.data.' + sbname));
                    var NotifyArray = cpvalue.split(',');
                    for (var j=0; j < selectBox.length; j++) {
                        selectBox[j].selected = false;
                    for (var j=0; j < selectBox.length; j++) {
                        sbvalue = selectBox[j].value;
                        for (var k=0; k < NotifyArray.length; k++){
                            if (sbvalue == NotifyArray[k]){
                                selectBox[j].selected = true;

Similar Messages

  • Result region not displaying values properly from backend table

    HI All,
    We have a search page wherein we have added a new column called grade range in the table as well as in the search region.The new column is mapped to a altogether new column which
    is created in the database table with a default value.The table in the search page has Entity object assosciated with it which is taking care of all the DML operations.
    The name of the newly created item in the serach region is grade range which has three value coming from lookup like 12 ,13 and all,and also the new column
    created in the database table has default value of all.
    When we are trying to query the results in the search page with the filter criteria of any value for grade range, then we are able to see the records in the result table but with the column grade range being null. But When we update any record in the result table , then we are able to see the value for grade range column for updated records after submit.
    And this behaviour of the search page is after the data base refresh. Before that, it was working fine.

    Hi,
    I hope, these two characterstics are from different base cubes. SO you are getting two rows. I hope, it is not possible to display those two rows(what you explained in the example) in a single row. This is very common property of Multi provider. To solve this problem you have to enhance one of DS to include both characterstics and it should feed the data to one cube only. Then you have to built the query directly on that cube.
    With rgds,
    Anil Kumar Sharma .P

  • 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,
    Vikram

    Hello 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

  • Not all values pass from webservice... need help.

    Hello SDN!
    I've got a webservice based on the ABAP function module. This WS imported in my Webdynpro application (NW 7.0).
    Webservice has some input parameters and one table. Structure of that table contain one include and some other fields. If I test this FM in SAP GUI, table contains all fields filled values. But in Web dynpro application after execute this WS only fields belonging to include contains values and other fields has no values although function module return values for all fields.
    Did anybody face with similar issue& How to resolve it?

    Hi!
    This webservice has been successfully tested with another instrument...
    Node structure is follwoing:
    Request_Z_CO_PLN0_ZD_SP_1:
    ....+--- Response_Z_CO_PLN0_ZD_SP_1
    ...........+--- Result_Z_CO_PLN0_ZD_SP_1
    .......................|---- resAttr1
    .......................|---- resAttr2
    .......................|----  resAttr3
    .......................|---- resAttrN
    ....|---- attr1
    ....|---- attr2
    ....|---- attr3
    ....|---- attrN
    where attr1 - attrN are input parameters.
    Here the code:
         wdContext.nodeRequest_Z_CO_PLN0_ZD_SP_1().bind(new Request_Z_CO_PLN0_ZD_SP_1PortType_z_CO_PLN0_ZD_SP_1());
              IPrivateZD.IRequest_Z_CO_PLN0_ZD_SP_1Element elem = wdContext.currentRequest_Z_CO_PLN0_ZD_SP_1Element();
    // fill input parameters
              if( params.getWerks() != null){
                   elem.setWERKS( params.getWerks() );
              ru.sng.phd.models.z_co_pln0_zd_sp_1.Request_Z_CO_PLN0_ZD_SP_1PortType_z_CO_PLN0_ZD_SP_1 modelObj =
                   wdContext.currentRequest_Z_CO_PLN0_ZD_SP_1Element().modelObject();
              modelObj._setUser("user");
              modelObj._setPassword("pwd");
              modelObj.execute();
              wdContext.nodeResponse_Z_CO_PLN0_ZD_SP_1().invalidate();
              wdContext.nodeResult_Z_CO_PLN0_ZD_SP_1().invalidate();

  • How can I validate a multi-select box to have at least 1 option

    How can I validate a multi-select box to have at least 1 option
    selected in struts?

    thanks i will try that other then that if I want to create single drop down list and pass multiple values associated to that drop list value how would i do that....

  • Error msg, "Maximum selection does not contain value 9999999999.

    Hi, I am getting this error wile doing Reclassification of HFM Movement.
    Error msg, "Maximum selection does not contain value 9999999999 of subassignment HFM CD2 & Asset Type "                                         
    in the Data Monitor, ( in Reclass Net Reserve). While running BCF task for a company for period 16/2009     
    Actually, We have converted the consolidation area from XX(2009) to YY(2010).
    Before this task, user has performed the balance carry forward.
    My Analysis is as follows:-
    Method Used in this Reclassification                                         
    RECYX (Reclassify HFM Movement at YE lvl 10)                                        
         TRIGGER                                   
         Items : 100-299, 9900-9999                                   
         HFM Movement Type : O200 to O300                                   
         Posting Level : 10                                   
         TARGET                                   
         Items : 100-299, 9900-9999                                   
         Move : O100C                                   
         Posting Level : 10                                   
         HFM CD2 and Asset type : Ticked                                    
    After TEST run in UCMON, the error message comes :-                                        
    The "HFM CD2 & Asset Type value 9999999999" is not maintained in Breakdown Categories Y500, Y700  etc.                                        
    Breakdown categories in Workbench                                        
    Maintained as "OPTIONAL, Initialized value allowed".                                        
    Single Selection                                         
    1A                                        
    1B                                        
    AR                                        
    GA                                        
    Default Selection                                        
    99999999999                                        
    BCS CUBE                                         
    HFM CD2 & Asset Type - coming blank               
    LOTR                                        
    HFM CD2 & Asset Type - Coming blank     
    Please help to go forward.
    In Anticipation,
    Deepankar Jain

    Thanks a lot Dan for the reply.
    Yes, the single selection is 1A, 1B etc, I agree that including this default value 9999999999 in single selection will resolve this issue, but the BREAK DOWN TYPE is OPTIONAL, that means It will also consider a blank value, right?
    Also, In the method defined for RECLASSIFICATION in workbench, in the TARGET parameters, the" HFM CD2 and Asset Type"  is blank but the "DEFAULT is TICKED" which makes it a mandatory derivation rule.
    Please correct me if I am wrong.
    Your replies on it are highly appreciated.
    Thanks and Regards,
    Deepankar

  • Expiration date not displaying after upgrade from 2007 to 2013

    I recently upgraded from MOSS 2007 to 2013.  I have information management set up on a library of InfoPath forms.  For the forms that were created prior to the upgrade, the expiration date is displaying and actually get updated if I modify them. 
    But none of my forms that have been created after the upgrade, are displaying when the expiration date is, which should be one year from modify date.  If I modify the forms created prior to the upgrade, they reflect the new, update date.
    Are these new forms not getting the policy applied to them, and why not?  I am not sure why the older forms are getting updated, but not my new ones.
    Denise E.

    Hi Denise,
    According to your description, my understanding is that the Expiration date column was not displaying values after upgrading from SharePoint 2007 to SharePoint 2013.
    Per my knowledge, we can only use the date column which is added to the library or list or the Declared Recorded date to set the retention policy, so if the Expiration date is used in the retention policy then the Expiration date should be a column in the
    library or list.
    I recommend to check the retention policy in the library and see which column is used in the retention policy as the image below shows:
    After that, go to the Library settings to find this column.
    Could you please provide screenshots of the retention policy and the columns in the Library settings page?
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Maximum selection does not contain value 600 of subassignment Subitem-error

    Hi All,
    I'm getting the following error when i tried to load the file through data stream.
    Maximum selection does not contain value 600 of subassignment Subitem
    Message no. UCD1038
    Diagnosis
    The posting item 11100100 has breakdown category BR01 for which a maximum selection was maintained for subassignment Subitem. The current posting value, however, is not in this maximum selection.
    System Response
    The posting is not possible.
    Procedure
    Check the maximum selection and the posting.
    I have already refered the earlier threads but its of no use for me. I have checked my setting w.r.t to FS item breakdown category, Max selection in breakdown category and  sub items all the setting are fine, even i applied the OSS notes no-1074599 still i'm facing the same issue.
    Can any one help me with this regards, thanks in advance.
    Regards,
    Magesh

    Hi Dan,
    Yes, breakdown category has been assigned with a sub item category which in turn assigned to subitems and this sub item is a part of the sub item category which is assigned in max. selection.
    Let me know if you want any more information on the same.
    Regards,
    Magesh

  • When i go to attach a photo to email or load it to facebook it will not display any photos from my iphoto library and only allows me load ones that are in photo booth or saved on the desktop. Any ideas?

    when i go to attach a photo to email or load it to facebook it will not display any photos from my iphoto library and only allows me load ones that are in photo booth or saved on the desktop. Any ideas what is wrong?

    when i go to attach a photo to email or load it to facebook it will not display any photos from my iphoto library and only allows me load ones that are in photo booth or saved on the desktop. Any ideas what is wrong?

  • Dynamic Select List not displaying correct value

    Hi there!
    I have a page with a dynamic repeat region.
    As I press one record I get up all the details based on id on an edit page.
    The problem is that the info that is inserted via a Select List is not displaying correct on edit page.
    All the other values are correct, also the values in the repeat region on index page,
    but the value from the Select List on edit page is just displaying the initially selected item.
    Have tried using SELECT DISTINCT in the SQL statement, but no luck.
    Any other ideas?
    Cut and paste from form:
    <select name="Vegtype" class="ProvDet" id="Vegtype" title="<%=(rsAs.Fields.Item("VegType").Value)%>">
                        <option value="Ev" selected="selected">Ev</option>
                        <option value="Fv">Fv</option>
                        <option value="Rv">Rv</option>
                        <option value="Kv">Kv</option>
                      </select>
    Recordset
    <%
    Dim rsAs
    Dim rsAs_cmd
    Dim rsAs_numRows
    Set rsAs_cmd = Server.CreateObject ("ADODB.Command")
    rsAs_cmd.ActiveConnection = MM_LabCon_STRING
    rsAs_cmd.CommandText = "SELECT DISTINCT DatoM, DatoR, DatoU, Distr, FagFelt, Felt, IntNr, Km, KontrNr, Kontrollor, Masse, MasseBK, Punkt, Resept, TestID, UserID, VegHp, VegNavn, VegNr, VegType FROM tblTest WHERE TestID = ?"
    rsAs_cmd.Prepared = true
    rsAs_cmd.Parameters.Append rsAs_cmd.CreateParameter("param1", 5, 1, -1, rsAs__MMColParam) ' adDouble
    Set rsAs = rsAs_cmd.Execute
    rsAs_numRows = 0
    %>
    Regards,
    Christian
    DWCS5 | .Asp | MS Access

    Ok, here goes the top down approach...
    In the HTML header of my page, i have this reference to a js file containing the javascript - <script src="#WORKSPACE_IMAGES#108.js" type="text/javascript"></script>
    Then in an HTML Region I have the following code to create the divs that will be shown and hidden - <div id="divREGION" class="divs">Select region to get list of countries.</div>
    <div id="divCOUNTRY" class="divs">Select country to get list of cities.</div>
    <div id="divCITY" class="divs">Select city and then press "Get Employees". </div>
    Note that these divs contain static content. You may be able to create dynamic content for these divs by creating dynamic query regions and putting div tags around the region (i havent tried this, it may require template modification).
    The select boxes have this code in the "HTML form elements attributes" - onFocus="javascript:showHideDiv(this,true)" onBlur="javascript:showHideDiv(this,false)"
    This onFocus and onBlur call the showHideDiv() function, passing in the object reference of the select box and a true/false to show/hide the related div.
    The actual javascript function that is contained in the 108.js file is:
    function showHideDiv(objThis, inBool){
         var divid = "div" + objThis.id.substring(3);
         if (inBool) {
         ShowDiv(divid);
         else {
    HideDiv(divid);
    That function in turn calls either the ShowDiv() or HideDiv() functions, depending on the true or false, passing in the ID of the div to be changed...
    function ShowDiv(divid){
         eval('document.all'+ '["' + divid + '"]' + '.style' +'.display = "inline"');
    function HideDiv(divid){
         eval('document.all'+ '["' + divid + '"]' + '.style' +'.display = "none"');
    Hope this helps.

  • Hebrew fonts from drop-down box not displaying in text box.

    I am using InDesign CS 5.5 on a Mac 10.8.4.
    When in ID, the fonts I am seeing on the Font dropdown menu when I try to use in a text box are not displaying correctly. They only display as boxes. The fonts are in the Hebrew language. They are properly installed in the FontBook.
    Please help!! Thank you.

    Reema,
    I followed most of your steps. I have a question reg. step 3 ie populating data in node 1.
    Here is my code:
    method WDDOINIT .
    types: begin of zs,
    zktokd type kna1-ktokd,
    end of zs.
    data: handle1 type ref to if_wd_context_node,
    begin of zstruct,
    zktokd type kna1-ktokd,
    end of zstruct,
    zitab type table of zs.
    handle1 = wd_context->get_child_node( name = 'NODE1' ).
    *select ktokd into corresponding fields of zstruct from kna1.
    *append zstruct to zitab.
    *endselect.
    zstruct-zktokd = 'Sold-to party'.
    append zstruct to zitab.
    zstruct-zktokd = 'Goods recipient'.
    append zstruct to zitab.
    zstruct-zktokd = 'Payer'.
    append zstruct to zitab.
    zstruct-zktokd = 'Bill-to party'.
    append zstruct to zitab.
    zstruct-zktokd = 'Prospective Customer'.
    append zstruct to zitab.
    zstruct-zktokd = 'Competitor'.
    append zstruct to zitab.
    zstruct-zktokd = 'Sales partners'.
    append zstruct to zitab.
    zstruct-zktokd = 'Hierarchy Node'.
    append zstruct to zitab.
    zstruct-zktokd = 'Named List of Accounts'.
    append zstruct to zitab.
    zstruct-zktokd = 'Distribution center'.
    append zstruct to zitab.
    zstruct-zktokd = 'Payer'.
    append zstruct to zitab.
    handle1->bind_table( new_items = zitab ).
    endmethod.
    Please let me know if this is the best way to populate the node and then bind the table values from the node to the drop down box.
    Thanks and Regards.

  • Multi-select lists, their return values and showing their display value

    I have a multi select list which is dynamic. The display and return values are pulled from a table where the return value is the Primary Key.
    When people select a few options, the value is stored in session state as 11:12:13 (etc...). From here, I run these numbers through a process which takes a report ID and the multi-select string, and saves individual rows as Report_id, individual multi select value until there are no more multi select values.
    This is great, they're tied in as a foreign key to the LOV lookup table, and they are easily search able.
    I have trouble where I want to list a report's entire multi-select list. I have a function combine the numbers with a : in between them and RTRIM the last one, so I have an identical string to what a multi-select table uses. 11:12:13 (etc..)
    When I assign it to display as an LOV in a report, it just shows the 11:12:13 instead of listing out the values.
    Single number entries, where someone only selected one option in a multi select, display fine.
    Am I doing this wrong?

    Scott - you're right on the money. I did this initially because I thought assigning an LOV display value to a report column would yield the results I wanted.
    I want to do this without referring to the original table... meaning I don't want a function to have to go out and get the names, I'd like my LOV assignment to do it. This saves headache of having to change something in 2 places if it ever changed.
    Am I not going to be able to do this?
    I created a test multi-LOV page, it doesn't work with original(not processed in my function) LOV assignments either, unless you only select one.

  • Select Order Shuttle Not Displaying Values

    JDev 11.1.2.3.0 ADF BC
    I have this following code
    <af:selectOrderShuttle value="#{bindings.EmployeesView1.inputValue}"
                                  label="#{bindings.EmployeesView1.label}"
                                  id="sms1">
              <af:selectItem value="#{bindings.EmployeesView1.items}" id="si1"/>
            </af:selectOrderShuttle>When I run, the shuttle does not display any values. If I change the component to <af:selectManyShuttle> it works and displays values.
    As I want to order the shuttle items, I need to use selectOrderShuttle component.

    Hi,
    this works for me
                            <af:selectOrderShuttle label="#{bindings.EmployeesView1.label}" id="sms1">
                                <f:selectItems value="#{bindings.EmployeesView1.items}" id="si1"/>
                            </af:selectOrderShuttle>Frank

  • Selection box not working

    i was asked to edit some code
    one of the selection boxes wasnt working and was not updating
    the db at all
    here is the code snippet
    <!--- the CFC code being called
    this basically puts together the values which are valid for
    display in the selection box
    then returns it to the invoker
    --->
    <CFFunction name = "Sel_SpecifiedDateFlag" output =
    "false" returntype = "string" access = "public">
    <!--- 引数の定義 --->
    <CFArgument name = "prm_SelID" required = "true">
    <CFSet res1 = "">
    <!---
    コンボリストのID設定(一元管理)--->
    <cfset id = 8>
    <CFQuery name = "query1" datasource = "#APP_DB_DSN#">
    select code , COALESCE(code::text,'') || ':' ||
    COALESCE(name,'') as name
    from tblpmdsetcomblist
    where valid_flag = 1
    and id = #id#
    order by sort,code
    </CFQuery>
    <CFQuery name = "query2" datasource = "#APP_DB_DSN#">
    select code from tblpmdsetcomblist
    where valid_flag = 1
    and id = #id#
    and default_flag = 1
    </CFQuery>
    <!---
    念のため、デフォルト確認
    --->
    <CFIf query2.RecordCount NEQ 1>
    <CFReturn "<font
    color='red'><strong>リストテーブルデフォルトエラー</strong></font>">
    </CFIf>
    <!---
    prm_SelIDがNullの時のデフォルトを設定
    --->
    <CFIf prm_SelID eq "">
    <CFSet prm_SelID = #query2.code#>
    </CFIf>
    <CFLoop Query="query1">
    <CFSet res1 = res1 & "<OPTION Value='#code#'">
    <CFIf Compare(code , prm_SelID) eq 0>
    <CFSet res1 = res1 & " SELECTED">
    </CfIf>
    <CFSet res1 = res1 & ">">
    <CFSet res1 = res1 & #name#>
    <CFSet res1 = res1 & "</OPTION>#chr(10)#">
    </CFLoop>
    <CFReturn res1>
    </CfFunction>
    <!--- this is the code that invokes the CFC code above and
    displays it as well
    --->
    <CFInvoke Component="component.selbox"
    Method="Sel_Plusoneflag" ReturnVariable="getstr">
    <CFInvokeArgument name="prm_SelID"
    Value="#plus_one_flag#">
    </CFInvoke>
    <select name="plus_one_flag" Size=1>
    <CFOutput>#getstr#</CFOutput>
    </select>
    <!--- this is what #getstr# looks like when viewed via
    page source viewer
    --->
    <select name="plus_one_flag" Size=1>
    <OPTION Value='0'
    SELECTED>0:プラフワン不可</OPTION>
    <OPTION
    Value='1'>1:プワスワン可</OPTION>
    </select>
    i checked all the sources of the problem which are obvious to
    me but found none :(
    btw the ascii characters in the code are japanese characters
    if youre not seeing them properly

    in the code you posted there is no code for updating the
    db...
    plus:
    >
    > <CFQuery name = "query1" datasource =
    "#APP_DB_DSN#">
    > select code , COALESCE(code::text,'') || ':' ||
    COALESCE(name,'') as name
    > from tblpmdsetcomblist
    > where valid_flag = 1
    > and id = #id#
    > order by sort,code
    > </CFQuery>
    there is no 'sort' column pulled from the db or aliased by
    that name as
    it appears in the order by clause in the query above...
    > <!--- this is the code that invokes the CFC code
    above and displays it as well
    > --->
    >
    > <CFInvoke Component="component.selbox"
    Method="Sel_Plusoneflag"
    > ReturnVariable="getstr">
    you did not post any code for the 'Sel_Plusoneflag' function
    in your
    cfc... did you post a wrong function or should you change the
    method's
    name in the cfinvoke?
    >
    > i checked all the sources of the problem which are
    obvious to me but found
    > none :(
    and what's the actual problem you are facing? the select box
    still not
    working (HOW is it not working? - not displaying/displaying
    wrong data?)
    or something else?
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • KOMK Fields not displaying values in sales order.

    Hi all,
    I have created an additional tab for VA01,02 and 03. I have added fields from VBAP table and KOMK structure.
    Now fields added from KOMK structure are displaying empty fields(no value). The fields areVAT REG NO (KOMK-stceg) and Tax Code (KONP-MWSK1).
    i have added fields with same name, so i have not coded anything. Do i need to code something for these fields?
    Please suggest the possible solution.
    Thanks in advance for your suggestions.
    Regards,
    NarsiReddy cheruku.

    Hi Edgar Soares,
    Thanks for your reply,
    Yes you are right, i am using BADI_SLS_ITEM_SCR_CUS.
    now i have added KNA1-STCEG to screen and in PBO module i coded as follows.
    (In top include i declared Tables kna1 and Tables VBAK.)
    data vat type kna1-stceg.
    data wa type kna1.
    SELECT SINGLE * from kna1 INTO wa.
    vat = wa-stceg.
    But it is not displaying Vat reg num on screen only displaying empty field.
    Please suggest where i went wrong.
    Thanks & Regards,
    NarsiReddy Cheruku.

Maybe you are looking for