Runtime Parameter in Report Builder 6.0

Hi Folks,
I'm trying to build a report in which at runtime the user should have the option of limiting the number of records per page. I know one can do this at design time but I would like to have the option for the user at run time that he or she should be able to limit the number of records per page after running the report and seeing the output in the live previewer.
TIA
Hassan

Create a line with a "page break before" set. Then use a format trigger and a Pl/SQL package variable to determine when this line is printed (if at all). When it is printed, you will get the page break you require. When it overflows onto the next page the trigger will again execute and return false so the line is never actually printed.
eg:
- PL/SQL package
PACKAGE globals IS
numLines number(10) := 0;
END;
- Before Report Trigger:
function BeforeReport return boolean is
begin
globals.numLines := 1;
return (TRUE);
end;
- Line format trigger
function B_1FormatTrigger return boolean is
begin
if (globals.numLines = :p_1) then
     globals.numLines := 0;
     return (true);
else
     globals.numLines := globals.numLines + 1;
end if;
return (false);
end;

Similar Messages

  • How to pass a date parameter from report builder query designer to oracle database

    i'm using report builder 3.0 connected to oracle database. i'm trying to pass a date parameter in the query with no success, i don't
    know the exact syntax. I've tried :
    SELECT * FROM igeneral.GCL_CLAIMS where CREATED_BY IN (:CREATED_BY) AND CLAIM_YEAR IN(:UW_YEAR) AND (LOSS_DATE) >To_Date('01/01/2014','mm/dd/yyyy')
    it worked perfectly.
    However if i try to put a date parameter "From" instead of 01/01/2014 it will not work, a Define Query Parameter popup window appear and error occurred after i fill
    the values (usually i shouldnt get this popup i should enter the value when i run the report)
    SELECT * FROM igeneral.GCL_CLAIMS where CREATED_BY IN (:CREATED_BY) AND CLAIM_YEAR IN(:UW_YEAR) AND (LOSS_DATE) >To_Date(:From,'mm/dd/yyyy')
    appreciate your assistance

    Hi Gorgo,
    According to your description, you have problem when in passing a parameter for running a Oracle Query. Right?
    Based on my knowledge, it use "&" as synax for parameter in Oracle, like we use "@" in SQL Server. In this scenario, maybe you can try '01/01/2014' when inputing in "From". We are not sure if there's any limitation for To_Date()
    function. For your self-testing, you can try the query in sqlplus/sql delveloper. Since your issue is related to Oracle query, we suggest you post this thread onto Oracle forum.
    Best Regards,
    Simon Hou

  • How Can I Change Format Mask For All Fields that type's Number Depend on Parameter in Report Builder 10g ?

    I want Change format mask for all fields that type's number
    Such as
    if  :parameter_value = 1 then
       all fields format mask = ' 999,999,990.000' ;
    else
       all fields format mask = ' 999,999,990.00' ;
    end if;
    Regards

    So, i have bad news for you : you'll have to rebuild again.
    Meanwhile i have excellent news for you : there's an online tool made by Johannes Henseler called Sidecar xml which builds the necessary xml file for you, sort of what you find in the Digital Publishing Folio Editor website, but saves it in your Folio folder.
    Next time you import all your folder (with that file), it will place all the necessary information, and even reorder the articles.
    Build once, play many times.

  • Report Builder Wizard and Parameter Creation with values from other data source e.g. data set or views for non-IT users or Business Analysts

    Hi,
    "Report Builder is a report authoring environment for business users who prefer to work in the Microsoft Office environment.
    You work with one report at a time. You can modify a published report directly from a report server. You can quickly build a report by adding items from the Report Part Gallery provided by report designers from your organization." - As mentioned
    on TechNet. 
    I wonder how a non-technical business analyst can use Report Builder 3 to create ad-hoc reports/analysis with list of parameters based on other data sets.
    Do they need to learn TSQL or how to add and link parameter in Report Builder? then How they can add parameter into a report. Not sure what i am missing from whole idea behind Report builder then?
    I have SQL Server 2012 STD and Report Builder 3.0  and want to train non-technical users to create reports as per their need without asking to IT department.
    Everything seems simple and working except parameters with list of values e.g. Sales year List, Sales Month List, Gender etc. etc.
    So how they can configure parameters based on Other data sets?
    Workaround in my mind is to create a report with most of columns and add most frequent parameters based on other data sets and then non-technical user modify that report according to their needs but that way its still restricting users to
    a set of defined reports?
    I want functionality like "Excel Power view parameters" into report builder which is driven from source data and which is only available Excel 2013 onward which most of people don't have yet.
    So how to use Report Builder. Any other thoughts or workaround or guide me the purpose of Report Builder, please let me know. 
    Many thanks and Kind Regards,
    For quick review of new features, try virtual labs: http://msdn.microsoft.com/en-us/aa570323

    Hi Asam,
    If we want to create a parameter depend on another dataset, we can additional create or add the dataset, embedded or shared, that has a query that contains query variables. Then use the option that “Get values from a
    query” to get available values. For more details, please see:http://msdn.microsoft.com/en-us/library/dd283107.aspx
    http://msdn.microsoft.com/en-us/library/dd220464.aspx
    As to the Report Builder features, we can refer to the following articles:http://technet.microsoft.com/en-us/library/hh213578.aspx
    http://technet.microsoft.com/en-us/library/hh965699.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • 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

  • Managed Metadata in Report Builder

    hi
    Is it possible to use managed metadata as a parameter in report builder 3.0?
    thanks

    Hello,
    The "Web layout " is something new in Reports 9.0.2 , and if you open RDF created with 6i, the web layout is empty .
    Did you try to execute your reports using the icon "Run Paper Layout" ?
    Do you see the output in this case ?
    Regards

  • Reports-Runtime Parameter Form; another question

    hi!
    I would like to implement 2 user parameters in the runtime
    parameter form which depend on each other: with the first one you
    can select a special ressort and depending on the selection you
    made here you can select some keyword groups with the second one;
    but I don't know how the select statement for the second user
    parameter should look like, because it is not allowed to use
    'Bindevariablen' (sorry, don't know what they are called in
    english; this are the ones with the : in front of them):
    here is what I tried to do:
    parameter: P_1
    select rs_id, rs_name from tb_ressort union select 99999, 'alle
    Ressorts' from dual order by 1
    parameter: P_2
    select kwg_id, kwg_group from tb_keyword_group union select
    99999, 'ALL' from dual
    and here I wanted to add a where clause: where rs_id = :P_1
    but this doesn't work
    Any other ideas?
    thx in advance
    null

    Michaela (guest) wrote:
    : hi!
    : I would like to implement 2 user parameters in the runtime
    : parameter form which depend on each other: with the first one
    you
    : can select a special ressort and depending on the selection you
    : made here you can select some keyword groups with the second
    one;
    : but I don't know how the select statement for the second user
    : parameter should look like, because it is not allowed to use
    : 'Bindevariablen' (sorry, don't know what they are called in
    : english; this are the ones with the : in front of them):
    : here is what I tried to do:
    : parameter: P_1
    : select rs_id, rs_name from tb_ressort union select 99999, 'alle
    : Ressorts' from dual order by 1
    : parameter: P_2
    : select kwg_id, kwg_group from tb_keyword_group union select
    : 99999, 'ALL' from dual
    : and here I wanted to add a where clause: where rs_id = :P_1
    : but this doesn't work
    : Any other ideas?
    : thx in advance
    Hi Michaela,
    I think this will generally not work in reports parameter form;
    the parameter values are available first when the report is
    started, and the first point to reference them is in the
    after-parameter-form trigger. I think you get the message
    from the report builder 'REP-0781: Bind variables not allowed in
    the Select statement'.
    The only idea I have is to write a parameter form with Forms,
    with two LOV's attached to two items wich CAN reference each
    other. Then use add_parameter and run_product to start your
    report. This seems to be more complicated then using only
    Reports, but it isn't and it works.
    peter
    null

  • Runtime parameter, report not running

    hii
    i am using form 6i and on a button press, i am caling the following procedure that runs a report ...
    procdure....
    begin
       INCEXP_PARAMETER(M_PARAM_ID);
       RUN_PRODUCT(REPORTS,M_REP_ID,SYNCHRONOUS,RUNTIME,FILESYSTEM,M_PARAM_ID,NULL);
    end;
    PROCEDURE INCEXP_PARAMETER  (Param_id  IN OUT Paramlist) IS
        M_DESFORMAT VARCHAR2(20);
        M_DESNAME VARCHAR2(500);
        M_DESTYPE VARCHAR2(20);
    BEGIN         
    IF  :R_OPTION = 'S' THEN  -- on SCREEN
        M_DESFORMAT := 'dflt';
        M_DESNAME := '';
        M_DESTYPE := 'SCREEN';
    ELSIF  :R_OPTION = 'P' THEN
        M_DESFORMAT := 'dflt';
        M_DESNAME := '';
        M_DESTYPE := 'PRINTER';
    ELSIF  :R_OPTION = 'W' THEN
        M_DESFORMAT := 'RTF';
        M_DESNAME := :R_FILENAME;
        M_DESTYPE := 'FILE';
    ELSIF  :R_OPTION = 'D' THEN
        M_DESFORMAT := 'PDF';
        M_DESNAME := :R_FILENAME;
        M_DESTYPE := 'FILE';
    ELSIF  :R_OPTION = 'X' THEN
        M_DESFORMAT := 'delimiteddata';
        M_DESNAME := :R_FILENAME;
        M_DESTYPE := 'FILE';
    END IF;
    ADD_PARAMETER(PARAM_ID,'PARAMFORM',TEXT_PARAMETER,'NO');                 
    ADD_PARAMETER(PARAM_ID,'M_YYYYMM',TEXT_PARAMETER,:M_PERIOD);
    ADD_PARAMETER(PARAM_ID, 'DESTYPE',   TEXT_PARAMETER, M_DESTYPE);
    ADD_PARAMETER(PARAM_ID, 'DESFORMAT', TEXT_PARAMETER, M_DESFORMAT);
    ADD_PARAMETER(PARAM_ID, 'DESNAME',          TEXT_PARAMETER, :R_FILENAME);
    Add_Parameter(PARAM_ID,'ORIENTATION',TEXT_PARAMETER,:R_ORIENTATION);
    Add_Parameter(PARAM_ID,'MODE',TEXT_PARAMETER,:R_MODE);
    ADD_PARAMETER(PARAM_ID, 'MAXIMIZE', TEXT_PARAMETER, 'YES');
    END;
    giving the above code, my report is not getting run...
    at report builder it runs fine..

    hii ..
    M_PARAM_ID is getting its value from the procedure *'PROCEDURE INCEXP_PARAMETER (Param_id IN OUT Paramlist) IS'*
    from my report block on my form...i have button press trigger, that calls first;
    INCEXP_REPORT;
    PROCEDURE INCEXP_REPORT IS
    M_PARAM_ID   PARAMLIST ;
    M_REP_ID     VARCHAR2(30) ;
    BEGIN
       SET_APPLICATION_PROPERTY(CURSOR_STYLE, 'BUSY');
       SYNCHRONIZE;
       M_REP_ID := :GLOBAL.M_REP_ID;
       M_PARAM_ID := GET_PARAMETER_LIST('REP_PARAM');
       IF ID_NULL(M_PARAM_ID) THEN
          M_PARAM_ID := CREATE_PARAMETER_LIST('REP_PARAM');
          IF ID_NULL(M_PARAM_ID) THEN
             MESSAGE('Error While creating Parameter List') ;
             RAISE FORM_TRIGGER_FAILURE;
          END IF;
       ELSE
          DESTROY_PARAMETER_LIST(M_PARAM_ID);
          M_PARAM_ID := CREATE_PARAMETER_LIST('REP_PARAM');
          IF ID_NULL(M_PARAM_ID) THEN
             MESSAGE('Error while creating Parameter List') ;
             RAISE FORM_TRIGGER_FAILURE;
          END IF;
       END IF;
       INCEXP_PARAMETER(M_PARAM_ID);
       RUN_PRODUCT(REPORTS,M_REP_ID,SYNCHRONOUS,RUNTIME,FILESYSTEM,M_PARAM_ID,NULL);
       SET_APPLICATION_PROPERTY(CURSOR_STYLE, 'DEFAULT');
       DESTROY_PARAMETER_LIST(M_PARAM_ID) ;
       CLEAR_MESSAGE;
    END;
    PROCEDURE INCEXP_PARAMETER  (Param_id  IN OUT Paramlist) IS
        M_DESFORMAT VARCHAR2(20);
        M_DESNAME VARCHAR2(500);
        M_DESTYPE VARCHAR2(20);
    BEGIN         
    IF  :R_OPTION = 'S' THEN  -- on SCREEN
        M_DESFORMAT := 'dflt';
        M_DESNAME := '';
        M_DESTYPE := 'SCREEN';
    ELSIF  :R_OPTION = 'P' THEN  -- directly to printer
        M_DESFORMAT := 'dflt';
        M_DESNAME := '';
        M_DESTYPE := 'PRINTER';
    ELSIF  :R_OPTION = 'W' THEN  -- Word File
        M_DESFORMAT := 'RTF';
        M_DESNAME := :R_FILENAME;
        M_DESTYPE := 'FILE';
    ELSIF  :R_OPTION = 'D' THEN  -- PDF File
        M_DESFORMAT := 'PDF';
        M_DESNAME := :R_FILENAME;
        M_DESTYPE := 'FILE';
    ELSIF  :R_OPTION = 'X' THEN   -- Excel File
        M_DESFORMAT := 'delimiteddata';
        M_DESNAME := :R_FILENAME;
        M_DESTYPE := 'FILE';
    END IF;
    ADD_PARAMETER(PARAM_ID,'PARAMFORM',TEXT_PARAMETER,'NO');                 
    ADD_PARAMETER(PARAM_ID,'M_YYYYMM',TEXT_PARAMETER,:M_PERIOD);
    ADD_PARAMETER(PARAM_ID, 'DESTYPE',   TEXT_PARAMETER, M_DESTYPE);
    ADD_PARAMETER(PARAM_ID, 'DESFORMAT', TEXT_PARAMETER, M_DESFORMAT);
    ADD_PARAMETER(PARAM_ID, 'DESNAME',          TEXT_PARAMETER, :R_FILENAME);
    Add_Parameter(PARAM_ID,'ORIENTATION',TEXT_PARAMETER,:R_ORIENTATION);
    Add_Parameter(PARAM_ID,'MODE',TEXT_PARAMETER,:R_MODE);
    ADD_PARAMETER(PARAM_ID, 'MAXIMIZE', TEXT_PARAMETER, 'YES');
    END;i think setting Parameter part is ok...all i want to know the selection of report output to
    "Sceen, Printer, Word, PDF & Excel..which i have defined inside IF....Endif...section,
    is correct or not...?
    TY..

  • Report Builder 2.0 loses parameter Null default value when deployed

    When a parameter is set to a default value of (Null) and the report is saved to the sever, the default is lost when the report is re-opened in RB2.  This problem doesn't seem to occur in BIDS.  I've tried to use an expression to set the value to System.DBNull but this can no longer be done.
    Any ideas for a work-around?
    Is there a bug report open for this?  I couldn't find an open bug on the Connections site and there's an issue on that site right now when submitting feedback.Paul Turley [Hitachi Consulting]
    SQLServerBIBlog.com

    Hi All,
    I just had an almost identical issue using report builder 3.0 so I don't believe it is fixed. I had 4 parameters set to default to (Null) and I added a new one with identical settings but it would continually come up blank and not check the null box automatically
    when going into my sub report.
    To make matters worse I experimented changing one of the old parameters and it then started exhibiting the same behaviour. Using Luke's post above solved the issue (though it was Manage in my version not Administrate).
    Using System.DBNull.Value resulted in it being treated as a literal string "System.DBNull.Value" and putting that in the filter for me.
    Hope it helps.

  • Report Builder 6i returns ORA-01483 in after parameter form trigger ?

    Can anybody help me ?
    I've been working on a report with report builder 6.0.8.11.3,
    and whenever i run the report the after parameter form trigger
    returns REP-1401 and following ORA-01483.
    I've been trying to change the values of some user parameters
    from within the trigger code, none of them is a date or a number
    parameter, these are character variables who would be referenced
    lexically to change a table name dynamically when the trigger
    fires. Aditionally I'm using a cursor to obtain data and then
    modify the parameters.
    How can i get this thing to work ?
    Thanks in advance for your reply...

    hello,
    this might be related to the usage of number(1) as type/length
    of your parameter. this is a known problem. it should be solved
    by using e.g. number(2) as the type/length of your parameter.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Hanging Report Builder and Runtime-6i

    Hi
    The Reports 6i Builder and Runtime screens are taking 15-20 minutes to open in Win NT Environment.Earlier they used to work just fine.In this 'vaccum' time the task list shows Program not responding but eventually after 10-15 minutes ,the window opens fully.Please note that connectivity is ok and this time i am not running any report ..just starting the Report Builder or Report Runtime 6i. Same problem is occuring with Reports Queue Manager as well ,running as a service on this pc.
    Any sort of advice welcomed.
    Thanks.

    This seems to be a problem of Windows NT environment in which the reports are running and not problem with Oracle Reports as such. I suspect some DLL has got corrupted and you have to rebuild the pc again..try re-installing Windows again .
    Cheers

  • How to change sql server reports parameter direction in report builder 3.0

    Hi All,
    I have created few reports using Report Builder 3.0 with the data source as SharePoint list. i have created a web part page and added the ".rdl"
    file, everything is working as expected. Later, i got a requirement to add a parameter to the report , i did that and when i ran the report in SharePoint page, the parameters shows right side and the parameter ribbon shows the dropdown control on top and "Apply
    button" at the bottom. When i presented this to my manager, he says the parameter ribbon looks bad and suggested to put both the controls together and also instead of displaying at right side vertical, display it horizontal.
    I have below queries
    How can i change the direction of parameter ribbon from vertical to horizontal
    How can i bring the controls together (e.g. dropdown list control and button)
    How can i add buttons on the report in report builder 3.0
    How to get/reflect the data in report without refreshing the page.
    Can someone please guide me, how to achieve the above functionalities..
    MercuryMan

    Unfortunately, where the parameters are located and the button distance away from the parameters are not something you can customize. Here are the options available for customization:
    http://msdn.microsoft.com/en-us/library/bb326214.aspx
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to use LIKE function with a parameter in Oracle REPORT builder??

    how could i use parameter inside a LIKE function in Oracle reports builder?
    it works in SQL plus, but not in report builder!!
    Example:
    select code,desc from item_master where desc
    like '%&give_desc%'; ---works in SQL
    like '%:give_desc%' ---doesn't work in report builder!!

    Hi Renil,
    You will need to use the wildcard character (%) and the concatenation character (||) to join to your user parameter.
    i.e. like '%'||:give_desc||'%'
    Regards,
    John

  • Report Builder Error: [BC30455] Argument not specified for parameter 'DateValue' of 'Public Function Day(DateValue As Date) As Integer'.

    Hi there!
    I'm trying to calculate the difference between two days using DATEDIFF (). I use following code for this:
    =DATEDIFF(DAY, CDate(Fields!Eingang_Kundenanfrage.Value),CDate(Fields!Ausgang_Angebot.Value))
    Every time I try to save the report, I get this error message:
    [BC30455] Argument not specified for parameter 'DateValue' of 'Public Function Day(DateValue As Date) As Integer'.
    The DataSource is a SharePoint List and the Date is given in the following format: 23.05.2014 00:00:00 (DD.MM.YYYY HH:MM:SS).
    I've googled for a working solution for a long time now, but I had no success.
    Is there someone who can help me?

    Hi Lucas,
    According to your description, you want to return the difference between two date. It seems that you want to get the days. Right?
    In Reporting Services, when we use DATEDIFF() function, we need to specify the data interval type, for days we can use "dd" or DateInterval.Day. So the expression should be like:
    =DATEDIFF(DateInterval.Day, CDate(Fields!Eingang_Kundenanfrage.Value),CDate(Fields!Ausgang_Angebot.Value))
    OR
    =DATEDIFF("dd", CDate(Fields!Eingang_Kundenanfrage.Value),CDate(Fields!Ausgang_Angebot.Value))
    Reference:
    Expression Examples (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Desname parameter works fine in Report builder but fails in Forms builder

    Hi,
    I need some help with my current task. Here is my problem.
    I am working on Oracle 10g. My reports and Forms builder version is 10.1.2.3.0.
    My objective is to use Forms builder to call a report which will direct the output directly to the printer without preview.
    First , in report builder , I use the Parameter Form builder and set Report parameter DESTYPE = PRINTER and the DESNAME automatically changes to PCL6 ( which is the network printer name I am using).
    When I run the report , the output is directed to the printer and it works just fine.
    But in Forms builder , when I call the same report, set the DESTYPE as Printer and DESNAME as 'PCL6' , it gives an error Invalid printer name 'PCL6' specified by parameter DESNAME.
    I tried searching in this forum, it says the error is due to an invalid printer name specified in the DESNAME. But if my printer name is invalid, I wonder how the same printer name works well in Report builder?
    My coding in Forms as below :
    SET_REPORT_OBJECT_PROPERTY( repid, REPORT_DESTYPE,PRINTER);
    SET_REPORT_OBJECT_PROPERTY( repid, REPORT_DESNAME,'PCL6');
    Appreciate if anyone can help. Thanks
    Regards
    Shiva

    Hi Puppethead,
    I have tried with your suggestions.
    the following condition -- did not work
    ( (mgr_name = :manager name)
    OR (mgr_name LIKE DECODE(:manager name, 'ALL', '%', NULL)))
    but for the other condition ---
    ( (mgr_name = :manager name)
    OR (mgr_name LIKE DECODE(nvl(:manager name, 'ALL'), 'ALL', '%', NULL)))
    is wrong because, :manager name cud be null, when it is null, it takes 'ALL' i.e. '%' which shud not be the case.
    if the user enters null, it has to display records with null only but with the above condition it takes '%'
    The main issue which i dont understand is, the report works fine for the first time. for the second time, the report takes null values . why is it taking null values for the second time.
    Thanks

Maybe you are looking for

  • Printing Only visible text

    Hi, I am trying to print an editable PDF from Adobe reader. The issue is that only the text visible in the edit boxes are printing. I have several paragraphs of written text in the editable boxes, but when it only prints the few sentences that are vi

  • Downloading a Podcast

    When downloading a podcast i am getting mutlipe versions of the same podcast, how can i stop it.

  • Error during EPMA planning app deployment

    Hello Experts, I am trying to deploy an EPMA Planning application through Workspace. EPM version is 11.1.2.3 Below is the error that is getting thrown while deployment (with selecting options - "Refresh Outline", "Create Security Filters" & "Full Dep

  • Submit button not working on ipad

    We have an interactive form and a submit button where it posts the copy of the PDf file to the server(URL). It works fine on Desktop; however when I open the file on iPad, and click on the buttons, they do not trigger any event(it does not work). Is

  • Problem With Compound Primary Key

    Hello Experts,   i am facing some probelm with copound primarykey.   the Probelm is i have data base table which has compound primary key  for that one i have created the entity bean(CMP) and primary key of type compound.using this i am able to inser