Parameterised Reporting

Hi all,
I want to retrive data using following query which required two types of input one is DocDate Range and 2nd one is Cardcode.
I used u201CParameter Fieldu201D option for both date range  and Cardcode.The output is like
S#   DocStatus      DocDate          CardName           INV #
============================================
1        C               2009-07-02      ABC Company        Null
2        C               2009-07-15      Test Company        Null
u2026        u2026        u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026     u2026u2026u2026u2026u2026u2026u2026
u2026        u2026        u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026     u2026u2026u2026u2026u2026u2026u2026
SELECT DISTINCT T0.DocNum as 'S#', T0.DocStatus,T0.DocDate, T0.CardName, T4.DocNum as 'INV #'
FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
LEFT JOIN DLN1 T2 ON T1.DocEntry = T2.BaseEntry AND T1.LineNum = T2.BaseLine
LEFT JOIN INV1 T3 ON T2.DocEntry = T3.BaseEntry AND T2.LineNum = T3.BaseLine
LEFT JOIN OINV T4 ON T3.DocEntry = T4.DocEntry
Following is the filltering criteria:
Where T0.DocDate Between ?Input_Param1  AND ?Input_Param2 and T0.CardCode = ?Input_Param3
(which I supposed CR doing internally)
But when I give date range and Cardcode it is not filtering data properly.What is going wrong with it? Is Parameter Field  is right choice for filtering data on multiple conditions, which are used in Where clause?(i.e AND , OR , IN etc)? Do I need to  change the formate of Date parameter?
Regards,
Ghazanfar
Edited by: Ghazanfar Ahmed on Nov 14, 2009 8:40 AM

Hi Ahmed,
Try this,
SELECT DISTINCT T0.DocNum as 'S#', T0.DocStatus,T0.DocDate, T0.CardName, T4.DocNum as 'INV #'
FROM ORDR T0
INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
LEFT JOIN DLN1 T2 ON T1.DocEntry = T2.BaseEntry AND T1.LineNum = T2.BaseLine
LEFT JOIN INV1 T3 ON T2.DocEntry = T3.BaseEntry AND T2.LineNum = T3.BaseLine
LEFT JOIN OINV T4 ON T3.DocEntry = T4.DocEntry
WHERE
T0.[DocDate]>='[%0]' AND T0.[DocDate]<='[%1]'
AND
T0.CardCode>='[%2]' AND T0.CardCode<='[%3]'
ORDER BY T0.[DocNum]
OR
SELECT DISTINCT T0.DocNum as 'S#', T0.DocStatus,T0.DocDate, T0.CardName, T4.DocNum as 'INV #'
FROM ORDR T0
INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
LEFT JOIN DLN1 T2 ON T1.DocEntry = T2.BaseEntry AND T1.LineNum = T2.BaseLine
LEFT JOIN INV1 T3 ON T2.DocEntry = T3.BaseEntry AND T2.LineNum = T3.BaseLine
LEFT JOIN OINV T4 ON T3.DocEntry = T4.DocEntry
WHERE
T0.[DocDate]>='[%0]' AND T0.[DocDate]<='[%1]'
OR
T0.CardCode>='[%2]' AND T0.CardCode<='[%3]'
ORDER BY T0.[DocNum]
Regards,
Madhan.

