Generate report dynamically based on parameters

I have a Report with 30-35 items and these items are divided into sets of
RMA, WIP,Inventory, finance ....
now i need to display the report dynamically based on parameters
say, for example if RMA, WIP, Inventory, finance are YES,NO,YES, NO
then the report should display only RMA , Inventory....
any ideas/suggestions would appreciated......
Thanks,
-VK

Thanks for the Reply Sabine, let me put my question this way,
i have to display the report based on the selection criteria(parameters)
i have a generalized view which will display all the items....but the client needs them in a fashion where he chooses them as a groups since, the list is so big and he wouldn't be needing them all at once.
here is what i'm thinking for the moment since, discoverer cannot hide the columns based on runtime parameters ....correct me if i'm wrong (as per my knowledge...it cannot ) i have decided going with 16 worksheets 4 groups of items say,(RMA, WIP, INV, FINANCE..)
and now based on the flags what the end user chosses i may have to display the appropriate worksheet ....is this solution possible...if so do i have to subqueries...??..or is there any better ideas/suggestion....
Regards,
VK

Similar Messages

  • How to generate controls dynamically based on value stored in database using mvc4?

    In my database, i have a field called control_ids corresponding to  text box, dropdownlist, radiobuttonlist etc. My goal is to
    create controls dynamically based on value of control_id-field in table. Anybody please help me how to create the controls dynamically in MVC 4 for this scenario.

    In your view you could do something like that:
    foreach (var field in Model.FormStruture.fields)
    <div class="editor-label">
    <label for="@field.Name">@field.Descricao</label>
    </div>
    <div class="editor-field">
    <input class="text-box single-line" id="@field.Name" name="@field.Name" type="text" value="@field.Valor" data-rules-required="@field.Mandatory.ToString().ToLower()" data-rule-number="@field.Tipo.Equals(SiB.OCR.Documentos.Modelo.TipofieldDocumento.Numerico).ToString().ToLower()" title="@field.Descricao" />
    </div>
    if (!String.IsNullOrEmpty(field.Format))
    @:<script type="text/javascript">$("[email protected]").mask("@field.Format");</script>

  • BI Pub report bursting based on parameters set in interactive dashboard

    Hi,
    Could someone help me in creating and bursting reports as per the following requirement:
    1. there is interactive dashboard with html multi select parameter that has display values department, location, employee job code. user can select one or more column name from this multi select parameter field.
    2. need to create a preview button in dashboard, clicking on which display a report on dashboard page showing how many files are generated after bursting and employee count
    3. need to create a generate/burst report button to automatically burst a bi publisher report based on the column names that user has provide in step 1 above.
    4. how can we capture the parameter values from dashboard and pass to bi publisher report?
    5. how can we automatically burst this report based on column names say both 'department-location'?
    6. in bursting of report we can split only by one column name but here we need to do based on two or more column names set by the end user in the parameter
    -Priyanka

    Thanks for a quick response but I am still not clear on
    1. how to do this using custom java code
    and
    2. actually user would login to interactive dashboard and there he will give these parameters using which we need to automatically burst a BI publisher report. Can this be done some how?
    -Priyanka

  • How to get Logo in report dynamically Based on user login?

    requirement is like this:
    same report format will be used by 3 different users, but the different logo should appear based on their login..

    place all 3 images in the template, then wrap an if statement around each. something like:
    <?if:userLogin='User 1'?>image goes here<?end if?>
    if that doesn't work try sticking each in a table with no border and doing the same with the if statements

  • Dynamically generating reports

    Hi,
    I have one doubt in generating reports dynamically.I have a dropdown box having two values
    say"value1","value2".When i select value1 i need to display a report and when value2 is selected i need to display
    another report in the same region. In the first report i have to display a column as a link and when clicking that link i
    need to popup another page.In the second report i do not need any link columns.How can i achieve this.
    Thanks,
    tj

    Hi,
    Actually these reports are not tabular form reports.These reports are formed from 3 tables using join operation.
    When clicking value1 in the select list:
    I need to display report having details of devices of type1 and type2 (Details means the user,location
    etc) . In that details devicename must be a link.The location must be a selectlist.It is possible to add an LOV to this
    selectlist.
    When clicking value2 in the select list:
    I need to display report having details of devices of type2 (Details means the user,location etc) . Here
    devicename is not a link.The location must be a selectlist.It is possible to add an LOV to this selectlist. Plz help,
    Thanks,
    tj

  • Creating Crystal Reports Dynamically from an incoming SQL query

    Hi,
    I have a requirement where a sql query will be entered by the user in a text box and in the back end java code, i have to create a crystal report dynamically based on that sql query and show it in the crystalviewer object.
    For example if the user writes "select x,y from xtable ", i should be able to create a report with 2 fields, and if the user says "select x,y,z from xtable" then i should be able create and show a report with 3 fileds...thsi report creation should be done in the click event.
    Is this possible in java? I have found something similar in .NET... pls have a look at this 
    http://vb.net-informations.com/crystal-report/dynamic_crystal_report_from_sql_query_string.htm
    Thanks,
    Preethi

    Hi Preethi,
    Can you please share the steps with me? I am also looking for dynamic SQL being applied to the crystal report.
    Thank you so much for your help in advance.
    Regards,
    Janakiram D.

  • Dynamic report based on Parameters and a Button

    Trying to make a dynmic report based on Parameters entered.Wanted to refresh report when i click on a button say "OK" based on parameters entered.
    (1) created 2 text boxes -- Parameters --One date and other employee No
    (2) on the same page i created a report-region which id dynamic "PL/SQL Function Returning SQL Query "
    In this query i am using the parameters created in step1
    (3) Then i created a Button say "OK" .
    (4) When i enter parameters and then press OK i need to refresh my report in region defined in step2
    This refresh is not happening .
    Not sure what is missing
    I tried using branching it didn't work
    In the dynamic region it shows "No data found"
    Please help

    sachin
    1) make sure there is no Optional Redirect defined on the OK button. That is, make sure the page is really submitted.
    2) in the PL/SQL body generating the query, print out the query using htp.p() so you get to see it and test it.
    3) use the session state link in the developer toolbar in conjunction with the technique in step 2) to debug your query
    Maybe the report region is refreshing, but it just isn't returning any results.
    Sergio

  • Generating report based on dynamically generated sql query

    I have to rewrite asp reports to oracle reports.
    The original application has forms in asp where reports are generated dynamically based on the options selected.
    There are many options to select.
    Some add filter criteria to where clause.
    I have no problem with this. As i can generate report using parameter form.
    whereas i don't know how to generate reports whose columns change based on the user selection.
    The front end screens are going to be in java and jsp pages. The only way i can think of is generating reports on all possible options the user may select. But, as there are more than 15 options, i think this is not the right approach.
    How can i achieve this.
    Thank you very much.
    navya.

    One method that comes to mind would be to use an after parameter form, and use lexical parameters to create dynamic statements.
    For example in your after pform:
    If :P_NAME = 'JOHN' then
    :P_SELECT = 'SELECT COL1, COL2 ';
    :P_FROM = 'FROM JOHN ';
    :P_WHERE = 'WHERE COL3 = 'JOHN';
    END IF;
    Then in your query, you could say:
    &P_SELECT
    &P_FROM
    &P_WHERE
    Something like that - If only parts of you where statement will change, you can just write that one part -
    like
    IF :P_STATE is not null then
    :P_STATE = ' and table.state = :P_STATE_IN ';
    else :P_STATE = ' and 1=1 ';
    end if;
    and in your query...
    where....
    &:P_STATE
    So IF a person enters a state, then limit the search to that state, or else do a 1=1.
    Hope this gives you a start

  • How to generate report with dynamic variable number of columns?

    How to generate report with dynamic variable number of columns?
    I need to generate a report with varying column names (state names) as follows:
    SELECT AK, AL, AR,... FROM States ;
    I get these column names from the result of another query.
    In order to clarify my question, Please consider following table:
    CREATE TABLE TIME_PERIODS (
    PERIOD     VARCHAR2 (50) PRIMARY KEY
    CREATE TABLE STATE_INCOME (
         NAME     VARCHAR2 (2),
         PERIOD     VARCHAR2 (50)     REFERENCES TIME_PERIODS (PERIOD) ,
         INCOME     NUMBER (12, 2)
    I like to generate a report as follows:
    AK CA DE FL ...
    PERIOD1 1222.23 2423.20 232.33 345.21
    PERIOD2
    PERIOD3
    Total 433242.23 56744.34 8872.21 2324.23 ...
    The TIME_PERIODS.Period and State.Name could change dynamically.
    So I can't specify the state name in Select query like
    SELECT AK, AL, AR,... FROM
    What is the best way to generate this report?

    SQL> -- test tables and test data:
    SQL> CREATE TABLE states
      2    (state VARCHAR2 (2))
      3  /
    Table created.
    SQL> INSERT INTO states
      2  VALUES ('AK')
      3  /
    1 row created.
    SQL> INSERT INTO states
      2  VALUES ('AL')
      3  /
    1 row created.
    SQL> INSERT INTO states
      2  VALUES ('AR')
      3  /
    1 row created.
    SQL> INSERT INTO states
      2  VALUES ('CA')
      3  /
    1 row created.
    SQL> INSERT INTO states
      2  VALUES ('DE')
      3  /
    1 row created.
    SQL> INSERT INTO states
      2  VALUES ('FL')
      3  /
    1 row created.
    SQL> CREATE TABLE TIME_PERIODS
      2    (PERIOD VARCHAR2 (50) PRIMARY KEY)
      3  /
    Table created.
    SQL> INSERT INTO time_periods
      2  VALUES ('PERIOD1')
      3  /
    1 row created.
    SQL> INSERT INTO time_periods
      2  VALUES ('PERIOD2')
      3  /
    1 row created.
    SQL> INSERT INTO time_periods
      2  VALUES ('PERIOD3')
      3  /
    1 row created.
    SQL> INSERT INTO time_periods
      2  VALUES ('PERIOD4')
      3  /
    1 row created.
    SQL> CREATE TABLE STATE_INCOME
      2    (NAME   VARCHAR2 (2),
      3       PERIOD VARCHAR2 (50) REFERENCES TIME_PERIODS (PERIOD),
      4       INCOME NUMBER (12, 2))
      5  /
    Table created.
    SQL> INSERT INTO state_income
      2  VALUES ('AK', 'PERIOD1', 1222.23)
      3  /
    1 row created.
    SQL> INSERT INTO state_income
      2  VALUES ('CA', 'PERIOD1', 2423.20)
      3  /
    1 row created.
    SQL> INSERT INTO state_income
      2  VALUES ('DE', 'PERIOD1', 232.33)
      3  /
    1 row created.
    SQL> INSERT INTO state_income
      2  VALUES ('FL', 'PERIOD1', 345.21)
      3  /
    1 row created.
    SQL> -- the basic query:
    SQL> SELECT   SUBSTR (time_periods.period, 1, 10) period,
      2             SUM (DECODE (name, 'AK', income)) "AK",
      3             SUM (DECODE (name, 'CA', income)) "CA",
      4             SUM (DECODE (name, 'DE', income)) "DE",
      5             SUM (DECODE (name, 'FL', income)) "FL"
      6  FROM     state_income, time_periods
      7  WHERE    time_periods.period = state_income.period (+)
      8  AND      time_periods.period IN ('PERIOD1','PERIOD2','PERIOD3')
      9  GROUP BY ROLLUP (time_periods.period)
    10  /
    PERIOD             AK         CA         DE         FL                                             
    PERIOD1       1222.23     2423.2     232.33     345.21                                             
    PERIOD2                                                                                            
    PERIOD3                                                                                            
                  1222.23     2423.2     232.33     345.21                                             
    SQL> -- package that dynamically executes the query
    SQL> -- given variable numbers and values
    SQL> -- of states and periods:
    SQL> CREATE OR REPLACE PACKAGE package_name
      2  AS
      3    TYPE cursor_type IS REF CURSOR;
      4    PROCEDURE procedure_name
      5        (p_periods   IN     VARCHAR2,
      6         p_states    IN     VARCHAR2,
      7         cursor_name IN OUT cursor_type);
      8  END package_name;
      9  /
    Package created.
    SQL> CREATE OR REPLACE PACKAGE BODY package_name
      2  AS
      3    PROCEDURE procedure_name
      4        (p_periods   IN     VARCHAR2,
      5         p_states    IN     VARCHAR2,
      6         cursor_name IN OUT cursor_type)
      7    IS
      8        v_periods          VARCHAR2 (1000);
      9        v_sql               VARCHAR2 (4000);
    10        v_states          VARCHAR2 (1000) := p_states;
    11    BEGIN
    12        v_periods := REPLACE (p_periods, ',', ''',''');
    13        v_sql := 'SELECT SUBSTR(time_periods.period,1,10) period';
    14        WHILE LENGTH (v_states) > 1
    15        LOOP
    16          v_sql := v_sql
    17          || ',SUM(DECODE(name,'''
    18          || SUBSTR (v_states,1,2) || ''',income)) "' || SUBSTR (v_states,1,2)
    19          || '"';
    20          v_states := LTRIM (SUBSTR (v_states, 3), ',');
    21        END LOOP;
    22        v_sql := v_sql
    23        || 'FROM     state_income, time_periods
    24            WHERE    time_periods.period = state_income.period (+)
    25            AND      time_periods.period IN (''' || v_periods || ''')
    26            GROUP BY ROLLUP (time_periods.period)';
    27        OPEN cursor_name FOR v_sql;
    28    END procedure_name;
    29  END package_name;
    30  /
    Package body created.
    SQL> -- sample executions from SQL:
    SQL> VARIABLE g_ref REFCURSOR
    SQL> EXEC package_name.procedure_name ('PERIOD1,PERIOD2,PERIOD3','AK,CA,DE,FL', :g_ref)
    PL/SQL procedure successfully completed.
    SQL> PRINT g_ref
    PERIOD             AK         CA         DE         FL                                             
    PERIOD1       1222.23     2423.2     232.33     345.21                                             
    PERIOD2                                                                                            
    PERIOD3                                                                                            
                  1222.23     2423.2     232.33     345.21                                             
    SQL> EXEC package_name.procedure_name ('PERIOD1,PERIOD2','AK,AL,AR', :g_ref)
    PL/SQL procedure successfully completed.
    SQL> PRINT g_ref
    PERIOD             AK         AL         AR                                                        
    PERIOD1       1222.23                                                                              
    PERIOD2                                                                                            
                  1222.23                                                                              
    SQL> -- sample execution from PL/SQL block
    SQL> -- using parameters derived from processing
    SQL> -- cursors containing results of other queries:
    SQL> DECLARE
      2    CURSOR c_period
      3    IS
      4    SELECT period
      5    FROM   time_periods;
      6    v_periods   VARCHAR2 (1000);
      7    v_delimiter VARCHAR2 (1) := NULL;
      8    CURSOR c_states
      9    IS
    10    SELECT state
    11    FROM   states;
    12    v_states    VARCHAR2 (1000);
    13  BEGIN
    14    FOR r_period IN c_period
    15    LOOP
    16        v_periods := v_periods || v_delimiter || r_period.period;
    17        v_delimiter := ',';
    18    END LOOP;
    19    v_delimiter := NULL;
    20    FOR r_states IN c_states
    21    LOOP
    22        v_states := v_states || v_delimiter || r_states.state;
    23        v_delimiter := ',';
    24    END LOOP;
    25    package_name.procedure_name (v_periods, v_states, :g_ref);
    26  END;
    27  /
    PL/SQL procedure successfully completed.
    SQL> PRINT g_ref
    PERIOD             AK         AL         AR         CA         DE         FL                       
    PERIOD1       1222.23                           2423.2     232.33     345.21                       
    PERIOD2                                                                                            
    PERIOD3                                                                                            
    PERIOD4                                                                                            
                  1222.23                           2423.2     232.33     345.21                       

  • Bex report to report interface dynamically based on Value in the query

    Hi,
    Is it possible to change the destination of the report to report interface dynamically based on the data of the bex query?
    For example my query has the below data
    Plant | KPI | Quantity
    P1 | A | 20.00
    P2 | B | 25.00
    When the user selects KPI A I want to navigate to Query 1, and when KPI B is selected to Query 2. Query 1 and Query 2 have completely different layouts, Instead of create to two destinations is it possible to pick one based on the KPI selected.
    Is this possible in Bex report to report interface or any other way.
    Please suggest
    Thanks in advance.

    Hi
    we have RRI in sap bw. ( TCODE RSBBS.)
    Below article will enlighten you about this topic .
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/607e63d5-b56f-2c10-718f-8e33a08baa89?quicklink=index&overridelayout=true
    hope this helps

  • Query on generating report using XMLP based on a search spec

    Hi,
    We are using XMLP reporting tool to generate reports for our application. Our requirement is to generate reports based on a search spec. Should I send this search spec as a input parameter to the FO processor? In other words, what is the exact procedure to generate reports based on a search spec? This search spec is provided at runtime.
    Thanks,
    Sudha.

    Hi Henry,
    Thank  you for your response.
    BEx query has not been created yet. we need to create accordingly and require your help in creating the same.
    Regarding reporting requirements,  User wants to have adhoc reporting  with rolling months ( 12 months or 6 months) functionality. Users want to link any KF to this rolling months dimension.
    If we can't have this, what is the alternative that we can propose to user.
    Thanks
    Akshara.

  • Create report based on last generated report

    I want to build a report, generated automatically in crystal server 2008, based on the last generated report. Can you help ?

    Not possible, reports must exist

  • Generate reports and sub-reports based on JTable Swing.

    Hello everybody...
    Anyone know like to generate report and subreport dinamicaly using the tool jasper?
    The report will be based on a JTable Swing.
    Java Swing.

    As far as your target platform is supported by Crystal Reports, use it via free API at http://www.must.de/Jareport.htm

  • How do I access(read) dynamically generated reports with WebLogic WebServer

    Hello Everyone,
    In our application we are generating reports (pdf format) at run time. How do
    we read these files.....which directory should we store these files to... I am
    using Weblogic 6.0.
    These files have timestamp as part of their name so the names are not static.
    Thanks in advance.
    Ahsen

    We ran into this also. If you read the J2EE specs carefully you will see
    that your app is only guaranteed to have write-access to a single directory,
    defined by the context attribute "javax.servlet.context.tempdir" -- I can
    find the exact reference if you want.
    Here is how to get this attribute:
    File tempdir = (File) getServletContext()
    .getAttribute("javax.servlet.context.tempdir");
    log.debug("context temp dir = " + tempdir.getAbsolutePath());
    Although this may seem horribly restrictive, it makes a lot of sense on a
    secure system where applications are deployed by a specific user, and may
    have at runtime minimal filesytem priviledges -- your app can't write
    anywhere, at the exception of the context temp dir. I know this would be the
    way I'd setup my container on a Unix system for example.
    So, what's a developer to do? You can either bypass the issue and always
    generate your content dynamically, with a servlet setting the appropriate
    MIME type to the output, or write your reports to the context temp dir and
    manually serve content from there.
    Frankly I think the first option is by far the most simple, easier to
    implement, and thus attractive; if it leads to a performance problem, you
    can always solve that with a Web cache. Doing otherwise (caching the content
    yourself) opens the door to many issues, that really shouldn't be your
    problem as a Web application developer. Keep it simple!
    --Renaud
    "ahsen" <[email protected]> wrote in message
    news:173_3bc31ee1$[email protected]..
    >
    Hello Everyone,
    In our application we are generating reports (pdf format) at run time.How do
    we read these files.....which directory should we store these files to...I am
    using Weblogic 6.0.
    These files have timestamp as part of their name so the names are notstatic.
    >
    Thanks in advance.
    Ahsen

  • Calling XML Publisher report(RDF based) From OAF

    Hi All,
    I have requirement where i need to call one of the custom XML Publisher report from oaf by passing the parameters.
    and i dnt want this using concurrent program.
    I have an idea of calling xml publisher report which is Data Template based(XML).
    http://oracle-hack.blogspot.ae/2012/04/launching-xml-publisher-from-oa.html
    but in my case the report is RDF based.
    They are generating the XML using one of the custom rdf. How can we achieve this?
    Please help.

    Hi,
    Thanks for the reply.
    Yeah yes. this method i know in my case the Custom XML Report is based on a rdf.
    So just i want to know it can be achievable ir not? if so how?
    Thanks
    Bharat

Maybe you are looking for

  • Midpan is not mid pan after output and other minor problems...

    Ok, so I have this procjet I am working on. I have one sync with a man and one background audiotrack with a choir. In my headphones I hear a perfect midpan. The audiobar/VUmeters in FXPX shows exactly the same levels as eachother, since I have been u

  • Help with a Dreamweaver glitch

    Hello, can anyone help me figure out why a white line has suddenly appeared on my website after I uploaded. I'm a novice, simply filling in templates, so I'm afraid I accidentally hit the wrong button w/o knowing it. Anyway, my url is: http://www.fit

  • Activity won't work in IE 6

    Hi everyone, I hope someone can help as I've been struggling with this for about 4 months. We have an online course that includes interactive exercises. One of the exercises has two parts, the students first click on an arrow and the Shockwave player

  • IPad 2, 32 gb

    How much do you think I could get for an iPad 2, 32 gb, cracked screen, with a $25 case?  Apple wants $300 to repair the screen and I'd rather sell my iPad and get the iPad 3. $300 is a little much..... I was thinking around $450? I paid about $600..

  • How to save settings in iPhoto '11 (9.1.3)?

    Hello, does everybody know how to save settings in iPhoto '11 (9.1.3)? Always when I change settings, for example when I check "Copy items to the Library", it is after new start up restored to the default. Also every start up appears "Welcome to iPho