Associating a process with a 'select list with submit'

Hi,
In a tabular form I have 2 'select list with submit'. If a row is selected in the tabular form I need the following functionality from each of the select lists:
Once a value is selected from the list a process will get excuted which will update a column of the checked row in the database table with the selected value from the list.
My question is,
1. How can I associate an 'after submit process' with the 'select list with submit'?
2. Can I store the selected value in a variable which I can pass as an input parameter to a PL/SQL body?
Regards,
AM

Hi,
Please see my requirement below.
I have a 'select list with submit' say P1_Select in a Tabular form Page. I want to create an after submit process (PL/SQL Process) which will take the selected value from the select list as input parameter and perform an update function for the checked row with that value.
I'm trying give a feel the procedure:
CREATE OR REPLACE procedure "P_REJECT"
(p_message IN VARCHAR2 default Null)
is
begin
FOR ii IN 1 .. APEX_APPLICATION.G_F01.count
LOOP
UPDATE NI SET NI.STATUS_NI = 'WCONF', NI.NI_Message = p_MESSAGE
WHERE NI.NI_REF = APEX_APPLICATION.G_F01(APEX_APPLICATION.G_F01(ii));
END LOOP;
end;
As suggested by Flavio I created the conditional 'after submit' process where I'm making a call to the above procedure.
1. I am not sure how to pass the selected value as a parameter to the proc.
2. 'request = value, where the value is the string literal P1_SELECT'.... Could not really figure out the meaning of string literal P1_SELECT
Regards,
AM

