How to make a parameter base report?

I am making a report on employees and departments but i want to choose employees for some required departments for that i need to use parameter, and i need help that how will i make a parameter in reports builder 10g.
I am able to do it by writing a where clause in query but now i want to do it from user parameters. Seek help here.
Maz

Here is a list of things to do. Let me know if anything is not clear.
1) In your main query create a lexical parameter at the very end of you where clause ( dont put and &p_where just &p_where)
&p_where
2)Create a user parameter with datatype character and width 200
ex: P_departments
3) Create a field on the Paper Parameter Form
4) Click on that field and go to the List of Values (if you want a lov...) and insert the following
Ex:
select 'All',' All Departments' from dual
union
select to_char(department),to_char(department)||' - '||department_name
from departments
order by 1
5) Go to Report Triggers > After Parameters and insert the following
Ex:
begin
:p_where := null;
if :p_departments not like '%All%' then
:p_where := :p_where ||' and table.department = '||:p_departments;
end if;
return (true);
end;
This will allow you to select a department or leave it at the default of all departments. It will also allow you to remove the hardcoded statement in your where clause such as
where department = 'HR'
Edited by: DOUBLE U on Aug 3, 2011 3:32 PM

Similar Messages

  • How to pass page parameter to report portlet ?

    Portal: 9.0.4
    RDBMS: 9.0.1.5.0
    OS: Windows
    REF: How to pass page parameter to report portlet ?
    Hi,
    I create a Oracle Report as a Portlet in Portal (create Report Definition File Access and check on the option "Publish As Portlet" in the on the last step). My report has an "Additional User Parameter" and I has let it "Visible to user".
    When I put this portlet in my Portal page, I can see this parameter in the property/parameters of this page. However I cannot transfer my page parameter to this portlet parameter. Other portlets in this page (non-Oracle-Report portlets) are working fine with my page parameter.
    Please advice.

    I want to make sure we are talking about the same thing:
    After you add the portlet to the page, you go to the page properties, then the parameters tab, then there is a section at the bottom called "Portlet Parameter Values" where you can click and expand your portlet to see your portlet parameters.
    Is it here where your parameters just don't show up?
    If it is, try the following:
    - Add the portlet to another page and see if it still behaves the same.
    - Mark the parameters in the portlet as being non-public, re-generate portlet (on manage tab), then mark them as being public, re-generate and then try the above again (add to another page).

  • How can I pass parameter from report to form?

    Hi :)
    Now I try to build conference room like this by using form
    and report. And i design that when users click at group report
    then i'll show page that contain questions report and add
    question form. And question form and report must receive the
    same parameter from group report.
    First Problem: is I don't know how group report send the
    same parameter to question report and add question report at the
    same time. And is it possible??? If not please suggest me what
    should I do???
    Second Problem: is I don't know how can I pass parameter from
    report to form. I don't know the way to do it.
    Please tell me!!! Please...
    I look forward to hearing from all of you.
    Thank You.

    One way is to create a link based on that form and attach that
    link with the report. Through links you can pass parameters

  • How to make a data base connexion in java?

    I have an oracle 7 data base that i want to connect how to make a data base connexion in java?

    J
    D
    B
    C
    Search these forums or follow the JDBC tutorial

  • How to lock a customer master and how to make a parameter checkbox as defau

    how to lock a customer master and how to make a parameter checkbox as default checked?

    The Account Groups is the one which maintains the field status for the customer master. In case you want to change the field status (i.e. changage the mandatory field to optional field) you need to maintain the same (i.e. changage the mandatory field to optional field) by navigating to the field status screen and then to the general data tab. Here you can change the status of the your field by selecting the 'OPTIONAL' radio button for the respective field and then save the transaction.
    Reward Points if useful.

  • How to make selection parameter gray out, not changeble mode

    Hi Experts,
      Selection screen having parameters, I am putting default values in that parametrs.
    How to make this parameter gray out, not changeable mode.
    Thanks in advance
    mahahe.
    See comments below
    Edited by: Rob Burbank on Jul 1, 2009 12:43 PM

    Hi,
    For the parameters required, while declaring them use the MODIF ID, lets say you have choosen the modif id as SC1.
    i.e. parametes: p_mat type matnr DEFAULT '100' MODIF ID SC1.
    Then in the initialization event, code as below.
        LOOP AT SCREEN.
          IF screen-group1 = 'SC1'.
            screen-input = '0'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
    It will work.
    Regards,
    Nangunoori.

  • How to make a parameter grey

    How to make a parameter(text box) uneditable by enduser.

    Hhi,
    SELECTION-SCREEN COMMENT [/]pos(len) comm [FOR FIELD f]
                                              [MODIF ID key].
    This statement writes the comm comment on the selection screen. For comm, you can specify a text symbol or a field name with a maximum length of eight characters. This character field must not be declared with the DATA statement, but is generated automatically with length len. The field must be filled before the selection screen is called. You must always specify the pos(len) addition. Only if there are several elements in one line can you omit pos.
    The text comm  will be displayed, starting in column pos, for a length of len. If you do not use a slash (/), the comment is written into the current line; otherwise a new line is created.
    You use FOR FIELD f to assign a field label to the comment. f can be the name of a parameter or a selection criterion. As a result, if the user requests help on the comment on the selection screen, the help text for the assigned field f is displayed.
    Regards
    Sudheer

  • How to use lexical parameter in report

    i want to use lexical parameter in report and pass parameter from form how it is possible in detail
    A.R

    Hi,
    typically you fill your lexical paramter in the after-paramform-trigger out of the values of your bind-parameters (giving end users directly control over lexical parameters might not be a good idea). Inside PL/SQL a lexical parameter is referenced like bind parameters with ":". In the query it's referenced via "&" and represents a part of the query.
    A simple example.
    - p_deptno as bind parameter
    - p_where as lexical paramter
    - end user choose value for p_deptno (10,20,... or nothing)
    - Trigger: if :p_deptno is not null then
    :p_where := 'WHERE deptno = :p_deptno'
    else
    :p_where := null;
    end if;
    - Query select ... from emp &p_where
    Regards
    Rainer

  • How to make & edit multiple query report

    hi,
    how to make multiple query report & i have an existing multiple query report when i edit it all the structure gets disturbed whenever i want to add or delete any column from an query.
    how to do this ?
    txs

    Perhaps you have "Flex Mode" selected in the Layout Editor? It's the button next to the padlock button.
    Message was edited by:
    Dave Hemming
    Also PS: Vaguest. Question. Ever.

  • How to make the generated xl reporter un editable

    Dear Experts
    One of my client is asking , they want to generate the report in xl reporter (all kinds of report) but the end user must not edit that report. He just need only read only facility.
    So how to generate a read only report in xl reporter
    I need some help regarding this
    Thanks
    Regards
    Kasi

    Dear Experts.
    If i am giving a password for the Xl reporter, I am unable to generate the xl reporter, its showing error.
    and instead of the password security, if i protect the sheet, its working, but the problem is, end user can unprotect the sheet and able to edit the report.
    My scenario is. I want the end user to generate the report, but he should not be in a position to edit the generated report.
    Expect the help for solving this issue

  • Help: How to put input parameter into report?

    I am working on a report. The user is require to enter the search date and the report is created base on the search date. This search date parameter is required to show on the paper report. How do I make it?
    Thank you.
    Jimmy

    Jimmy,
    You need to add &1 to the where clause of your Query (SQL statement). Then run the report you will be prompted to add your criteria. Add it to your where clause like this:
    Select .... from table
    where ...
    and &1
    Amir Orojeni,
    Oracle DBA

  • How to make changes on Aging report of XLR

    Dear All,
    Our customer has a Aging XLR in SAP2005. However, after we upgrade them to SAP2007, the report cannot work properly. It looks like we have to make some changes on the report. Could anybody can let me know how to add a filter
    JDT1.BalDueDeb > 0
    I click line9 (the report data line), in the advanced report builder window (Row tab) >> Selections >> transaction row >> Dimension lookup >> List Tab >> Selection >> Attribute >> , I have some columns name but I cannot see JDT1.BalDueDeb
    Then I go the advanced report builder window (Report Default tab) >> Selections >> transaction row >> Dimension lookup >> List Tab >> Selection >> Attribute >> , I have some columns name but I cannot see JDT1.BalDueDeb
    Thanks a lot.
    Regards,
    Yuka
    Edited by: Jie Jin on Mar 5, 2010 7:01 PM

    in my Complete Selection window I have the following:
    FACT TTY( * ) FIG( RefDate <= CurrentDate And JDT1_BalDueDeb + JDT1_BalDueCred <> 0 )  Group By TTY.Code ,FIG.Ref1 ,FIG.OJDT_Ref2 ,FIG.LineMemo ,FIG.RefDate
    in the XLS cells I have the following:
    =ixGet("JDT1_BalDueDeb")
    and
    =ixGet("JDT1_BalDueCred")
    If you need additional clarification let me know.
    regards, Sotos Soteriou

  • How to make use of single report using pivot table

    Hi All,
    I have a report , having 4 columns like product,country,unitcost,date.
    so, by using all the columns i have develop the 4 pivot chats..
    1.product ,unitcost
    2.date product unitcost
    3.country product unitcost
    4.date country product unitcost.
    how to do it .. do u have any idea to do work around.
    if u run the single report it has to show 4 charts like i said above. using pivot chart can we make it out ?
    but i tried .. i did not get any idea.. please help me...
    Thanks
    sree

    874823 wrote:
    Hi All,
    I have a report , having 4 columns like product,country,unitcost,date.
    so, by using all the columns i have develop the 4 pivot chats..
    1.product ,unitcost
    2.date product unitcost
    3.country product unitcost
    4.date country product unitcost.
    how to do it .. do u have any idea to do work around.
    if u run the single report it has to show 4 charts like i said above. using pivot chart can we make it out ?
    but i tried .. i did not get any idea.. please help me...
    Thanks
    sreeI'm confused. In the beginning of your post you said you, "I have develop[ed] the 4 pivot charts." Then you asked, "[H]ow to do it...I tried... I did not get any idea..."
    Which is it? Did you create the 4 pivot table charts but don't know how to display them? Or do you not know how to create pivot table charts?

  • How TO Make HTML 5 Dashboard Report

    Hi All,
         I have seen your posts regarding dashboard reports.I ave small query that I am using dashboard 4.0 SP5.
         I was developed sample report on dashboard,and then deployed into mobile platform(android Samsung note 2) working fine.Now I am confused      thatwhether  the report is in flash format or html 5 format how can we know?
         But I want that report in html 5 format.so what I have to do to make that report into html 5 dashboard report,how can show(prove) to others that is in      html 5 format.Now I am confused thatwhether  the report is in flash format or html 5 format how can we know?
         Can you please help me.I am working on this since from last 2weeks i didn't found any solutions...
    Regards,
    Hityshi G.

    Hi Hitushi,
    Steps from 1 & 2 are same, Install Business Objects mobile app from Play store and you can open it.
    For prerequisite i think you can work with above mentioned version.
    Dashboard are only supported on "Android tablets with 7 inch screen size and higher having Android operating system 4.0 version and higher."
    But for executing the dashboard in android please do check the below links.
    SAP Dashboards on Android Mobile Phones
    Mobile Dashboard in BI4.1
    Dashboards not available via Android Mobile
    How to run SAP BO Dashboards on Ipad or Android
    How to Connect to SAP BI Platform from IPAD/IPhone
    How to Connect to SAP BI Platform from IPAD/IPhone
    How to Configure and Access Dashboards from IPad
    How to Configure and Access Dashboards from IPad

  • How to make required parameter dynamically?

    Hello,
    I have 3 parameters for a report:
    1st parameter (mandatory): Run Report has 2 values: By Department, By Country
    2nd parameter: Department
    3rd parameter: Country
    If user selects By Department, then I want Deparment becomes mandatory with asterisk next to it.
    If user selects By Country, then I want Country becomes mandatory with asterisk next to it.
    How can this be achieved?
    thanks
    Lei

    Why not have only one parameter as a dropdown list box with the choice of running by department or by country. The user will only be able to pick one or the other.
    Assuming you call the parameter pSORTBY you can then have your SQL look like this.
    ORDER BY :pSORTBY

Maybe you are looking for