Call the process via the selection list to submit page?

Hello guys!

I have a quick question that I couldn't find any info on. Is it possible to appeal a process page using a pick with mailing list.
Instead of redirecting to another page on submit, I want to call a process that inserts data into a table.
Any info is appreciated!

Brgds,

SEB

Hello

Create process page after submit that do your things.

Create then creates a branch to the same page that is conditional to your selection list request.
Make sure that the sequence is before the other branch.

If necessary change page other processes and conditional validation to those who are not executed when select list send your page

BR, Jari

Tags: Database

Similar Questions

  • display a loading icon on the selection list changes (submit page)

    4.2.1

    THM:2

    Hi there - we have a list with a bunch of values. On change, it is set to "Submit of Page" and there also some pl/sql running processes when the value of the list is changed. However, these processes take a long time to run. Wondering if there is a way to show a loading icon, it is executing. I know that this can be done by the intermediary of da I was wondering if there is a way to do this when we send defined page.

    Thank you!

    This is another option, but you can think of this as the same Park ball like the use of a dynamic action

    http://Apex-plugin.com/Oracle-Apex-plugins/dynamic-action-plugin/loading-icon_81.html

    you do not like the option DA?

  • LOV selection list with submit the value Null

    I have a select list with submit in which another fileld fills based on the selection. I have the TEXT Null in the LOV "Select Vendor" value but I do not know how to set the Null VALUE, while I get this error:

    ORA-01722: invalid number
    Calculation of default value of the element of error ERR-1019: page = 2 name = P2_VEND
    Ok

    I tried the following to the default value of the select list with submit without result:
    Replace (: P2_VEND, '%' | 'null %', null)

    Thanks in advance.

    Hello

    You can set the NULL value - 1 (or any other provider code which may not exist).

    Greetings,
    Roel

    http://roelhartman.blogspot.com/

  • Development of the selection list after refresh using jQuery

    Hi all

    I have an Express Application 4.1.1.00.23 application that runs on a server, Oracle 10 g R2.

    In the application, I have a page (suppose it to be Page 10) that has a drop down (let's call it P10_PARENT). Next to the dropdown menu, I have a button that when clicked opens another window popup with page 11. This 11 page is used to create many of the points listed by the P10_PARENT drop down. When enter us the data P11 and click OK, we have a javascript to call a process application that creates the object in the database. Now select the P10_PARENT list is updated to reflect this new object. So after the application process is running, the JavaScript on the Page 11 calls a function in Page 10, using window.opener.functionName. This Page 10 function performs an apex to help refresh

    $('#P10_PARENT').trigger('apexrefresh');
    

    This function returns the Page 11, the page is closed using the Window.Close ().

    It works fine up until this point. Now, there are also by default the value selected in the select list of the newly created object. We made a function for it. But he calls immediately after the outbreak of the updating of the apex does not work because he probably did not updated the list since the back end still.

    Therefore link us an apexafterrefresh event to this element and making the default here. Like this:

    $('#P10_PARENT').bind('apexafterrefresh',function(){
      setdefault('P10_PARENT',newCreatedObjVal);
      alert('Refresh completed!');
    });
    

    But this event does not seem to be triggered. I've tested in IE and Chrome. In Chrome, it started once, but never after that.

    The relevant code on page 10 looks like this. The refreshBusList function is called Page 11 with the value of the newly created object.

    function refreshBusList(pDefault)
    {
      newCreatedObjVal = pDefault;
       $('#P10_PARENT').trigger('apexrefresh');
    }
    
    $('#P10_PARENT').bind('apexafterrefresh',function(){
      setdefault('P10_PARENT',newCreatedObjVal);
      alert('Refresh completed!');
    });
    

    I would like to know what we're doing wrong. Is it still the right way to do it? I can't use dynamic actions here because the logic of javascript page is too complicated be properly implemented using the declarative logic like DAs (we tried once and had to leave after a week. has become a nightmare to manage).

    Any help would be much appreciated!

    Thank you!!

    Aalami

    What does setDefault? Have you tested this feature by running it from the console? It doesn't have the required behavior?

    Can what newCreatedObjVal value contain? What is an object? A string?

    Are you sure that the selection list is updated?

    I would also like to rewrite your refresh logic. On the one hand, you declare a variable of global scope: horrible! There is no need of it. You can also control refreshing after a little better by simply acting on it once.

    function refreshBusList(pDefault)
    {
      // not really necessary. But use "var" to declare scoped variables!
      var newCreatedObjVal = pDefault;
    
      // bind a one time afterrefresh event handler
      // then, trigger the refresh
      $('#P10_PARENT')
      .one('apexafterrefresh',function(){
        setdefault('P10_PARENT',newCreatedObjVal);
        alert('Refresh completed!');
      })
      .trigger('apexrefresh');
    }
    
  • refresh the html region when the selection list or selected ir line chang

    Apex 4.2

    Hello

    I made a simple page for test actions.

    I have

    -an interactive report and a selection in my first area list.

    -a field of text (P5000_indid) to keep the selected indid

    -region of html where the source is:

    DECLARE

    CURSOR c_ind IS

    SELECT indid, ind, industry

    IND

    WHEN indid as: P5000_INDID;

    BEGIN

    FOR a c_ind IN LOOP

    HTP.p ("< style b =" white-space: nowrap;) "> Indid: ' |" a.indid |' ---> ' || a.Industry: '< /b > < br / >');

    END LOOP;

    END;

    I'm sorry, but I m a bit confused with all the things I read before and do not know what is possible or not and what is the best practice to:

    1. select in the selectList (is it also possible to retrieve the selected (highlighted) or line in the IR)

    2 update the P5000_INDID

    3. refresh the html box according to the value of P5000_INDID (I was able to refresh an IR according to value, but there was the possibility to say what variable to present, but I have no

    see for the region of html)

    I m doing this test, because in the end, I would like to be able to regresh a small chart according to the selected line of the IR.  Do you think that it is possible to s?

    Sorry for my newbie question

    Thanks for your help

    L.

    OK, I finally found everything that I needed,

    You can test it on:

    http://Apex.Oracle.com/pls/Apex/f?p=53793

    Demo/demo

    the content of the output area now is the result of an application process, according to a parameter.

    It is called with javascript onChange and response replace the contents of the region

    and you can also see that I can now select a line and show it by changing the color of the line, and then update the output.

    and when a line is selected, it resets the selection on the selectList to avoid triggering the event on the selection list.

  • Reset the value of the selection list

    APEX version: 4.2.2

    I'm fighting to implement a solution to reset the value of an element from the list of selection on a page in my application.

    I currently have about 4 pages in my application with a level of tabs with every page on its own tab.

    I have a report of Emp page that lists employees. The page contains an element of selection list for emp_no who submits the page when the value changes. The query for the list of selection queries the emp for name and emp_no table. It has:
    Display additional values: Yes
    Display Null values: Yes
    Display NULL value: all THE
    Return NULL value:
    (no value for the return NULL value)
    Page, in itself, works the way you want. During the first visit to the page, EVERYTHING is selected and the report shows all the EMOS. If I select a specific employee, the page refreshes with just this employee.

    On the Main page is another employee list report. The report has a link between the employee id column and the Emp report page. The link sets the value of Emp.emp_no to the value of Main.emp_no. It works very well so if I take emp hand 123, 123 shows Emp.emp_no and the report shows that retail for emp 123.

    The problem is when a specific employee has been selected previously from the homepage or the Emp page and I click on a tab to another page, say the status tab / page and then click on the tab of the page of the Emp. The current behavior of the page, is that it continues to show some used was previously selected regardless of how it has been set, either Emp or to the homepage page. I want to reset select Emp.emp_no ALL (or null) if I navigate to the page of the Emp to any other page except hand or Emp itself.

    I searched through the forums and tried to use processes at the level of the page and after region to reset the value of Emp.emp_no, but nothing has worked. I believe there is a 'simple' way to do it that doesn't require coding on each page to set Emp.emp_no on a null value before calling it.

    I would like ideas on solving this seemingly simple task that has managed to escape.

    Thanks in advance.

    cagora

    Use a query in your link for filtering the selection list. Create a compuation on the definition page of the selection to NULL list if the request is NULL > PL/SQL Expression >: APPLICATION IS NULL. In this way, you can check the list of selection gets nulled while accessing the page normally.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    https://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Select the value of the text element based on the selection list

    Hello

    I have a selection list that displays a number of codes of a table, and I want to display the description of the code (from the same table) in a field of text next to it.

    The selection list works good based on an LOV, but I can't seem to find how to get the return value, so I can identify the correct description of the table to be displayed.

    Thank you

    See this link: http://htmldb.oracle.com/pls/otn/f?p=31517:80:6340934958598741:NO

    It will have a lov that calls an application process that fills a text box...

    Thank you

    Tony Miller
    Webster, TX

  • Refresh the report area of PL/SQL (not Page) using the value of the select list

    Hello

    I have a report region based on a "body of the PL/SQL function returning a query'which SQL is generated on the selection of a value of an element from the selection list, select action list is"Redirect and set", but this causes the entire page refresh rather than just the region report." I tried to update the report using only a dynamic action on the item list select (Action now reset to 'None'), but now the report does not appear on the choice of the list. Can someone suggest a solution that will allow me to update this report without refreshing the page? I use APEX 4.2.2 and the syntax of the statement is as follows:

    DECLARE

    v_statement VARCHAR2 (500);

    BEGIN

    SELECT query_text
    IN v_statement
    OF sql_queries
    WHERE query_id =: P2_QUERY;

    RETURN v_statement;

    END;

    where P2_QUERY is Select list item,

    Kind regards

    Kevin.

    KevinFitz wrote:

    The displayed report region is subordinate to the point P2_QUERY is NOT NULL. I guess that the region appears not is because the Action for the select list item is set to None, and so P2_QUERY is always NULL.

    No, the region does not appear because it is subordinated to the P2_QUERY being NOT NULL. This means that the region of report never exists on the page displayed in the browser, so it cannot be updated dynamically. (Dynamic updating is not to evaluate the conditions of the region, and she makes only the content of the report, not the whole region again).

    Remove the condition on the region to report, check the update works and then go back on what exactly are the requirements here. If you want to the area appear only when P2_QUERY has a value, and you want it to be regenerated without submitting and reposting of the page, the region must then be hidden rather than conditionally restored and shown via dynamic when action P2_QUERY Gets a value.

    I tried to add a further Action for the event real value DA but has been a mistake, as stated above,

    All irrelevant if Page to submit items on the region is used correctly.

  • Conversion of the year in YYYY format to return to the selection list

    With Apex 4.1.1 on Linux (Apex Listener on glassfish)

    I have a table with the dates of weekend and use this table for like my LOV.

    The selection list appears as 12-SEPT-12 when I check the value attribute of Firebug. Problem is that it comes as year 0012 instead of 2012 when I try to use it in my PL SQL code to save it in a table.

    Is there a way I can get the return value for the year in YYYY format for the return value to the selection list? Have you tried to_date (dt, ' MON-DD-YYYY "") with no luck.

    See you soon.

    All APEX session state values take place as VARCHAR2s. Explicit conversion between DATE using the specified formats values is recommended. Converted to a VARCHAR2 in the LOV query:

    select to_char(week_ending, 'DD-MON-YYYY') l, to_char(week_ending, 'YYYY-MM-DD') v from ...
    

    and to this DAY in the PL/SQL code of process:

    ...to_date(:p1_week_ending, 'YYYY-MM-DD')...
    

    I'm trying to standardize on the use of ISO 8601 representation of date not displayed values. These are unambiguous, sort correctly by using the semantics of character and are compatible with other systems and technologies.

  • Help with dynamic action and the selection list item

    G ' Day Apex gurus.

    I have problems trying to achieve to trigger the Help window from an element automatically select. A Help window is triggered when it is clicked on the label of an item, but my customer wants to be triguered automatically as soon as the user clicks to view the options in the select list.

    I think I should be able to do with dynamic actions but I can't function.

    I know when someone clicks on the label of the item selection list trigger this JavaScript

    JavaScript:popupFieldHelp('277938589795252851','1545903379570909')

    So I want to trigger the javascript also when the user click on the item selection list and pull down the options and for that I think that the dynamic action is the way to go, but I can't do things.

    That's what I have to do:

    I created a dynamic option as follows:

    Name: test
    Sequence: 30
    Even: click
    Selection type: product (s)
    Article (s): P1_RATING <-a selection list item
    Condtion: - no requirement.

    Real Actions
    Sequence: 10
    Action: Run the JavaScript Code
    Fires when the result of the event is: true
    Fire on loading the page: checked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')

    Thank you anyone who can tell me what I'm doing wrong here or bring a solution to my problem to trigger the Help window from an element automatically select.

    Kind regards
    Carlos

    Hi Carlos,

    I've set up a test case of exactly in the same way and it worked fine for me. I've created a page element called P1_DA_DEMO and added some values of the static selection list, then added a help text. I used the settings are lower, I suggest you try again, but also make sure that you have no other Javascript errors on the page. Use a tool like firebug to check.

    Name: Action Dynamics demo
    Sequence: 10
    Even: click
    Selection type: product (s)
    Product (s): P1_DA_DEMO<- a="" selection="" list="">
    Condtion: - no requirement.

    Real Actions
    Sequence: 10
    Action: Run the JavaScript Code
    Fires when the result of the event is: true
    Fire on loading the page: unchecked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')

    Scope of the event set a Bind s.

    Thank you

    Paul

  • According to the selection value hide/show page list item

    Hi all
    I have a list of selection P_X (with Char, varchar2, number values).
    When I select the tank it must display P_Max (text box), if I select the number he must display two textboxes (P_Text1, P_text2).
    By default it should not display any page except P_X element.
    How can I achieve this by creating dynamic actions.
    I tried a dynamic textbox P_max display action when I click the Char value in the select list (P_X)

    After presenting the process:
    Start
    : p_x: = "Char";
    end;

    Condition:
    Value of exp1 = exp2
    Exp1:P_X
    EXP2:char

    dynamic action:
    event: change
    Select the type: article
    product (s): p_x
    condition: equals
    value: Char
    Real action: see question: p_max

    But it is not workking correctly.

    Hi Karthikeyan,

    Sorry for the late reply, stuck with another work.

    Now you check in your example I changed it accordingly. According to me, he answered your question, check in.

    Kind regards
    Mini

    Brand responses appropriately.

  • Sending e-mail based on the value selected in the select list

    Hi all
    I have a request when there is a list of select 'Choose with Submit', considers this point as & P5_STATUS. with 2 values approved and rejected.
    There are 2 methods of mail send different:
    1. process e-mail with approved content, that will be executed when the approved value is returned by the select list item "Status,"
    2 process e-mail with rejected, elements that will be executed when the rejected value is returned by the select list item "Status,"

    The foregoing is the requirement.

    How I can get it working, what exactly should I do in the part 'Condition' of the 2-mail process.

    Help, please!

    Hi Suzi,

    You must select "value of element in the Expression 1 = Expression 2" as a condition in the process of your mail. For the approved procedure, write approved as Expression 2 in the State and rejected for the rejection process. For both processes write P5_STATUS in the Expression 1.

    Hope that helps.

    Kind regards

    Sergio

  • Automatic filling of multiple selection based on the selection list

    Hello

    I have a problem in filling multiple selection data in the selection list.
    I would like to take an example and explain.
    I have 3 tables: employee, Department and a link table for employee and department.
    The selection list contains employee and the Department is a multiple selection. Employee selection, all departments must be posted and belongs to the Ministry of which employee (which comes from the binding table) must be selected (high-lighted). How can I do this?

    HI 841762 :),.

    Do not use the 'style' to highlight that you would have found out by now that would make the blue text background while the font color remains black and this will make the text unreadable. Plus if there is a button on the page when you submit it to us, I doubt that it will store the State of the selected items in a multiple of P1_DEPT in session state. then try this...

    In the application process, replace, the status of 'style' that you used to highlight as you...

    ....
    If (rec.R=cnt)then
    htp.prn('');
    ELSE
      htp.prn('');
    end if;
    ...
    

    Then in the JS, use

    appendToSelect(list, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue,l_Opt_Xml.getAttribute('selected'));
    

    and change the function "appendToSelect".

    function appendToSelect(pSelect, pValue, pContent,pIsSelected) {
    
     var l_Opt = document.createElement("option");
     l_Opt.value = pValue;
    
    if(pIsSelected)
    l_Opt.setAttribute('selected','selected');
    
    if(document.all){
      pSelect.options.add(l_Opt);
      l_Opt.innerText = pContent;
     } else {
      l_Opt.appendChild(document.createTextNode(pContent));
      pSelect.appendChild(l_Opt);
     }
    }
    
  • By default, all the value in the selection list, so Select percent select list

    Hello

    I created the application process to extract the name of the State in the selection list based on the name of the city.
    Now I need if I don't have the name of the city and I select % in city name select list then any name should come in the select list.
    Now if I select % in select list and then he shows me empty in state name select list.

    How can I extract all the name of the State if I select % in select list.

    My application process
    BEGIN
      OWA_UTIL.mime_header ('text/xml', FALSE);
      HTP.p ('Cache-Control: no-cache');
      HTP.p ('Pragma: no-cache');
      OWA_UTIL.http_header_close;
    htp.prn('<data>');
       HTP.prn ('<select>');
       FOR c IN (select S.NAME,S.CODE from STATE_MAS S,CITY_MAS C where C.STATE_CODE=S.CODE AND C.CODE =:SELECT5)
    LOOP
      HTP.prn ('<option value="' || c.CODE || '">' || c.NAME || '</option>');
       END LOOP;
    
       HTP.prn ('</select>');
    htp.prn('</data>');
    
    END;
    My city name Table

    CREATE TABLE  "CITY_MAS" 
       (     "CODE" VARCHAR2(3) NOT NULL ENABLE, 
         "NAME" VARCHAR2(1000) NOT NULL ENABLE, 
         "STATE_CODE" VARCHAR2(3) NOT NULL ENABLE 
            )
    My name status Table

    CREATE TABLE  "STATE_MAS" 
       (     "CODE" VARCHAR2(3) NOT NULL ENABLE, 
         "NAME" VARCHAR2(50) NOT NULL ENABLE 
         )
    /
    How can I do that.

    Thank you

    Published by: 805629 on January 25, 2011 02:06

    Change the cursor query loop to handle this

    select S.NAME,S.CODE from STATE_MAS S,CITY_MAS C where C.STATE_CODE=S.CODE AND C.CODE =:SELECT5
    

    TO

    select S.NAME,S.CODE from STATE_MAS S,CITY_MAS C where C.STATE_CODE=S.CODE AND
    ( C.CODE =:SELECT5 OR :SELECT5 = '%' )
    
  • Using the selection list

    Hello:

    I have created a form where I would like to include a few select list boxes.

    When I run my form, I meet two types of questions in which I could use help in troubleshooting.

    Question No. 1:
    I have a field called SPECIALTY. This field in the database is a NUMBER.
    If my user does not select a specialty, the following error message occurs: ORA-01722: invalid number

    I checked the value that is passed to the field and the value is null %. I think that the reason for this error message is that the SPECIALTY is a numeric field and the % value % null is character.

    One, why this null value % of filling in my table? If the user does not select anything, regular null must appear in the column.
    Two, how to replace this % % null value?

    Question 2:
    I have a field called STATE. The field in this table is a VARCHAR2 (2).
    If my user does not select a status code, the following error message occurs:-12899: value too large for column 'TEST '. "ORGANIZATION '." "' SUFFIX ' (real: 6, maximum: 2).

    I checked the value that is passed to the field and the value is also null %. Well, null % is certainly 6 characters and does not fit into a column defined with a width of 2.

    What can I do to fix this problem? I do not understand why null % keeps being inserted in the DB when anyone makes a selection in the select list. Is it possible that we can replace this value and insert the value null ordinary? When I speak of 'regular null value', I mean when I have a text field and it is empty, a null value is inserted into the table, but it does not appear as null %. To place the value in the DB looks like (null).

    Can someone help me?
    Thank you.

    Hello

    Go to your list of selection-> list of values definition:

    The value 'Null return value' for example to zero.

    Based on what you expected store in your table, you can change your insert, update function for:
    for example, if you want to store the value null:
    Decode(:P22_SELECT_LIST,0,,:P22_SELECT_LIST);

    Best regards, Kostya Proskudin

Maybe you are looking for

  • barely 9 videos iOS app

    Why the video playback by default for 6 and 9 iOS application works so differently? iOS 6 allows me to play anything, but don't know the 9 episodes and seasons addictional new! It really bothers me! First of all, I'm the only one? Second is there a s

  • What is the difference between NB200, NB205?

    Hello, I'm in the UK! I am wanting to know what is the difference between NB200 and NB205? Thank you

  • Video on IPhone5

    Even if my online contacts have opportunities of the video, when I try to use Skype (version 4.2.2604) on my iPhone5 (iOS 6.0.2), the video icon is not visible. No problem with icons of voice call or SMS. Any suggestions?

  • VAIO Duo 11 no autorotate after update

    After updating Windows 8.1 1 I lost function autorotation. I does not appear in the display settings and the button no longer works. It has worked flawlessly until 8.1up1. Model: SVD11223CXB Any ideas?

  • Issue fixed

    I have a simple test program that is a digital FIR filter. I'm simulate for Rio indeed, as I have similar problems there. as it is, the program in the picture below actually works well. Should null to a sample rate of 1/4 what it does. However, if I