Similar Messages

  • Error in select list w/submit proccessing with IE

    I have encountered a problem that is only IE specific. The page is a basic page with an Automated Row Processing to insert the form to a table.
    Once the form has been filled out and you press create there are seven total fields including a hidden field (p173_model_id) that is populated by a database trigger and sequence. All of the fields in essence save to session state to the field following that field. So for instance the vendor_id saves to the model_number field. The model_number field saves to the status field and so on! This only occurs with IE though not with FF. In FF everything works as planned.
    Also if you change the container Type field from select list with submit to just select list the form handles fine now in IE.
    Attached are pictures trying both IE and FF:
    FF
    IE
    You can view the backend @
    workspace:epic
    guest/guest
    http://apex.oracle.com/pls/otn/f?p=9579:173
    Thanks
    Justin

    Here is an update in case anyone else experiences the problems I had...
    The SR request I filed was given bug # 5716829 I am not sure if this is published or not....
    Anyway here is what the development staff reported back:
    I have narrowed this problem down to the Read Only Condition on the P173_CONTAINER_TYPE_ID select list.
    If you remove "DISABLED" from the Read Only Element Table Cell(s) Attributes, it works fine in IE also. So, the problem seems to be
    with the way IE handles Select Lists that are DISABLED.
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    You may use that as a workaround until the fix is available...

  • Associating two events with submit button using  javascript in jsp

    Hi
    How can i Associate two events with submit button using javascript in jsp. Firstly it should insert the data to database and secondly it should close the same pop-up window

    Have something like :
    <input type="submit" name="submitbtn" value="Click me" onClick="function1(); function2(); " />
    You just call both functions sequentially, it's that simple. Although using javascript to work with a database, that seems a bit tricky.

  • Select list on submit of another select list

    Hi Friends. I have a two fields with select list. 2nd field select list field is dependent on 1st field select list.
    My table structure is this
    PRODUCT_GROUP_LOV_ID     PRODUCT_CATEGORY_LOV_ID     PRODUCT_CATEGORY_NAME
    660                                     523                                           Boat, Motor, Trailer 1
    518                                     523                                           Boat, Motor, Trailer 1 B
    519                                     523                                           Boat, Motor, Trailer 1 
    660                                     524                                           Hulls Only 2 HULLS
    518                                     524                                           Hulls Only 2 HULLS
    519                                     524                                           Hulls Only 2 HULLS
    520                                     524                                           Hulls Only The approach which i have followed is, i have created two item with P3141_PRODUCT_GROUP_LOV_ID and P3141_PRODUCT_CATEGORY_LOV_ID. Item 1 has assigned an lov with select list with submit request. The list of value for 1st item is
    select distinct PRODUCT_GROUP_LOV_ID d,PRODUCT_GROUP_LOV_ID r
    from LKP_PRODUCT_GROUP_CATEGORYand the lov for 2nd item list of value is
    select PRODUCT_CATEGORY_NAME d,PRODUCT_CATEGORY_LOV_ID r
    from LKP_PRODUCT_GROUP_CATEGORY
    where PRODUCT_GROUP_LOV_ID = :P3141_PRODUCT_GROUP_LOV_IDNow when i am selecting PRODUCT_GROUP_LOV_ID as 660 from item 1 it should populate two PRODUCT_CATEGORY_NAME value i.e, Boat, Motor, Trailer 1 and Hulls Only 2 HULLS. But its not returning the same.
    Please help me in this regard
    Thanks in advance
    Edited by: User_Apex on Aug 11, 2010 10:33 PM

    BTW, are you using APEX 4.0? Because there you could use the "Cascading LOV" feature so you don't have to do a full page refresh.
    You just have to
    1) change your P3141_PRODUCT_GROUP_LOV_ID select list to a normal one
    2) set P3141_PRODUCT_GROUP_LOV_ID as "Cascading LOV Parent Items" in your P3141_PRODUCT_CATEGORY_LOV_ID select list.
    That's all.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins

  • Force Background processing with SUBMIT and keeping results in memory

    Hi Everyone
    I have a very tricky issue that i need some help with.
    I have a developed an RFC that allows a NON-SAP front-end to execute reports in the SAP backend the result of the report is saved in memory and formatted to XML and passed to the front-end where the report is displayed.
    Therefore for this to work i have added the following code
    g_guid = cl_salv_export_db_storage=>create_guid( ).
      " Set ALV memory parameters
    export l_mode = 'M' to memory id 'ALV_EXTRACT_MODE'.
      export l_guid = g_guid to memory id 'ALV_EXTRACT_GUID'.
      "Execute the selected report
      SUBMIT (wlv_report_name)
                         USING SELECTION-SET wlv_variant_name
                         WITH PNPTIMED EQ ' '
                         WITH PNPBEGDA EQ im_begda
                         WITH PNPENDDA EQ im_endda
                         WITH PNPPERNR IN wlr_employee
                         AND RETURN.
    data: l_xstring type xstring.
                l_xstring = cl_salv_export_db_storage=>import_xmlstring(
                    guid  = g_guid ).
    This allows me to get the report results to be passed to the front-end.
    This works quite good for most reports but in some cases the reports has a popup message. In this case the execution fails as the report is not executed as a background job (if the report is executed in the background then the popups are ignored).
    The issue is that the reports cannot be executed in the background as the memory will then not contain the report results and secondly the client does not want to use the spool for the report results at all. The second constraint is that the client does not want to alter the reports in any form to remove the popups due to the large volumes of reports.
    What i have noted is that if the report is executed and i set the SY-BATCH parameter to "X" then it works perfectly (via the debugger). I can change the SY-BATCH value in my code but obviously once the SUBMIT is executed the SY parameters are reset.
    My question is: Is there a way to force the SY parameter values when i perform a SUBMIT? Or is there any other possible solution to this issue?

    If you want to go with the option of spool, then you can use the following addition
    SUBMIT <reportname> to SAP-SPOOL
      SPOOL PARAMETERS <print_parameters>
      WITHOUT SPOOL DYNPRO and RETURN.
    and then read the spool,
    if you want to go with the option of a background job, then you can use the following addition
    SUBMIT <reportname> VIA JOB <name> NUMBER <num> AND RETURN.
    <name> and <num> are generated using FM JOB_OPEN, and then you have to close it using JOB_CLOSE.
    Thanks.

  • Help with Select Lists

    Hello, Oracle community. I'm a new developer fresh out of school and I'm working on an issue tracker project on Apex 2.1. I have a page where we create cases that involve various issues called in by our clients through our support center. This app is supposed to replace what the support center currently has.
    My main problem is functionality. I have several select lists that redirect to the case creation page. I have conditions that allow several hidden fields to appear when certain values are chosen. We also have a couple of text areas for details and resolutions. The problem is that when we enter data into the text areas (CASE_DETAIL and CASE_RES) and escalate the case to a higher tier of support via redirecting select list, all text that was typed is cleared away when it redirects back to the page. All other select list values remain because they've already been redirected. How do I keep my text fields populated while preserving my select lists? The text areas are set to "Only when current..."
    If there's any links that you guys can provide with detailed info on how to handle these types or problems (the documentation is a bit general) I'd greatly appreciate it. I'm still learning this stuff. :)
    Dennis

    Wow, thanks.
    We had tried this before, but since we had email shooting off to our clients whenever the page was submitted, we went with the redirect. My brother (we're both working on this project) found the following topic while looking for this one:
    Select list with Redirect => other page items are reseted
    We had used the process to only send email when the CREATE button was pressed but completely missed the fact that we could do the same with the process row. The solution now is to switch all select lists to submit and make the process row conditional to only fire when the CREATE button is pressed. Now the page submits as much as it wants to, the text fields stay populated, and we don't get redundant emails and entries into the CASE table.
    Thanks for the help. I hope to return the favor some day. :)

  • Diplaying region content based on multiple selection lists

    Hi,
    I have 3 select list on submit(P1A, P1B, P1C). And i have 3 report regions.
    now this is the scenario. the 3 select lists are on submit.
    the P1C is a dynamic list which shows contents based on the selection from P1A and/or P1B. so this is how my P1C LOV looks like
    SELECT DISTINCT COLLECTION d, COLLECTION v
    FROM viewvs
    WHERE (YEAR =   :P1A  OR  :P1A= '-1' )
    AND   (SEASON =  :P1B  OR  :P1B= '-1' )
    ORDER BY d i also have a 3 report regions which display result based on P1C selection.
    now when i select P1C then i am able to see the 3 regions. and when i go back and change P1A and/or P1B, then P1C changes output. and the 3 regions should not show any data unless i again select one from P1C but, the 3 regions still hold on to the previous data.
    what i am trying to say is, when the regions should display data only when P1C is selected, and when any of P1A or P1B is changed the regions should disappear and should not display any data, but instead the 3 regions show the previous data unless a new selection is done.
    How can i clear the report region when everytime a new value is selected from P1A and/or P1B.
    also the below is part of what i have entered in the report regions
    IF :P1C != 'NULL' THEN
    --DISPLAY THESE VALUES
    END IF;---------
    this is what i found the latest. whats happeneing is
    when i select listA, listB-- listC gets populated and when i select from listC based on that value which gets stored in session state, report regions get displayed
    but when i go back and change selection in listA, listB
    by default listC session value should go to NULL, and only after i make a new selection, then with this new session value for listC, the report regions get displayed.
    but when i checked the session value for listC, it still remains the same old value from the previous selection, because i haven't nade new selection and thats why the report regions are still showing the old result.
    so how can i remove this session value for listC after displaying the report results.
    Thanks,
    Philip.
    Message was edited by:
    [email protected]

    There is nothing wrong with your code, so I'd look elsewhere for the problem. Is this a direct copy of what you have on your page?
    :P1_COMBO1 in ('Option 1', 'Option 2')
    And
    :P1_COMBO2 = 'Option Combo 2'And the page item values are exactly as you have in the quoted strings? You might run the page in debug and confirm the page item values are exact.
    Edited by: Bob37 on Dec 6, 2011 2:18 PM

  • Can I change the target of a Pagination Select List?

    Hi,
    Basically what I want to know is this. In a report with pagination using a select list, is it possible to modify the target of where it will redirect?
    Because again, with the 0 session, if i currently using the 0 session, the select list will submit the page and put the real session ID in the address bar. So I lose the 0 session. But for the next and previous links, I can work around it by using PPR reports though.

    I'm bumping this, because I very interested in knowing if what I'm asking is possible.

  • Select list with bind variable does not work

    Hi,
    What can be wrong with a 'select list' with the a simple select
    select omschrijving o, id i
    from basiscodes b
    where domein = 'OPTIES'
    and b.id in
    (select eo.basiscode_id from evenementen_opties eo
    where eo.event_id = :P16_ID)
    The :P16_ID has a value and should give result
    But it does not work at all with 'select list'
    Using the POPUP LOV (display discription, return key value) works nice
    The select retuns less then 10 records

    Hi Flavio,
    As I explained, the P16_ID is an item of the master page (page 16)
    In Page 18 where I want to reuse that value, the item is not there, but I use it to assign
    P18_EVENT_ID with the value in P16_ID and that works fine.
    In an after submit process, I do this :
    declare
    function get_pk return varchar2
    is
    begin
    for c1 in (select EVENEMENT_INSCHRIJVING_SEQ.nextval next_val
    from dual)
    loop
    return c1.next_val;
    end loop;
    end;
    begin
    :P18_ID := get_pk;
    :P18_EVENT_ID := :P16_ID;
    :P18_CREATIE_DT := TO_CHAR(SYSDATE,'DD-MM-YYYY HH24:MI:SS');
    :P18_CREATIE_USER := APEX_APPLICATION.G_USER;
    end;
    The value P16_ID is there before I open page 18
    I made a display item that displays the value P16_ID
    If I change the LOV select in :
    select b.omschrijving o, b.id i
    from basiscodes b
    , evenementen_opties eo
    where b.domein = 'OPTIES'
    and b.id = eo.basiscode_id
    and eo.event_id = 16
    then it returns the value I want : 1 record
    You see, I'm a really new one in apex.
    Forms 6i was easier for me...
    Regards Jules
    null

  • Help with Select Lists in Classic Report

    Hello,
    I working with APEX 4.1. Oracle 11.
    I have a simple classic report with 4 columns (Username, Role, Read, Update). The Read and Update columns are Select Lists with values of "Yes", "No".
    Report looks like this:
    Username Role Read Update
    JSmith Admin Yes Yes
    LJones Dev Yes No
    My requirement, is that when a user selects Yes from the Update select list, the value of the associated Read column needs to change to Yes as well for that particular Username. The change has to occur upon selection of Yes from the Update select list.
    Im not very strong with javascript, but for testing purposes I applied: onchange="alert('hi');" on the Update column. When I make a change to the Update select list, the alert does pop up.
    Can anyone suggest how I can implement the change to the associated Read value of Yes if the Update value chosen is Yes, for that particular row.
    Thank you,
    Laura

    LauraK wrote:
    I working with APEX 4.1. Oracle 11.
    I have a simple classic report with 4 columns (Username, Role, Read, Update). The Read and Update columns are Select Lists with values of "Yes", "No".
    Report looks like this:
    Username Role Read Update
    JSmith Admin Yes Yes
    LJones Dev Yes No
    My requirement, is that when a user selects Yes from the Update select list, the value of the associated Read column needs to change to Yes as well for that particular Username. The change has to occur upon selection of Yes from the Update select list.
    Im not very strong with javascript, but for testing purposes I applied: onchange="alert('hi');" on the Update column. When I make a change to the Update select list, the alert does pop up.
    Can anyone suggest how I can implement the change to the associated Read value of Yes if the Update value chosen is Yes, for that particular row.Should be possible to do this using a Dynamic Action without writing any (or much) JavaScript. The complexity in this case is that you're using items in a report rather than standard page items.

  • I bought a brand new mac and follow through setting up process with my apple id but when I open App Store I don't see lion into the purchases list. why?

    I bought a brand new mac and follow through setting up process with my apple id but when I open App Store I don't see lion into the purchases list. why?

    Updates come through Software Update not the App Store. If you have to reinstall Lion that is done via Internet Recovery.
    OS X Lion- About Lion Recovery
    OS X Lion- Run Software Update to use Lion Internet Recovery
    Lion maintenance and recovery operate via the Recovery HD. It's possible to create a separate recovery disk on a flash drive using OS X Lion: About Lion Recovery Disk Assistant.
    To boot into the Recovery HD:
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.

  • Select List with Submit - Branch Error - form data does not save

    I am a new APEX user so please excuse my ignorance. I have created a simple application in which a primary data entry form branches either to a detail form (one to many on the parent ID) or a master tabular report used for navigation. These branches work fine. Then I tried to get a little fancy with a conditionally displayed element based on the value the user selects in a select list on the main form(P9_REPORT_TYPE). I converted the select list to a select list with submit and created a new branch (on submit - after processing) to the current page (Page 9) to avoid the "no branch found" error. To avoid the branch being unconditional, I tried to use the 'Request = Expression1' condition with the Expression 1 field set to P9_REPORT_TYPE. The behavior I get is that the page seems to submit but the data on the form is not saved -- even the new value selected in P9_REPORT_TYPE reverts to the old value. I simply need the page data to submit so that the conditionally displayed element will take effect (which it does if you use one of the other button-based branches and then return to the form). Do I have the syntax wrong? It seems like this should be straightforward but I've tried a number of options including using a PL/SQL condition V('REQUEST')='P9_REPORT_TYPE' with no success. I'm guessing that the value of Request is getting cleared before it has a chance to trigger the branch? Any help would be greatly appreciated.

    Exactly so! Thanks Scott for setting me straight. For the benefit of other readers, the value in the Source Used column had been set to "Always, replacing any existing value in session state" and should have been set to "Only when current value in session state is null".

  • Can we have the 'select list with submit' type within a tabular form?

    An item can be the "Select list with submit' type so a form has no problem with it. However, when I built a tabular form manually, I couldn't find this type. There are only three types avaiable: "named", "static", and "dynamic".
    Is it possible to have the "submit" type so columns of the tabular form can be dynamically rendered based on the user inputs?
    Another question I have is how to dynamically build the tabular form with decode func. For example, if the value of col_1 is 'val_1', then build a select list in col_2; otherwise null in col_2.
    I tried to use
    select col1,
    decode (col1, 'val_1', select htmldb_item.select_list_from_lov(2, first, 'lov1') from dual, null)
    from....
    where....
    But it didn't work.
    I'd like to know whether it's feasible to have something like that.
    TIA.
    Message was edited by:
    Luc

    You could use a region of type PL/SQL function
    returning SQL query to dynamically build this kind of
    tabular form. However if you want to use the built-in
    multi-row insert, update and delete processes, all
    items in a column must have the same display type. Marc, thanks for the quick reply. I appreciate it.
    I got your idea. However, I need to have the javascript 'ToggleAll' as the heading so the form works as same as the built-in one. If I put the query definition into a pl/sql procedure, where I can put this html tab attribute? It can not be inside the checkbox function, otherwise the checkbox of any row would act as same as the header.
    I hope I've made this clear.
    To Vikas: It's our clients who want this, not us. :(

  • OnChanger="get_ajax_select_xml(this);" with  select list (query named LOV)

    Hello,
    i used Vikas'example Re: cascading lov for tabular form
    i have a problem with Select list (query based LOV)
    when run tabular form i have the following error:
    report error:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    the number of rows of the Lov are 900
    the display variable is 70 char
    is there any limit?
    Thank in advance
    Costanti

    Leo,
    Thanks for the response, but I don't think you quite understand my problem. If I go to the Column Attributes screen for the group_id field, I have the "Display As" drop down set to "Select List (query based LOV)", not "Select List (named LOV)". This requires that the sql query be written in the "List of values definition" text area below. Within that text area I have the following query:
    SELECT DISPLAY_NAME, GROUP_ID
    FROM APPLICATION_GROUPS
    WHERE APP_ID = ?????
    ORDER BY 1
    The APP_ID that I need to reference is for the current row of data that is being processed. Therefore, I can't use a :PNNN_APP_ID variable, because that field does not exist on the page.
    Hopefully this explains it a little better.
    Thanks,
    Kris

  • 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

Maybe you are looking for

  • What's a good software to use for Vendor Management?

    We would like to do risk assessments, keep contracts & upload other pertaining documents to these vendors. Looking for a software that can be installed locally in our network.  If anyone has any suggestions, please let me know, thank you! We have bee

  • How do you create a folder in iPhoto

    I don't see how to create an album in iPhoto for iOS on the new iPad. Am I missing something?

  • Remove message from message determination in billing docs

    I want to generate an SD billing document ONLY if another message is not determined to the some document. I'm determining the billing message type to be printed by Sales Organization. I started to send Electronic Invoices to some partners, and I want

  • Suddenly unable to get new users IP's  (Probably DHCP issue)

    Hi, I just took over the support for a small business and while fixing a "roaming profiles" issue I realized that new computers (clients) were not able to get new IP Address or they don't have internet. I have verified the physical connections and th

  • Installing Snow Leopard from USB to MacBook

    I managed to create a bootable USB pendrive of Snow Leopard from my Retail DVD, and I'd like to re-install it on my MacBook (not using the DVD). The pendrive is not recognized by the Mac at the boot (keeping option pressed), but Finder does. I also t