Interactive report using month Picker Plugin-date maximum one month given values of display column?

create table test

(

The user ID number,

created_on date

)

Insert into test values(1,'03/11/2014');

Insert into test values(1,'03/27/2014');

Insert into test values(1,'04/14/2014');

Insert into test values(1,'02/20/2015');

Insert into test values(1,'02/27/2015');

Insert into test values(2,'03/10/2014');

Insert into test values(2,'03/19/2014');

Using http://www.Oracle-and-apex.com/plugin-month-picker/ in report interactive apex:-

I want the answer which is the maximum date of the month and year

for a specific user for the month selected

For example if I chose March 2014

as input is 03-2014

so it should display

username created_on

1 27/03/2014

2 03/19/2014

Help, please

oracle 11 g r2 database version

Apex Oracle version 4.2.4

ReemaPuri wrote:

create table test

(

The user ID number,

created_on date

)

Insert into test values(1,'03/11/2014');

Insert into test values(1,'03/27/2014');

Insert into test values(1,'04/14/2014');

Insert into test values(1,'02/20/2015');

Insert into test values(1,'02/27/2015');

Insert into test values(2,'03/10/2014');

Insert into test values(2,'03/19/2014');

Http://www.oracle-and-apex.com/plugin-month-picker/ in report using interactive apex: -.

I want the answer which is the maximum date of the month and year

for a specific user for the month selected

For example if I chose March 2014

as input is 03-2014

so it should display

username created_on

1 27/03/2014

2 03/19/2014

Help, please

oracle 11 g r2 database version

Apex Oracle version 4.2.4

Based on the information provided:

select
    userid
  , max(created_on)
from
    test
where
    created_on >= to_date(:p1_month_picker, 'mm.yyyy')
and created_on < add_months(to_date(:p1_month_picker, 'mm.yyyy'), 1)
group by
    userid

However, I suspect that the information provided is not the full story...

Tags: Database

