Select list to popup list of values

Hi
i am doing without refresh by using two select list.
as i choose class from first select list related section to that class comes into second list
it is working fine .
if i change item type select list to popup list of values.
then it is not working fine
what i change into code so that it works fine by using popup list of values.
javascript-------------------------------------------------
<script language="JavaScript1.1" type="text/javascript">
function get_select_list_xml(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=CASCADING',1);
    get.add('SELECT1',pThis.value);
    gReturn = get.get('XML');
      if(gReturn && l_Select){
        var l_Count = gReturn.getElementsByTagName("option").length;
l_Select.length = 0;
        for(var i=0;i<l_Count;i++){
            var l_Opt_Xml = gReturn.getElementsByTagName("option");
appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
l_Opt_Xml.firstChild.nodeValue)
get = null;
function appendToSelect(pSelect, pValue, pContent) {
var l_Opt = document.createElement("option");
l_Opt.value = pValue;
if(document.all){
pSelect.options.add(l_Opt);
l_Opt.innerText = pContent;
}else{
l_Opt.appendChild(document.createTextNode(pContent));
pSelect.appendChild(l_Opt);
</script>
application process------------------------------------
BEGIN
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('<data>');
HTP.prn ('<select>');
HTP.prn ('<option value="' || 1 || '">' || '- All Section -'|| '</option>');
FOR c IN (select DISTINCT(section) ,CLASS_ID from class_details where class_id=:SELECT1 ORDER BY SECTION ASC)
LOOP
HTP.prn ('<option value="' || c.section || '">' || c.section || '</option>');
END LOOP;
HTP.prn ('</select>');
htp.prn('</data>');
END;
calling statement-------------------------------------------------
onChange="javascript:get_select_list_xml(this,'P134_SECTION');"
Thanks & Regards
Vedant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

I haven't tried this, but check
How to remove basic/advanced button in inputListOfValues search dialog
This does not have complete solution, but might give you some lead.

Similar Messages

  • Eliminating the null values from popup list item

    Dear All,
    i create a popup list,at runtime it shows a null blank value among the values i specified while the combo box is not,
    i want to eleminate the blank null value from the popup list.
    Need Help.
    Thanks & Regards.

    Okay,
    i create a popup list, populate it in runtime with create_group_from_query builtin.
    now when i run the form and click the list item, it display a null value among the other values which are
    return from the create_group_from_query .
    the procedure is below
    procedure Department_proc is
    rg recordgroup;
    n number;
    begin
    remove_record_group('RG');------  this is another procedure which checks for Record group existance and remove it.
    rg=:=create_group_from_query('RG4','SELECT NAME,TO_CHAR(DEPT_ID) FROM TAB_DEPT_SECTION
    UNION
    SELECT '||'''All Departments'''||'as name,'||'''0'''||' as name from dual');
    n:=populate_group(rg4);
    populate_list('control_block.department',rg4);
    end;
    it display a null value among the other values for the first time is run the form,but when i click it and select a value from it
    and the onward click dont show the null value.i want to eleminate the null value even for the first time when the user run the
    from.
    Best Regards

  • How can I show tree's nodes in a Popup List of values

    I have a tree and in a different form for an item I want to write nodes together for example
    computer/desktop/asus/....
    computer/pda/hp/... this must be shown in a popup list of values can you help?
    thanks

    Simon's suggestion sounds good - Connect By Prior sounds like what you want. Assuming you have a parent/child relationship in your data, you could use SQL like the following for the source of your Popup LOV (this will deal with a hierarchy of any number of levels):
    SELECT SYS_CONNECT_BY_PATH(person_name, '/') d, person_id r
    FROM persons
    START with parent_id = 0
    connect by prior id = parent_id
    You will need to adapt the above to fit in with the structure of your table. The above assumes a PERSONS table with 3 columns: person_id | person_name | parent_id. It will output something like:
    John
    John/Adam
    John/Adam/Julie
    John/Adam/Steven
    John/Adam/Steven/Wally
    John/Bob
    John/Karen
    Hope that helps,
    Andy

  • Problems with customizing select lists and popup LOVs

    Hi
    I have 2 problems about select lists and popup LOVs.
    The first one is about a select list in a tabular form.
    It should be created with APEX_ITEM.SELECT_LIST_FROM_LOV or similar and take its values from a named LOV.
    This worked fine but now it should also have the possibility to enter a free value.
    I tried to accomplish that by creating a APEX_ITEM.POPUP_FROM_LOV, but there is a problem with the function that is called by the arrow icon right to the input field (for eg. genList_f11_5()).
    If the row is added by addRow, then it works fine, but if the row is is not empty
    then the function call is like genList_f11_$_row() and the input field gets no value, when a LOV option is selected.
    The other problem is about a select list which should have the possibility to enter a custom value and
    also there should be the possibility to select several values. I tried to implement this by a text area containing the selected values and a multiple select list, with an event handler in each option. The user could click options and they would be copied to the text area. The problem is that I couldn't make the event handler work in IE.
    I would appreciate any ideas about either of these problems.
    Tiina

    Hi,
    If you download application you can see source.
    I have not write any instructions, sorry.
    If you are on Apex 4 you can just load jQuery UI autocomplete library and take ideas from my app.
    If you download my sample in zip there is uncompressed htmldbQuery library.
    You can see that and take only function htmldbAutocomplete.
    Then check jQuery UI document
    http://jqueryui.com/demos/autocomplete/#method-search
    There is method search that you can use open list just by click of input.
    I hope this helps at start.
    Regards,
    Jari

  • Refresh popup list of values javascript

    I try to change value of popup list of values with javascript.
    When i set it with javascript i get only return value visible in popup list of values (display). When i add refresh in dynamic action item is clean..and dont have any value..
    How to set display and return value correctly...
    Thanks...
    Edited by: Nihad Haskovic on Jul 18, 2012 3:18 AM

    I am not sure if I understand your question, but if you want to show two display value columns you can use a concatenation, for example:
    select raum||' - '||some_other_column display_value, raum return_value from standort order by 1
    You can also build a custom popup LOV picker. If you wanted to have popup list of values that selected a number of columns and contained custom report filters you could do so by:
    1. create a report page which queries the table you wish pick from
    2. change the page template to be a popup lov style template
    3. in the "Post Element Text" attribute put a link to the new popup page using javascript similar to: javascript:popupURL('f?p=&APP_ID.:10:&SESSION.')
    ( you may wish to wrap it around an image such as this one )
    <img src="#IMAGE_PREFIX#htmldb/icons/view_small.gif" />
    4. make one of the columns in your report a link to javascript to passback the value and close the popup window. A good example of this javascript can be viewed by viewing the HTML page source of the popup page finder which is linked from the APEX page definition page.

  • How can i set the values to text box by selecting from drop down list.

    hi ,
    i am using struts and jsps. i have a dropdown list of names(getting the values of names from database), i want to get address and phone number of that selected one.how can i get that?

    Hi swarupa,
    Well My advice in this senario wud Be
    Either U can make Use of XmlHttp Object through javascript(AJAX way).
    Or U need to Maintain the State of the entire form and then refresh the page to get those results....
    just for U r reference i am attaching a link which was programmed using ASP @ server side and which made use of XmlHttp Object.....
    http://www.w3schools.com/ajax/ajax_database.asp
    Just try to simulate the samething in your own way....
    REGARDS,
    RAHUL

  • Steve, "Simple JSF Popup List of Values Page " does not work..

    Hi Steve,
    I read "Not Yet Documented ADF Sample Applications" #80 : "Simple JSF Popup List of Values Page " and download SimpleADFBCLOVJSF.zip, but when I try to run the sample, I get this error :
    JBO-33001: Cannot find the configuration file /xxx/common/bc4j.xcfg in the classpath
    What is wrong ?
    Thank you,
    xtanto

    Thanks for reporting this. I've uploaded a newer version of the zip file that fixes this issue.
    It was due to a last-minute refactoring of my model project from having the application module living in a package named "xxx" to another package named "example.model"

  • 2 Select lists do not change the value

    Hi all,
    I am having a situation. I have 2 select lists . The second one is dependent of the first one. Data are retrieved perfectly.
    These select lists are done in page 0 and they are used in the referenced page. Apexlib is used in the page 0
    When I change the item of the second list, the returned value used in a report, is ok. It takes the correct one.
    If I change the item of the fist select list, the returned value of the second select list does not change(the displayed value are correct). the report is run (after changing the first select list) but the wrong returned value of the second list is taken.
    The correct value of the second one is taken only if page is submited or we change the option.
    it seems that it keeps the last value of the second list according to the previous selection.
    Both select list is without submit.
    How can I make a "refresh" of the returned values of the second select list (the records are ok) after changing the first one?
    Thanks in advance
    Raf

    Hi Rafael,
    is ApexLib integrated correct? Did you check against http://apexlib.oracleapex.info/howto_integrate_manual_steps.html ?
    Or did you try and install the ApexLib Feature Demonstration Application and see if it works there?
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    Work: http://www.click-click.at

  • Select list need to pass a value to collect information based on a value on another page

    i have a product-detail.php page that is then sent to a cart.php i have a number of tables that are all joined and show in the statement below. the results are displayed on the detail page
    $var1_rsProduct = "-1";
    if (isset($_GET['productID'])) {
      $var1_rsProduct = $_GET['productID'];
    mysql_select_db($database_beau, $beau);
    $query_rsProduct = sprintf("SELECT * FROM beauAW13_Cat, beauAW13_products, beauAW13_Stock, beauAW13_SizeList WHERE beauAW13_products.catID = beauAW13_Cat.catID AND beauAW13_products.ProductID = beauAW13_Stock.ProductID AND beauAW13_Stock.SizeID = beauAW13_SizeList.SizeID AND beauAW13_products.ProductID = %s AND beauAW13_Stock.Stock != 0 ", GetSQLValueString($var1_rsProduct, "int"));
    $rsProduct = mysql_query($query_rsProduct, $beau) or die(mysql_error());
    $row_rsProduct = mysql_fetch_assoc($rsProduct);
    $totalRows_rsProduct = mysql_num_rows($rsProduct);
    i have a select list that needs to show the sizes.this is shown below
    <select name="select" id="select">
                    <?php
    do { 
    ?>
                    <option value="<?php echo $row_rsProduct['StockID']; ?>"><?php echo $row_rsProduct['Size']?></option>
                    <?php
    } while ($row_rsProduct = mysql_fetch_assoc($rsProduct));
      $rows = mysql_num_rows($rsProduct);
      if($rows > 0) {
          mysql_data_seek($rsProduct, 0);
                $row_rsProduct = mysql_fetch_assoc($rsProduct);
    ?>
                  </select>
    it is currently passing the value of <?php echo $row_rsProduct['StockID']; ?>
    which is ok as this is a totally unique number so on the cart page i need to get all the size information from that stockID
    here is an example:-
    i have used a stockID of 355
    on the cart.php the stockID is echoed out as 355 and the size is echoed out as 355 which is what i would expect.
    the stock table looks like this
    StockID | ProductID | SizeID  |  Stock
      355   |    582    |   14    |    5
    so
    ProductID is blue jumper
    Stock id is unique number
    SizeID = 14 = once size
    Stock = 5 in stock
    so i need to in the cart say
    355 = 14 = one size
    i can then echoe out the correct size as one size and not 355
    i really hope someone can help
    thanks

    Thanks for everyone advise. I managed to get it working
    I sent the stockID on;y to the cart page, made a new variable based on the stockID the made a query and got all the information based on the new stockID variable
    <?php
    $newStockID = $XCart_StockID = ${$XCName}["contents"][0][$XCart__i];
    mysql_select_db($database_beau, $beau);
    $query_rsSize = "SELECT * FROM beauAW13_SizeList, beauAW13_Stock WHERE beauAW13_Stock.SizeID = beauAW13_SizeList.SizeID AND beauAW13_Stock.StockID = '$newStockID'";
    $rsSize = mysql_query($query_rsSize, $beau) or die(mysql_error());
    $row_rsSize = mysql_fetch_assoc($rsSize);
    $totalRows_rsSize = mysql_num_rows($rsSize);
                              ?>
    select list
    <option value="<?php echo $row_rsProduct['StockID']; ?>"><?php echo $row_rsProduct['Size']?></option>

  • Popup list manager and dynamic LOV

    I'm stumped, stuck and thought I was doing something simple. Here's what I have:
    1) Checkbox dynamically built (P3_CHECKBOX)
    2) A hidden field to store the checkbox values (P3_CHECKED)
    3) A popup list manager based on the hidden field.
    I am using JavaScript to populate the P3_CHECKED whenever P3_CHECKBOX is changed. However, my dynamic LOV based on the hidden field always returns no rows. The SQL for the LOV is:
    select application_role, role
    from roles_view
    where '%'||application||'%' LIKE to_char(:P3_CHECKED) order by 1
    Am I missing something simple? I know the hidden field is getting populated because if I change to field to text, I see the data change. There is also data in the table because executing the query using the data in P3_CHECKED returns the expected rows.
    Any help would be appreciated.
    Mike

    Mike,
    The lov query accesses the value of P3_CHECKED from session state. That isn't stored in session state until the page is submitted.
    Scott

  • How to auto populate data from one list in SharePoint 2007 into another list based on a key value?

    Hi,
    As a part of new requirement in my project I am supposd to work on SharePoint 2007. I have one List (BCExtract - Main list) with all data related to an Application (like ID, name, app manager RTO etc).
    I have created another list which has form to be filled by a user (with details about his/her applications). My requirement is that when the user enters AIT ID then the page should refresh (probably after hitting enter) and other details like Application
    name, RTO etc which is present in another list gets auto populated depending on the AIT ID (unique column) entered so reduce the burden on the user.
    Please suggest me how this can be done. I do not have permission for obtaining SharePoint Designer and I do not know JQuery. Infopath is ok but if this can be done through SharePoint 2007 alone then it would be great.
    Thanks....

    Hello,
    You can either use jquery/jaavscript or infopath form to achieve this. There is no default way to do this.
    I would suggest jquery because you can put script in newform/editfor.aspx page using content editor webpart. Refer this link for jquery:
    To get value from list:
    http://social.technet.microsoft.com/Forums/en-US/ac47fe2a-ccb6-4f5b-b274-703aecc6cb0a/get-list-items-in-sharepoint-2010-by-using-jquery
    http://www.robertkuzma.com/2010/08/read-list-items-using-sharepoint-web-services-and-jquery/
    To set value in column:
    http://paulgalvinsoldblog.wordpress.com/2009/06/13/quick-and-easy-use-jquery-to-set-a-text-field%E2%80%99s-value-on-a-sharepoint-form/
    http://spservices.codeplex.com/discussions/468729
    If you use infopath form, then you need to create two data connection to get data from both lists. Later you can set value in fields based on selection using rule. This can be possible without code.
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Value help dropdown list not showing up other values

    Dear all,
    I'm new to Adobe and Java WD. I managed to go through all the tutorials and developed a WDJ and embedded an interactive form in the view. I also used an RFC Model to pull some values from n R/3 table and populate in a context node element.
    These values are appearing perfectly fine in the WDJ if I'm using a table or a drop down list index field.
    But in the Adobe form, when i bind this context node to a WebDynpro native Value help drop down list box, only the first value of the table appears. On clicking on it, nothing happens. I'm not sure what is the problem.
    Can anyone please help me in this? Should i write some code to bring the other values too? (the tutorial doesn't say this!)
    If so, then please give some sample java codings and step by step process for populating the field values with the table values.
    My node structure is like below
    Context
         Ysam_Get_Values_Input(Node-RFC)
              Output (Node-RFC O/P)
                   Values(Node-table from the RFC)
                       Slno (attribute that has the values to be populated with)
    Any help is greatly appreciated.
    Thanks,
    Sam

    Hi Raja,
    In the view:
    <htmlb:gridLayoutCell id                  = "AddedProfileNameIF"
                                        columnIndex         = "2"
                                        rowIndex            = "2"
                                        horizontalAlignment = "LEFT"
                                        verticalAlignment   = "MIDDLE" >
                    <htmlb:dropdownListBox id         = "added_profile1"
                                           helpValues = "//model/ust10st.profn"
                                          />
                  </htmlb:gridLayoutCell>
    In the Model:
    method MODEL_INIT .
    select profn from ust10s into  table UST10ss.
    read table UST10ss index 1 into UST10st.
    endmethod.
    In controller:
    METHOD do_init .
      m_model ?= create_model( model_id = 'm'
                               class_name = 'zcl_model_zsox1' ).
    m_model->model_init( ).
    ENDMETHOD.

  • Displaying user selection from drop down list in static text on master page

    Hello,
    I am using LC 7.0 at workk and I have hit a road block.
    I have a drop down list at the top of the form. Once the user makes a selection, I want to take that value and paste it in static text located on the master page. I can't seem to get it to work.
    Please help!!!

    Hi,
    Place the Drop Down list on form
    Place text object(s) on master page
    here is the script to display the value and/or text of drop down
    Script will be on Drop Down list events
    Calculate event to display value of DD - FormCalc
    form1.pageSet.Page1.StaticText1.rawValue = this.rawValue;
    Change event to display Text of DD - JavaScript
    form1.pageSet.Page1.StaticText2.rawValue = xfa.event.newText;
    SAVE the form as dynamic pdf.
    Hope this will help.
    Thanks,
    Raghu.

  • Selecting items in a list from a multivalue field

    I have an edit page that includes a menu form element that
    allows multiple selections. It inserts all the IDs from a table
    that it's got from a recordset as a string into field named
    EventType separated by commas ("10000,10002,10004"). So far so
    good.
    I have a dynamic menu behaviour on the edit page too but when
    I reload it none of the options in the list are selected. It will
    mark an item in the menu as selected when there's only one value,
    presumably because when there are multiples the behaviour is trying
    to match a string of "10000,10002,10004" to the values in the the
    list , which are separate values:
    <select name="EventType" size="5" multiple="multiple"
    id="EventType">
    <option value="10001" >Abseil</option>
    <option value="10007" >Golf</option>
    <option value="10000" >Marathon/Run</option>
    <option value="10008" >Other outdoor</option>
    <option value="10003" >Overseas</option>
    <option value="10005" >Social</option>
    <option value="10006" >Triathlon</option>
    <option value="10004" >Walking</option>
    I'd have thought this would have been dealt with by the
    behaviour, but apparently not. How to I break apart the multivalue
    field to select each item in the menu?

    Thank you for poitning me in the right direction. I was being
    a little slow today:
    While (NOT rsEventType.EOF)
    %><option
    value="<%=(rsEventType.Fields.Item("ID").Value)%>" <%
    Array = Split(rsEvent.Fields.Item("Type").Value,", ")
    For Each i In Array
    If rsEventType.Fields.Item("ID").Value = i Then
    response.write "selected"
    End If
    Next
    %>><%=(rsEventType.Fields.Item("EventType").Value)%></option>
    <%
    rsEventType.MoveNext()
    Wend

  • Allow user to select each item in list item only once.

    Hi,
    What is the best way to go to stop the user selecting the same item in a list item more than one.
    I have a multi record block, the user can select values 1-10 for each record, but they should not be allowed to select duplicates.
    Thanks for any help!

    Hi,
    Suppose you have 4 list items A,B,C,D in block "test" and same 4 values in each list item. Now you want that, no two values selected by user in list item should be same.
    On when-validate-item of list item B write code like :
    If :test.A is null then
    Message('First A must be enter");
    Raise form_trigger_failure;
    end if;
    If :test.B = :test.A then
    Message('value already in list item A');
    Raise form_trigger_failure;
    end if;
    Now, for C same code with a addition of condition for B with OR operator like:
    If :test.C = :test.A or then :test.C = :test.B
    Like that.... you can achive your functionality.
    But one restriction is that user has to enter values in list item in a pre-defined order only....
    Hope that it would work for you.....

Maybe you are looking for

  • NF de Importação rejeitada pela SEFAZ se seqüencial do item de adição é 100

    Prezados, para dados referentes à Adições da Declaração de Importação da NF-e, campos I25 até I29 do Manual de NF-e, no SAP ECC há a estrutura J1B_NF_XML_H3, e no PI há a estrutura /XNFE/NFE_H3. porém, o campo NSEQADIC, na estrutura do ECC tem tamanh

  • How to close JFileChooser dialog only while using ESC key ?

    Hi All, I am using a Frame and from this frame i am calling the JFileChooser via a JButton. and using JFileChooser ShowOpenDialog() for open and close . while doing ESC operation my Main Frame is getting closed with JFileChooser dialog. Can i close o

  • Password for Wireless Connection

    I am trying to use EasyLink to set up my new Linksys Wireless-N router. When I type in my SSID it is asking for password. I typed what I thought was the password, but it did not recognize it. I can't go any further and I don't want to lose the connec

  • HT201210 Error 7 (Windows error 126). Any ideas?

    I am getting Error 7 (Windows error 126). Any ideas?

  • GRPO Document  Opening in Update Mode

    Hi All When i saved the GRPO Document and again i try to navigate to the saved document it is opening in update mode and if i update then it become 'ok' mode and again if i try to navigate the posted document  it is opening in update mode again how c