How to do a tabular report

Please can someone tell me how to do a tabular report ?
I have the following data in the table
User_id     Date
111     10-JAN-06 13:33:00
112     11-JAN-06 14:33:00
113     11-JAN-06 14:33:00
114     13-JAN-06 13:33:00
115     13-JAN-06 16:33:00
116     14-JAN-06 13:33:00
117     15-JAN-06 17:33:00     
118     16-JAN-06 18:33:00
119     16-JAN-06 19:33:00
120     16-JAN-06 13:33:00And i need the following output
     Day of the month                    
Hour     1     2     3     4     5
1                         
2                         
3                         
4                         
5                         
6                         ie. Numbre of count of user for each hour by day..
How do i go about it ?
Thanks in advance
Regards

Yes :)
Check out
http://www.remote-dba.cc/oracle_tips_sql_values.htm
http://www.remote-dba.cc/oracle_tips_greatest_least.htm
Will give you some idea as to how to proceed.
HTH...

Similar Messages

  • How to decrease the column size in a tabular report

    Hi ,
    How can i reduce the column size in a tabular report in oracle apex.
    my report is having 90 coulmns and i want that should come in once sceen so i want to decrease the size of columns as well as the font size of values + column_name..
    any suggestion ?
    Thanks
    Nitin

    Hello,
    Oracle APEX OTN Forum is here : Oracle Application Express (APEX)
    Regards

  • How to assign a default value on a Tabular Report?

    version 3.2.1
    I have a column in a Tabular Report (SQL Query (updateable report) ) that I would like to default to a value every time that the Add Rows button is clicked. This column needs to have the same value for every row.
    How do I set a default value on the column?
    Thanks,
    Joe

    I've run into the same problem. The 'Default' value isn't even appearing in the form, let alone getting stored.
    I'm not 100% certain (I'm still new to Apex too), but I think that the 'Default Type' and 'Default' value fields of the 'Tabular Form Element' might only apply to new records, ie when using the Tabular Form to create new records.
    In my case, I'm displaying existing records and I've been trying to enter a default new value for a particular field, ie change the value in the field for existing records from null to today's date. I couldn't get it to work and the more I think about it the more I realise that it is probably not the right way to do it.
    One alternative would be to put the SYSDATE into the source SQL (noting that changing an existing tabular form definition would cause an error, so I would have to create a new tabular form). But another (and I think preferable for me) option is to create a trigger that will put the SYSDATE into the field as each record is updated.
    Regards,
    Peter

  • How to pass tabular report col reference in the onChange event of Txtfield

    Hi there
    I need to have Onchange event on Textfield Item.
    Whenever i change the text field value, the new value should go to particular column in my
    tabular report.
    So in the onchange event, i have to pass the tabular report column (target field) along with textfield value (this.value)
    something like this:
    onChange="javascript:changeColVal(this,rowid);"
    I have no clue how to pass row id / particular column of tabular report in textfield.
    Any pointers on this would be of great help.
    Thanks
    Vijay

    Hi Andy
    Thanks a ton for your reply.
    The above solution would work fine when we refer Text field within that tabular report.
    but if we refer text field Item from separate HTML region?
    I'm sorry, its my mistake for not providing OTN application for reference.
    I've come up with dummy application which shows you exact requirement.
    Please follow url: http://apex.oracle.com/pls/otn/f?p=47869:21
    login credentials:
    workspace: vsanthanam
    user: vijay
    pswd: apex_demo
    Application highlights the row whenever we move up/down or click the row.
    Here, i've NOTES in tabular report and Comments "text field" in separate HTML region.
    Whenever i type/update comments in textfeild, it should goto Notes column in Tabular report.
    so that when we move up/down the tabular report rows, it should show corresponding Notes in Comments text field.
    Approach i've took:
    1) Created a function hiliterow, that highlights the row clicked/move up or down and
    also displays the Notes Column of Tabular report into Comments Textfield.
    (this is to display Notes if already avail to that particular row, otherwise Null)
    2) Function passValues would assign the value we type in Comments Text field to
    Notes column of Tabular Report. (as of now, this is happening only when we click on that particular row after key-in the value in Comments txtfield,
    but this should happen when onChange event on comment textfield)
    3) In MoveupDown function, i'm refering the current row in var r. so i tought to have global var to hold current row, so that i can
    refer the same row in Onchange Event of Textfield. But this fails (please refer NotesToRow function)
    My requirement is to pass the Comments text field value to Tabular report when onChange event on Comments Text feild happens.
    I'm helpless in passing row reference to onChange function.
    Any pointer on this would be of immense help.
    Thanks
    vijay

  • How to set the Background Color of a Text Field in a Tabular Report.

    Hello,
    I tried to set the Background Color of a Text Field in a Tabular Report.
    But I was not able to change this colur.
    In the report attributes --> column attributes
    I tried already:
    1. Column Formating -- >CSS Style (bgcolor: red)
    2. Tabular Form Element --> Element Attributes (bgcolor: red)
    but nothing worked.
    Can anybody help me?
    I Use Oracle Apex 2.2.1 on 10gR2
    thank you in advance.
    Oliver

    in "Report Attributes" select the column to move to the "Column Attributes" page. In the "Element Attributes" field under the "Tabular Form Element" region enter
    style="background-color:red;"
    I will also check if there is a way to do this via the template and post here again
    edit:
    in your template definition, above the template, enter the following:
    < STYLE TYPE="text/css" >
    .class INPUT {background-color:red;}
    < /STYLE >
    (remove the spaces after the < and before the >)
    change "class" to the class that the template is calling
    (I'm using theme 9, the table has: class="t9GCCReportsStyle1" so I would enter t9GCCReportsStyle1)
    A side-effect of using this second version is that ALL input types will have a red background color--checkboxes, input boxes, etc.
    Message was edited by:
    TheJosh

  • Tabular report, how to split row into two lines per record

    Hi, I have a tabular report based on a collection. The collection has 15 fields and appears horizontally across the screen. I would like to have a break after the 5th column so that each row is on two lines instead of one. Is this possible...any information would be helpful.
    a shortened query is: and I would like the break to be between c028 and c029.
    thanks
    Karen
    Select apex_item.select_list_from_lov_xl
    (28,
    c028,
    'GEARS',
    'style="width:200px;background-color:#FBEC5D; "'
    || 'onchange="f_set_casc_gear(this,f29_'
    || LPAD (seq_id, 4, '0')
    || ')"',
    'YES',
    '0',
    '- Select Gear -',
    'f28_' || LPAD (seq_id, 4, '0'),
    NULL,
    'NO'
    ) gear_code,
    apex_item.select_list_from_query(29,
    c029,
    'select lma_desc e, lma_code r
    from lobster_mgmt_area
    where 1 in (select 1 from gears where gear_code = '
    ||nvl(c028,0)
    ||' AND (type_code in (''005'') and category_code in (''160'')) OR ('
    ||nvl(c028,0)
    ||' in (''130'')) ) order by lma_code ',
    'style="width:75px"',
    'YES',
    '0',
    '- Select -',
    'f29_' || LPAD (seq_id, 4, '0'),
    NULL,
    'NO') lma_code,
    apex_item.text
    (30,
    c030,
    6,
    NULL,
    'style="width:50px;background-color:#FBEC5D;"'
    ) gear_quantity
    from collections where collection_name = 'EFFORT_C'

    Hello Karen,
    >> and each field needs to be updateble ( concatenating two fields does not allow for that).
    Did you notice the ‘&lt;br />’ component, as part of the columns concatenations?
    The following example is using the same principle – every two updatable column, from the employees table, are sharing the same tabular form row - http://htmldb.oracle.com/pls/otn/f?p=22710:420 . The report query is:
    select apex_item.text(10,first_name)||'<br />'||apex_item.text(11,last_name) col01,
    apex_item.text(12,phone_number)||'<br />'||apex_item.text(13,email) col02,
    apex_item.text(14,salary)||'<br />'||apex_item.text(15,commission) col03
    from employeesThe same principle is being used to define custom headings.
    Hope this time it will be more clear.
    Regards,
    Arie.

  • How to assign apex_user in tabular report

    Hi,
    I have created a tabular report. Under report attributes / Tabular Form Element I have set the Default Type to (PL/SQL Expression of Function) and under Default (:apex_user). It looks like using :apex_user does not give me the username but if I instead of :apex_user say use sysdate it does give me the date.
    thanks so very much
    -ahmadii

    Sorry, it should be :app_user not :apex_user.
    thanks.

  • How can i call one report from another report (Drill Down Approach)

    Hi Friends,
    I've two reports in completely different layout format.
    One is in Crosstab & another is in Tabular.
    Now i want to call my Tabular report(report 1) from my Crosstab (report 2) without using BO's default drill down feature. Or, you can show using BO's feature if it supports my requirement.
    How to do that?
    Is it at all possible?
    Please share your thoughts. Thanks in advance for your time.
    Regards.
    Satyaki De.

    hi
    you can use openDocument for this.
    [http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf]
    I would suggest to use variables that build the HTML code for the hyperlinks dynamically, and display them in your crosstab. Set the display option for the related cells (ie. the cells where your variables are displayed in) so that the cell's contents as interpreted as HTML code.
    Regards,
    Stratos

  • How to create a standard report that allows filtering?

    Hi Guys and Gals,
    Sometimes, the standard report is great because it gives the user the feeling of a grid. i.e. All of the values are editable on one page, kind of like a spreadsheet. That is sometimes very useful. But if there is a lot of data, a filtering mechanism is necessary.
    So will one of you Apex gurus please tell me how to create a standard report that also allows data filtering?
    Allowing the user to specify the number of rows displayed would be peachy-keen too.
    Thanks,
    Kim
    P.S. I'm running Apex 4.1 with Oracle 11g.

    Kim2012 wrote:
    Your idea sounds very promising, but I apparently need a nudge in the right direction. From "Create Page", I clicked on "Form" and then "Tabular Form". Why would you do this? The advice given was
    create a standard report page using the Create New Page wizardi.e. go to Home > Application Builder > Application > Create Page and click Classic Report, this was suggested because the original post said:
    >
    So will one of you Apex gurus please tell me how to create a standard report that also allows data filtering?
    >
    Nothing about forms. Tabular Forms, Tabular Forms. Despite many enhancements over the last few versions, tabular forms still cause problems, especially for novices trying to go beyond their own competence and the built-in capabilities of wizard-generated tabular forms.
    More good advice: Re: Newbie question-how does the tabular form work?  How to populate prim key? and&mdash;if based on decent database design&mdash;out of the box you have a usable and robust application. Use an Interactive Report or a custom report template and add some CSS and you can get something a lot more powerful, flexible and better looking than any tabular form. Spend the time you haven't wasted on frustrated hacking of tabular forms adding more features and enhancements to your app.

  • Validation on Date Field in tabular Report

    Hi All,
    I have manually created the Tabular report and in that I have TWO DATE field
    1)Start Date
    2)End Date
    Now i want to put validation on start date as - Start Date Should Be More than sysdate.
    and validation on End date as - End Date should be More taht Start Date.
    How to put the validation ?

    Manish Jha wrote:
    What is the error you are getting ? Try executing the process in SQL workshop with hard coded values of apex_application.g_f03 and debug the error.
    Thanks,
    Manish
    >What is the error you are getting ? Try executing the process in SQL workshop with hard coded values of apex_application.g_f03 and debug the error.
    Thanks,
    Manish
    Hi manish ,
    I have Used the following code to validate end date should be more less than start date;
    DECLARE
    l_error VARCHAR2 (4000);
    BEGIN
    IF TO_DATE(apex_application.g_f05 (i), 'DD-MON-YYYY ') > TO_DATE (apex_application.g_f04 (i),'DD-MON-YYYY'
    THEN
    l_error :=l_error
    || '</br>'
    || 'Row '
    || i
    ||' ,TEST';
    END IF;
    END LOOP;
    RETURN LTRIM (l_error, '</br>');
    END;
    it's giving the error like :
    ORA-06550: line 16, column 6: PLS-00103: Encountered the symbol "RETURN" when expecting one of the following: begin function pragma procedure The symbol "begin was inserted before "RETURN" to continue. ORA-06550: line 16, column 24: PLS-00103: Encountered the symbol "BEGIN"
    Error ERR-1024 Unable to run "function body returning text" validation.
    What to change in the code?
    Edited by: N.K on Jun 23, 2009 11:43 PM

  • Pie chart to a tabular report

    I have develop a pie chart for Category Sales. If i click on one of the pie (Category) it should open a tabular report where it shows the sale of products in that category. How can i implement this in OBIEE dashboard?

    Hi,
    For your senario you can use Master Detail event feture to implement your solutions.
    Master-detail linking of views allows you to establish a relationship between two or more views such that one view, called the master view, will drive data changes in one or more other views, called detail views.
    More detail refer below linke;
    http://gerardnico.com/wiki/dat/obiee/master_detail
    Mark Helpful/Correct as applicable.
    Regards,
    Kashi

  • How to show ABAP ALV report in Portal iview?

    I have a ABAP report developed in ALV grid. Now I want to show it in EP iview. How can I do that? What type iview I shall use? And any step by step procedure/doc will be really appreciated.
    Alternatively is it possible to create a HTML tabular report similar to that of ALV grid and show it in EP.
    How complex will it be?

    To add to padmakar's remark. You can use a transaction iview but it has limitations.
    First of all: You can use a transaction iview with or without Gui. If the user has a sap gui then 1) you make a transaction for your ALV 2) create a transaction iview defining the alv transaction + with gui output
    If the user has no gui. Then it will only work if your ALV is made web enabled ( so not on 4.6c ).
    Other alternatives are to create a BSP + bsp iview instead of a list. Or use Webdynpro.
    Hopes this helpes somewhat,
    Frederik

  • Calling PL/SQL anonymous block from href in tabular report

    apex 2.2.
    I've got a tabular report where I've added some img columns with a href to call diff processes
    for example
    "<a href="f?p=&APP_ID.:22:&APP_SESSION.:BRANCH_TO_PAGE_ACCEPT|NEW_PROXY:NO:::22,ABCDEF ><img src="/i/asyl.gif" border="0" alt="Runprocess"></a>"
    When clicking on an image column in row x then I would like to run the process - no page submit.
    The pl/sql anonymous block process source calls package.storedproc(p1,p2) - two in parameters
    I'm struggling with the syntax and is wondering if there's a smarter way to achieve the same function
    Any ideas most welcome
    Thanks
    Peter

    &lta href="f?p=&APP_ID.:22:&APP_SESSION.:BRANCH_TO_PAGE_ACCEPT|NEW_PROXY:NO:::22,ABCDEFG" &gt&ltimg src="/i/asylogin.gif" border="0" alt="Process"&gt&lt/a&gtQuestion is how can you pass values from a row in a tabular report to the application process ?

  • Set value for textarea field in tabular report

    Hi all,
    I need some help setting textarea values in a tabular report. The tabular report is for users to be able to build their own ad hoc report, by specifying which columns should be included and filtered. Here are the example tables:
    -- Table that holds all of the data for the report.
    create table vehicle (
      make varchar2(50),
      model varchar2(50),
      type varchar2(50),
      year number);
    insert into vehicle values ('Toyota','Camry','Sedan','2008');
    insert into vehicle values ('Toyota','4Runner','SUV','2008');
    insert into vehicle values ('Honda','Civic','Compact','2011');
    insert into vehicle values ('Honda','Accord','Sedan','2010');
    insert into vehicle values ('Ford','F150','Truck','2011');
    -- Table that holds the columns that are available to be filtered in report.
    create table vehicle_cols (
      col_id varchar2(50),
      col_label varchar2(50));
    insert into vehicle_cols values ('make','Vehicle Make');
    insert into vehicle_cols values ('model','Vehicle Model');
    insert into vehicle_cols values ('type','Vehicle Type');
    insert into vehicle_cols values ('year','Vehicle Year');
    -- Table that holds filters saved by user.
    create table vehicle_user_saved (
      saved_rpt_name varchar2(50),
      col_id varchar2(50),
      col_value varchar2(50));
    insert into vehicle_user_saved values ('Saved Report One','make','Toyota');
    insert into vehicle_user_saved values ('Saved Report One','make','Honda');
    insert into vehicle_user_saved values ('Saved Report One','model','Sedan');
    insert into vehicle_user_saved values ('Saved Report Two','make','Honda');
    insert into vehicle_user_saved values ('Saved Report Two','year',2010);And below is the source query for the region. The textarea value is initially set to null.
    -- Region Source for specifying query parameters.
    select
      col_label,
      apex_item.checkbox(1,'#ROWNUM#','CHECKED') as include_cols,
      apex_item.hidden(2,col_id)
      || apex_item.textarea(3,null,2,100) as filter_cols
    from
      vehicle_cols;When a user clicks the button to load the parameters for a report they have previously saved, I'd like to change the values in the textarea field from null to the saved values from the vehicle_user_saved table so the user can see the parameters and run the report, or modify the parameters if necessary.
    I thought I could run a PL/SQL process (After Footer) when the button is clicked to populate these textarea fields, but the test below doesn't do anything:
    begin
      apex_application.g_f03(1) := 'Hello';
    end;For example, when a user selects to load "Saved Report One," the following parameters should be loaded into the textarea fields:
    Column >> Filtered Columns
    Vehicle Make >> Honda, Toyota
    Vehicle Model >> Sedan
    Vehicle Year >> Null
    Vehicle Type >> NullCan someone help me out? I wouldn't think I need Ajax for this since it's ok to be processed after the button click. But if I do need to use Ajax, I definitely could use some help with it, as I've never used Ajax before. I've setup this example in my hosted account to help.
    Site: http://apex.oracle.com
    Workspace: MYHOSTACCT
    Username: DEVUSER1
    Password: MYDEVACCT
    Application: report parameters
    Thanks in advance!
    Mark
    APEX 4.1, Oracle 11g

    Hi, thanks for your response.
    I'm not adding any new rows, I'm just trying to change the values of the textarea fields in the tabular report when the user chooses to load his/her saved parameters. The default for the textarea field in all rows is null, because I assume users will want to start building the report from scratch. However, when the user clicks the button to load his/her saved values, I want to overwrite the null values with new values. How can I do that?
    Thanks,
    Mark

  • Tabular Report Question

    Hi There,
    I am in the middle of developing a tabular report my report format is the following and following parameters are passed. Its basically a LEDGER of a particular account therefore requrired to calculate the opening balance as well.
    1. Account code
    2. Start Date
    3. End Date
    Account : 3301001
    Name : Bank of America
    Start Date : 01-01-07 ..................End Date : 01-12-07 ..................
    Acc_code.......Name ................Debit.........Credit...........Balance......................
    ...........Opening Balance of (Bank of America :)--------------> 800000 ..................
    1.................Company 1.........5000.............................805000.......................
    2.................Company 2.........2000.............................807000.......................
    3.................Company 3.............................12000.......795000.......................
    so based on that scenario I dont know how to do following things.
    1. I need to pick current balance from main accounts table and put it on balance field at first line where it says "opening balance of (bank of america)
    2. and add the balance into DEBIT or CREDIT which will act as a running balance.
    3. User can leave the End date so how to teckle this...following is the query.
    SELECT V_NO,VD_ENTRYDATE,V_VALUEDATE, ACC_CODE,ACCNAME,DEBIT,CREDIT FROM V_POOL
    WHERE ACC_CODE <> &ACCODE AND COMPANYID = '01'
    AND V_NO IN (SELECT DISTINCT V_NO FROM V_POOL WHERE ACC_CODE=&ACCODE AND COMPANYID=01 AND V_POSTED='T'
    and TO_DATE(VD_ENTRYDATE,'DD-MM-YY') >= TO_DATE(&SDATE,'DD-MM-YY')
    AND TO_DATE(VD_ENTRYDATE,'DD-MM-YY') <= TO_DATE(&EDATE,'DD-MM-YY')) order by v_no;

    Hi,
    try the following code for 2.
    DECLARE
        vError VARCHAR2(32767);
    BEGIN
        FOR i IN 1.. HTMLDB_APPLICATION.G_F03.COUNT
        LOOP
            IF HTMLDB_APPLICATION.G_F03(i) IS NULL
            THEN
                vError :=
                    vError ||
                    'Please enter a date on line ' || i ||
                    '<br/>';
            END IF;
        END LOOP;
        FOR i IN 1.. HTMLDB_APPLICATION.G_F04.COUNT
        LOOP
            IF HTMLDB_APPLICATION.G_F04(i) <> ^[[:digit:]]{8}$
            THEN
                vError :=
                    vError ||
                    'Please enter an account number on line' || i ||
                    '<br/>';
            END IF;
        END LOOP;
        FOR i IN 1.. HTMLDB_APPLICATION.G_F06.COUNT
        LOOP
            IF HTMLDB_APPLICATION.G_F06(i) IS NULL
            THEN
                vError :=
                    vError ||
                    'Please enter a quantity on line' || i ||
                    '<br/>';
            END IF;
        END LOOP;
        RETURN vError;
    END; BTW, are you sure that the regular expression "^[[:digit:]]{8}$" works that way in PL/SQL? Haven't used it very often yet, but I don't think you can specify it that way in PL/SQL.
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

Maybe you are looking for

  • Table does not exist in system after DB Connect

    Hi Everyone, I must extract data from a oracle db.  I create a source system with DB Connect and it's connect successful. Later, i create a datasource for that source system. but it show the table does not exist in system. I'm sure the table is corre

  • Why can't I open a new Tab with the "Plus" sign or "Command-T"?

    If I want to open a New Tab, I either press "Command T" or select "New Tab" from the File menu, or click the little "plus" sign in my Tabs bar - - - right? None of them work. What am I missing?

  • How to recover email that I deleted this morning

    How do I find an email that I deleted this morning?

  • Trying to install Adobe Flash - receive blank screen

    I've been trying to install Adobe Flash 17 from Adobe's website.  I have a Windows 7 64bit machine.  I have tried to run the file or save and run the file but after the UAC box, another box pops up that would typically show downloading is just a gray

  • Restrict posting in future date

    Dear All, During VL01N,VF01 system is allowign me to post documents in future date than the current system date. i want to put validation in system that it should not allow future posting date than current system date. pls guide.