Selectlist with redirect resets other value

Hi,
i created a form with several fields, one of them of type 'selectlist with redirect' (for a dependent LOV). When i start the form, change some fields and then change the contents of the selectlist, then this item is set and all others are reset to their initial state - so the previous changes are gone? What am i doing wrong???
regards
rainer

Rainer,
A Redirect is exactly that: a short circuit to another URL or page without any processing occurring. Use a select list with submit instead.
Sergio

Similar Messages

  • Selectlist with redirect

    Hallo reader,
    I need some help with a form with say 10 items.
    There are two selectlist(with redirect). After selecting (choice) clears all other items. Do you have a solution?
    If I change the selectlist from redirect to submit than it hold the values but then I have validation errors(because it is to early for submitting the page. some values are still empty). The solution is then to use Button pressed condition(validation).
    My question is: Is the possible to do it with Selectlist with redirect and hold the other values?
    Thanks.
    Walter

    Hi,
    Which version of Apex?
    It is possible through use of the f?p=...item(s):value(s) syntax.
    1. Change the Redirect to Page to Redirect to URL
    2. In the URL set the items on P1 as follows
    f?p=&APP_ID.:2:&SESSION.::NO::P1_ITEM1,P1_ITEM2,P1_ITEM3:&P1_ITEM1.,&P1_ITEM2.,&P1_ITEM3.In Apex 4 you have Select List with Setting Redirect and Set Value
    Regards,

  • Add button - redirect to other Entity with predefined value

    Hi,
    I have entities User and Student. In User I have attribute Role. For both entities I have created screens. And when I click on button Add on screen BrowseStudent, I want to be redirected to AddEditUser with predefined value (Student) of attribute User.Role
    in form AddEditUser and disable modifying this value by user. Is it possible in Lightswitch? Redirect to other method was simple but predefined value is problem for me. Thank you for help.

    Hi,
    I have seen attempts to use javascript to add entire new rows, and I've even tried this myself, but I'm not sure we've nailed it yet! Have a look at Denes' example: [http://htmldb.oracle.com/pls/otn/f?p=31517:207]
    If this method is not possible/practical, then you would need to be able to pass at least the ID of the row to a process that can set, perhaps, application items that can be used as defaults. The process would need to retrieve the data from either the underlying tables or the tabular form's data collection (using APEX_APPLICATION.G_Fnn functionality). Otherwise, the user's selection would be lost during the submit/reload process.
    Andy

  • Report With Multiple Radio Button ,How to reset the values of when selected

    Reaching out to the experts here. I have a report which i created a radio group which saves the value rownum when the radio buton is selected to a hidden item based on an on click event. There are currently 3 radio button , i need to be able to "reset" the value of the other items when more than of the button are selected .I.E. There are 3 buttons, user clicks button one , but then decides they need to click button two , then realizes they really wanted to perform button 3 , I want to be able to "reset" the value of the 1st two hidden items so the only value populated is the 3rd hidden item. I am new to working with these features and scenarios so any and help would be appreciated.
    Here is the report
    SELECT APEX_ITEM.RADIOGROUP(1, ROWNUM, NULL,NULL,'onclick="javascript:$x(''P5_HIDDEN1'').value=' || ROWNUM|| '"') UPDATE_RECORD
    ,APEX_ITEM.RADIOGROUP(1, ROWNUM, NULL,NULL,'onclick="javascript:$x(''P5_HIDDEN2'').value=' || ROWNUM|| '"') DELETE_RECORD
    ,APEX_ITEM.RADIOGROUP(1, ROWNUM, NULL,NULL,'onclick="javascript:$x(''P5_HIDDEN3'').value=' || ROWNUM|| '"') SET_PRIMARY
    ,papf.first_name
    ,papf.last_name
    ,hl.meaning
    ,pp.phone_number
    ,case when phone_type is not null then (select meaning from hr_lookups where lookup_type ='PHONE_TYPE' and pp.phone_type=lookup_code)
    end as phone_type
    ,emrg.primary_contact_flag
    from hr.per_all_people_f papf
    ,apps.hr_lookups hl
    ,apps.per_contact_relationships pcr
    ,apps.per_phones pp
    ,(select contact_person_id,primary_contact_flag
    from apps.per_contact_relationships pcr
    where pcr.person_id = :P5_PERSON_ID
    and contact_type = 'EMRG') emrg
    where pcr.contact_person_id in emrg.contact_person_id
    and pcr.personal_flag='Y'
    and contact_type <> 'EMRG'
    and trunc(sysdate) between date_start and NVL(date_end,'31-DEC-4712')
    and pcr.contact_type = hl.lookup_code
    and hl.lookup_type='CONTACT'
    and pcr.contact_person_id = papf.person_id
    and trunc(sysdate) between papf.effective_start_date and papf.effective_end_date
    and pcr.contact_person_id = pp.parent_id
    and pp.phone_type in (select lookup_code from hr_lookups where lookup_type ='PHONE_TYPE')

    Related thread here How to Pass values from SQL Report into TEXT ITEM ?
    Regards,

  • How to access the value of fiedl ( select list with redirect )

    WE created one report and form. When i click in the edit button of the report
    for the specific record ; the system go automatically in the form
    and show me all the information. In my form ia have some fields ( select list with redirect ) in this way i store the key but i can see the description.
    I want to control the delete operation in checking the value of some field
    in my form. How can i do that. When i verfy the content with SESSION
    my variable are empty
    Thanks
    Marc Fortin

    Hello Larry,
    You can use a select list with submit and create a branch to the page you want to go to.
    Hope that helps.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • Replacing Window Title with other value

    Hi to everyone
    Can anyone tell me how can I replace the window title with other values...for example with active record...mean client name should appear instead of window title.
    Thanks in advance

    Here is the code I use from a simple form. You can see it handles three separate environments, Client/Server, Web separate frame, and Web inside browser window.
    I like to remove the "Oracle Forms Runtime" from the main window, only in Client/Server, you cannot remove the brackets. So you are left with - [ Your Title ]Here is the code. It can be put into either the Pre-Form or When-New-Form-Instance trigger. But note that once you do this, EVERY form must set its title, or the one you set last will show up on all your subsequent forms:
        DECLARE
          WINDOW_ID        WINDOW := FIND_WINDOW('WINDOW0');
          WTitle           Varchar2(100) := 'My Test Form';
        BEGIN
          Set_Window_Property(Window_Id,Window_State,Maximize);
          If Get_Application_Property(User_Interface) = 'WEB' then
            --Web forms:  set MDI title, erase W0 title.
            Set_Window_Property(Window_Id,Title,' ');
            Set_Window_Property(Forms_MDI_Window,Title,' ' || WTitle);
            --- Check if running SeparateFrame=False (form within browser)
            If get_window_property(forms_mdi_window,title) is null then
              --SeparateFrame=False:  running inside browser window.
              --Cannot set browser title; need to set Window0 title
              Set_Window_Property(Window_Id,Title,' ' || WTitle);
            end if;
          Else -- client/server forms
            Set_Window_Property(Forms_MDI_Window,Title,' ');
            Set_Window_Property(Window_Id,Title,' '||WTitle||' ');
          End if;
        END;

  • Redirecting an item value to another page..

    Hi,
    I am trying to auto-populate couple of values on page 2 when I click a button on page 1. Tried setting the item values using the comma separated list and also by re-directing to an url. Hit an issue when the values that need to be set itself contain a comma within itself. Could you let me know if there is any other de-limiter that I can use instead of a comma while setting the item values.
    For instance:
    There is a button on Page 58. When this button is clicked, I should be redirected to page 45 in the application and the values in P58_Name and P58_LocId should be auto-populated in P45_Name and P_45LocId.
    Only when there is NO comma in value of P58_Name, this works fine. But, when there is a comma in P58_Name this is what happens:
    P58_Name = Mickey, Mouse
    P58_LocId = 145
    Once the button is clicked on page 58, the fields in page 45 are auto-populated as below:
    P45_Name = Mickey
    P45_LocId = Mouse
    Will there be a way to use a different de-limiter in the comma separated list? Kindly help.
    Thanks,
    P

    the trouble is that the comma in the item name messes up with Apex URL structure, since it uses a comma separated list of item names and values..
    You can set another item with the escaped value of the item in Javascript using the escape function(builtin)
    escape( $v('ITEM_NAME'))or in PSLQL using APEX_UTIL.URL_ENCODE or HTF.encode functions
    and then refer that new item in the Branch instead of the old one one(with commas)

  • Contract Release Value is not updated with Confirmation or Invoice value

    The release value for a contract in SRM EBP shows the value of purchase orders created using that contract.  It does not take into account confirmation and/or invoice values.
    For example I create a PO for 10 items at £100/each using Contract ABC.  The total value of the PO is £1000 and the release value contract ABC would be £1000.  If I then only confirm and invoice 5 items (£500) for the PO, the release value of contract ABC stays at £1000 even though I would expect it to update to £500
    Therefore the release value of the contract could be incorrectly overstated if purchase orders are created against the contract but not actually invoiced/confirmed for their total value.
    Please could you confirm the correct functionality and how I could find out the the true invoice value of purchases made using a contract?

    Hi
    <u>Which SRM and R/3 versions are you using ?</u>
    <b>Meanwhile, please go through the following SAP OSS Notes, which will help in this case -></b>
    Note 622045 Net value in release overview of contract is incorrect
    Note 493519 Release quantities are not updated
    Note 1108322 BBP_CONTRACT_CHECK wrong calculation of values
    Note 1102886 Contracts: Lesser Field length for Target Value
    Note 1082548 Check of Released quantity and released value in contract
    Note 656181 Release synchronization of releases on services
    Note 874920 Currency not allowed to be changed for a 'Released' Contract
    Note 703771 Resetting release values during purchase order item deletion
    Note 643823 BLAREL: Incorrect values in service segment
    Note 519879 BBP_CTR_MAIN: No message when values in Contract are reset
    Note 520734 Target value not converted if currency is changed
    Note 528897 Documents not displayed in contract release order overview
    Note 430373 BBP_CON_MNT: No releases available
    Note 491993 Entry of contracts with target values
    Note 437491 Purchase contract: Incorrect update of the call-off values
    Note 406799 BBP_CON_MNT: Fields after contract release ready for input
    Note 398168 Purchase contract: Target value is not changed
    <b>Do let me know.</b>
    Regards
    - Atul

  • How to reset the value in valueChangeListener

    I would like to reset the value in a component to its earlier value in the valueChangeListener.
    Here is an example method in the bean:
    public void valueChangeListener(ValueChangeEvent valueChangeEvent) {
    Date oldDate = (Date)valueChangeEvent.getOldValue();
    Date newDate = (Date)valueChangeEvent.getNewValue();
    if(newDate > sysdate) {
    //valueChangeEvent.getComponent().WHATEVER.setValue(oldDate)
    } else {
    valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
    Please suggest the code that I need to put in comments.
    Note: One way to achieve this is to bind the component to the bean and do a setValue. I do not want to do this(I have master-detail tables with many rows to edit. So, this resetting should be done at row level by fetching the current row on the selected table and set).

    public void firstNameChanged(ValueChangeEvent event)
    System.out.println("FirstName changed");
    System.out.println("old value = " + event.getOldValue());
    System.out.println("new value = " + event.getNewValue());
    String oldValue = (String) event.getOldValue();
    String newValue = (String) event.getNewValue();
    RichInputText firstname = (RichInputText) event.getComponent();
    RichInputText lastname = (RichInputText) JSFUtils.findComponentInRoot("EmployeesLastName");
    firstname.setSubmittedValue(oldValue);
    firstname.setValue(oldValue);
    lastname.setSubmittedValue("lastname");
    lastname.setValue("lastname");
    AdfFacesContext.getCurrentInstance().addPartialTarget(firstname);
    AdfFacesContext.getCurrentInstance().addPartialTarget(lastname);
    }

  • Select lists empty or POPup LOV needed with redirect

    Hi all,
    I have a form where i need 6 select lists with redirect or 6 POPup LOV with redirects.
    These select lists are separated in three groups
    like this
    group 1
    departments select list with redirect
    employees popup lov (query based on the value of department)
    group2
    Order select list with redirect
    OrderItem popup lov but needs a redirect here for employees (query based on the value of countries)
    employees popup lov (query based on the value of department)
    group 3
    some status select list with redirect
    When I choose the first select list the popup LOV is populated with good values
    when i select a value from the second select list the value in the first list disappears, including the value of the first popup lov. etc.
    How is it possible to keep the values stored in the first selects list when selecting some value of the second list.
    How is is possible to make a popup lov with redirect so that the values are in session
    and can be used in another popup lov?
    Is someone there who have experiences with this issue?
    thanks in advance,
    Hugo

    Hi Hugo,
    I don't think that you need a redirect for that. Check out my AJAX cascading popup lov solution.
    http://inside-apex.blogspot.com/2006/11/generic-solution-for-depending-select.html
    Hope this helps
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com

  • PDF Form with a reset button

    I designed an interactive pdf form for a company with a reset button. If someone fills it out then sends it to someone, what's stopping the receipient from hitting the reset button and erasing the info the person sent them.

    If you don't want the end user to be able to reset the form at all, you can set up the form so that the user who populates the form before sending it to the recipient sets the default value of the fields equal to the field value, sets the fields to read-only, and removes the reset button. The recipient won't be able to clear the form at all or interact with the fields. They could also flatten the form, which converts the fields to regular page contents, so there are no longer fields present that can be reset. You would also want to remove the Reset button so that it doesn't appear on the page. This can all be done through a script, but Reader is not able to flatten fields.
    If you need specifics, post again.

  • Resetting calculated values  in Answers pivot tables

    We have a a pivot table whereby we summarize by zones. Our calculation is derived using running aggregates.
    E.g
    Zone name | Value 1 | Value 2 | Calc Value
    Zone A X y x/y
    Zone B A B A/B
    However we are unable to reset the value of our running aggregate when our zone changes. Hence for Zone B in the example we are getting a value = (X+A)/(Y+B) when we want A/B.
    We are calculating our values at previous 7 day intervals so hence these have to be calculated at run time
    We are in 10.1.3.4
    All help would be appreciated.
    Thanks

    Hi,
    you can with this syntax inside the column Calc Value of a table view:
    RSUM(Value 1/Value 2 by Zone name)
    Hope it helps.
    Regards,
    Gianluca

  • Select list with redirect and save the item to insert row

    On the Form, I want to select from the item (P105_ADMIN_DOMAIN_ID)
    and pop the result on the item (P105_ADMIN_NAME).
    P105_ADMIN_DOMAIN_ID define:
    Display as "select list with redirect"
    Alternate source used "Only when .."
    Source Type "Database Column"
    Source Value or express "ADMIN_DOMAIN_ID"
    P105_ADMIN_NAME define:
    Display as "Text Field"
    Altrenate source used "Only when .."
    Source Type "SQL Query"
    Source Value or express "select party
    from responsible_party
    where logonid
    = :P105_ADMIN_DOMAIN_ID"
    questions:
    1. item P105_ADMIN_DOMAIN_ID DROP DOWN LIST is limited to
    some threadhold, it did not list all the value from
    the LOV which is follow:
    select LOGONID d, LOGONID r
    from RESPONSIBLE_PARTY
    order by 1
    2. I want to insert a row after complete the form.
    But my item P105_ADMIN_NAME is defined
    Source Type "SQL Query" instead of the 'Database
    Column'
    How could I overcome these?
    Thanks so much for your help.

    1) what i meant was for you to test this ridiculously huge LOV outside of htmldb, but it occurred to me last night that you could, in fact, be hitting a limit of ours. after some poking around, i have confirmed that. select list items in htmldb are currently limited to 10,000 rows. this was initially done for performance reasons, but they're now opening up the restriction. if you really need to work with that many rows where the user is allowed to pick from a set of values, consider using a popup item type instead. it'd help your app performance as well (in my test cases, it stank to have to wait for my 10k select list rows to come down to my browser).
    2) sorry to not have been more clear about this, but when you set your item's "Source Type" back to "Database Column", you'd have to specify that column in the "Source or value expression" field. also, you can't put a sql query into that "Post Calculation Computation" field. as i said before, "you can take a look at the attribute-level help for that field to see implementation examples."
    3) stick with "Always..." for now if you're using our auto-dml process(es)
    regards,
    raj

  • How to Fix Select list with redirect Problem

    Hi
    I have a field F1 of type select list with redirect.
    It has an LOV with 2 values USA and Canada for eg..
    I choose USA and hit save and saved it to DB..
    now f1 is stored in table with my User ID and value is USA.
    when I log in next into this page,
    this field should show me the value USA.
    But its not happeneing for me..it always gives the null value when i re login
    is there a way to default/source it to my value??
    I am using
    select f1 from table
    where user_id=:user_id;
    i checked and this query works in sql plus...

    Earl, please see the response in italics for each of your questions below:
    You do want your default value to be one of the values in the select list. Otherwise why would you want the value there at all?
    So, then should I have a default value at all? And, if yes, then what should it be?
    And can't you just set the default value to the first value in your select list, whatever that is, so the first value is the selected value?
    I did that and it works, only if the first value in the select list is always going to be there.  The select list is based on a column data in a table.  And if the data for that column changes then the values in the select list will change.  And, the first value might not always be the same.
    I guess I'm not clear why this isn't doing what you want, besides the fact that
    you seemed to have removed the default value from the dynamic select list query, which you shouldn't do.
    I removed the first value (it could have been any values) from the select list to mimic the "dynamic" select list -- just to test.  The select list data is based on a table and the data in the table can change.
    Thanks
    DP

  • Check box with redirect

    Hi :
    In application express as we have select withredirect can you include check box with redirect
    please suggest
    Thanks
    sudhir

    Sudhir,
    Check whether the following javascript helps you.
    function go() {
    var abc = '';
    var radioLength = document.wwv_flow.p_v05.length;
    var retVal = '';
    if(radioLength == undefined)
              if(document.wwv_flow.p_v05.checked)
                   retVal = document.wwv_flow.p_v05.value;
              else
                   return "";
    for(var i = 0; i < radioLength; i++) {
              if(document.wwv_flow.p_v05.checked) {
                   retVal = retVal + '4' +document.wwv_flow.p_v05[i].value;
    retVal = retVal.substring(1, retVal.length);
    if(retVal=='Y')
    var answer = confirm("Do you want to move to the page a ? If yes,press OK to move to a , CANCEL to stay here");
    if (answer == true)
    alert('Please wait while we transfer you to the Consulting Win Story template');
    location.href="url a ";
    else
    return"";
    if(retVal=='N')
    alert(' Thank you');
    location.href="same page url";}
    here i have used the option button to move to another page and stay in the same page.
    If you want to submit the page for any value,
    you can write doSubmit( submitbuttonname);
    call this function on the option button, in html form element attributes.
    name ="p_v05" onClick="go()"
    Message was edited by:
    archana

Maybe you are looking for

  • Where can I get a replacement sim card for a sch 1515 v ?

    I have a preowned sch 1515 v nexus that I want to activate on my account to replace a moto x that has a cracked screen. It does not have a sim card. can I get a replacement sim card and what size ? or can it be activated without one and work?

  • Running total above Group

    Hey, I may be having a brain freeze.  I need to print a running total (max) above the detail lines of a report.  Since the running total is not known until after the detail lines, is there a way to do this?  I'm stuck and frustrated.  Thanks, Jim

  • I can not get my wifi to work on my hp b209a printer

    I am trying to setup the wifi for my printer.  I printed out the installing the printer software on a wireless network instructions.  Got all the info I needed the ssid and the wep key or wpa security passphrase.  I deleted the printer from my laptop

  • Not able to create Promotions

    Hi All, I am working with ATG 10.1.1. Currently I am unable to create promotions through BCC. The issue is because it is not listing any promotion templates. Without selecting a template I can't create a promotion. Please let me know how I can resolv

  • What is meant by Selection, Hide,Inversion and Field only during Datasource

    Dear Mates, During Datasource Generation in LO extraction , I can see the tabs Slection Hidefield Inversion Fild only. Can any on please explain me elobarately each of them. Thanks, Sudha