Invocation report (Discoverer Viewer) with parameters from an application

Hi everyone,
I'm proving report in Discoverer Viewer invoking them from an application, which sends parameters to him.
I cannot obtain, that they directly execute when doing click in the URL of execution with its parameters, but that opens the screen where it requests to enter the parameters, without assigning those that they are arriving to him in the URL.
I verified if the problem were in the name of the parameters and apparently it takes the values from such by the order in which they arrive.
Also I verified that the values of parameters are arriving correctly from the application.
Somebody can help me with this?
Thank you very much
Ana

Hi,
I could resolve the problem.
The creation parameters in discoverer reports is case sensitive with the parameters that arrive from an application.
Anyway, thank you
Ana

Similar Messages

  • Deploying forms and reports with parameters from portal

    hi , how do i build forms and reports from database limiting them with parameters from the login details on the portal on my application server.

    I had the same problem.
    I resolve with a new third party tool:
    RunDev
    I've found it on:
    solutionmarketplace.oracle.com
    searching "rundev".
    James

  • Updating a report source/viewer with new filename

    I posted earlier about this problem but now can be more specific so thought a re-post was in order. I am trying to setup an asp.net website using .NET 2.0 and Crystal Reports 2008. Rather than having a seperate page for each possible report with a viewer on it I decided to setup a page and pass it session variables telling it what file name to set the report source to and the variables to pass to it. This worked fine in crystal reports basic (the one with visual studio).
    So I have on the page CrystalViewer (CrystalReportViewer) with display page true seperate pages true and crystalRepSource (CrystalReportSource) with cache enabled and viewstate enabled as far as I know cache is required for the paging to work.
    In my form code behind file i have something like:
    protected void Page_Load(object sender, EventArgs e) {
    CrystalRepSource.Report.FileName = SessionHandler.RunReport;
    switch (report)
    if (PreviousPage != null || paramHasChanged)
    case @"~\CollegeReports\CR_Course_Review.rpt":
                    //setup report in viewer with correct db logon
                    SetupLogonInfo(CrystalRepSource);
                    //add parameters
                    CrystalRepSource.ReportDocument.SetParameterValue("@year", year);
                    CrystalRepSource.ReportDocument.SetParameterValue("@school", school);
                    CrystalRepSource.ReportDocument.SetParameterValue("@division", division);
                    CrystalRepSource.ReportDocument.SetParameterValue("@progArea", progArea);
                    CrystalRepSource.ReportDocument.SetParameterValue("@type", SessionHandler.record_type);
                    CrystalRepSource.ReportDocument.SetParameterValue("@filterText", "School = \'" + school +
                                                            "\' Division = \'" + division
                                                            + "\' Programme Area = \'" + progArea
                                                            + "\' Record Type = \'" + SessionHandler.record_type_text + "\'");
                    break;
                case @"~\CollegeReports\CR_WBL_Attendance_Sheets.rpt":
                    //setup report in viewer with correct db logon
                    SetupLogonInfo(CrystalRepSource);
                    //add parameters
                    CrystalRepSource.ReportDocument.SetParameterValue("@year", year);
                    CrystalRepSource.ReportDocument.SetParameterValue("@school", school);
                    CrystalRepSource.ReportDocument.SetParameterValue("@division", division);
                    CrystalRepSource.ReportDocument.SetParameterValue("@progArea", progArea);
                    CrystalRepSource.ReportDocument.SetParameterValue("@attendanceEndDate", LastDayOfMonth(SessionHandler.WBL_EndDate).ToString());
                    break;
    The case statement actually has about 20 reports in it it is basically used to send the appropriate parameter set to the report and setup the database logon info, the if statement around the case checks if the load is a postback (to allow paging of the report) if it is it won't run the code or if a parameter has changed if one has it will rerun the code. As I said this worked in CR basic.
    Unfortunately what now seems to happen is the first time I run a report it works fine, if I then leave the page and run a report requiring different parameters it will give me the parameter error. However if instead I run a report requiring the same parameters it will show the original report document as if it is coming from cache I think. The case becomes a bit more bizarre later as I have created the ability to change a parameter without leaving the report page this actually does a postback and changes the report to the proper one with the proper data.
    So it seems to me the code to change report is working first time and for postback but not for re-entering the page. I am really stuck been working on this for hours  any ideas.

    ok i have found the solution after a quite a while so anyone else getting this I was using the line:
    CrystalRepSource.Report.FileName = SessionHandler.RunReport;
    I changed it to:
    CrystalRepSource.ReportDocument.Load(Server.MapPath(ReportName));
    This clears any existing report and loads the correct one seems to have solved all my problems.

  • How to create a view with parameters; read the documentation but nothing!

    Hello!
    I'm new to the Oracle world but together with my coworkers we need to very quickly study Oracle to figure out whether we'll add Oracle to our list of supported databases or not.
    Question: How do I create a view with parameters?
    I've read the documentation but I could not find this! I found the sql syntax to create a view but no parameters whatsoever...
    I have found on the web some very complicated way of doing this, but doesn't Oracle support Views with parameters?
    The goal here is to return a recordset, don't forget, so,please don't speak about stored procedures unless you are going to tell me how to get a recordset out of a stored procedure! ;)
    Thanks for all your help and attention!
    Jorge C.

    You can set up a parameterized view via context as follows:
    1. Set up a procedure to set your context values:
    create or replace procedure p_set_context (p_context IN VARCHAR2,p_param_name IN VARCHAR2,p_value IN VARCHAR2)
    as
    BEGIN
    sys.dbms_session.set_context(p_context,p_param_name,p_value);
    END;
    2. Create your context using the procedure you just created
    create or replace context my_ctx using p_set_context
    3. This is the test table I'll use
    create table my_table(col1 number)
    and populate it:
    begin
    for v_index in 1..10
    loop
    insert into my_table values(v_index);
    end loop;
    end;
    and the view that will be parameterised
    create or replace view v_my_table as select col1 from my_table where col1 between sys_context('my_ctx','start_range') and sys_context('my_ctx','end_range')
    4. Now set the parameters using the procedure above.
    begin
    p_set_context('my_ctx','start_range','1');
    p_set_context('my_ctx','end_range','5');
    end;
    5. Selecting from my_table will give you 1 to 10 (no surprise there :-) )
    selectng from v_my_table will give you 1 to 5
    You can use the context to set formats etc using the same principle. A common gotcha to watch for is trying to set the context directly using DBMS_SESSION.SET_CONTEXT instead of creating a procedure. This belongs to SYS and SYS won't have the privileges to set your context so you get an insufficient privileges result leading to much headscratching and unnecessary grants (at least that's my understanding of it).
    Sorry Jorge, as you're new to Oracle I should also have pointed out for completeness sake, that you can change the parameters at any time through recalling the p_set_context, for example, following on from above, after your "select * from v_my_table" and seeing 1 to 5, you could then do
    begin
    p_set_context('my_ctx','start_range','3');
    end;
    and when you requery 'Select * from v_my_table' you will now see rows 3 to 5.
    Bit of a simplistic example, but you can see how easy it is. :-)
    Message was edited by:
    ian512

  • Is it possible to create views with parameters ?

    Hi,
    As MS-Access, is it possible to create views with parameters ?
    Ms-Access syntax : parameters [a] text; select * from table where code = [a]
    If yes, can you give samples ?
    Regards
    Pascal

    I suggest you you write a stored procedure that returns a recordset in oracle. Then execute the stored procedure and loop through the record set.
    Look in in MS Knowledgebase searching on ADO Stored Proceedures for the VB/C++/VBS .. code.
    Look in in Oracle PL/SQL guide for the Stored Proceedure code.

  • How I can create view with parameters?

    I have very big query (2000 rows) and 2 parameters.
    How I can create view with parameters?

    If I use this small part of my query than I have error :
    java.lang.NullPointerException
         at oracle.javatools.db.ora.OracleSQLQueryBuilder.buildQuery(OracleSQLQueryBuilder.java:199)
         at oracle.javatools.db.ora.OracleSQLQueryBuilder.buildQuery(OracleSQLQueryBuilder.java:147)
    What does it means?
    select
    ' Payroll ' as Revenue
    , t.umonth, nvl(p.hmy, 0), nvl(t.sMTD, 0), nvl(a.inormalbalance, 0), nvl(T.sbudget, 0), nvl(a.scode, 0)
    from
    acct a, total t, property p, param par
    where
    nvl(t.hacct, 0) = nvl(a.hmy, 0)
    and nvl(par.hretain, 0) <> nvl(a.hmy, 0)
    and nvl(t.iBook, 0) = 0
    and nvl(a.iacctType, 0) = 0 /*Regular accts*/
    and nvl(t.hppty, 0) = nvl(p.hmy, 0)
    and ( nvl(a.scode, 0) between 60000 and 6009000 )
    union all ---------------------------------------------------------------------------------------------------------------------------------
    select
    ' Payroll Taxes '
    , t.umonth, nvl(p.hmy, 0), nvl(t.sMTD, 0), nvl(a.inormalbalance, 0), nvl(T.sbudget, 0), nvl(a.scode, 0)
    from
    acct a, total t, property p, param par
    where
    nvl(t.hacct, 0) = nvl(a.hmy, 0)
    and nvl(par.hretain, 0) <> nvl(a.hmy, 0)
    and nvl(t.iBook, 0) = 0
    and nvl(a.iacctType, 0) = 0 /*Regular accts*/
    and nvl(t.hppty, 0) = nvl(p.hmy, 0)
    and
    (nvl(a.scode, 0) between 60100 and 60690 )
    union all -------------------------------------------------------------------------------------------------------------------------------
    select
    ' Workers Comp/Disability '
    , t.umonth, nvl(p.hmy, 0), nvl(t.sMTD, 0), nvl(a.inormalbalance, 0), nvl(T.sbudget, 0), nvl(a.scode, 0)
    from
    acct a, total t, property p, param par
    where
    nvl(t.hacct, 0) = nvl(a.hmy, 0)
    and nvl(par.hretain, 0) <> nvl(a.hmy, 0)
    and nvl(t.iBook, 0) = 0
    and nvl(a.iacctType, 0) = 0 /*Regular accts*/
    and nvl(t.hppty, 0) = nvl(p.hmy, 0)
    and
    ( nvl(a.scode, 0) between 61200 and 61260)
    union all -------------------------------------------------------------------------------------------------------------------------------
    select
    ' Pension and Hospitalization '
    , t.umonth, nvl(p.hmy, 0), nvl(t.sMTD, 0), nvl(a.inormalbalance, 0), nvl(T.sbudget, 0), nvl(a.scode, 0)
    from
    acct a, total t, property p, param par
    where
    nvl(t.hacct, 0) = nvl(a.hmy, 0)
    and nvl(par.hretain, 0) <> nvl(a.hmy, 0)
    and nvl(t.iBook, 0) = 0
    and nvl(a.iacctType, 0) = 0 /*Regular accts*/
    and nvl(t.hppty, 0) = nvl(p.hmy, 0)
    and
    ( nvl(a.scode, 0) between 61000 and 61550 )
    union all -------------------------------------------------------------------------------------------------------------------------------
    select
    ' Other Labor Costs '
    , t.umonth, nvl(p.hmy, 0), nvl(t.sMTD, 0), nvl(a.inormalbalance, 0), nvl(T.sbudget, 0), nvl(a.scode, 0)
    from
    acct a, total t, property p, param par
    where
    nvl(t.hacct, 0) = nvl(a.hmy, 0)
    and nvl(par.hretain, 0) <> nvl(a.hmy, 0)
    and nvl(t.iBook, 0) = 0
    and nvl(a.iacctType, 0) = 0 /*Regular accts*/
    and nvl(t.hppty, 0) = nvl(p.hmy, 0)
    and
    ( nvl(a.scode, 0) between 616000 and 616400 )

  • How to call a AM method with parameters from Managed Bean?

    Hi Everyone,
    I have a situation where I need to call AM method (setDefaultSubInv) from Managed bean, under Value change Listner method. Here is what I am doing, I have added AM method on to the page bindings, then in bean calling this
    Class[] paramTypes = { };
    Object[] params = { } ;
    invokeEL("#{bindings.setDefaultSubInv.execute}", paramTypes, params);
    This works and able to call this method if there are no parameters. Say I have to pass a parameter to AM method setDefaultSubInv(String a), i tried calling this from the bean but throws an error
    String aVal = "test";
    Class[] paramTypes = {String.class };
    Object[] params = {aVal } ;
    invokeEL("#{bindings.setDefaultSubInv.execute}", paramTypes, params);
    I am not sure this is the right way to call the method with parameters. Can anyone tell how to call a AM method with parameters from Manage bean
    Thanks,
    San.

    Simply do the following
    1- Make your Method in Client Interface.
    2- Add it to Page Def.
    3- Customize your Script Like the below one to Achieve your goal.
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("GetUserRoles");
    operationBinding.getParamsMap().put("username", "oracle");
    operationBinding.getParamsMap().put("role", "F1211");
    operationBinding.getParamsMap().put("Connection", "JDBC");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    return null;
    i hope it help you
    thanks

  • Error while Driving a view using parameters from other view

    Hi,
    I have created a report with streamlist and Barchart view.Driving option is used in streamlist to drive the barchart. The driving works well untill i dont use any filters in the Streamlist.Once i use parameters in streamlist , the driving works only for the default values set.When Second set of values are chosed for the parameter,the values are displayed correctly , but once they are selected for driving,the current values are replaced by the results of the default parameter settings.
    I have already done the tutorials for driving and it worked well untill i use filters in the main view,from where the driving is done.
    I would really appreciate if someone could give a solution for this problem.
    Regards,
    Lathika

    Hi,
    Login as i.e. sys as sysdba. Standard password is change_on_install.
    Or you can login in using user that has CREATE VIEW WITH ADMIN OPTION and then grant CREATE VIEW privilege to user to want.
    Peter D.

  • Discoverer viewer (Passing parameters)

    Hi!
    I have according to metalink Note 282249 been able to pass parameters from discoverer desktop to admin and the tabes comes out all right. The problem is that it does not seems to work with the browser discoverer 4i viewer the error message i get is in swedish (Fel uppstod vid öppning av arbetsbok med namnet:
    Följande objekt saknas:Hr All Organization Units 2.Namn
    whitch means word by word:
    error arose when opening workbook called:
    The following object is missing:Hr All Organization Units 2.Namn
    I'm new to Discoverer.
    //Åsa Frank
    Posting the XML if maby you can understand it:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <discoverer login_method="discoverer">
    <session id="gcfgthh9e1.o7jHpkjMpwTvq6XOnkHzr2TNnhDCrkPHnl9I/A5KpRfzoQjO/Bbzcx4Ra34L" />
    - <request source="/discoverer4i/viewer" parameters="?ac=KC~40vespa&eul=APPS&nlsl=sv-se&wbk=SKNING_VIA_VARUBENMNINGDIS2_ny&fm=xml">
    <error code="311">Hr All Organization Units 2.Namn</error>
    <command name="fm">xml</command>
    <command name="ac" ref="KC~40vespa">KC@vespa</command>
    <command name="eul">APPS</command>
    <command name="wbk">SKNING_VIA_VARUBENMNINGDIS2_ny</command>
    <command name="nlsl">sv-se</command>
    </request>
    - <account mv_summaries_supported="true" name="KC@vespa" ref="KC~40vespa">
    <user>KC</user>
    <database>vespa</database>
    - <eul default="true" name="APPS">
    - <workbook name="APPS.Sökning via varubenämningNY.DIS" ref="APPS.S~c3~b6kning~20via~20varuben~c3~a4mningNY.DIS" key="SKNING_VIA_VARUBENMNINGDIS2_ny">
    <error code="311">Hr All Organization Units 2.Namn</error>
    <error code="311">Hr All Organization Units 2.Namn</error>
    <error code="311">Hr All Organization Units 2.Namn</error>
    <error code="311">Hr All Organization Units 2.Namn</error>
    </workbook>
    <version component="eul_version" product="" version="EUL V4.1.14.0.0.0" />
    </eul>
    <option name="usd">2</option>
    <option name="daq">false</option>
    <option name="qrl">10000</option>
    <option name="qll">15</option>
    <option name="aq">true</option>
    <option name="qpw">60</option>
    <option name="msa">60</option>
    <option name="ftd">true</option>
    <option name="qtl">1800</option>
    <option name="qif">250</option>
    <option name="nv" ref="~20" />
    <option name="nad">-</option>
    <option name="rpp">25</option>
    <version component="db_version" product="Oracle9i Enterprise Edition Release" version="9.2.0.6.0 - 64bit Production" />
    <version component="server_version" product="" version="Discoverer-server V4.1.48.06.00" />
    </account>
    <export name="xls" format="application.vnd.ms-excel">Microsoft Excel Workbook (*.xls)</export>
    <export name="xlsp" format="application.vnd.ms-excel">MicroSoft Excel Workbook with PivotTable (*.xls)</export>
    <export name="htm" format="text.html">Hyper-Text Markup Language (*.htm)</export>
    <export name="txt" format="text.plain">Text (Tab delimited) (*.txt)</export>
    <export name="csv" format="text.plain">CSV (Comma delimited) (*.csv)</export>
    <export name="prn" format="text.plain">Formatted Text (Space delimited) (*.prn)</export>
    <export name="dcs" format="text.plain">DCS (Express Format) (*.dcs)</export>
    <export name="dif" format="application.vnd.ms-excel">DIF (Data Interchange Format) (*.dif)</export>
    <export name="slk" format="application.vnd.ms-excel">SYLK (Symbolic Link) (*.slk)</export>
    <export name="wks" format="application.vnd.ms-excel">WKS (Lotus 1-2-3) (*.wks)</export>
    <locale language="sv" country="SE">svenska (Sverige)</locale>
    <version component="servlet_version" product="Discoverer 4i Viewer" version="4.1.48.06.00" />
    <version component="xml_version" product="Viewer XML Version" version="16032001" />
    <version component="xml_parser_version" product="Oracle XML Parser" version="2.0.2.9.0 Production" />
    <version component="servlet_container_version" product="Servlet Container" version="ApacheJServ/1.1.2" />

    It works to login as the user i created the BA with... however i can't seem to access the costume folder with the other user User2. User2 has select any table grant. do i need to make an exta object grant? If so where do I find out what object?
    //Frank
    Message was edited by:
    user541666

  • Encapsulating a query in a view with "parameters"

    I have a complex query using analytic functions and an inline view, something like:
    select * from (
    select a, b, c, row_number() over (partition by x, order by y) rn
    where b like 'XXX%'
    where rn = 1;
    (The actual query is a little more complex, but that's the idea). This query performs very well.
    As the query is of some general use, I'd like to package it up. However, the 'XXX%' pattern will vary with each use.
    If I try to make a view v which is the query minus the XXX% where clause, the optimiser cannot merge the where clause and the view in a query like
    select * from v where b like 'XXX%'
    This doesn't surprise me too much - merging like that is going to be hard (if indeed it's possible at all!) As a result, the query using the view is significantly slower.
    Is there any way of making my original query reusable? For PL/SQL, I can use a function returning a REF CURSOR and taking the pattern as a parameter - but I need to use this from SQL.
    I could write a pipelined function and then do select * from table(my_fn('XXX%')). However, this is in 8i, where I don't have that option. Also, for a pipelined function, I'd need to define a record type and an associated table type - what seems like quite a lot of code for what is conceptually pretty simple.
    Have I missed any obvious options? I can live with the pipelined function and "no way until 9i" - but only as a general answer. For my current specific issue, that's equivalent to "you can't do this".
    I thought of using SYS_CONTEXT, but if I understand correctly, I can only use that in PL/SQL, as I can't set the context outside of an authorised package. Is that right, or is there a way I could use contexts? (Hmm, I need to be able to use the query from SQ, but I could probably execute a PL/SQL procedure before running the query, to set things up - does that help?)
    Thanks for any suggestions.
    Paul.

    SYS_CONTEXT would work, as would package global variables.
    I once wrote an example about this (though with TABLE function but for your case the principle stays the same) which you may find here:
    Re: TABLE FUNCTION - Using database view - send parameters to the function.
    hth, michael

  • Calling DB2 Stored procedure(with parameters) from powershell

    Hi 
    I am trying to call a DB2 stored procedure that has parameters from Powershell scrip and I am not able to can some one help me here?
    $ServerName = 'XXXX'
    $dbalias='XXXXX'
     $conn_string = "Provider=IBMDADB2;DBALIAS=$dbalias;Uid=;Pwd=;"
     $conn = new-Object system.data.Oledb.OleDbconnection
     $conn.ConnectionString = $conn_string
     $conn.open()
     $query="CALL DBID_CONTROL.GET_TABLE_MAINT_CTL(?,?,?,'MSAS','DATABASE_CONNECTIONS_CUBE','CUBE_PARTITION');"
     $cmd = new-Object system.data.Oledb.OleDbcommand($query,$conn)
      $ds=New-Object system.Data.DataSet
     $da=New-Object System.Data.OleDb.OleDbDataAdapter($cmd)
      $da.Fill($ds) [int]$cur_utc_date_key = $ds.Tables[0].Rows[0][0]
     $cur_utc_date          = $ds.Tables[0].Rows[0][1]
     ###list current date key & current date values
     write-output "current date key value is $cur_utc_date_key"
     write-output "current date value is $cur_utc_date"
     write-output " "
    Thanks

    Hi 
    This is the error message i get when i run the script
    Exception calling "Fill" with "1" argument(s): " CLI0100E  Wrong number of parameters. SQLSTATE=07001"
    At line:45 char:10
    +  $da.Fill <<<< ($ds)
        + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException
        + FullyQualifiedErrorId : DotNetMethodException

  • View with parameters

    Hello,
    Can we create the view with the parameters? How to do that? We need to create the sql script with parameter for super user to query, instead of create sql script then we would like to create the view then user can select only view.
    Many thanks in advance. :-)

    Hi,
    Views using SYS_CONTEXT, as Justin mentioned, are perhaps the most common way to simulate parameterized views in Oracle.
    Another method is to use a table (usually a Global Temporary Table) to hold the parameters. The view can then join to the table, use it in scalar sub-queries, IN-sub-queries, etc.
    This is the best way if you need to use the same parameterized view two (or more) times in the same query, with different parameters each time.
    Edited by: Frank Kulash on Oct 10, 2008 4:04 PM
    Sorry, I meant to reply to OP.

  • Create view with dynamic from-clause

    Dear all,
    you might have some ideas to help me out of my issue that i just "created myself" ;-)
    i have a unknown and non-constant amount of tables using the the same table-structure and i do have a master table
    that contains all names of these kind of tables. I now want to create a single view that contains all columns of each table
    and an additional column name containing the name of the corresponding table.
    I found a solution for this but only if I knew all table names while creating my view.
    Here's what I currently have:
    master_table:
    ID TABLENAME
    1 table_01
    2 table_02
    table_01:
    ID NAME
    1 eins
    2 zwei
    3 drei
    table_02:
    ID NAME
    1 one
    2 two
    3 three
    my view "tab1tab2" on these 2 table looks like this:
    ID NAME TABLENAME
    1 eins table_01
    2 zwei table_01
    3 drei table_01
    1 one table_02
    2 two table_02
    3 three table_02
    i achieved this view by using:
    CREATE OR REPLACE VIEW TAB1TAB2 ("ID", "NAME", "TABLENAME")
    AS
    SELECT id,name, 'table_01' AS tablename FROM table_01
    UNION
    SELECT id,name, 'table_02' AS tablename FROM table_02;
    Is there a way to create as many select and union statements as i do have entries (tablenames) in my master_table to achive the same results as my hardcoded view ?
    Many thanks in advance for your help
    Best regards
    majo

    Is there a way to create as many select and union statements as i do have entries (tablenames) in my master_table to achive the same results as my hardcoded view ?You can achieve this also with some xml facilities as e.g. in
    SQL> create table t1 as select empno, ename from emp where rownum <= 3
    Table created.
    SQL> create table t2 as select deptno empno, dname ename from dept
    Table created.
    SQL> create table master as (select 1 id, 't1' table_name from dual union all
                                       select 2 id, 't2' table_name from dual)
    Table created.
    SQL> create or replace view v_t
    as
    select table_name, x.*
      from (select table_name, 'ora:view("' || table_name || '")' tabs from master),
           xmltable (tabs columns id int path 'EMPNO', ename varchar2(20) path 'ENAME') x
    View created.
    SQL> select * from v_t
    TABLE_NAME              ID ENAME              
    t1                    7369 SMITH              
    t1                    7499 ALLEN              
    t1                    7521 WARD               
    t2                      10 ACCOUNTING         
    t2                      20 RESEARCH           
    t2                      30 SALES              
    t2                      40 OPERATIONS         
    t2                      50 SALES              
    8 rows selected.
    SQL> create table t3 as select object_id empno, object_name ename from user_objects where rownum <= 3
    Table created.
    SQL> insert into master values (3, 't3')
    1 row created.
    SQL> select * from v_t
    TABLE_NAME              ID ENAME              
    t1                    7369 SMITH              
    t1                    7499 ALLEN              
    t1                    7521 WARD               
    t2                      10 ACCOUNTING         
    t2                      20 RESEARCH           
    t2                      30 SALES              
    t2                      40 OPERATIONS         
    t2                      50 SALES              
    t3                  187449 ABC                
    t3                  187448 ADDRESSES_EXT_TAB  
    t3                  187446 ADDRESSES_EXT_TYP  
    11 rows selected.Note: above will work only in 11g.

  • Makes it possible to create view with parameters

    makes it possibel to create view with paramater, example
    create or replace view v_test(segment varchar2)
        select * from ref_user where segment = segmentThanks

    thanks..
    select count(distinct substr(a.svm_id,1,10)) jumlah " +
       " from daily_distribution_pop a, ref_toko b " +
       " where " +
       " substr(a.svm_id,1,10)=b.id and b.segment_type = 'A' and enable_flag='Y' " +
       " and a.tgl_visit between to_date('" + fromStartDate + "', 'dd/MM/yyyy') and to_date('" + fromEndDate + "', 'dd/MM/yyyy')
         and " + whereA + "= '" + whereB + "' " +
       " and substr(a.pom_id,1,2) = 'DP' and (a.qty_instore <> 0 or a.qty_delivered <> 0) ";
    {code}
    where fromStartDate,  fromEndDate, whereA, whereB  is variable parameter from asp.net.
    how to i can implement with view                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Schedule Crystal Reports on BOE with Parameters

    Hi
    I would like to schedule Crystal reports with parameters on BOE. How can I pass a parameter if the job is scheduled to run nightly?
    Any help is greatly appreciated.
    Thanks!

    Hello!
    I am going to assume that you know how to schedule a report to run nightly and how to set the parameters/prompts, and what you are really asking is how to change what the parameter/prompt value will be every night?
    If that is the case there is no default functionally that can do that.  How ever you could create a Java application (or another supported programming language) application that will run as a Program Job Object.  The PGO (Program Job Object) will be what is scheduled nightly.  Inside the  PGO you would schedule your report to "run now" with the parameters/prompts you want for that night.
    I hope I have answered your question.  Cheers!