Similar Questions

  • Interactive report, change in color of the text based on the value in another column

    I have a sample report at this url:

    workspace: homeworld

    username: test_report

    password: test_report

    APEX version 4.2.3 database 11 g release 2...

    # Application: 202: IR TEST REPORTS

    Page in question is #2 page

    I have the setup of the report and you must make the following change...

    I have 2 columns: Comm and bonus.

    If the bonus > comm, I need to change the text color of the color of the Red bonus

    If the bonus, comm, I need to change the text color of the bonus in green color

    If the bonus = comm, I need to change the text color of the bonus to black color

    I tried using the code with the select and am NOT wanting that, since he will be delivered with the data when they are downloaded in CSV or Excel... Had thought using the construction by highlighting, but that does not compare one column to another...

    Thought a dynamic action, but not clear on HOW to do this, so any help would be appreciated...

    Thank you

    Tony Miller

    Software LuvMuffin

    Hello

    I think that number with JavaScript conversion may not be good idea because it's difficult manipulating different digital formats.

    Check your example on page 3.

    I have added to the report query

    CASE WHEN COALESCE(bonus,0) > COALESCE(comm,0) THEN
     'red'
    WHEN COALESCE(bonus,0) < COALESCE(comm,0) THEN
     'green'
    WHEN COALESCE(bonus,0) = COALESCE(comm,0) THEN
     '#333333'
    END as fcolor
    

    Then I modify every column Expression HTML to be as

    #EMPNO#
    

    Kind regards
    Jari

  • What are the parameters? How are Variables differenet? Why we can not use variables to pass data to one sequnece to another? What is the advantage to use parameters instead of Variables?

    Hi all

    I am new to TestStand. Still in the learning process.

    What are the parameters? How are Variables differenet? Why we can not use variables to pass data to one sequnece to another? What is the advantage to use parameters instead of Variables?

    Thanks in advance,

    LaVIEWan

    I'm sorry... I discovered that... its not at all possible to pass data to another sequence using variables... it must be through settings... once again I apologize for the display of such a stupid question

  • switching from reports using list item - missing data on initialization

    Hello

    I have two interactive reports (one with view and secondly with line of business)... I greeted my users to pass from prod/LOB (using the list item)... I use LOB view as default view

    My problem is that when the user connects to the view BUSINESS application report is displayed by default (of your choice), but contains no data (the message: no data found) until I have switch to view (via the list item) and then switch to view return LOB... Not sure what is the cause


    I've stored sample on APEX. ORACLE.COM for review and comment

    Here are the credentials:


    Please note that the form is on page 2

    Thanks in advance

    Published by: qwe12654 on April 21, 2011 15:26

    Hey Tal,

    Try the page now

    When you base reports on page elements, you must ensure that these elements have values already stored in the session. I added two calculations to your page that define the year and product/lob select list values if they are null.

    Andy

  • Interactive reports using collections - how to control the column headers

    Hello

    I found a link on the forum somewhere that showed a step by step how to use collections with interactive reports, you can dynamically generate SQL code and also control the column headers. Does anyone know where is the manual?

    Otherwise, I know how to generate dynamic SQL code, but what is the best way to control the column headers.
    Sometimes, the report will have 17 columns and other times up to 30 columns.

    Thank you, Bill

    Hi Bill,

    You can use * & ITEMNAME.* notation for the column headers. This means that you can have elements of page/application that contains the topics you need which can, of course, be filled using PL/SQL and, thus, could be established in your code. It's a bit of pain to have to do this for each section, but I do not see a quicker method.

    Andy

  • Interactive report - this month

    Hello
    is it possible to set a default interactive filter to display records for this month only? It is an application of timesheet and it would be very nice to have it done automatically instead of setting a manual filter each month.

    TNX

    You can specify it directly in the interactive repeort request you...

    Select * from table_name where to_char (myDate, "mm") = to_char (sysdate, 'mm')

    Kind regards
    Shijesh

  • Referring to a field value of line in an interactive report using jquery

    I have an interactive relationship with a select_list of line level:

    Select ename "Employee name",
    Bishop "Manager."
    EmpNo,
    APEX_ITEM. SELECT_LIST)
    p_idx = > 3,
    -p_value = > deptno,.
    p_list_values = > ' copy; Copy, delete, delete, export to PDF format. Export to PDF ',
    -p_attributes = > "style =" color: red; ' " ',
    p_show_null = > 'YES ', he said.
    p_null_value = > NULL,
    p_null_text = > "- Select -",
    -p_item_id = > ' f03_ #ROWNUM #'.
    p_item_id = > 'P6_IR_SELECT_LIST ',.
    p_item_label = > ' label for ROWNUM f03_, #
    p_show_extra = > 'YES') "Actions".
    from emp e, Dept. d
    where e.deptno = d.deptno;

    When a user selects "Delete", I would delete the EMPNO based on the line where the user has selected to 'delete '. I tried warning on the following, but may not know how to capture the EMPNO at the level of the lines:

    Alert ($v ('apexir_EMPNO'));
    Alert ($('#apexir_EMPNO'). Val());

    Can someone tell me how to reference the specific EMPNO by line?

    Thanks in advance!
    John

    What about this:

    Dynamic action
    Event: change
    selector: jQuery selector:

    Select [name = "f21"]

    Real action

    JS exec code

    var line = $x_UpTill (this.triggeringElement, 'TR');
    var otherElement = $(' input [nom = "f20"]', ligne) [0];
    Console.log (otherElement.value);

    http://Apex.Oracle.com/pls/Apex/f?p=45448:11 (lower half)

  • Refreshing interactive report on the changes of dates

    Hello
    I have an IR where the source contains the query
    WHERE from_date AND to_date to_char(:P3_FROM_DATE) = = to_char(:P3_TO_DATE)
    , now, when I change the value of the element in P3_FROM_DATE and P3_TO_DATE, I want IR to change according to the selected values.

    I tried with dynamic action, but it did not work, maybe I gave the wrong code...

    How can I achieve this?

    Thanks and greetings
    Umer

    Nice1 wrote:
    There is no option of Page items to be submitted in both the DAs

    Not available on the actions of refreshment. Doesn't seem fair...

    Actually the best way to do it is the attribute of Page elements to submit on the IR region.

    Published by: fac586 on July 4, 2012 11:25

  • Plugin data: determine the string table values ranging

    Hello, once again

    I have always fought with a use composed of data from the separate tab

    When I read a line via

    sMyLine = file.getnextline

    and try to extract the values with

    aMyValues = split (sMyLine, vbTab etc.)

    the returned array is Variant.

    Now I try to assign values of this array of different channels, for example

    for i = 1 to Ubound (aMyValues)

    ... root channelgroups (j). Channels (i). Values (k) = aMyValues (i)

    next

    This results in an error message "this channel has been generated with e64 Type, values to fill must not be of type VT_BSTR" or what would be the translation into English.

    So I have to turn the table variant to a R64-table. However cdbl (aMyValues (1)) will not work.

    Workaround heavy:

    When reading data with

    root... channelgroups (1). Channels (1). Values (1) = file. GetNextStringValue (e64)

    the value is of the appropriate type. But this translates many read-only operations.

    Is there a way to read in one line and add the values of channels? File.GetStringBlock in the examples is especially used with DirectAccessChannels.Add. But I don't want the new n-channel, but rather add to already existing ones.

    Thank you for your support.

    Michael

    Hello

    I think that there are several ways to reach your goal.

    If you want to assign the values in your table variant of a digital channel, you can use the File.Formatter.ParseString () method. Please make sure you that trainers for your numeric values are defined according to the needs, for example, File.Formatter.DecimalPoint, etc.

    File.Formatter.DecimalPoint = «»
    ...
    for i = 1 to Ubound (aMyValues)
    ... root channelgroups (j). Channels (i). Values (k) = File.Formatter.ParseString (aMyValues (i), eR64)
    next

    The best way is to use the StringBlock object. If you do not want to create a new channel for each DirectAccessChannel, you can use ProcessedChannel to add multiple DirectAccessChannels, for example

    Dim processedChn: Set processedChn = channelGroup.Channels.AddProcessedChannel ("ChannelName", eR64, eConcatProcessor)
    ...
    processedChn.Channels.Add (DirectAccessChannel)

    I hope this helps.

  • Query does not work in: interactive report _ APEX

    Hello

    I have two table QB_COLLEGE_DETAILS and QB_STUDENT_DETAILS, in the college details are stored in the QB_COLLEGE_DETAILS table and by studying the details are stored in the QB_STUDENT_DETAILS table. In the primary key table and foreign key in the COLLEGECODE.  Now, I created the interactive report using code below, but does not receive the correct value in the number of student column (see image below).

    SELECT COLLEGENAME, COLLEGECODE, COORDNAME, COORDEMAIL,

    (SELECT count (s.STUDENT_REGISTER_NUMBER) AS STUD_COUNT of QB_COLLEGE_DETAILS c, s QB_STUDENT_DETAILS

    where c.COLLEGECODE = s.COLLEGECODE) "STUDENT_COUNT".

    of QB_COLLEGE_DETAILS;

    Report.JPG

    My requirement is necessary find the number of students at the corresponding College. When I used above mentioned request that total student number appear in all lines.

    could you add your suggestion, I have to do?

    Thank you

    Issac

    ISSAC-Oracle wrote:

    I have two table QB_COLLEGE_DETAILS and QB_STUDENT_DETAILS, in the college details are stored in the QB_COLLEGE_DETAILS table and by studying the details are stored in the QB_STUDENT_DETAILS table. In the primary key table and foreign key in the COLLEGECODE.  Now, I created the interactive report using code below, but does not receive the correct value in the number of student column (see image below).

    SELECT COLLEGENAME, COLLEGECODE, COORDNAME, COORDEMAIL,

    (SELECT count (s.STUDENT_REGISTER_NUMBER) AS STUD_COUNT of QB_COLLEGE_DETAILS c, s QB_STUDENT_DETAILS

    where c.COLLEGECODE = s.COLLEGECODE) "STUDENT_COUNT".

    of QB_COLLEGE_DETAILS;

    My requirement is necessary find the number of students at the corresponding College. When I used above mentioned request that total student number appear in all lines.

    could you add your suggestion, I have to do?

    What you need to do is ask questions properly, providing useful information that allowing the problem can be reproduced, rather than unnecessary screenshots.

    This is the base of SQL. Oracle run internal SQL training courses?

    There is no correlation in your "virtual column" subquery to restrict the number of students for each college. The request must be:

    select
        c.collegename
      , c.collegecode
      , c.coordname
      , c.coordemail
      , (select count(s.student_register_number) as stud_count from qb_student_details s where c.collegecode = s.collegecode) "STUDENT_COUNT"
    from
        qb_college_details c
    

    However, unless there are a large number of colleges to which no students registered, it is likely that it will be more efficient to use an outer join:

    select
        c.collegename
      , c.collegecode
      , c.coordname
      , c.coordemail
      , count(s.student_register_number) student_count
    from
        qb_college_details c
          left outer join qb_student_details s
            on c.collegecode = s.collegecode
    group by
        c.collegename
      , c.collegecode
      , c.coordname
      , c.coordemail
    
  • Formatting of fonts in interactive reports

    Hello

    I have an interactive report, say Emp interactive report.

    In I want to format lines background color of a color under certain conditions.
    Like all Emp which belong to Dept 10 lines should have yellow background of red color, all the EMOS whose salary is lower than 1000 background color shoud be and all the emp which are managers for names should be "BOLD" and the text in green.

    Where should I have this conditional formatting of the police for interactive reports.

    I am abel to do this type of filtering after developing the interactive report using the tools at the top. But I want it displayed the first time, that the report is generated with these fonts and background colors.

    Please suggest.

    Thank you.

    user11910755 wrote:
    ORA-00923: THE KEYWORD not found where expected

    Seems that the syntax is not correct.
    Perhaps you forgot a comma somewhere in your SQL?

    Best regards, Tine.

  • DatePicker dates behind the header of the report when you try to pick a date

    Hello

    I'm using a datepickers to choose a beginning and an end date for a period. Below the datepickers, I have an interactive report that shows the periods date inserted. When I try to choose a date in the calendar of the datepicker, the header of the report comes in the front of the line of calendar and mask which disables these me picking it.

    Could someone help me please?

    Thanks to the adv.

    datepicker_issue.png

    Hello

    Yes, this is the bug in apex 5 application. But I can see you paging value lines 1-3.

    If you're not using large amount of data in this report and freezing of the header of the report are not used, then probably, you can try this.

    Open your interactive report-> attributes-> topic report

    Change this to "None".

  • Assembly name, the username of the APEX using interactive report?

    Hello


    I have a few problems

    (1) how to view and edit the name, surname, e-mail address, is_admin, is_application_developer properties of the user by using an interactive report?

    wwv_flow_users gives shows all the foregoing. Given that it is a vision, I think I can't make changes through it

    And APEX_WORKSPACE_APEX_USERS does not show the first name, the last name properties, also is not LC to change I think


    (2) the is_admin, is_application_developer APEX_WORKSPACE_APEX_USERS columns, its default value, at the time of the creating user, I want to change the value of Y for a particular user. How can I do and what function do I use?





    Thanks and greetings
    Umer

    Hello

    These are internal tables APEX. It is not support maintaining data directly to internal tables APEX. If you handle internal APEX Oracle support tables can endure no more your instance.

    Package APEX_UTIL provide procedures to keep users APEX
    http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21676/apex_util.htm#CHDBEEHG

    Kind regards
    Jari

    -----
    http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0

  • interactive report - highlight a line based on the date column in the past

    We have an interactive report that shows an expiration date. We want to emphasize the lines when this date is in the past.

    How is that possible?

    Best regards, Nann

    Hi Nann,

    Add the below css in the HTML of the page header

    
    

    Kind regards
    Shijesh

    You can reward this answer marking it as useful or Correct ;)

  • Interactive report with display of the icon to set the page element

    Hi all

    I am currently using Apex 4.2.4, I have an interactive report using icons, each icon has a link to another page but a few I want to set a value in a page hidden in the same page element which is then used as a variable for a classic report.

    I have this work via link href in the icon as f? p ='|| FA.page |': 1 :'|| : app_session |': P10_ID_ITEM :'|| FA.link_name without error.

    My problem is that I wanted to put the value of the element without using a link href that I could handle the clicked icon to change the background color so that the user can have a Visual representation, where it was clicked, then using the value of the page item appears the classic report in another region with a partial refresh.

    Any help is appreciated, thanks.

    Can you provide a detailed explanation of the purpose of this report and the logic used in the report query? What are the rules to control which icons appear in the IR, what icons link to the second report on the page of IR, and icons to link to separate pages?

    For me, the report query seems too complicated and inefficient by returning the data it does, and if another level of data is added to the hierarchy or more data is added to the second level, it fails with:

    ORA-01427: einreihig subquery returns multiple rows

    I'm guessing that the intent is that the IR displays only the icons at the top level of the hierarchy and icons for posting a link to a different page when they have no descendants, or to display the related lines in the secondary report below the IR when they do. I created a new page with the report query modified to a route of tree and keep the upper level lines. It is much more effective than the original query and simplifies the logic necessary for the verification of end-nodes. Instead of generating a URL link (which violates the separation of concerns), the query returns of the discrete values that can be used to implement the HTML link in the Icon View link Custom property:

    with icon_tree as (
          select
              ic.id_icon
            , ic.icon_name
            , ic.link_name
            , nullif(connect_by_isleaf, 1) is_parent
            , level depth
          from
              icons ic
                connect by
                    prior ic.link_name = ic.id_parent
                start with
                    ic.id_parent is null)
    select
        id_icon
      , icon_name
      , link_name
      , apex_util.get_blob_file_src('P10_ICON_IMAGE', id_icon) img_src
      , nvl2(is_parent, '586', link_name) target
      , nvl2(is_parent, 'P586_ID_PARENT', null) parent_item
      , nvl2(is_parent, link_name, null) parent_id
      , :app_id app_id
      , :app_session app_session
      , :debug debug
    from
        icon_tree
    where
        depth = 1
    

    In the interactive report, Use Custom Icon Link is set to Yes, and the custom link is:

    
      
      
    #ICON_NAME#

    Public static ID icons and results are applied to the IR and the regions second report respectively for use as selectors in action dynamics and CSS. The protected value property for the page P586_ID_PARENT element must be set to No for the value can be defined by a dynamic action.

    Dynamic action with several real actions is needed to bind alternatives click behavior to the links on the icons that have descendants (i.e. where the data-parent-id attribute has a value):

    Event: Click

    Selection type: jQuery Selector

    jQuery Selector:.apexir_WORKSHEET_ICONS a:not([data-parent-id=""])

    Real Actions

    Seq: 10

    Action: Delete the class

    Class:selected

    Selection type: jQuery Selector

    jQuery Selector:.apexir_WORKSHEET_ICONS a

    Seq: 20

    Action: Add the class

    Class:selected

    Selection type: trigger element

    Seq: 30

    Action: Set value

    Wait for result: Yes

    Type of value: Expression of JavaScript

    JavaScript expression:$(this.triggeringElement).attr('data-parent-id')

    Selection type: Agenda

    Point: P586_ID_PARENT

    Seq: 40

    Action: Discount

    Selection type: Region

    Region: results

    Seq:50

    Action: Show

    Selection type: Region

    Region: results

    Seq: 60

    Action: Cancel event

    Finally, add a style sheet to the Inline CSS property page. Initially, this hides the secondary report and select the parent clicked icon:

    #results {
      display: none;
    }
    #icons .apexir_WORKSHEET_ICONS a {
      border: 1px solid transparent;
      border-radius: 3px;
      padding: 0.8em 0 0.5em;
    }
      #icons .apexir_WORKSHEET_ICONS a.selected {
        border-color: #6a9cda;
        background-color: #bbd1ec;
        transition: 0.6s;
      }
    

    However, after all it is the question of why you use an interactive report here if you turned off all the features of the IR? A dynamic list with a custom template box seems to be more applicable?

Maybe you are looking for