LOV with Submit/Redirect

Hi there,
I have a form based on a table that contains several Select LOV's with Submit and I have set everything to only go to source if value is null etc.
The form works without errors.
My problem is however that if I change/make a selection using one of these select lists and the select list is quite a way down the page, I have to scroll down again to see the value I have just changed because the page re-renders back to the top which starts to get annoying!
Does anyone know how I can submit/redirect my page and have the screen return me to the position where I triggered the redirect/submit from?
Any suggestions gratefully received.
Except any suggestions saying I should put the lov's at the top of the page!
James

Well done that man!
Excellent.
Thanks for the help.
I downloaded your application and it looks superb! Lots of useful examples in there. I look forward to investigating it fully. However, I will point out that it doesn't work! I think that's because I am running version 2 not 2.2???
The main thing is is that I can see the pages in edit mode so I can see how they work in principle even if they aren't working when running them.
Thanks again for the tip.
James

Similar Messages

  • Popup LOV with Submit

    I'd like to use a 'Popup LOV (first rowset)', but that requeries my form content like a 'Select List (with submit)'. Any suggestions?

    Any new developments with this thread?
    I am trying to do the same thing: have a Popup LOV (display description, return key) that submits so that a second Popup LOV can display dependent on the value selected in the previous Popup. The initial list can be HUGE so the searchability built-in to the Popup is essential.
    I've tried the javascript suggestions onFocus=javascript:doSubmit() (also event of onChange) in the first item element attributes and created a branch but it's not working. Perhaps I'm doing something wrong?

  • Checkbox with submit

    Hi,
    Is there checkboxes with submit/redirect in APEX 3.2 / 4.0? I'm using 3.0 and there's no option :(
    Is there an alternative I can do? Maybe something like Form Element Option Attributes - onclick=refresh()/reload() except I need it to recognise in the session that the checkbox is selected (it remains selected with some options but item conditions dont occur and it doesnt recognise the checkbox's value in the session section.
    Mike
    Edited by: Dird on May 7, 2010 2:38 PM

    Hi Mike
    onclick=doSubmit('YOUR_REQUEST_VALUE');In the HTML Form Element Attributes should do it.
    I don't know about 4.0 but it's not in 3.2.1.
    Cheers
    Ben

  • Simple select list with submit solution

    hello,
    i read all the topics on select list with submit bottton but couldn't get it to work in my app.
    i have a form on a table( create with a wizard). i have 2 fields that i converted from text field to select list (first with submit and the second depand on the value of the first).when the 1 lov source type is db column then it can't save the value after the submit.
    when i change the first lov to somthing else and set the source used to "only when current . . " i get a null value in the table.
    how can i save the state of the first lov and still get the insert to work ? please guide me step by step .
    here is the first love definition:
    select cat_desc,catid
    from category_main
    order by catid
    the second lov:
    select cat_desc,catid_sub
    from category_sub
    where catid = :p36_mcategory
    the proccess is Automatic Row Processing (DML)
    thanks

    thanks for the answer
    i will try clarify my problem
    i create a form with a form on table wizard
    the desc table is
    bugid pk
    mcategory (main category)
    scategory (sub category)
    the mcategory,scategory need to be cascade lov so i changed what the wizrd created for me (text field) to lov.
    i changed the mcategory to lov with submit.
    i created a branch to the same page for the lov.
    when i run the app and change the mcategory the page submit but does not save the change.
    i also cant change the source used to "only when curren ..." because the source type is "db coulmn"
    thats my problem , i just want to create a cascade lov on this form .
    here is the example
    http://htmldb.oracle.com/pls/otn/f?p=19496

  • Chart based on Select list with submit Lov problem

    Hi,
    I have one page with interactive report showing username with links, date and
    database actions.
    Another page contains one region having flash chart based on select list with submit Lov.
    The lov is created by dynamic query.
    Every time when i click the 1st page report link, the 2nd page lov is populating the value automatically. But the problem is chart displays NO DATA FOUND message though the LOV has many values.
    I don't want to display any null values so set to NO for LOV
    I tried to write Before header computation (PL/SQL Function Body) to set the lov value, but the query is displayed as such.
    I don't want to assign any static default value also as the values are dynamic for every link.
    The following is my Before header computation of Select list with submit (Item name is p11_schema). (PLSQL Function Body)
    begin
    if :p11_schema is null then
    return 'select distinct owner schema1, owner schema2 from auditing
    where access_date=' || :p11_access_date
    || ' and username=' || :p11_username
    || ' order by owner';
    end if;
    end;
    This is my chart query.
    select null link, obj_name label, sum(sel_count) "Select", sum(ins_count) "Insert", sum(upd_count) "Update", sum(del_count) "Delete" from auditing
    where username=:p11_username
    and access_date=:p11_access_date
    and owner=NVL(:p11_schema, OWNER)
    group by owner, obj_name
    Example: If there more than one records in the lov, the graph should display the 1st record. When i select another record, the chart accordingly display the selected values. But inially it should not display "NO DATA FOUND" message.
    I tried using all the combinations of computation type for the lov, SQL query ( I could not use if conditon then), PLSQL expression, PLSQL function body. But it does not work out.
    Can anyone please help me out.
    Thanks.

    Hi Scott,
    Thanks for your reply.
    I found out the solution for this problem as below.
    But i did it in different way to tackle the dynamic query wich returns more than one record using rownum always the 1st record when it is empty instead of assigning constant (static) value like '1'. And i am returning LOV itself for both null or not null condition as below.
    Declare
    q varchar2(4000);
    begin
    if :p11_schema is null then
    q:='select distinct owner schema from auditing';
    q:=q || ' where username=:p11_username ';
    q:=q || ' and access_date=:p11_access_date ';
    q:=q || ' and rownum<2 order by owner';
    Execute immediate q into :p11_schema USING :p11_username, :p11_access_date;
    end if;
    return :P11_SCHEMA;
    end;
    Thanks.

  • Returning from a JSF flow with faces-redirect

    I'm using Glassfish 4.1 with JSF 2.2.9. I can't figure out how to return from a JSF flow with a redirect. I've tried this in the flow definition xml:
    <flow-return id="returnFromFlow">
        <from-outcome>/index.xhtml?faces-redirect=true</from-outcome>
    </flow-return>
    This does the redirect but results in navigation errors on the page, specifically the button that enters the flow again: "Unable to find matching navigation case from view ID '/index.xhtml' for outcome 'select-person'" (the flow is called select-person).
    I've also tried appending faces-redirect=true to the action of the commandButton that exits the flow. Now the flow does not exit, it reloads the current page within the flow and says "Unable to find matching navigation case with from-view-id '/select-person/select-person.xhtml' for action 'returnFromFlow?faces-redirect=true' with outcome 'returnFromFlow?faces-redirect=true'"
    Exiting the flow with h:link works, but I want to be able to call an action and submit form values with the button so that isn't a good workaround for me.
    What's kind of interesting is that navigating between views within the flow DOES work with faces-redirect=true. I can add a "step2" node, and a commandButton with action="step2?faces-redirect=true", and it works. It's just exiting the flow that does not work.
    Any ideas?

    Hi Frank,
    Thanks so much for your response.
    Yes, since the user can do a commit prior to exiting my edit task flow, option 1 will not work for me.
    Option 2 sounded feasible, but jdeveloper would not let me set the restore point to true, since my btf didn't require a transaction. Is there a step I'm missing here??
    The thing that is really getting me when return via the cancel button from this edit task flow, back to my parent task flow, the record pointer is always moving back to the beginning of the data set in my parent task flow. For example,if I have a data set
    rec1, rec2, rec3..
    On my parent taskflow call it browser task flow, I navigate (via the next button) to rec3, and I click edit. At this point, my edit task flow kicks off, and since both task flows share the same data control, the edit task flow rec pointer is the same as the browse one.
    Okay I decide I don't want to change anything in my rec3, so I click cancel.
    At this point, when I return back to the navigator task flow, it points me back to rec1 ..
    HOwever, the savepoint seems to fix this. When I set my cancel return from edit taskflow to savePoint = true, the rec pointer stays in the correct spot. However, I cannot always do this, because the user can make iterative saves in the edit task flow which (based on your previous email) stales out the savepoint id.
    Question, so in this case, how can I make the parent browser task flow call stay on the same record I was just editing, opposed to going back to the beginning of the data set(ie. rec1)??

  • SELECT LIST WITH SUBMIT NOT POPULATING

    I have 3 fields; They are ID, Shortname(PRIMARY KEY), Longname. Longname is a select list with submit based on an lov (called system_longname description) that has a return value of ID. I need to select a value (longname) from that list that will populate automatically the ID and Shortname fields. This is the code I'm using for ID and Shortname, which are both text boxes. The view VSYSTEMS is where the lov is getting it's values.
    'SELECT ID FROM VSYSTEMS WHERE ID = :SYSTEM_LONGNAME DESCRIPTION';
    'SELECT SHORTNAME FROM VSYSTEMS WHERE ID = :SYSTEM_LONGNAME DESCRIPTION';
    Can anyone help me? I keep getting these error messages: invalid SQL statement or SQL command not properly ended.

    Matthew,
    Is this a follow-up to Automatic field population by selecting a LOV ?
    What is the purpose of 'DESCRIPTION' at the end of each query?
    Scott

  • Using a Select list with Submit

    I am trying to use the select list with Submit on my page.
    I have 3 select lists.
    On the first one,I am showing the list of all jacks.
    When the user selects a jack from the first list, I want to show all the jacks except the one which was selected.
    When the user selects a jack from the second list, I want to show all the jacks except the ones selected in the first list and the second list.
    I have created the select lists with submit and then I have put the query for getting the jacks. I created an unconditional branch. I am also passing the variables so that I can set the values of the items on submit.
    I also created a computation as mentioned in one of the OTN discussions, and have mentioned the value of second list to be calculated from the first and 3rd from first and second.
    But after clicking the first select list, I am losing all the existing values on the first page. I wonder what I am missing here. Can anyone hellp?
    Thanks,
    Gargi

    Gargi,
    In this case using 'select list with redirect' makes more sense rather than with SUBMIT. So change all the select lists to 'select list with redirect' (it redirects to same page inserting 'select list' value session state).
    Now for the 2nd select list query add a condition in where clause like
    WHERE sl_col != :P1_SL1And for the 3rd select list query add a condition in where clause like
    WHERE sl_col NOT IN (:P1_SL1, :P1_SL2)Hope it helps :-)
    Cheers,
    Hari

  • Select list with submit issue when they are referred in report region query

    I have a page with a reporting region. Same region also has 3 different list items and depending on the value selected in each item, the report is refreshed. All the 3 list items are "Select list submit with submit"
    Out of 3 items, 2 (say item2 and item3) are populated through dynamic LOV using the value in item1.
    Additionally, when I select a default "ALL" value in in item1, I ignore values in item2 and item3.
    With this background, I am a following issue:
    1. I select a value other than Default value in item1 which filters the report.
    2. Then I select some value in item2 which further shrinks the reports.
    3. Now if I go back to item1 and select the default "All" value, the report is not refreshed with the new values of item1, item2 and item3. But it still shows the report based on value of item2 that I selected in step2.
    How do I set the value of item2/item3 to null if value of item1 is default which is "All"
    Any word of advise will be a great help!
    Thanks,
    Girish

    Hi,
    Make two computations each with the computation text NULL; or
    Make one process with code like:
    BEGIN
    :P1_ITEM2 := NULL;
    :P1_ITEM3 := NULL;
    END;With the condition "Value of Item in Expression 1 = Expression 2"
    Expression 1: P1_ITEM1
    Expression 2: ALL
    (or whatever the return value of ALL is...remember that this is case sensitive)
    Mike

  • Cascading LOV and submit page

    Hi,
    I have a series of LOVS on a page each using the 'Select list with submit' attribute and 'Source Used' set to 'Only when current value in session state is null'. The cascade feature works ok once I branch back to the same page. However when I set the 'Select list with submit' attribute on the LOV item I am unable to save the data back to the database with the submit page button.
    Any ideas?
    Thanks

    Steve - Make sure the "save" process fires only when the submit button is used (base the process condition on the value of the REQUEST or use a when button pressed option) and check that no branches are firing before the process runs.
    Scott

  • Dynamic LOV without Submit

    I have an LOV which is used by a pop-up item and depending on the value of an item, p_userchoice, returns a specific select which the pop-up then uses to generate a nice pop-up list for the user.
    I also have a dropdown (with Submit) that sets the value of the above-mentioned item, p_userchoice.
    This works fine. However, ....
    I want to make the dropdown a NON-submitting dropdown. I just don't like submits when not absolutely required.
    I have tried many things here ...
    1) setting a page item value in javascript which I then try to interrogate in the LOV (doesn't work because correct value is not visible unless page was submitted)
    2) setting an application item in javascript ... (inconclusive) ...
    Contemplated :
    1) using set_session_state ... (don't know how w/out a submitting action)
    2) smokin' crack ...
    Grateful for helpful suggestions. TIA, Ken.

    Ken,
    I often have trouble thinking in the abstract - do you have a concrete example of what you want to achieve. It sounds like you're looking for a clairvoyant option ;-) Do you have an application on htmldb.oracle.com that I can run to get a feel for what you want?
    As you know, we're talking html here. The server only knows about changes on the screen when the page is submitted - therefore, you have to submit if you want to change the session state. The alternative is to do things in javascript so you'll need to find a javascript event you can hang your code on (and I'm not a javascript coder by anyone's definition, so it's over to someone else for this part) but, still, the LOV is a 'server side' beast.
    Maybe you can achieve what you want by making the select list one without a submit and adding a 'Go' button beside it so that the user has the option - make his/her choice then submit when he/she is ready.
    Hope this makes sense.
    Cheers,
    Bryan.

  • Date Picker with submit

    Hi, I have 2 Date Pickers: The first date Picker contains date of the beginning (P203_BDATE), the second contains date of the end (P203_EDATE).
    I made item P203_EDATE with submit (I set HTML Form Element Attributes of P203_EDATE to onchange="doSubmit('P203_BDATE','P203_EDATE');" ), so submit works after choosing end date and I get rows between begin and end date. (I use tabular form)
    My problems:
    1.I don`t know how to clear items P203_BDATE,P203_EDATE to get all rows of the report (may be something like "no date" in calendar)
    2. I want to do P203_BDATE with submit only if P203_EDATE is not null (if user will want to change the beginning of the period after the first filtering of data)
    Does anybody know how to solve these?
    Thanks a lot

    Hi Suri.
    1. Respect to clear the values of begin and end dates, for see all table records, what you should to do is the opposite to clear, cause you're using between condition. Then you will want to assign a low value for begin as '01/01/1956' and a high value for end date as '12/31/2060'. You can add other controls as Select List with Submit to determine the date ranges, or what you consider better.
    2. To perform the submit only within your desired condition, you must add in the branch that fires the redirection to the same page, :P203_EDATE is not null as PL/SQL condition
    Regards

  • Keeping cursor in same item where Select List with Submit is ued

    Hi,
    I am using Select List with Submit and when I do this and redirect to same page, cursor focus goes to first item in region or page.
    How to keep the cursor in same item?
    Pl Help as I am not very sure to it in Java Script and i am having such items more than 50 per page.

    APEXDeveloper,
    Try this:
    Suppose ur select list with submit is "P1_SELECT" and the item to set focus on is "P1_MAIN".
    In ur page HTML Footer, use something like:
    <script language="javascript">
    if($x('P1_SELECT').value!="")   ---> when a value is selected in the select list (assuming that the select list can also display a null value)
    {$x('P1_MAIN').focus();}
    </script>Hope this at least gets u started.

  • Select List with Submit Not pulling % values

    Hello All,
    I have a tabular form in app and displays data based on choice selected in 'select list with submit' from Item, it works fine for values chosen, when i choose '%' I want to display all the records existing in the tabular form but instead it says 'No Data Found'. How do i solve this ? Kindly advice and help.
    ex:
    Tabular form query-
    select a, b
    from table
    where a like :ITEM
    Item:
    Type: select list with submit
    Named LOV:
    select a d, a r
    from lookup_table order by 1
    Appreciate your response.
    Thanks and Regards,
    Senana

    Hello,
    You need to check what value is returned by select list when you select '%' in the select..
    there is a field display null value as where you can enter '%' and return value of null you can enter 0
    and then modify your tabular form query to
    select a , b from table where a like :ITEM OR :ITEM = 0
    Regards,
    Shijesh

  • Select List with Submit : a display and a return value are needed...error

    Hi,
    Why the next SELECT returns error in Select list with submit ?
    List of values definition:
    SELECT b.nom nom_bannniere,
    b.no_banniere no_bann
    FROM banniere@my_source b
    WHERE b.statut = 0
    ORDER BY nom_bannniere;
    1 error has occurred
    * LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query.

    gfrancoeur,
    Try this SQL:
    SELECT b.nom d,
    b.no_banniere r
    FROM banniere@my_source b
    WHERE b.statut = 0
    ORDER BY 1Thanks,
    - Scott -

Maybe you are looking for

  • Problem with itunes and iphone 3g

    I was trying to upgrade my phone to the next level so I could use icloud with it because I plan to get an iphone 5 and wanted to be able to have all my stuff on the new phone. When I tried to upgrade the phone a message pops up on the home computer a

  • Alpha Channel on the Web?

    I know this is a shot in the dark, but are there any QuickTime codecs which would allow for an alpha channel on embedded web content? I want to put a QuickTime movie (a keyed out Narrator) onto a large webpage background image. Suggestions? Thanks!

  • Transparen​cy option stopped working

    HP Scanjet 4890 Mac OSX 10.9.4 After spending all day developing film I find myself unable to scan contact sheets from the film. Made one attempt using Vue Scan software, by placing the film strips directly on the glass. The result was less than opti

  • MemoMic microphone

    I got the MemoMic recording device for my iPod, and it works great for that. However, when I plug the microphone directly into the "Line in" slot of my Macbook, it doesn't do anything. I have changed the settings in System Preferences away from syste

  • Blah.equals() for ints?

    I know for strings and such you sometimes have to use .equals() since they may not point to the same object but the values may be the same. What is the equivalent expression for ints? == isn't working, and if I use equals it gives the error: "int can