Similar Messages

  • Regarding parameterised report

    hi all
    i ve a parameterised report which has three list boxes.
    the first one has certain values and the second and the third
    list boxes should contain the values based on the first list box
    value.
    how can i achive this
    reply me as soon as possible
    prabhu

    I had created a report like this ages ago in Forms 4.5. I had
    used Text lists, where multiple values were selected from one
    list. Based on the values selected the second t-list was
    populated.
    Based on the values selected the where clause is built and this
    entire where clause is sent to the report as a single lexical
    parameter.
    Your query in the report would be like this :
    select * from table_name &where_cl
    You'll be sending the where_cl as a parameter through your form.
    If the multiple select LOVs have a way of saving the values
    selected then gp ahead with that.
    If usinf t-lists then for each column you need 2 T-lists. One
    for the available values and the other for selected values. You
    scroll through the selected valued and build up your query.
    It just sounds complicated but is quite simple.
    Make 2 T-lists for the Countries list.
    Available_countries
    Selected_countries.
    Same with the Colors list.
    As soon as the forms opens up, populate the available counties
    list with the select countries from country_table. The user can
    click on each country that he wants to select. As soon as he
    clicks the selected country goes to the select T-list. You'll
    have to do some manipulation here. I'll go through my notes and
    send you the code probable tomorrow.
    Sudha

  • Calling parameterised reports from Oracle Forms 11g

    Hi,
    I wrote a procedure to call the reports as
    PROCEDURE CALL_REPORT IS
    BEGIN
    DECLARE
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    END;
    I can use this for simple reports (that reports w/o parameters) as
    DECLARE
    rep_name VARCHAR2(15):= 'rep_hotels';
    BEGIN
    :global.rep_name := rep_name;
    CALL_REPORT;
    END;
    & This is working fine. But how to use this in parametarised reports.
    I tried lyk this, procedure as (I made the parametere list id as global)
    PROCEDURE CALL_REPORT IS
    BEGIN
    DECLARE
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id, :global.pl_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    END;
    & to call
    DECLARE
    pl_id ParamList;
    par_strg VARCHAR2(500);
    rep_name VARCHAR2(15):= 'rep_hotels';
    BEGIN
    pl_id := Get_Parameter_List('tmpdata');
    :global.rep_name := rep_name;
    :global.pl_id := pl_id;
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO' );
    Add_Parameter(pl_id,'REQ_FY',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.FY);
    Add_Parameter(pl_id,'REQ_SEQ',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.SEQ);
    Add_Parameter(pl_id,'REQ_VER_NO',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.VERSION_NO );
    Add_Parameter(pl_id,'REQ_HDR',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS );
    par_strg := '&REQ_FY='||:OTC_TRANS_REQUISITIONS.FY||'&REQ_SEQ='||:OTC_TRANS_REQUISITIONS.SEQ||'&REQ_VER_NO='||:OTC_TRANS_REQUISITIONS.VERSION_NO||'&REQ_HDR='||:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS;
    CALL_REPORT;
    END;
    But this make compilation error for
    :global.pl_id := pl_id;
    as "expression is of wrong type"
    I dont think we can make parameters as global, with out that i have to write evry thing in one as
    DECLARE
    pl_id ParamList;
    par_strg VARCHAR2(500);
    rep_name VARCHAR2(15):= 'rep_hotels';
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    :global.rep_name := rep_name;
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO' );
    Add_Parameter(pl_id,'REQ_FY',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.FY);
    Add_Parameter(pl_id,'REQ_SEQ',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.SEQ);
    Add_Parameter(pl_id,'REQ_VER_NO',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.VERSION_NO );
    Add_Parameter(pl_id,'REQ_HDR',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS );
    par_strg := '&REQ_FY='||:OTC_TRANS_REQUISITIONS.FY||'&REQ_SEQ='||:OTC_TRANS_REQUISITIONS.SEQ||'&REQ_VER_NO='||:OTC_TRANS_REQUISITIONS.VERSION_NO||'&REQ_HDR='||:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS;
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id, pl_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    , I have hundreds of report (migrating 6i to 11g), parameter names r different in each , so that is also impossible.
    can any1 suggest me a good idea to do this ?

    Hi,
    I wrote a procedure to call the reports as
    PROCEDURE CALL_REPORT IS
    BEGIN
    DECLARE
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    END;
    I can use this for simple reports (that reports w/o parameters) as
    DECLARE
    rep_name VARCHAR2(15):= 'rep_hotels';
    BEGIN
    :global.rep_name := rep_name;
    CALL_REPORT;
    END;
    & This is working fine. But how to use this in parametarised reports.
    I tried lyk this, procedure as (I made the parametere list id as global)
    PROCEDURE CALL_REPORT IS
    BEGIN
    DECLARE
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id, :global.pl_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    END;
    & to call
    DECLARE
    pl_id ParamList;
    par_strg VARCHAR2(500);
    rep_name VARCHAR2(15):= 'rep_hotels';
    BEGIN
    pl_id := Get_Parameter_List('tmpdata');
    :global.rep_name := rep_name;
    :global.pl_id := pl_id;
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO' );
    Add_Parameter(pl_id,'REQ_FY',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.FY);
    Add_Parameter(pl_id,'REQ_SEQ',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.SEQ);
    Add_Parameter(pl_id,'REQ_VER_NO',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.VERSION_NO );
    Add_Parameter(pl_id,'REQ_HDR',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS );
    par_strg := '&REQ_FY='||:OTC_TRANS_REQUISITIONS.FY||'&REQ_SEQ='||:OTC_TRANS_REQUISITIONS.SEQ||'&REQ_VER_NO='||:OTC_TRANS_REQUISITIONS.VERSION_NO||'&REQ_HDR='||:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS;
    CALL_REPORT;
    END;
    But this make compilation error for
    :global.pl_id := pl_id;
    as "expression is of wrong type"
    I dont think we can make parameters as global, with out that i have to write evry thing in one as
    DECLARE
    pl_id ParamList;
    par_strg VARCHAR2(500);
    rep_name VARCHAR2(15):= 'rep_hotels';
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    :global.rep_name := rep_name;
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO' );
    Add_Parameter(pl_id,'REQ_FY',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.FY);
    Add_Parameter(pl_id,'REQ_SEQ',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.SEQ);
    Add_Parameter(pl_id,'REQ_VER_NO',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.VERSION_NO );
    Add_Parameter(pl_id,'REQ_HDR',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS );
    par_strg := '&REQ_FY='||:OTC_TRANS_REQUISITIONS.FY||'&REQ_SEQ='||:OTC_TRANS_REQUISITIONS.SEQ||'&REQ_VER_NO='||:OTC_TRANS_REQUISITIONS.VERSION_NO||'&REQ_HDR='||:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS;
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id, pl_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    , I have hundreds of report (migrating 6i to 11g), parameter names r different in each , so that is also impossible.
    can any1 suggest me a good idea to do this ?

  • Returning to the parameter form in a report after closing the report page

    hi all,
    tell me a way to get the following solution
    how can we return back to the parameter form of a "parameterised
    report" after closing to the report window.
    i ve tried a little bit with "srw_run_report"
    reply me as quick as possible
    prabhakaran

    Try using menu options
    Tools\Parameter Form Builder
    you can either select/deselect any parameter from the list

  • Why are no rows returned when I run a basic report?

    I have setup a parameterised report using the query:
    select p.id,p.first_name, p.surname, p.satsang_mandal, s.description, s.preference, p.phone, p.mobile
    from personal_details p, seva_prefences s
    where s.preference >= 2 and
    s.sid= :P_10
    and p.id=s.vid
    and p.satsang_mandal =:P_11
    order by s.preference DESC
    Unfortunately no rows are returned with the predicate p.satsang_mandal =:P_11 where :P_11 is a static LOV's. If I use a predicate:
    and p.satsang_mandal lik :P_11 || '%'
    then it works fine - anyone got any ideas?
    From sqlplus I can execute:
    select p.id,p.first_name, p.surname, p.satsang_mandal, s.description, s.preference, p.phone, p.mobile
    from personal_details p, seva_prefences s
    where s.preference >= 2 and
    s.sid= :P_10
    and p.id=s.vid
    and p.satsang_mandal ='TEST'
    order by s.preference DESC

    Hi,
    are you sure that you didn't make a typo with your :P_11 page item reference? Because APEX doesn't complain if a page item doesn't exist.
    That would also explain that if you add a '%' everything is found -> no restriction at all.
    When you run your page in debug mode, check which value is transfered/stored when the page is submitted. See the beginning of the debug output.
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • How to do outer join select query for an APEX report

    Hello everyone,
    I am Ann.
    I have one select statement that calculate the statistics for one month(October 2012 in this example)
    select ph.phase_number
    , sum ( (case
    WHEN ph.date_finished IS NULL OR ph.date_finished > last_day(TO_DATE('Oct 2012','MON YYYY'))
    THEN last_day(TO_DATE('Oct 2012','MON YYYY'))
    ELSE ph.date_finished
    END )
    - ph.date_started + 1) / count(def.def_id) as avg_days
    from phase_membership ph
    inner join court_engagement ce on ph.mpm_eng_id = ce.engagement_id
    inner join defendant def on ce.defendant_id = def.def_id
    where def.active = 1
    and ph.date_started <= last_day(TO_DATE('Oct 2012','MON YYYY'))
    and ph.active = 1
    and UPPER(ce.court_name) LIKE '%'
    group by rollup(phase_number)
    Result is as below
    Phase_Number     AVG_DAYS
    Phase One     8.6666666666666667
    Phase Two     14.6
    Phase Three     12
         11.4615365
    I have other select list mainly list the months between two date value.
    select to_char(which_month, 'MON YYYY') as display_month
    from (
    select add_months(to_date('Aug 2012','MON YYYY'), rownum-1) which_month
    from all_objects
    where
    rownum <= months_between(to_date('Oct 2012','MON YYYY'), add_months(to_date('Aug 2012','MON YYYY'), -1))
    order by which_month )
    Query result is as below
    DISPLAY_MONTH
    AUG 2012
    SEP 2012
    OCT 2012
    Is there any way that I can join these two select statement above to generate a result like:
    Month          Phase Number     Avg days
    Aug 2012     Phase One     8.666
    Sep 2012     Phase One     7.66
    Oct 2012     Phase One     5.66
    Aug 2012     Phase Two     8.666
    Sep 2012     Phase Two     7.66
    Oct 2012     Phase Two     5.66
    Aug 2012     Phase Three     8.666
    Sep 2012     Phase Three     7.66
    Oct 2012     Phase Three     5.66
    Or
    Month          Phase Number     Avg days
    Aug 2012     Phase One     8.666
    Aug 2012     Phase Two     7.66
    Aug 2012     Phase Three     5.66
    Sep 2012     Phase One     8.666
    Sep 2012     Phase Two     7.66
    Sep 2012     Phase Three     5.66
    Oct 2012     Phase One     8.666
    Oct 2012     Phase Two     7.66
    Oct 2012     Phase Three     5.66
    And it can be order by either Phase Number or Month.
    My other colleague suggest I should use an left outer join but after trying so many ways, I am still stuck.
    One of the select I tried is
    select a.display_month,b.* from (
    select to_char(which_month, 'MON YYYY') as display_month
    from (
    select add_months(to_date('Aug 2012','MON YYYY'), rownum-1) which_month
    from all_objects
    where
    rownum <= months_between(to_date('Oct 2012','MON YYYY'), add_months(to_date('Aug 2012','MON YYYY'), -1))
    order by which_month )) a left outer join
    ( select to_char(ph.date_finished,'MON YYYY') as join_month, ph.phase_number
    , sum ( (case
    WHEN ph.date_finished IS NULL OR ph.date_finished > last_day(TO_DATE(a.display_month,'MON YYYY'))
    THEN last_day(TO_DATE(a.display_month,'MON YYYY'))
    ELSE ph.date_finished
    END )
    - ph.date_started + 1) / count(def.def_id) as avg_days
    from phase_membership ph
    inner join court_engagement ce on ph.mpm_eng_id = ce.engagement_id
    inner join defendant def on ce.defendant_id = def.def_id
    where def.active = 1
    and ph.date_started <= last_day(TO_DATE(a.display_month,'MON YYYY'))
    and ph.active = 1
    and UPPER(ce.court_name) LIKE '%'
    group by to_char(ph.date_finished,'MON YYYY') , rollup(phase_number)) b
    on a.display_month = b.join_month
    but then I get an error
    SQL Error: ORA-00904: "A"."DISPLAY_MONTH": invalid identifier
    I need to display a report on APEX with option for people to download at least CSV format.
    I already have 1 inteactive report in the page, so don’t think can add another interactive report without using the iframe trick.
    If any of you have any ideas, please help.
    Thanks a lot.
    Ann

    First of all, a huge thanks for following this Frank.
    I have just started working here, I think the Oracle version is 11g, but not sure.
    To run Oracle APEX version 4, I think they must have at least 10g R2.
    This report is a bit challenging for me.I has never worked with PARTITION before.
    About the select query you suggested, I run , and it seems working fine, but if I try this,
    it return error ORA-01843: not a valid month
    DEFINE startmonth = "Aug 2012";
    DEFINE endmonth   = "Oct 2012";
    WITH     all_months     AS
         select add_months(to_date('&startmonth','MON YYYY'), rownum-1) AS which_month
         ,      add_months(to_date('&startmonth','MON YYYY'), rownum  ) AS next_month
         from all_objects
         where
         rownum <= months_between(to_date('&endmonth','MON YYYY'), add_months(to_date('&startmonth','MON YYYY'), -1))
    select TO_CHAR (am.which_month, 'Mon YYYY')     AS month
    ,      ph.phase_number
    , sum ( (case
    WHEN ph.date_finished IS NULL OR ph.date_finished > last_day(TO_DATE(am.which_month,'MON YYYY'))
    THEN last_day(TO_DATE(am.which_month,'MON YYYY'))
    ELSE ph.date_finished
    END )
    - ph.date_started + 1) / count(def.def_id) as avg_days
    FROM           all_months          am
    LEFT OUTER JOIN  phase_membership  ph  PARTITION BY (ph.phase_number)
                                        ON  am.which_month <= ph.date_started
                               AND am.next_month  >  ph.date_started
                               AND ph.date_started <= last_day(TO_DATE(am.which_month,'MON YYYY'))  -- May not be needed
                               AND ph.active = 1
    LEFT OUTER join  court_engagement  ce  on  ph.mpm_eng_id = ce.engagement_id
                                        and ce.court_name IS NOT NULL  -- or something involving LIKE
    LEFT OUTER join  defendant         def on  ce.defendant_id = def.def_id
                                        AND def.active = 1
    group by rollup(phase_number, am.which_month)
    ORDER BY  am.which_month
    ,            ph.phase_number
    ;Here is the shorted versions of the three tables:
    A_DEFENDANT, A_ENGAGEMENT, A_PHASE_MEMBERSHIP
    CREATE TABLE "A_DEFENDANT"
        "DEF_ID"     NUMBER NOT NULL ENABLE,
        "FIRST_NAME" VARCHAR2(50 BYTE),
        "SURNAME"    VARCHAR2(20 BYTE) NOT NULL ENABLE,
        "DOB" DATE NOT NULL ENABLE,
        "ACTIVE" NUMBER(2,0) DEFAULT 1 NOT NULL ENABLE,
        CONSTRAINT "A_DEFENDANT_PK" PRIMARY KEY ("DEF_ID"))
    Sample Data
    Insert into A_DEFENDANT (DEF_ID,FIRST_NAME,SURNAME,DOB,ACTIVE) values (101,'Joe','Bloggs',to_date('12/12/99','DD/MM/RR'),1);
    Insert into A_DEFENDANT (DEF_ID,FIRST_NAME,SURNAME,DOB,ACTIVE) values (102,'John','Smith',to_date('20/05/00','DD/MM/RR'),1);
    Insert into A_DEFENDANT (DEF_ID,FIRST_NAME,SURNAME,DOB,ACTIVE) values (103,'Jane','Black',to_date('15/02/98','DD/MM/RR'),1);
    Insert into A_DEFENDANT (DEF_ID,FIRST_NAME,SURNAME,DOB,ACTIVE) values (104,'Minnie','Mouse',to_date('13/12/88','DD/MM/RR'),0);
    Insert into A_DEFENDANT (DEF_ID,FIRST_NAME,SURNAME,DOB,ACTIVE) values (105,'Daisy','Duck',to_date('05/08/00','DD/MM/RR'),1);
    CREATE TABLE "A_ENGAGEMENT"
        "ENGAGEMENT_ID" NUMBER NOT NULL ENABLE,
        "COURT_NAME"    VARCHAR2(50 BYTE) NOT NULL ENABLE,
        "DATE_REFERRED" DATE,
        "DETERMINATION_HEARING_DATE" DATE,
        "DATE_JOINED_COURT" DATE,
        "DATE_TREATMENT_STARTED" DATE,
        "DATE_TERMINATED" DATE,
        "TERMINATION_TYPE" VARCHAR2(50 BYTE),
        "ACTIVE"           NUMBER(2,0) DEFAULT 1 NOT NULL ENABLE,
        "DEFENDANT_ID"     NUMBER,
        CONSTRAINT "A_ENGAGEMENT_PK" PRIMARY KEY ("ENGAGEMENT_ID"))
    Insert into A_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TREATMENT_STARTED,DATE_TERMINATED,TERMINATION_TYPE,ACTIVE,DEFENDANT_ID) values (1,'AA',to_date('12/08/12','DD/MM/RR'),null,to_date('12/08/12','DD/MM/RR'),null,null,null,1,101);
    Insert into A_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TREATMENT_STARTED,DATE_TERMINATED,TERMINATION_TYPE,ACTIVE,DEFENDANT_ID) values (2,'BB',to_date('01/09/12','DD/MM/RR'),null,to_date('02/09/12','DD/MM/RR'),null,null,null,1,102);
    Insert into A_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TREATMENT_STARTED,DATE_TERMINATED,TERMINATION_TYPE,ACTIVE,DEFENDANT_ID) values (3,'AA',to_date('02/09/12','DD/MM/RR'),null,to_date('15/09/12','DD/MM/RR'),null,null,null,1,103);
    Insert into A_ENGAGEMENT (ENGAGEMENT_ID,COURT_NAME,DATE_REFERRED,DETERMINATION_HEARING_DATE,DATE_JOINED_COURT,DATE_TREATMENT_STARTED,DATE_TERMINATED,TERMINATION_TYPE,ACTIVE,DEFENDANT_ID) values (4,'BB',to_date('01/10/12','DD/MM/RR'),null,to_date('02/10/12','DD/MM/RR'),null,null,null,1,105);
    CREATE TABLE "A_PHASE_MEMBERSHIP"
        "MPM_ID"       NUMBER NOT NULL ENABLE,
        "MPM_ENG_ID"   NUMBER NOT NULL ENABLE,
        "PHASE_NUMBER" VARCHAR2(50 BYTE),
        "DATE_STARTED" DATE NOT NULL ENABLE,
        "DATE_FINISHED" DATE,
        "NOTES"  VARCHAR2(2000 BYTE),
        "ACTIVE" NUMBER(2,0) DEFAULT 1 NOT NULL ENABLE,
        CONSTRAINT "A_PHASE_MEMBERSHIP_PK" PRIMARY KEY ("MPM_ID"))
    Insert into A_PHASE_MEMBERSHIP (MPM_ID,MPM_ENG_ID,PHASE_NUMBER,DATE_STARTED,DATE_FINISHED,NOTES,ACTIVE) values (1,1,'PHASE ONE',to_date('15/09/12','DD/MM/RR'),to_date('20/09/12','DD/MM/RR'),null,1);
    Insert into A_PHASE_MEMBERSHIP (MPM_ID,MPM_ENG_ID,PHASE_NUMBER,DATE_STARTED,DATE_FINISHED,NOTES,ACTIVE) values (2,1,'PHASE TWO',to_date('21/09/12','DD/MM/RR'),to_date('29/09/12','DD/MM/RR'),null,1);
    Insert into A_PHASE_MEMBERSHIP (MPM_ID,MPM_ENG_ID,PHASE_NUMBER,DATE_STARTED,DATE_FINISHED,NOTES,ACTIVE) values (3,2,'PHASE ONE',to_date('12/09/12','DD/MM/RR'),null,null,1);
    Insert into A_PHASE_MEMBERSHIP (MPM_ID,MPM_ENG_ID,PHASE_NUMBER,DATE_STARTED,DATE_FINISHED,NOTES,ACTIVE) values (4,3,'PHASE ONE',to_date('20/09/12','DD/MM/RR'),to_date('01/10/12','DD/MM/RR'),null,1);
    Insert into A_PHASE_MEMBERSHIP (MPM_ID,MPM_ENG_ID,PHASE_NUMBER,DATE_STARTED,DATE_FINISHED,NOTES,ACTIVE) values (5,3,'PHASE TWO',to_date('02/10/12','DD/MM/RR'),to_date('15/10/12','DD/MM/RR'),null,1);
    Insert into A_PHASE_MEMBERSHIP (MPM_ID,MPM_ENG_ID,PHASE_NUMBER,DATE_STARTED,DATE_FINISHED,NOTES,ACTIVE) values (6,4,'PHASE ONE',to_date('03/10/12','DD/MM/RR'),to_date('10/10/12','DD/MM/RR'),null,1);
    Insert into A_PHASE_MEMBERSHIP (MPM_ID,MPM_ENG_ID,PHASE_NUMBER,DATE_STARTED,DATE_FINISHED,NOTES,ACTIVE) values (7,3,'PHASE THREE',to_date('17/10/12','DD/MM/RR'),null,null,0);
    Insert into A_PHASE_MEMBERSHIP (MPM_ID,MPM_ENG_ID,PHASE_NUMBER,DATE_STARTED,DATE_FINISHED,NOTES,ACTIVE) values (8,1,'PHASE THREE',to_date('30/09/12','DD/MM/RR'),to_date('16/10/12','DD/MM/RR'),null,1);
    The requirements are:
    The user must be able to request the extract for one or more calendar months, e.g.
    May 2013
    May 2013 – Sep 2013.
    The file must contain a separate row for each calendar month in the requested range. Each row must contain the statistics computed for that calendar month.
    The file must also include a row of totals.
    The user must be able to request the extract for either Waitakere or Auckland or Consolidated (both courts’ statistics accumulated).
    Then the part that I am stuck is
    For each monitoring phase:
    Phase name (e.g. “Phase One”)
    Avg_time_in_phase_all_particip
    for each phase name,
    Add up days in each “phase name” Monitoring Phase, calculated as:
    If Monitoring Phase.Date Finished is NULL or > month end date,
    +(*Month end date* Minus Monitoring Phase.Date Started Plus 1)+
    Otherwise (phase is complete)
    +(Monitoring Phase.Date Finished Minus Monitoring Phase.Date Started Plus 1.)+
    Divide by the numbers of all participants who have engaged in “phase name”.
    This is the words of the Business Analyst,
    I try to do as required but still struggle to identify end_month for the above formula to display for the range of months.
    Of course, I can write two nested cursor. The first one run the list of month, then for each month, run the parameterised report.
    But I prefer if possible just use SQL statements, or at least a PL/SQL but return a query.
    With this way, I can create an APEX report, and use their CSV Extract function.
    Yes, you are right, court_name is one of the selection parameters.
    And the statistics is not exactly for one month. It is kind of trying to identify all phases that are running through the specified month (even phase.date_started is before the month start).
    This is the reason why I put the condition AND ph.date_started <= last_day(TO_DATE('Oct 2012','MON YYYY')) (otherwise I get negative avg_days)
    User can choose either one court "AA" or "BB" or combined which is all figures.
    Sorry for bombarding you a lot of information.
    Thanks a lot, again.
    Edited by: Ann586341 on Oct 29, 2012 9:57 PM
    Edited by: Ann586341 on Oct 29, 2012 9:59 PM

  • QMF used for Oracle report

    QMF is tool for DB2 database reports , Can we use this for oracle db reprots? If yes how we can connect QMF with oracle db for reprot generation?

    Hi All,
    I found Solution for my question
    1) Why is there a limit? Why specifically 2 GB?
    The 32-bit file handling API used in Reports uses a signed long integer for
    addressing into any Operating System file. A signed long integer cannot hold
    a value bigger than +2 GB (hex 7FFF,FFFF or decimal 2,147,483,647).
    2) Why can Oracle not use 64 bit API calls to fix this, e.g. _lseeki64 on
    MS Windows 2000?
    _lseeki64 is not available on 32bit Unix Operating Systems, and is therefore
    not used. In any case the internals of Reports is built around a signed long
    integer as explained already. To make such a change even if _lseeki64 was
    available on all 32bit platforms would introduce too big a risk on the
    stability of the product.
    3) Why can Oracle not just use multiple files of 2gb or smaller, as opposed
    to 1 file bigger than 2 GB, for temporary storage?
    Oracle has investigated this in the past, and found a negative performance
    impact. It is not a trivial change to make, and to maintain performance and
    product stability at the same time would indicate a much bigger re-engineering
    effort.
    4) How does one work around this issue?
    Produce several smaller reports as opposed to one monolithic one. This is
    generally done by breaking up the run based on parameters. It is a sound
    idea to do this in any case, as any failure would mean that the whole
    report needs to be rerun. When this happens, it is less of a headache to
    rerun a smaller parameterised report.
    5) What future plans are there to address this?
    Note that our development group has indicated that this is not something
    that they hear much about. It would seem that most users follow the
    methodology as discussed above.
    Thanks,
    Bhanu Chander

  • SQL Call - Static Method

    Hello All:
    I am trying to run a sample code from the Oracle8i doc 'Hello
    World'. The program compiled and used 'loadjava' to load to the
    database.
    When I tried to create SQL Call Function from SQL*Plus, I am
    getting the error:
    PLS-00103: Encountered the symbol "MYSTRING"
    This is the sample code trying to run from SQL*Plus:
    create or replace function HELLOWORLD return VARCHAR2 as
    language java name 'Hello.world() return java.lang.String';
    myString varchar2;
    call HELLOWORLD() into :myString;
    print myString;
    Any help is appreciated.
    Thanks,
    Krishna.
    null

    Technically, you cannot call a method in the background mode, however you can call its content in the background, just transfer the content of the method to a parameterised report-type program and use SUBMIT VIA JOB statement.
    class=>run_in_background( parameters ... ).
    METHOD run_in_background.
      SUBMIT zrun_in_background ... VIA JOB...
    ENDMETHOD.

  • Highlighting searched text

    Hi,
    I have a little parameterised report, with a search region and and reports region below.
    So the user would lets say enter in a surname and press the Go button. Then in the report all of the records returned containing the search text are say coloured Red.
    Let's say I search on the the string 'Ander' and press Go, in the results in the report I would see and the surname begining wiht 'Ander' and that text highlighted or in a different colour. Just to show the user what they have searched on.
    I really hope I have made some sense.
    Many thanks in advance.
    Niels

    Hi Niels,
    To alter the way the returned text looks to the user, you would have to alter the text.
    You could try
    replace(string_searched, string_searched_for, '<font class="my_highlight_class">'||string_searched_for||'</font>')Regards
    Michael
    Edited by: MKii on Jul 14, 2009 1:00 PM

  • Code for opening qld

    I have designed a parameterised report using QLD.I want a code on the click event of button to open the report in sap b one.

    Hi,
    make yourself a procedure like
    Private Sub Preview(sPreviewDocument As String)
    appl.ActivateMenuItem "4868"
    Set frm = appl.Forms.GetFormByTypeAndCount(4666, 0)
    Set oMatrix = frm.Items("5").Specific
    Set oColumn = oMatrix.Columns(1)
    For i = 1 To oColumn.Cells.Count
       If oColumn.Cells(i).Specific.String = sPreviewDocument Then
                    oColumn.Cells(i).Click
                    appl.ActivateMenuItem "519"
       End If
    Next i
    frm.Close
    regards

  • Interactive Parameters

    I have a oracle database and need to authenticate to it when I run reports. I want my project managers to use crystal viewer. I need for them to be able to pick from the parameter values and refresh the report. after a little research I found that I need to use interactive parameters. Does any one have any information on how to do this?

    Hi John,
    1. What version of Crystal Reports and Crystal Reports Viewer are you using?
    If you are using Infoview to view the reports, then you can use the parameters created in teh reports. But in the Crystal Reports Viewer you can't use the parameterised reports, as the CR Viewer is used to view static report and reports without saved data that require data to format will not load in the viewer.
    Types of reports that will not load in the viewer
    When you try to open one of the following types of reports, you will receive
    an error message:
    u2022 Reports without saved data that require data to format.
    u2022 Reports that use Business Views as a data source.
    u2022 Reports that use universes as a data source.
    u2022 Reports that use Crystal Dictionaries as a data source.
    u2022 Reports that use Crystal Queries as a data source.
    u2022 Reports that depend on UFLs.
    u2022 Reports that are successfully using "Perform Grouping on Server". (That
    is, the generated report SQL contains a "group by" clause.)
    u2022 Reports that have cross-tab objects in which a formula is used to produce
    print-time side effects (such as a manual running total).
    I hope this resolves your issue.
    Regards,
    Abhijeet T.

  • Parameterised Query in Crystal report

    I have Created a Parameter List Box having the following values Channel Name, Channel City, Channel State in the Crystal reports Designer.
    I want to create a parameterised query in such a way that whenever user select any value from the Above list the query column name should be taken automatically.
    For eg if I select Channel Name from the list the Query should read as Select "Channel Name" from... and if i select Channel City the query should be transformed to Select "Channel City" from... Can this query be generated on the fly using parameters in the select statement
    For E.g. Select ?ChannelColVaiable from .....
    ?ChannelColVaiable should be populated with the value I select from the Parameter list box I select above.
    Is this possible is crystal reports designer???
    Any Solution is welcome.
    Thanks in Advance.
    Suresh Vishwanathan

    Hi Suresh,
    Check this link
    Re: parameter in crystal report
    Regards
    Jambulingam.P

  • NEED HELP FOR INTERACTIVE REPORT..PARAMETERISED

    I have a report which output is displayed after a field is selected from select list..
    The output of query is empty ..
    This is the query .... it doesnt work when i try to put the value of variable in other page...and call it from the query like below..
    select apex_item.checkbox(1,ai.ino,'CHECKED') " ",ai.advtno,findisname(ai.adissue) issue_name,a.cfname fname,a.csname sname,a.tot_amt tot_amt,ai.inv_no
    from advertiser a,advertiser_client ac,adv_invoice ai
    where a.clientnumber = ac.adv_clnt_no and a.advtno = ai.advtno
    and findisname(ai.adissue) = LTRIM(RTRIM(:P298_ISSUES))
    :p298_issues = 'JUL2012' ; -- This exist in other page...
    :p298_issues i TRIED Making it a item with source as database coloumn or even preference item..
    The same query works if i  put the  query as..
    select apex_item.checkbox(1,ai.ino,'CHECKED') " ",ai.advtno,findisname(ai.adissue) issue_name,a.cfname fname,a.csname sname,a.tot_amt tot_amt,ai.inv_no
    from advertiser a,advertiser_client ac,adv_invoice ai
    where a.clientnumber = ac.adv_clnt_no and a.advtno = ai.advtno
    and findisname(ai.adissue) = 'JUL2012' ;
    Why is it not able to find value of text item :p298_issues ...This i have made it as text item currently ..
    actually it is a select list in other page..
    and the database source i have set it to ..database column while ithere is no such column present..i need this to be a parameter
    do i need to use preferences for this ?? Kindly inform and help...
    Edited by: pauljohny on 23-May-2012 23:43

    ..Hello First post was about what i was trying to accomplish..
    Some thing in line of global variables..
    I needed the value of apex item to be accessed in other page.. it was select list..
    There were two ways to accomplish it..One using apex collection or second
    using new change item dynamic action and submitting the item..
    Using these methods i was able to access the .page item in other page.
    Second post i had, was about how I had solved the issue..
    I hat forgotten earlier to close the post.
    Edited by: pauljohny on 28-May-2012 17:55

  • What's the best way to run 1200 parameterised instances of one report?

    Hi,
    We have the requirement to run 1 report for 1200 different parameter inputs every month. The report is written as a Deski report based on one universe.
    Basically we have a list of deal codes, and we need to produce a report based on each deal code, Iteratively. This report is then to be sent to a separate folder. Two questions spring to mind:
    1) Is it feasible to hard code these parameters and schedule each instance separately?
    2) What other options are there?
    3) Are we able to schedule the report once, and have it iterate through a list of values?
    Thanks for all your assistance.
    Kind regards,
    Rory.

    Hi Stratos,
    We're using BO Enterprise XI R2.
    I'll have a closer look into publications then, and see if that can help.
    Any other options you can think of would be great.
    Thanks and regards,
    Rory

  • Reporting and exporting to Excel in SharePoint Online

    Hi
    I've developed a SharePoint site to replace a legacy Access database that dealt with consumer complaints and queries. In the Access database I'd developed a feature that allowed users to filter the complaints by a number of criteria and export them to Excel
    and I'm trying to do the same in SharePoint.
    If it were on-premises SharePoint I'd just create a parameterised SSRS report which would solve all my problems. However being SharePoint online, this is not an option. I'd like the users to be able to select complaints from any date range, for any category
    of complaint and for any product supplier (plus a few other criteria). The idea is that they want to be able to then send the filtered data to individual suppliers. Doing this out of the box with views throws up several problems. The main one is that any export
    to Excel of a view exports the entire set of data, meaning that users themselves would need to create a new view for every export they wished to perform, which is not practical.
    My question is: what is the best way in SharePoint online to export a filtered subset of a list to Excel?
    I can use SharePoint designer, but not C# in order to achieve the goal. We also have SharePoint Online Plan 2 if that makes it easier.
    Thanks in advance,
    Duncan

    Hi Duncan,
    Well its easy to Reporting and exporting to Excel in SharePoint Online,
    See the Youtube link below and other links for more descriptions.
    Office 365: Synchronize Excel with SharePoint Online
    Reporting and exporting to Excel in SharePoint Online
    Thanks
    Indul Hassan (www.indulhassan.com)

