Combo Box in Portal Form resets after query

Hello all,
I have a portal form based on Stored Procedure. In it I have a Location combo box and Query button in addition to few text items. Users can select location from the drop down list and hit Query button to view the values in for the text items. The query part is working fine. But after query the Location resets to Null (as the LOV which feeds the combo box can have Null). We would like to keep the location they chose to query up even after the query results. Any help is appreciated.
The Location item is in the parameters of the Stored Procedure. Initially it was IN, later I changed to IN OUT but there is no change in functionality.
I also removed the ability to accept NULL for the LOV which feeds Location Combo box but now it is displaying the first location on the list after the query, which is even worse.
Thanks in advance,
Manohar

You're catching Exceptions in empty catch() blocks. There might have been an exception, but you won't know if the catch block doesn't do anything.
Try something like this:
catch(SQLException e){
    System.err.println( "Problem with db query"+e.getMessage() );
    e.printStackTrace( System.err );
}in order to see what's going wrong with your code.

Similar Messages

  • Combo boxes on web forms

    I'm currently converting a forms v4.5 application onto 9iAS with web forms. I'm have major problems with my user community as combo boxes are no longer supported under web forms and they use them extensively.
    To try and overcome the problem I have converted the combo box into a 'TEXT_ITEM' and set up a LOV called from a button. This works for inserting new records, but when they query back existing records no data is displayed in the text_item boxes.
    Does anybody know how I get the LOV to fire JUST to display back existing single row data.
    Many Thanks
    Jez Thorpe.

    combobox is available on webform, but it did not deliver what a standard combobox supposes to offer.
    e.g., 1) it can display one column and return one valure;
    for emp table, there are ename and empno:
    ename empno
    David M Brown 100
    David M Brown 101
    David L Miller 103
    Then I have to use LOV to display these records of different persons and same name. If you try MS OFFICE, with ACCESS, you will see how nice the combox it is. Of course they are industry GUI standard, forms cannot do it, it is normal.
    2) it does not support partial search as seen on MS Access application
    for ename records in the list,
    David M Brown
    Bill L Kim
    Bill P Kelly
    What is expecting is that if user types in 'D', then the first records should automatically populate into the box's text field; if types in 'B', then the shortened list with the two records beginning with 'B' should be displayed for user to pick.
    This can be seen on MS ACCESS, but not on webforms.
    When we say combobox is available, it is not accurate enough to define the 'availability' of it.

  • Disabled combo boxes don't display properly after loading a movie.

    Hi,
    I have a main movie that contains some combo boxes. Some of them may be disabled.
    By pressing a button I load another movie using loadMovie. The loaded movie also contains combo boxes.
    When the button is pressed, the clip that shows the combo boxes is removed from the stage and the loaded movie is displayed. By pressing another button, the loaded movie is unloaded and the clip with the combo boxes is displayed again.
    Well, once the other movie has been loaded, when I go back to the clip with combo boxes, the disabled combo boxes have a small gray button covering the black down arrow.
    I have determined that so long as the loaded movie contains combo box in the library, the problem occurrs, even if there is no actual instance of it.
    The combo boxes that are not disabled are not affected. The combo boxes are disabled by setting "cb_name.enabled=false".
    If the combo box is enabled, it displays correctly, but if disabled again, it goes wrong again.
    My project is targeting Flash 8, so it uses AS2.
    I'm using Flash CS4.
    This is a very simple example I did to make sure I wasn't doing anything funny:
    Initially:
    After pressing the button:
    After pressing the other button:
    The behaviour in a web browser is the same...
    I hope someone can help me with this. Thanks in advance!

    Thanks for the response.
    The "Load the movie" button:
    on(click)
        _parent.gotoAndStop(2);
    The 2nd frame:
    loadMovie("Test another child.swf",Container);
    stop();
    The "Unload and go back" button:
    on(click)
        unloadMovie(_parent.Container);
        _parent.gotoAndStop(1);
    Container is a movieClip with a dark gray square shape the size of the movie clip that is loaded. It doesn't exist on frame 1, only on frame 2.
    The combo boxes are inside a movie clip, and this is only on the stage on frame 1.
    This and the captures belong to a very simple test I did. If there is a way of posting files, I can post a zip file with the two .fla and the two .swf.

  • Help with Radio Buttons & Combo Box for Flash Form that sends email

    I'm having a bit of a hard time with a Flash form that I'm working on.
    I've got the basic text fields working fine, but I'm not sure how to retrieve the values from the Radio Button and Menu List components.
    The PHP script pulls the values from the text fields with:
    $contact_name = $_POST['name'];
    $contact_email = $_POST['email'];
    $contact_subject = $_POST['subject'];
    but using
    $radioGroup = $_POST['radioGroup'];
    doesn't retrieve the selected radio button value.
    The radio buttons have a groupName of "radioGroup". The combo box component doesn't even show up in the HTML version, but does in the .swf.
    Can anyone point me in the correct direction to pull these values from these components and get them passed to the PHP form? The native .FLA and the php file are here for reference:
    http://dl.getdropbox.com/u/21984/flashform.zip
    My solution needs to be ActionScript 2.
    Thanks!

    again, you assign a variable.  the selected radiobutton's data and/or label isn't going to magically be sent to the php file.
    for example, if you have sendLV and receiveLV loadvars instances, you can use:
    sendLV.rbData=yourradiogroup.selection.data;
    sendLV.yourothervariables=yourothervariables;
    sendLV.sendAndLoad("yourphp.php",receiveLV,"POST");

  • Contact Form Resetting after Submission Bug?

    Currently, when a contact form is submitted, all fields are cleared out and it appears that it returns to the Non-Empty state. However clicking in a field and then back out of it will make it go to the Empty state, as it seems like it should after submission. This seems like a bug?
    How do I make my contact form fully reset after clicking Submit?
    Also, is there a way to make a Clear Form button, or a widget that exists that does this?
    Thanks!
    Jeff

    Hi Sanjit,
    I agree, that's what it should do, however it doesn't. After submission, the form returns to the Non-Empty state with all form data removed. When you click on a field and then back off of it, it then switches over to the Empty state.
    Example: http://generationone.com/supportcenter/index.html
    You can see that after you submit the form, it resets to the Non-Empty state.

  • Default selection in combo box at struts form

    hi friends..i am new person in struts form..this is my prg.. display combo box value in 18. but i want 20...how to write program....plz anybody help me....thank you............
    <%
    for (int index = 18; index < 56; index++)                                                                           %>
    <html:option value="<%=index + ""%>">
    <%=index + ""%>
    </html:option>
    <% } %>

    what you need is field "value" in the select:
    [http://struts.apache.org/1.2.x/userGuide/struts-html.html#select]
    see "value" property
    (found it easily with "struts option selected" on google)

  • [php+mysql] linked combo box in insert form?

    Hi all,
    I would like to add two list box on the same insert form.
    The two list box should be linked each other with a 1:1 relation.
    The data in the two compo box could be static data; no need to use
    dynamic data here).
    Selecting from list box 1 will automatically select the related value
    from list box 2.
    Vice versa, selecting a value on list box 2 will automatically select
    the related value on list box 1.
    Is there a way to do this using ADDT?
    TIA
    tony

    >Hi Tony,
    >
    >did you read my reply to your very similar question "Dependent drop down or not?" in this thread:
    >
    >Cheers,
    >Günter Schenk
    >Adobe Community Expert, Dreamweaver
    Hi Gunter,
    No, I've seen your post just now. :(.
    I too I've never seen nothing similar, but the customer said that the
    last year another company have done this for him. But I haven't seen
    those pages and we can't get the source code :(.
    Perhaps a dropdown menu showing two fields could help.
    Or, even better, an editable drop down menu that allow you to type
    something and it will autocomplete automatically using the first field
    or the second field.
    Is this possible?
    TIA Gunter.
    tony

  • Combo box in form manager

    Hi!
    I've made a form in Designer 8 with combo box, tested it (everything was ok) and than upload it to form manger. And here the problem beggins. When I'm writting something in combo boxes field it looks like there wasn't any or sometimes I can write only 10 letters when the Combo Box was set up for 11. Why is that? I want to use Combo Boxes. Is it a bug of FM? Thanks.

    VC,
    Have you had a chance to add an example? I checked your application and could not find the combo box in tabular form.
    Robert
    http://apexjscss.blogspot.com

  • Access 2010 Combo Box Failure on Database Close

    Problem: create a combo box with recordsource on table or query; Initially combo box "works" ; i.e when you begin to type values the combo box looks up the first matching value based on the recordsource.
    HOWEVER: Once you close the database and reopen this functionality is completely LOST...the values are still in the recordsource, if you click the dropdown all the values are displayed; however when typing in values the combo box no longer gets the first
    or any matching record.
    Thus the combox is all but useless unless there are very/very few records.
    Solutions I have tried:
    1. Creating a compleley new datbase (blank) ; a blank form with only a combobox. 
    2. Importing my forms into a new blank database
    3. changing the recordsource settings from queries to tables to sql.
    4. running a /decomple on the database
    Absolutely nothing I have done works and I have spend hours doing this.
    I literally have no idea what is going on here.
    Help ...this is a critical issue.
    jawsurgeon

    Hi Jawsurgeon,
    According to the description, the AutoExpand feature provied by comboBox didn't work after you close the database.
    Please first check the AutoExpand property is true. And here is a sample database, you can download it from link below:
    ComboBoxAutoExpand
    Also please check whether the KB below is helpful:
    The AutoExpand property may not work when ANSI-92 syntax is enabled and the Combo Box RowSource does not use DISTINCT values
    If it still didn't work, I suggest that you repair the Access to see whether the issue was fxied.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Problem in populating 2nd combo box depending upon the selection of 1st

    Hi all,
    I have 2 combo boxes on my jsp page ,say continent and country . obviously the data in 2nd box is dependant on selection made in the 1st . I'm using MySQL with tomcat 5.0.7 . and JSP.
    The first combo box in one form and the 2nd in another. After submitting first i 'm populating the second combo also.
    But the problem is after submitting the first form the page gets refreshing and i can't see the selected continent in the first combo box.
    The javascript code used follows:
    function callCapture(form)
    var item = continent.cmbContinent.selectedIndex;
    document.country.hidContId.value=continent.cmbContinent.options[item].value;
    document.continent.action="country.jsp?hidContId="+document.country.hidContId.value+"&buttName="+document.country.buttName.value+"";
    document.continent.target="_self";
    document.continent.submit();
    some one pls help me asap !

    Hi Reegz,
    that's what i'm also doing and i'm successfull till populating the second combo box but how do I keep the previous inputs on the page and reload the page based on the change of a selection box?
    Is their any mistake in the javascript code:
    Here is the code:
    function callCapture(form)
    var item = continent.cmbContinent.selectedIndex;
    document.country.hidContId.value=continent.cmbContinent.options[item].value;
    document.continent.action="country.jsp?hidContId="+document.country.hidContId.value+"&buttName="+document.country.buttName.value+"";
    document.continent.target="_self";
    document.continent.submit();
    Pls help me...

  • Creating "Control Combo Box " Relation with data block

    Hi all dears
    i am switching from C# to oracle developer for joining gulf net software house, i have a problem regarding master detail data
    the senerio is
    "List items" control Filled programatically as under shortly:-
    rg_id := create_group_from_query('myrg', 'select dname a, dname b from dept');
    populate_group(rg_id);
    populate_list('mylist', rg_id);
    using this i fill my combo box during new form instance trigger
    i have created a datablock emp through wizard which can show 10 record.
    now
    Problem 1
    i want to show records on form when user select any dept from combo box.
    Problem 2
    if i create group from query and in select statement is like this "select dname, dpetno from dept" the record group is created successfully but i am unable to populate_list due to different data type colums in record group how i will populate list so that List items Labels are department name and value is department no
    Thanks in advance for persual

    Hi dears all
    I have solved this problem my self
    1. select dept name form combo box and the data block shows the emp's of concern depat
    solution
    create a data block of emp table through wizard
    create its table view and show 10 records
    go to datablock i consider its name "emp" datablock properties
    in Where clause condition specify deptno = : my_combo_box;
    now go to combo box when item changed event
    go_bolck("emp);
    execute_query;

  • Help with linking combo boxes so that some options are made unavailable

    Hello!
    I'm having trouble setting up an interactive PDF form with multiple combo boxes.
    I have designed an interactive PDF form in InDesign CS6 but am doing the final preparation and formatting in Adobe Acrobat XI Pro.
    First of all, I am not sure if I should be using combo boxes or list boxes, but the combo box seemd to look better after I export the PDF and also left the field blank, ready for selection from the drop-down menu.
    Basically I have a list of drop-down lists, but not all combinations are compatible. For example, after maing "Selection 1" in "Combo box 1", I need only "Selection 1", "2", and "3" [out of the total 5] to be available in "Combo box 2".
    I need to be able to apply this algorhythm to the next few combo boxes as well.
    Moreover, I would need some of the checkboxes disabled [the user won't be able to check them at all]when I make a certain selection in some of the combo boxes.
    Needless to say, I don't know any Java, coding or making calculations in LiveCycle Designer, so I don't even know where to begin.
    I have attached a screen grab of my form and what I want to achieve.
    Any help would be very much appreciated.
    Thank you!

    If it is static data, I would suggest you to cache it rather than having it in each of the user session. You can have configuration/code to refresh when needed. Please look at any available caching frameworks (EhCache, OSCache etc...)

  • Dynamic LOV/Combo Box

    I need to put an LOV/Combo Box on a form where they can select a date from a list of values. We have reports that our field reps have to submit for the previous friday. I have code to create a combo box. How can I add this to a form or create a LOV with this function:
    DECLARE
         n_NumofDays NUMBER;
         testdate VARCHAR2(50);
         selectedyear VARCHAR2(50);
         firstdayofyear VARCHAR2(11);
         firstfridayofyear VARCHAR2(11);
         upcomingfriday VARCHAR2(11);
         currentdate DATE;
         thisyear VARCHAR2(50);
         selected VARCHAR2(8);
    BEGIN
         selectedyear := TO_CHAR(SYSDATE,'YYYY');
    firstdayofyear := '01-JAN-' || selectedyear;
    firstfridayofyear := NEXT_DAY(firstdayofyear, 'FRIDAY');
    upcomingfriday := NEXT_DAY(SYSDATE, 'FRIDAY');
         htp.p('<select name="weekenddate">');
         htp.p('<option selected value="'|| firstfridayofyear || '">Friday '|| firstfridayofyear || '</option>');
              currentdate := firstfridayofyear;
              thisyear := selectedyear;
              x :=0;
         WHILE SelectedYear = ThisYear LOOP
         IF currentdate = upcomingfriday THEN
              selected := 'selected';
         ELSE
              selected :='';
         END IF;
         htp.p('<option '|| selected || ' value="'|| currentdate || '">Friday '|| currentdate || '</option>');
              currentdate := NEXT_DAY(currentdate, 'FRIDAY');
              thisyear := TO_CHAR(currentdate,'YYYY');
         END LOOP;
         htp.br;
         htp.p('</select>');
    htp.br;
    htp.p(n_NumofDays);
    END;
    Look forward to your answer.

    Rebecca:
    This is the standard call for a Portal-built form:
    PORTAL.wwa_app_module.link (
    p_arg_names => PORTAL.wwv_standard_util.string_to_table2('_moduleid:loc_code'),
    p_arg_values => PORTAL.wwv_standard_util.string_to_table2('2728668008:BHM'));
    The 1st parm is required, it id's the form to call; the 2nd parm, LOC_CODE, I'm having to hard-code. It relates to the specific page from where this form is called; therefore, I've several places throughout the site where I call this form and the LOC_CODE value is different. I've a field on on this form that gets populated with this value when the form comes-up, but I have it hidden. I can also use this value to drive the contents of a combo-box on the form. That's what I really needed to do; restrict the selection there based on where the form was being called from.
    Hope that helps...
    Ed in Tampa

  • Combo Box Clearing

    The combo box on my form has a list of valid values. When the form loads the combo is in a state where no value is selected.
    Once I have selected a value in the combo and added a record I want to clear the combo box for the next item to be added.
    The combo box retains the previous entry and there doesn't seem to be a way to put it in a null or non-selected state.
    Is there a way to set a combo box to a state where none of the valid values are selected, once one has been selected.
    Thanks for any help.

    thanks Dilip and Vishnu,
    I added the following to handle the case where the "" value already existed and to remove it if it was added just to clear the combo.
    try
    ddlStatus.Select("", SAPbouiCOM.BoSearchKey.psk_ByDescription)
    catch
    ddlStatus.ValidValues.Add("", "")
    ddlStatus.Select(ddlStatus.ValidValues.Count - 1, SAPbouiCOM.BoSearchKey.psk_Index)
    ddlStatus.ValidValues.Remove(ddlStatus.ValidValues.Count - 1, SAPbouiCOM.BoSearchKey.psk_Index)
    end try
    Mel

  • Combo Box - List Value Property

    I have a combo box in a form (Forms 10G) which is populated at runtime using values from a parameter table.But when I generate the form it gives a warning message that the list item property has to be filled .
    The combo box should display only the values from the database but it should not have any default values.
    How can I supress the warning message and avoid entering the list values proeprty at design time.
    Thanks in Advance.

    The warning is part of forms functionality, but is just that, a Warning, and the form should compile if not an error exists. Not sure if there's a way to suppress it, and You can simply leave the list with no values in Your design, as You will provide them at runtime. If coding is ok Your list should display the values You extract from the DB

Maybe you are looking for