Refresh the report based on the select list item

Hello world

Someone has the answer to refresh a report based on an element that I select in a select list? I currently have the item in the list of selection and a report under him I wrote a sql that fills with data. If I choose an article in my select list, I want to change the data in my report. What I have to write separate sqls for each item to be fired or write some type of process. Can someone help me?

Thank you
Ryan

Write directly in the SQL report. Your select list item will be the variable in the SQL.

Tags: Database

Similar Questions

  • 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

  • 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.

  • 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

  • How to deletions has selected list item from a list item.

    How delete a list item selected in a list item.

    My question that I should write to list_index so that it indicates the selected list item

    DELETE_LIST_ELEMENT (Nom_liste, list_index);

    -----
    Form of Oracle 10g

    Hello

    The trigger when-list-changed fires whenever the value has been changed.
    You get this value/index with the following:

    DECLARE
       LC$Liste  Varchar2(61) := :system.cursor_item ;
       LC$Valeur Varchar2(30) := Name_In( LC$Liste ) ;
       LN$Nbre   Pls_integer ;
    BEGIN
    
       LN$Nbre := Get_List_Element_Count( LC$Liste ) ;
    
       For i IN 1 .. LN$Nbre Loop
          If Get_List_Element_Value( LC$Liste, i ) = LC$Valeur Then
             -- you get the selected value, and index there --
             :BLOC2.LABEL := Get_List_Element_Label( LC$Liste, i ) ;
             Exit ;
          End if ;
       End loop ;
    
    END;
    

    François

  • Refreshing a report on the change in value of the selection list

    -Very well, this should be very easy, but I can't seem to do things.

    I have 2 items on a page: a list of selection and a report.

    The report contains a WHERE clause that uses the value of the selection list.

    So when I change the value of the selection list, the report needs to be recharged.

    I don't want to use a 'Redirect and set' when I change the selection list, because I don't think it's very pretty.

    So I created a dynamic action that updates the State when the selection list is changed.

    Now for the problem: the report get updated, but the new value of the selection list is not used!

    How can I make select the value of the item to be stored in session state?

    I can't find this option anywhere in the parameters of the dynamic action.

    Thank you.

    popovitsj wrote:

    How can I make select the value of the item to be stored in session state?

    I can't find this option anywhere in the parameters of the dynamic action.

    It is in the region of report definition: Page to submit items in the Source section.

  • change the results of the report with the selection list using dynamic action

    This is one of those situations where if I could understand the appropriate search terms to use, someone else must have asked this question in the past.

    I have a report with a SQL query with a condition based on a list of selection on the same page. So I have a list of selection -: P177_FISCAL_YEAR

    My request for my report is:

    Select md_id, display_name, description
    of media_tbl
    where fiscal_year =: P177_FISCAL_YEAR

    When a person makes a selection on the selection list (: P177_FISCAL_YEAR), I would like to report up-to-date without having to submit the page. I was hoping that I could do something like this using a dynamic action but have not found a way to do it.

    Thanks in advance!

    John

    Create dynamic Action:

    When
    Event: change
    Selection type: product (s)
    Article (s): P177_FISCAL_YEAR
    Condition: - unconditionally.

    Real Actions (add 2 real actions)
    -the first is to load the value in session state so that the report can see.
    Sequence: 5
    Action: execute the PL/SQL Code
    Code PL/SQL: null;
    Items to submit page: P177_FISCAL_YEAR

    -the second to refresh the report
    Sequence: 10
    Action: Discount
    Selection type: region
    Region:

  • 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.

  • 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');
    }
    
  • 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

  • Select the color based on the value of the selected list

    Hello

    Is could someone please tell me if it is possible to display a LOV with a background color according to the selected value?

    In fact, I have a report with many selection lists whose value can be N/A Y, N, and I would like that the corresponding LOVs have the background in color according to the value.

    Thanks in advance,

    Andreea

    Published by: user12064977 on October 20, 2009 02:15

    Oh! I have not read the word "report" in your original post and I took your page as a form... :(

    OK, first of all, run your page and see the HTML source generated for it. Note the value of the attribute "name" for all the columns in the report when you use selection lists. Now using JS, set the background color for them.

    Suppose "f03" is the name for your selection list value, then

    Try the code in the following page footer section

    
    
    CheersHari 
    
  • Tabular returns lines based on the selection list

    Howdy-

    An element of the selection list is used to select a job title.

    The tabular presentation returns lines of documents to be considered annually by the title of the post.

    A single column in a tabular form (the number of the document) is defined as a link so that the user can open and read the document.

    It works beautifully.

    But...

    Some job titles return a row of five documents, still others return more than a hundred, so when paging is used to move to the next set of lines in tabular form, updates the selection list and the selection is lost.  I have the Page Action selection list element when the modified value to Redirect and set the value, but the Type of Source is static that may be my problem.

    How can I use pagination while maintaining the value of the selection list?

    Thanks in advance.

    Alexandra

    Request Express 4.2.2.00.11 (by the way, I don't have our network administrator do a update to this version?)

    the value of the default selection on a hidden item list. When you select from the drop-down list, set the item also hid from the selected item.

  • 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);
     }
    }
    
  • 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
    -------------------------------------------------------------------

  • Weird problem with the width of the selection list

    4.1.1

    Hello

    I got a selection list filter that has three values null, Y and n. based on what the user selects a tabular presentation is filled with data that also has a list of selection.

    Now, earlier, I had only two values Y and N in the selection filter, and according to the selected option list, select tabular list would be filled as well as other areas. Select the 'tabular forms' list for all lines are the same width. When I added the Null value option in, select the filter, now the tabular form displays all of the values, however, the selection list is of different sizes according to the length of the text.

    I put in the CSS Style of the selection list - width: 20px

    I also tried the option element width, but still no luck, when I select Y or N to the upper filter select, selection lists appear correctly with the same width.

    No idea what could happen?

    Just to confirm, the problem is with the width of selection tabular list.

    Thank you
    Ryan

    ryansun wrote:
    4.1.1

    Hello

    I got a selection list filter that has three values null, Y and n. based on what the user selects a tabular presentation is filled with data that also has a list of selection.

    Now, earlier, I had only two values Y and N in the selection filter, and according to the selected option list, select tabular list would be filled as well as other areas. Select the 'tabular forms' list for all lines are the same width. When I added the Null value option in, select the filter, now the tabular form displays all of the values, however, the selection list is of different sizes according to the length of the text.

    This seems odd. Can you reproduce this on apex.oracle.com? What browser do you use?

    I put in the CSS Style of the selection list - width: 20px

    I also tried the option element width, but still no luck, when I select Y or N to the upper filter select, selection lists appear correctly with the same width.

    No idea what could happen?

    All functionality of another column using the column Standard report basically, means the "CSS" Style property is not applied (see, for example: {: identifier of the thread = 1001577}), then the attributes of the element, link attributes etc. should be used.

    Tabular controls, to use the standard approach of HTML attributes. Come in

    style="display: block; width: 200px;"
    

    in the property of the attributes of the element.

Maybe you are looking for