Onchange of a selectList

Hi,
I have a requirement. When a user selects a value from a selectlist, I have to go to the database, select 4 values based on the selected item and populate other elements in the form. I want to do this without submitting the form. Is it possible ? Any suggestions are greatly appreciated.
Thanks
Naresh

In a word, AJAX. You can find lots of stuff here if you search on AJAX and you can also find good examples on Carl Backstrom's and Vikas' example sites.
http://htmldb.oracle.com/pls/otn/f?p=11933:5 for Carl's stuff and
http://htmldb.oracle.com/pls/otn/f?p=24317:500 for Vikas, although Vikas doesn't explicitly identify his as AJAX, there are some examples in there.
Earl

Similar Messages

  • Javascript for onchange of a selectlist.

    Hi,
    I have a requirement. There is a selectlist in my form. Once user selects a value in this, I have to display 6 or 7 fields. How can I write a javascript to do this and attach to the selectlist ? I am new to javascript. Can anyone point me to some examples to do this ?
    Thanks
    Naresh

    Hi Naresh,
    There are at least two ways to handle this:
    1 - Use a Select List with Submit and apply a Conditional Display to each of the items to display them only when the select list has a particular value. The drawback to this is that you have to submit the page - this may save data on the underlying table(s) and may not be what you want to happen here. The advantage is that this is a typical way of handling the show/hide of fields and can be easily set up using existing Apex functionality; or
    2 - Use Javascript to show/hide fields that are already on the page and submit the page only once all fields have been completed as required. The advantage is that you don't have to submit the page until you're ready to do so and there is no round-trip to the server to reload the page to get the fields shown or hidden as required.
    In both cases, you may also have to include Page Validation to ensure that only the correct fields' data is written back to the database.
    If you want to do option 2, have a look at the following:
    http://htmldb.oracle.com/pls/otn/f?p=33642:41
    If this is what you want, I'll let you know how it has been set up. Please note that I have done nothing about formatting the page - just the show/hide bits - formatting would be up to you.
    Regards
    Andy

  • Change from SelectList to Popup LOV, Onchange Javascript breaks. Apex 3.2.1

    Hi,
    I have a pretty standard piece of Javascript that populates two page items based upon the result of a select list.
    I'd like to change the select list to a Pop-Up LOV, but this breaks the functionality.
    I presume that I need to use a different var get function, however, have had no luck in trialing different solutions.
    Can anyone help?
    Details Below.
    Regards-
    Ronald.
    Function Overview:
    Select List P4_PRODUCT_ID selects two product parameters: area and item, and puts them into P4_AREA_ID and P4_ITEM_ID.
    P4_AREA_ID and P4_ITEM_ID are pop up LOV's and happily accept the text input.
    I wish to change P4_PRODUCT_ID to also be a pop up LOV, but when doing so, it breaks the dynamic functionality.
    CODE:
    Select List: P4_PRODUCT_ID
    HTML Form Element Attributes: onchange="pull_multi_value(this.value)";P4 Page Header:
    You'll see that I've tried several methods, none worked. Am I using the wrong one?
    <script type="text/javascript">
    <!--
    function pull_multi_value(pValue){
    //     var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=Set_Multi_Items',0);
           var get = new htmldb_Get(null,html_SelectValue('pFlowId'),'APPLICATION_PROCESS=Set_Multi_Items',0);
    //     var get = new htmldb_Get(null,html_GetElement('pFlowId').innerHTML,'APPLICATION_PROCESS=Set_Multi_Items',0);
    //     var get = new htmldb_Get(null,html_GetElement('pFlowId').innerHTML=$v(pFlowId),'APPLICATION_PROCESS=Set_Multi_Items',0);       
    if(pValue){
    get.add('PRODUCT_ID',pValue)
    }else{
    get.add('PRODUCT_ID','null')
        gReturn = get.get('XML');
        if(gReturn){
            var l_Count = gReturn.getElementsByTagName("item").length;
            for(var i = 0;i<l_Count;i++){
                var l_Opt_Xml = gReturn.getElementsByTagName("item");
    var l_ID = l_Opt_Xml.getAttribute('id');
    var l_El = html_GetElement(l_ID);
    if(l_Opt_Xml.firstChild){
    var l_Value = l_Opt_Xml.firstChild.nodeValue;
    }else{
    var l_Value = '';
    if(l_El){
    if(l_El.tagName == 'INPUT'){
    l_El.value = l_Value;
    }else if(l_El.tagName == 'SPAN' &&
    l_El.className == 'grabber'){
    l_El.parentNode.innerHTML = l_Value;
    l_El.parentNode.id = l_ID;
    }else{
    l_El.innerHTML = l_Value;
    get = null;
    //-->
    </script> Application Process: Set_Multi_ItemsDECLARE
    v_area VARCHAR2 (200);
    v_item VARCHAR2 (200);
    CURSOR cur_c
    IS
    SELECT AREA_ID, ITEM_ID
    FROM PRODUCTS
    WHERE PRODUCT_ID = TO_NUMBER (v ('PRODUCT_ID'));
    BEGIN
    FOR c IN cur_c
    LOOP
    v_area := c.AREA_ID;
    v_item := c.ITEM_ID;
    END LOOP;
    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 ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="P4_AREA_ID">' || v_area || '</item>');
    HTP.prn ('<item id="P4_ITEM_ID">' || v_item || '</item>');
    HTP.prn ('</body>');
    EXCEPTION
    WHEN OTHERS
    THEN
    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 ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="P4_AREA_ID">' || SQLERRM || '</item>');
    HTP.prn ('</body>');
    END;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Looking at all that code, I can suggest one way of debugging the issue(Its a bit hard to guess what went in this case,particularly when the problem could be at so many places).
    1. Run your PLSQL as an anonymous block and check if the generated XML structure is what you expect.
    2. Check Firebug Console (if you have it) if an ajax request is send when the item is changed.
    3. Print out the return XML as a string on the screen so that you can make sure it what you wanted(use alert function or append to some page element)
    4. Now try your XML parser JS section starting with the obtained XML as a static variable, trying printing out the parsed out values at different stages
    5. Setting the page items shouldn't be much of a trouble if everything else worked fine.
    Some Observations: If you are on Apex 4.0 wouldn't a Dynamic Action save you all this trouble (Two SetValue processes). Even otherwise you seem to be fetching two id's from the Ondemand process..Can't you just concatenate them with some separator and send that as the result stream(htp.p), handling them in JS would be simple using the split function. If the data is more complex you could return it as a JSON string and parse it with fewer lines of code.
    Found a problem with the code :
    get.add('PRODUCT_ID',pValue)Do you have a page item by that name(PRODUCT_ID) ? else change it to
    get.add('P4_PRODUCT_ID',pValue)and change the following in ur PLSQL process code
    PRODUCT_ID = TO_NUMBER (v ('PRODUCT_ID'));to
    PRODUCT_ID = TO_NUMBER (v ('P4_PRODUCT_ID'));But as I said earlier, Debugging it step by step might be easier.

  • How to refresh the Expired Login Form on the onChange event of the password

    Hi,
    In the Expired Login Form I have places a custom label. My requirement is that on the onchange event of the password field the label color should change to orange if the entered password meets the password policy else red.
    I am trying the following code :
    Custom label:
    <Field name='Custom Label'>
    <Display class='Label'>
    <Property name='value' value='Custom label 1'/>
    <Property name='noNewRow'>
    <Boolean>true</Boolean>
    </Property>
    <Property name='color'>
    <block>
    <cond>
    <isTrue>
    <invoke name='checkStringQualityPolicy' class='com.waveset.ui.FormUtil'>
    <rule name='EndUserRuleLibrary:getCallerSession'/>
    <s>Default Password Policy</s>
    <invoke name='decryptToString'>
    <ref>resourceAccounts.password</ref>
    </invoke>
    <map/>
    <list/>
    <s>Configurator</s>
    </invoke>
    </isTrue>
    <s>orange</s>
    <s>red</s>
    </cond>
    </block>
    </Property>
    </Display>
    </Field>
    And on the password field i gave following in the onChange event:
    submitCommand(this.form, "Recalculate")
    But the above command is not refreshing the page. Instead on the onChange event its going back to the login.jsp.
    Any idea how to resolve the above issue.
    Thanks.

    I got it working as below but i dont know is this best practices?
    <%
        if(session.getAttribute("afterSet") != null){
             %>
        <div style="visibility:hidden">
          <iframe NAME="iframe1" src="/WebApplication2/TestController?fileDownload=test.pdf" WIDTH="40" HEIGHT="40"></iframe>
        </div>
        <%}       basically first time user visit the jsp page session attribute "afterSet" will be null so it wont create the hidden iframe tag . after it dispatched to the servlet controller and successfully processing the record it will set "afterSet" properties to some value and dispatch to itself
    after that it will popup/dialog box for user to save the pdf.
    this way the page already refreshes itself and wont have problem double clicking thing and so on

  • Problem in submiting the form onchange of html:select

    I am using WSAD 5.0 and working on a small application with struts.
    I have following code where I want to submit the form if user selects any option from the list. Problem is when i select any option it is giving error that this property is not supported. Following is my code
    <html:form action="/NewUserAction1">
    <tr>
                   <td>
                        <font color="Blue">
                             <b><bean:message key="NewUser1.CountryName" /></b>
                        </font>*
                   </td>
                   <td>
                        <html:select property="state" onchange="submit();">
                             <html:option value="default">select state</html:option>
                             <html:option value="bangalore">Bangalore</html:option>
                             <html:option value="delhi">Delhi</html:option>
                        </html:select>
                   </td>
              </tr>
         </html:form>
    Please help me someone why i am not able to submit the form on onchange event of <html:select>
    Thanks.

    I got the solution :)
    Finally I figured out that
    by default, struts gives <html:submit/> tags a name of
    "submit". Thus there was a namespace collision in the
    form object, with the submit button overriding the
    form's submit method. I fixed the problem by changing
    the name of the submit button. Something like this
    works great:
    <html:submit property="submitPage">
                        <bean:message key="NewUse1.Submit"/>
                   </html:submit></td>
    Now i am able to submit the form.
    Thanks alot.

  • Have an onchange event in SPD to update a list based on user selection of data view drop down?

    Hoping someone can point me in the right direction: I have a list for Media announcements, each one of these announcements will have various types of documents associated (via look up field in the doc library). I am trying to have a data form web part (dropdown)
    as the selector (as I am not liking the SharePoint list filter feature) to have a user be able to select the Media Title, then it refreshes the three web parts on the page (1 for the announcement, then one for type1 docs and one for type 2 docs.)
    What is the best way to create an onchange event to have the selected option be connected to the first web part (media title on a list view) so that the information on the page can all be filtered?

    Hi,
    Would you mind providing more details about your requirement? Are there one Announcements list and two Document Library in a page?
    Suppose you have one Announcements list and two Document Library in a page, then you want to add a Drop Down Menu(not the OOTB SharePoint List Filter Web Part) to filter the
    three List View Web Part dynamically.
    There will be two workarounds:
    1. Use the OOTB “Connections” feature of the list to “Get Filter Values From” one of the three lists, then there will be a “Select” button in that list, we can click it to filter
    other two lists/libraries. This is a way without code though we may not have the Drop Down Menu;
    2. Add three <iframe> in a page, then add a Drop Down Menu in this page. Now, we will need some JavaScript to listen to the onchange event of this Drop Down Menu. We can
    get the values populated in the Drop Down Menu from one of the column of one of the list, when making a selection in it, we can pass an URL with query strings to the three iframes which will show the three different lists or libraries.
    The second way requires some code to interact with Client Object Model cause we need to get values from a list, some script to handle the onchange event, which seems more suit
    with your need.
    Here are some links might be helpful if you want to take the second way:
    About how to find a specific element on a page using JavaScript:
    http://javascript.info/tutorial/searching-elements-dom
    Handle the onchange event using jQuery.change function:
    http://api.jquery.com/change/
    About query string to filter a list view:
    http://techtrainingnotes.blogspot.com/2012/03/sharepoint-search-filter-or-sort-lists.html
    About change the src attribute of iframe:
    http://stackoverflow.com/questions/3730159/changing-iframe-src-with-javascript
    http://www.w3schools.com/jsref/prop_frame_src.asp
    Best regards
    Patrick Liang
    TechNet Community Support

  • How can I trigger an onchange event for hidden or never displayed item

    hi -- I have an item that I don't want displayed on my page -- more info than the user wants or needs; call it B. It needs to be
    set by an onchange event from a visible item (A); then, the change of B triggers on onchange to set another item (visible) -- C.
    When B is visible on the page, it all works. If I make it hidden or conditionally never displayed, it doesn't work. From the looks of
    it, B never gets changed.
    How can I trigger this onchange event (from B to set C) with B not visible?
    Thanks,
    Carol

    hi Varad -- Probably more info than you want... but here's the whole chain of events.
    Hope it answers your question.
    C
    **** 1
    In A's html form element attributes (simplified; I took out the irrelevant call to jsLookupValue that sets another item).
    onchange='jsLookupValue($v("P142_SITE_ID"),"site_id","P142_OBJECTTYPE_ID","objecttype_id","hdb_site_syn");'
    **** 2
    jsLookupValue is the following.
    The statement that actually sets the value of B is: $s(dest_item_name, jsonobj.row[0].RETURN_VAL);
    function jsLookupValue(source_item_value, source_column_name, dest_item_name, dest_column_name, lookup_table_name){
    // Continue only if there are valid values
    if (valueOf(source_column_name)&&valueOf(dest_item_name)&&valueOf(dest_column_name)&&valueOf(lookup_table_name)){
    //Check to see if the source_item_value is null (either all spaces or empty
    //If it is, set the dest item to null, but only if it's not already --
    //otherwise we get into a loop.
    source_item_value = trim(source_item_value);
    dest_item_value = trim($v(dest_item_name));
    if (source_item_value.length==0) {
    if (dest_item_value.length != 0) {
    $s(dest_item_name, null);
    }else{
    //This is the AJAX call to the Application Process from step 1
    ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=LOOKUP_VALUE',0);
    //Here we are adding that x01 parameter we use in the app process with the value of the objecttype_name field
    ajaxRequest.addParam('x01', source_item_value);
    ajaxRequest.addParam('x02', source_column_name);
    ajaxRequest.addParam('x03', dest_item_name);
    ajaxRequest.addParam('x04', dest_column_name);
    ajaxRequest.addParam('x05', lookup_table_name);
    //Now do the actual AJAX call and put the result in ajaxResponse
    ajaxResponse = ajaxRequest.get();
    //Check if there is a response
    if (ajaxResponse) {
    //We need to format the JSON return string and put it in a JSON object
    // the formatting is done by a function in the external JSON library
    // the jsonobj can be used to retrieve the data returned by the App process
    var jsonobj= ajaxResponse.parseJSON();
    // And finally, we set the DNAME item with the value of the jsonobj.DNAME
    // an array was created in the object with the name row, so that is why you have to include row[0] to retrieve the data
    if (jsonobj.row[0].RETURN_VAL != $v(dest_item_name)) {
    $s(dest_item_name, jsonobj.row[0].RETURN_VAL);
    }else{
    } //not setting
    }else{
    alert('No response from app process');
    } //no response
    } //no source item value
    } //no bad nulls
    } //function
    **** 3
    I won't bore you with app process LOOKUP_VALUE. It just builds an sql query that gets the value for B, aliased to RETURN_VAL.

  • How to populate an application item using ONCHANGE.

    I am trying to populate an application item, TAB_INSTATE using an onchange command. I cannot figure out how to do it. Does anyone know the syntax, or can you point me in the right direction. I am unfamiliar with javascript and have been relying on previous examples, posts. thanks
    apex_item.select_list_from_query
    (20,
    c020,
    'select partner_name, partner_abbrev
    from partners
    where state_code is not null order by partner_name ',
    'style="width:100px"'
    || 'onchange="'
    || CASE
    WHEN :p300_authorization1 = 1
    THEN 'f_set_casc_area(this,f21_'
    || LPAD (seq_id, 4, '0')
    || ');'
    ELSE
    <THIS IS WHERE I WOULD LIKE A THE VALUE OF c020 TO BE PLACED INTO :TAB_INSTATE>
    END
    || 'f_set_casc_subarea(this,f22_'
    || LPAD (seq_id, 4, '0')
    || ')"',
    'YES',
    '0',
    '- Select State -',
    'f20_' || LPAD (seq_id, 4, '0'),
    NULL,
    'NO'
    ) in_state,

    Hello Karen,
    >> I am trying to populate an application item, TAB_INSTATE using an onchange command.
    I believe I answered you in here - Re: once more...4 cascading LOVs, 3rd is hidden 4th no longer works However, for future reference…
    You don’t have a direct access to an application item, using JavaScript, because application items don’t render on page. You can, however, using the AJAX framework to do that, using the add() method. The generic code I’m using is the following:
    <script type=”text/JavaScript”>
    function setSessionValue(pItem, pValue) {
      var get = new htmldb_Get(null,html_GetElement('pFlowId').value,null,0);
      get.add(pItem, pValue);
      get.get();
      get = null;
    </script>This code can set any page or application item value.
    Regards,
    Arie.

  • CFselect onchange doesn't work on flash Form

    Hello :
    I have looked for more than a week to find out answer  but couldn't fine anything.
    I have cform with tye="Flash" and cfselect with query to populate the values.
    I want use onchange="" after I select any value on cfselect to submit the pages and select next cfselect. But doesn't work.
    Some help me
    When I used onchange="submitform();" the form doesn't display.
    I used geturl() and page reload but doesn't submit the page.
    I use this code that i found on Adobe web page and still doesn't work.
    <cfsavecontent variable="
    showSelectedCheckbox">
    var checkboxCount = 3;
    for(var i = 1; i <= checkboxCount; i++)
         var thisItem = 'check' + i;
         if(i == itemSelect.value)
              this[thisName].enabled = true;
         else
              this[thisName].enabled = false;
    </cfsavecontent>
    <cfform format="flash" width="300" height="500">
         <cfinput name="check1" type="checkbox"
              label="Feed?" enabled="true" />
         <cfinput name="check2" type="checkbox"
              label="Mine?" enabled="false"/>
         <cfinput name="check3" type="checkbox"
              label="Eat?" enabled="false"/>
         <cfselect name="itemSelect" label="Select Item"
              onchange="#showSelectedCheckbox#">
              <option value="1">Animal</option>
              <option value="2">Mineral</option>
              <option value="3">Vegetable</option>
         </cfselect>
    </cfform>
    I read about cffromitem or cfformgroup but i don't know how used it .
    Somebody Can help me to result this problem.

    I did everything written ''it solved'' but nothing solved. I think I'll begin to use chrome :(

  • How to clear items after a new SelectList item chosen...

    Environment: APEX 3.1.1.00.09 on AIX 5.3
    Question 1: I have a SelectList with Submit that lets the user select a builder, in this case, and then the user enters other information about that builder like address, and contact information.
    After the page is committed and the user wants to go back and change to a different builder I'd like to be able to clear the other items when that new builder is selected since that information will have to change.
    I can't seem to see how to trigger a process on a different value being selected in the SelectList drop-down.
    Question 2: Is there a way to force a COMMIT when a user clicks on a tab other than the one they're currently on? Again, I couldn't see how to trigger a process based on a tab being clicked.
    Any help is greatly appreciated.
    -gary

    OK - I've just set up a quick test that had a form on page 2 and another page on page 3. When I open page 2 and then click on the tab for page 3, I have the following debug messages:
    0.12: Session State: Save form items and p_arg_values
    0.13: ...Session State: Save Item "P2_EMPNO" newValue="" "escape_on_input="N"
    0.13: ...Session State: Save Item "P2_ENAME" newValue="" "escape_on_input="N"
    0.13: ...Session State: Save Item "P2_JOB" newValue="" "escape_on_input="N"
    0.13: ...Session State: Save Item "P2_MGR" newValue="" "escape_on_input="N"
    0.14: ...Session State: Save Item "P2_HIREDATE" newValue="" "escape_on_input="N"
    0.14: ...Session State: Save Item "P2_SAL" newValue="" "escape_on_input="N"
    0.14: ...Session State: Save Item "P2_COMM" newValue="" "escape_on_input="N"
    0.14: ...Session State: Save Item "P2_DEPTNO" newValue="" "escape_on_input="N"
    0.14: ...Session State: Save Item "P2_EMP_YN" newValue="" "escape_on_input="N"
    0.15: ...Session State: Save Item "P2_PHONE1" newValue="" "escape_on_input="N"
    0.15: ...Session State: Save Item "P2_PHONE2" newValue="" "escape_on_input="N"
    0.15: ...Session State: Save Item "P2_END_DATE" newValue="" "escape_on_input="N"
    0.15: ...Session State: Save Item "P2_START_DATE" newValue="" "escape_on_input="N"
    0.15: ...Session State: Save Item "P2_DEPTNO_MULTI" newValue="" "escape_on_input="N"
    0.15: ...Session State: Save Item "P2_TEST_ID" newValue="" "escape_on_input="N"
    0.16: ...Session State: Save Item "P2_PRIMARY_EMPLOYEE" newValue="" "escape_on_input="N"
    0.16: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
    0.16: Branch point: BEFORE_COMPUTATION
    0.16: Computation point: AFTER_SUBMIT
    0.16: Tabs: Perform Branching for Tab Requests
    0.03:
    0.03: S H O W: application="33330" page="3" workspace="" request="" session="2218079982129787"
    So, the data IS being saved before the tab branching is performed.
    Andy

  • Add form fields dynamically onchange of a select box.

    I have a JSP page with a <h:form>:
    <h:form id="registrationForm">
         <h:outputText value="#{Resource.EmailAddress}" /><br />
         <h:inputText label="E-mail Address" id="emailAddress" value="#{RegistrationBean.emailAddress}" required="true" requiredMessage="#{Resource.RequiredError}">
              <f:validator validatorId="EmailValidator" />
         </h:inputText><br />
         <h:message for="emailAddress" styleClass="error" /></td>
         Select age range<br />
         <h:selectOneMenu id="ageRange" value="#{RegistrationBean.ageRange}" valueChangeListener="#{RegistrationBean.updateComponents}" onchange="javascript: return submit()">
              <f:selectItems value="#{RegistrationBean.ageRangeValues}" />
         </h:selectOneMenu><br />
         <h:commandButton id="submit" value="#{Resource.Submit}" />
    </h:form>When the user changes the value for the ageRange select box, the form gets submitted through the following JavaScript:
    function submit() {
         document.forms[0].submit();
         return true;
    }Then the ValueChangeListener defined in a backing bean for the ageRange select box gets called:
    public void updateComponents(ValueChangeEvent e) {
         // Generate components automatically
    }What I want is, when the user changes the value of the ageRange select box, the valueChangeListener should generate a few new text fields in the form and the validator for the e-mail address field shouldn't get called. The validator for the email-address field should only get called once the user clicks on the Submit button.
    Any help or pointers will be greatly appreciated.

    You can find here lot of pointers: http://balusc.blogspot.com/2007/10/populate-child-menus.html

  • Report with several radiogroup based on Collection, onChange event?

    Hello all,
    my Re: Report with multiple choice Radio Group possible thread gave me a report with three radiogroup items.
    The report is based now on a collection with 50 members.
    Checking /unchecking the state of an option should change the value for one member_attribute of the affected member.
    Each change Event should fire a update_member_attribute against the collection.
    A submit Item after completing will bulk insert all members into a different table.
    Can I implement a simple onChange process against the Apex_Item.Radio_Group statement of the query ?
    Or is there a process type which suits my needs ?
    Regards
    Franz

    I was able to schedule the report based on the event by hardcoding the id with the code snippet that you provided - Thanks
    But actually my question really should have been...
    I have an event with the following attributes:
    Type: File
    Event Name: Indicative Data
    Description: Indicative data trigger file.
    Server:  XXXXXXX.eventserver 
    Filename: D:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\Trigger\Indtrigger.txt
    My assumption is that I would need to query CI_SYSTEMOBJECTS to get the ID of this event using this query:
    Select * From CI_SYSTEMOBJECTS Where SI_NAME = 'CrystalEnterprise.Event'
    But unsure how to proceed from there to get event information that I need.  If this is not the correct way of retrieving events, would you be able to provide me the correct query and/or code snippets?

  • Apex 3.2, How to use an onchange event with Popup Key LOV - it ignores me.

    Hoping there is a simple solution to this.
    Using Apex 3.2 with a simple form with a few fields. When the user selects a value from a Popup Key LOV, I want to fire a javascript onchange event and alter another field on the form.
    Seems simple enough, except that I can't figure out how to make the PopUp respond to onchange events. The default template seems to ignore javascript entered into the attribute fields that work in other form fields. I know this is simple do to for a select list - it works as expected there. A select list is not a good option because of the huge number of possible returned values.
    Even tried a different approach...to register the onchange event using the "addLoadEvent" with this code (this also does not work):
    function setThisUp() {
    var x = document.getElementById('P105_CTR_ID');
    x.onClick = popupLovChanged;
    function popupLovChanged() {
    alert('OMG IT WORKS!');
    addLoadEvent(setThisUp);
    If any of you have some advice on how to make onchange work, it would be greatly appreciated.
    Thanks in advance
    -Rich

    For those still looking for a solution.
    I found that you can overwrite the default javascript function passback(x) in the popup lov's template, just add your function in the After Field Text field of the template
    e.g.
    <script> function passBack(x) {
    opener.document.getElementById('P2_PROGRAMME').value = x;
    opener.document.getElementById('P2_PROGRAMME').focus();
    close();
    } </script>
    this is going to populate the 'P2_PROGRAMME' field with selected value, and focus on it.
    in your case, just add the codes you want to run into the passback function.
    hope this helps

  • Gallery: Onchange seems not to fire

    Hi everybody,
    i am at a loss with IE6 and 7. My foto gallery
    http://www.hannes-renate.de/bali06/index.html
    is functioning with Firefox, but with the Internet Explorer it
    seems that the onchange unit of the select element to choose the
    album seems not to fire for the first option element and therefore
    Spry will not further develop the thumbnails. Choosing another
    option in the select box is ok. But going back to the first option
    element 'Reisfelder' there is no action.
    What are i doing wrong?
    Hannes Löhr

    Hi Kin,
    thank you for your effort. Unfortunately your suggestion has
    no effect on the behaviour of the page. Having no diagnostic tools
    in the IE (beside the DOM Explorer, which shows none of the select
    options being selected!?), i have to take the hard way: removing on
    gimmick after the other until the failure doesn't show.
    Where did you see the error in my page?
    What diagnostic tools do you use?
    Hannes Löhr

  • Help with OnChange in cfselect

    Hello
    I'm hoping somebody can help me.
    I am using cfform with "flash" format and what I am trying to
    do is open an edit form and requery the cfselect box onChange.
    Basically the form has a cfselect field at the top and when the
    cfselect field is changed I want the other fields on the form to be
    updated with the correct information.
    <cfformgroup type="horizontal" label="Catchment ID:">
    <cfselect enabled="yes" name="CatchmentID" tooltip="Enter
    Catchment ID" required="yes" message="Enter Catchment ID"
    multiple="no" query="getCMTQry" value="CatchmentID"
    selected="#getCMTQry.CatchmentID#">
    <option value="#getCMTQry.CatchmentID#"
    <cfif (isDefined("getCMTQry.CatchmentID")
    AND getCMTQry.CatchmentID
    EQ getCMTQry.CatchmentID)>
    </cfif>>
    </option>
    </cfselect>
    <cfinput type="text" name="CatchmentName"
    label="CatchmentName:" message="Enter Catchment Name" size="37"
    required="yes" tooltip="Enter Catchment Name">
    <cfinput type="text" name="CatchmentCostCentre"
    label="Cost Code:" value="#getCMTQry.CatchmentCostCentre#"
    tooltip="Enter Cost Code" size="10">
    </cfformgroup>
    Thank you in advance for any help.
    Diane

    What modem do you have?
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

Maybe you are looking for