Maybe you are looking for

  • IPod Touch (2nd Gen) not charging properly and apps won't update

    Hi, I'm not really sure if or how these problems can be linked, but I thought I'd put them together just in case... My first problem is that my apps aren't updating properly.  When I try to apply the updates, I get the "waiting" come up but then it j

  • How do I get photos to preview in a second monitor on Bridge CC?

    This question must have been asked here before but I wasn't able to find the answer. Sorry if this is a repeat question... How do I get photos to preview in a second monitor on Bridge CC? It's harder to find the answer this than I expected it to be.

  • Internal microphone not working with Windows 7 on g6-1256ee

    Hi,  I recently installed Windows 7 (64bit) on my HP g6-1256ee and everything seems to work apart from the internal microphones. sound card driver install correctly and hp assisstant say your computer up yo date plz help me

  • Download Spool in list Format

    Dear Friends,    While downloading the spool job into the GUI,i want to download it into list format as appearing in sap,rather than excel pdf or txt.Please suggest.Also when using downloading to PDF format,the width is not getting adjusted.Please He

  • IPhoto 09 can't import RAW file (.CR2) from Canon G10 Camera

    Every time I try to import a RAW image on my G10 camera (the file extension is .CR2) into iPhoto, the program says that the file is in an unrecognized format. Yet the OS and I believe iPhoto supports RAW from the Canon G10. I have updated my software