Maybe you are looking for

  • Updated to 2.0, now my purchased music won't play

    I can't seem to do a search since the search function for some reason has gone from the forums. I'd like to know if anyone has been able to get their purchased music to play. It will play fine on the computer but not on the iPod Touch. Information is

  • Problems with the ADF runtime installer 10.1.3.3 on OAS 10.1.3

    hi, all, I have successfully installed an oracle application server on a linux machine and in order for ADF BC application to run on it i have to install the adf runtime libraries. What i did is the following: -I shut down the opmn of the server -I i

  • Won't load to desktop

    Problem: Old power mac G4 won't boot to the desktop. By default it loads OS X. When it loads the apple and the spinning thing under the apple load. Then OS X begins to load with the status bar and message. Right after the message "waiting for network

  • Method is called in the superclass, instead of the derived class

    Hello, I have created a FI workflow for releasing invoices, and a BO called ZSF1FIPP that is derived from FIPP. in ZSF1FIPP I had defined all the methods needed for the workflow, like GET LEVEL. In all the workflow tasks, the object assigned is ZSF1F

  • Best way to move Onenote files from offline file location.

    We have a majority of our users now on Win 7 using Office 2010. We have redirected folders with offline files syncing Included in this location is the OneNote files. After starting to investigate Win 8.1 Update 1 and office 2013. We noticed the messa