Query Report Using Shuttle List

Greetings
I am using Apex Version 4.2
At first, I had created an item P31_JOB_CATEGORY that was a radio button. Upon selecting a value for the radio button, a report was generated. The query is as follows
select a, b, c
from Table A
where A.Job_Category = :P31_JOB_CATEGORYThis gave me the desired report. Now I want to change the radio button to a shuttle list so multiple values can be selected for the job category and generate a the report accordingly. Instead of one value, I can have 2, 3, or all. How would I alter my query to change this? would I have to use an array. I was thinking some type of "Where....In.." clause.
Thanks in advance!

Hi,
This might help
http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/bldapp_item.htm#sthref912
Regards,
Jari
My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai

Similar Messages

  • Report using Shuttle List

    Greetings
    I am using Apex Version 4.2
    At first, I had created an item P31_JOB_CATEGORY that was a radio button. Upon selecting a value for the radio button, a report was generated. The query is as follows
    select a, b, c
    from Table A
    where A.Job_Category = :P31_JOB_CATEGORYThis gave me the desired report. Now I want to change the radio button to a shuttle list so multiple values can be selected for the job category and generate a the report accordingly. Instead of one value, I can have 2, 3, or all. How would I alter my query to change this? would I have to use an array. I was thinking some type of "Where....In.." clause.
    Thanks in advance!

    Hi,
    Do not create duplicate posts
    Query Report Using Shuttle List
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • How create animated power view reports using sharepoint list as a data source in sharepoint 2010?

    Hi All,
    I got a client requirement to create reports using SharePoint List as data source. The report should show reflection depends on values changed (I mean animation).
    I have heard about the power view/power pivot which does this kind of animations in reports.
    Can someone please guide me on creating reports which shows animations
    In power view/power pivot using SharePoint List as data source in SharePoint 2010.
    Thanks in advance.
    MercuryMan

    Hi MercuryMan,
    Yes, Power View, a feature of SQL Server 2012 Reporting Services Add-in for Microsoft SharePoint Server 2010 or SharePoint 2013 Enterprise Edition, is an interactive data exploration, visualization, and presentation experience.
    It provides multiple views featuring tiles, slicers, a chart filter, and a number of visualizations, including cards, small multiples, and a bubble chart. So, we can use Power View to do intuitive ad-hoc reporting for business users such as data analysts, business
    decision makers, and information workers.
    Currently, Power View report only supports two types of data models: PowerPivot Worksheet, and data models based on Analysis Services Tabular Model or Multidimensional Cube.
    In your scenario, you can create PowerPivot worksheets using SharePoint List as data source, deploy the PowerPivot worksheet to a SharePoint Library or PowerPivot Gallery, and then generate Power View reports based on the PowerPivot worksheets on the SharePoint
    site.
    To use SharePoint List as data source in Excel PowerPivot, you can refer to the following resource:
    http://blogs.technet.com/b/excel_services__powerpivot_for_sharepoint_support_blog/archive/2013/07/11/excel-services-using-a-sharepoint-list-as-a-data-source.aspx 
    http://technet.microsoft.com/en-us/library/hh230322.aspx 
    To create a Power View report based on PowerPivot model, you can refer to the following links:
    http://technet.microsoft.com/en-us/library/hh231522.aspx 
    http://technet.microsoft.com/en-us/library/hh759325.aspx 
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Query report using LDB MSM

    Hi guys,
    I'm trying to logical database MSM to report on material master but for some reason the following message appears:
    The query specifications cannot be used to generate a list,
    i.e. the query will probably not return the list you desire.
    If you still want to execute the query, please use the
    "Generate" function.
    Errors are like this :
    Fields from parallel tables within a line
        Line: 01
      Field: Post to Inspection Stock
            (MARCV-INSMK, table MARCV)
      Field: Item category group from material master
            (MVKE-MTPOS, table MVKE)
    Any idea what is the reason why this happens?
    Thanks and regards
    Stefan
    Edited by: Stefan Tzandev on Sep 15, 2008 1:44 PM

    Hey Stefan,
    I know this is a long shot, but were you able to figure it out. I am having the same problem as we speak. I tried rearanging the fields according to the heirchy, it now works, but has a really bad output. Hope to hear from you.
    Best Regards,
    Matthew Ong

  • Display PDF file in the Apex query report using HTML Expression

    Hi Folks,
    I have PDFs stored in BLOB columns along with FILE_ID column in the database.
    I want to display these to the APEX user on the page at runtime.
    I have created a SQL Query report page to display FILE_ID column.
    I am using HTML Expression property of the FILE_ID column to pull the image from the table using PROC_DISPLAY_DOCUMENT procedure.
    I typed folowing code int the HTML Expression text area of the FILE_ID column of the report page :
    <img src="#OWNER#.proc_display_document?p_id=#file_id#"/>
    I am using following Procedure code:
    create or replace procedure "PROC_DISPLAY_DOCUMENT"(p_id number) as
    s_mime_type varchar2(48);
    n_length number;
    s_filename varchar2(400);
    lob_image blob;
    Begin
    select MIME_TYPE,dbms_lob.getlength(blob_content),file_name,blob_content
    into s_mime_type,n_length,s_filename,lob_image
    from tbl_upload_file
    where file_id = p_id;
    owa_util.mime_header(nvl(s_mime_type, 'application/octet' ),false);
    --set the size so the browser knows how much it will be downloading
    htp.p( 'content-length: '|| n_length );
    --The file name will be used by the browser if the users does a "save as" 
    htp.p( 'content-Disposition: filename="' || s_filename ||'"');
    owa_util.http_header_close;
    --Download the BLOB
    wpg_docload.download_file( lob_image );
    exception
    WHEN NO_DATA_FOUND THEN
    RAISE_APPLICATION_ERROR(-202121,'Record matching screenfield filename not found, PROC_DISPLAY_DOCUMENT.');      
    end;
    --This is very Important
    --grant execute on PROC_DISPLAY_DOCUMENT to public;
    This code does not work and report does not display PDF image.
    Any help to troubleshoot this code will be appreciated.
    Thank you in advance.
    Jaya

    Hi Dimitri,
    I hope you can see HTML Expression code now. Thank You for responding.
    I have PDFs stored in BLOB columns along with FILE_ID column in the database.
    I want to display these to the APEX user on the page at runtime.
    I have created a SQL Query report page to display FILE_ID column.
    I am using HTML Expression property of the FILE_ID column to pull the image from the table using PROC_DISPLAY_DOCUMENT procedure.
    I typed folowing code int the HTML Expression text area of the FILE_ID column of the report page :
    [!--  img src="#OWNER#.proc_display_document?p_id=#file_id#" ]
    I am using following Procedure code:
    create or replace procedure "PROC_DISPLAY_DOCUMENT"(p_id number) **
    mimetype varchar2(48);
    n_length number;
    s_filename varchar2(400);
    lob_image blob;
    Begin
    select MIME_TYPE,dbms_lob.getlength(blob_content),file_name,blob_content
    into s_mime_type,n_length,s_filename,lob_image
    from tbl_upload_file
    where file_id = p_id;
    owa_util.mime_header(nvl(s_mime_type, 'application/octet' ),false);
    --set the size so the browser knows how much it will be downloading
    htp.p( 'content-length: '|| n_length );
    --The file name will be used by the browser if the users does a "save as"
    htp.p( 'content-Disposition: filename="' || s_filename ||'"');
    owa_util.http_header_close;
    --Download the BLOB
    wpg_docload.download_file( lob_image );
    exception
    WHEN NO_DATA_FOUND THEN
    RAISE_APPLICATION_ERROR(-202121,'Record matching screenfield filename not found, PROC_DISPLAY_DOCUMENT.');
    end;
    --This is very Important
    --grant execute on PROC_DISPLAY_DOCUMENT to public;
    This code does not work and report does not display PDF image.
    Any help to troubleshoot this code will be appreciated.
    Thank you in advance.
    Jaya

  • Build Report using sharePoint list datasource for EPM projects.

    Hi all,
    I am using Project Server 2010. 
    When project is created using EPT then for that project a site will be created and each site has sharePoint Lists. 
    I want to build SSRS report that uses this sharepoint list as datasource. 
    My connection string to the site URL must be dynamic as each project site URL will be different. 
    Your help will be appreciated!!!
    Thanks,
    Rohit

    Hello,
    Look to use an expression and pass in the Project Site URL, see the example below:
    SharePoint Web Services (XML) version but gives you the idea for using an expression:
    http://nearbaseline.com.au/blog/2010/02/reporting-workspace-lists-directly-from-sharepoint/
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS |
    MVP | Downloads

  • Multiple (mail) destinations for one report using distribution list

    I would like to email a report to multiple destinations using a distribution list.
    Environment:
    Oracle reports: 10.1.2.3
    OS: Windows 7
    Database:Oracle 11g(11.2.0.2)
    This is the content of the distribution file:
    <destinations>
      <foreach>
        <mail id="a1" from="[email protected]" to="&amp;&lt;mail_to&gt;" subject="Invoice">
          <body srcType="text" format="ascii">Invoice attached
          </body>
          <attach srcType="report" name="invoice.pdf" format="pdf" instance="this">
             <include src="report"/>
          </attach>
        </mail>
        <mail id="a2" from="[email protected]" to="[email protected]" subject="Invoice sent to &amp;&lt;mail_to&gt; ">
          <body srcType="text" format="ascii">Attached invoice was sent to the customer
          </body>
          <attach srcType="report" name="invoice.pdf" format="pdf" instance="this">
             <include src="report"/>
          </attach>
        </mail>
      </foreach>
    </destinations>
    When I run this using the following URL:
    http://testserver.our_servers.local:7778/reports/rwservlet?server=rep_dev&report=VKR0030.rdf&userid=myuser/test123@ORCL&distribute=yes&destination=VKR0030.xml&onfailure=rollback&onsuccess=commit
    I get the following error: REP-34304: Distribution failed to complete, please review the distribution lists
    When I remove one mail element, it works fine.
    One mail tag with multiple email addresses in the "to" parameter isn't possible because I have to use 2 different mail templates(subject and body differ).
    According to the documentation(https://docs.oracle.com/html/B14048_02/pbr_dist.htm#i1005830), it should be possible to use multiple mail elements.
    Required/Optional
    Optional. You can have as many mail elements as you require.
    What am I doing wrong?

    Found the solution.
    When putting each mail element in a foreach, it works.

  • Execute Query by using LOV (List Item)

    Hello Everyone,
    I did research on how to use List Item with Query but i am still confused since i am a new to the FORM.
    I have created a form where user enters
    Start Date: -- this field user can just type the date
    End Date: -- this field user can just type the date
    Violence: -- this is my List Item (Drop down Menu) where user select the code
    once they select the parameter i have created "Execute" button and it will give number of violence within the date range. the query is giving me right number or violence but then i need to drill down to details.
    so i created a trigger when user double click on the number ( result number) it will pop up another window and display the details
    For example:f_name, l_name, ssn etc...
    Now, my problem is when i double click on (Text Item) it. Its not giving me the number of records that i have get when i execute at the first by using date range and violance code.
    This is the step that i have use:
    when user click Execute button the PL/SQL code:
    Query_step1(:start_date,:end_date,:violations);
    when user double click on Text Item once they have the number this is what i have used code for PL/SQL
    begin
         go_block('xxhc_hearings_rpt_v');
         set_block_property('xxhc_hearings_rpt_v',default_where,'hearing_result = '||'''TERMINATE'''||'and violation '||''||:violations||''||'and propose_term_dt between '||''''||:start_date||''''||' and '||''''||:end_date||'''');
         execute_query;
    end;
    So please anyone can give me little direction that will be a great help.
    Thank You.
    Keyun

    Use the system variable LAST_QUERY to check that you SQL is valid. Assign it to a temp field in the block and check it out.

  • Column Headings on PL/SQL returning SQL Query report- using br

    Hi,
    I would like to create a report region based upon a function returning a SQL query. As a dem oI have created the following:
    create or replace function xxjk_retsql return varchar2
    as
    begin
    return 'select i "column header" from wwv_flow_dual100';
    end;I want to be able to insert a line break in the column header so it wraps over two lines. I tried this:
    create or replace function xxjk_retsql return varchar2
    as
    begin
    return 'select i "column<br>header" from wwv_flow_dual100';
    end;however when the region is rendered, it appears to strip out the HTML tag. I also tried another tag, <i></i>, as a test and this is stripped out also.
    Is there a way to include a break in a column header in this manner?
    Thank-you,

    There is an option Strip HTML and it is turned on by default. Try changing that to see what happes.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • SAP query report - using conditions

    Hi
    I have a created a query joing 3 tables EKKO,EKBE and custom table with purchase order, article and qty fields.
    I want to create a discrepancy report :
    1. Display records where EKBE qty (GI qty) and qty (GR qty) in custom table are not equal.
    2. Custom table may have some dummy PO numbers( not existing in EKKO). How to pull them in the report?
        Since PO numbers are key fields in all tables and joined, any PO number which exists in custom atble but does not exists in  
        ekko table doesn't appear in the  report.
    Any input will be highly appreciated.
    Thanks
    Sanjay

    Hi,
    Generally the tables for PO are EKKO & EKPO. For the custamized table are referencing PO? If no please give PO reference, ultimately will get upsated in EKKO. Another solution is tim creation stamp field will be there in custamized table. The record creation will be noted here. Pick from this field. Thanking you.

  • How to design SSRS report using SharePoint 2010 List Version History

    Hello,
    I am using  Sharepoint 2010 list, i need to design SSRS report using Sharepoint List Version History. Could please let me know how to design.
    Thank you.
    Kind Regards

    You could do that with SQL Server Reporting Services, Please follow the instructions from the link below:
    http://www.mssqltips.com/sqlservertip/2068/using-a-sharepoint-list-as-a-data-source-in-sql-server-reporting-services-2008-r2/
    Hope that would work fro you.
    Please Mark as Answer, if the post works for you.
    Cheers,
    Amar Deep Singh

  • Sap query report-selection screen modification

    Hi
    I  have created a SAP query report using the logical database KDF ,the selection screen was created automatically.For vendor report open item and Cleared item Push button would be there in FBL1N but here it only displays Open key date,clearing dates.The open key date is mandatory to give though i give clearing dates as i need vendor cleared items.
    Is ther way to change the selection screen to get the option open item and cleared item push button as in FBL1N.
    This is because i was filtering a vendor only for particular doc type only for clearing items but report takes open item too though i meantioned clearing date rate.How to modify the selection screen in sap query report when Logicaldatabase is selcted.

    I need to get only the cleared items.I donot need open items.Then if go for BSIK is it wrong.Should go only for BSAK.
    I couldnt find the table BSAK in logical database KDF.
    Edited by: mysap query on Mar 18, 2009 3:15 PM
    Edited by: mysap query on Mar 18, 2009 3:15 PM

  • Fail to create SQL query report because of ORA-00923

    Hi expert,
    I would like to SQL query report using the following query:
    select min(identified_date) first_identified,
    max(actual_COMPLETE) last_closed,
    count(id) total_issues,
    sum(decode(status,'Open',1,0)) open_issues,
    sum(decode(status,'Pending',1,0)) pending_issues,
    sum(decode(status,'Resolved',1,0)) closed_issues,
    sum(decode(status,'Will Not Resolve',1,0)) not_resolve_issues,
    sum(decode(status,
    'Open',decode(priority,null,1,0),
    0)) open_no_prior,
    sum(decode(status,
    'Open',decode(priority,1,1,0),
    0)) open_prior_1,
    sum(decode(status,
    'Open',decode(priority,'2',1,0),
    0)) open_prior_2
    sum(decode(status,
    'Open',decode(priority,3,1,0),
    0)) open_prior_3,
    sum(decode(status,
    'Open',decode(priority,'4',1,0),
    0)) open_prior_4,
    sum(decode(status,
    'Open',decode(priority,5,1,0),
    0)) open_prior_5
    from SOFTPROJ_issues
    where project_id = :P83_PROJECT
    However, I got the following error during the steps of creation:
    1 error has occurred
    Query cannot be parsed, please check the syntax of your query. (ORA-00923: FROM¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿)
    I wonder why if it is getting the error because I could create the report with the following query without problems:
    select min(identified_date) first_identified,
    max(actual_COMPLETE) last_closed,
    count(id) total_issues,
    sum(decode(status,'Open',1,0)) open_issues,
    sum(decode(status,'Pending',1,0)) pending_issues,
    sum(decode(status,'Resolved',1,0)) closed_issues,
    sum(decode(status,'Will Not Resolve',1,0)) not_resolve_issues,
    sum(decode(status,
    'Open',decode(priority,null,1,0),
    0)) open_no_prior,
    sum(decode(status,
    'Open',decode(priority,1,1,0),
    0)) open_prior_1,
    sum(decode(status,
    'Open',decode(priority,3,1,0),
    0)) open_prior_3,
    sum(decode(status,
    'Open',decode(priority,5,1,0),
    0)) open_prior_5
    from SOFTPROJ_issues
    where project_id = :P83_PROJECT
    1 error has occurred
    Query cannot be parsed, please check the syntax of your query. (ORA-00923: FROM¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿)
    The difference is to add the followings only:
    sum(decode(status,
    'Open',decode(priority,'2',1,0),
    0)) open_prior_2
    sum(decode(status,
    'Open',decode(priority,'4',1,0),
    0)) open_prior_4,
    Does anyone have any idea to resolve the issue?
    Thanks in advance,
    Rui

    By putting a comma after open_prior_2:
    sum(decode(status,
    'Open',decode(priority,'2',1,0),
    0)) open_prior_2,Sima

  • Issue with using SHUTTLE in query where clause

    Lets say we have a shuttle control on the page with the following 4 values: apple:orange:peach:berry
    Lets say I also have a simple SQL query report on the page and I want to use between 1 and 4 of the aforementioned values as part of an "*IN LIST*" sql operation. For example, if the user has selected only apple and orange from the shuttle, I want my query to be:
    select * from some_table where fruit IN ('apple', 'orange');
    if however, the user has selected all 4 fruits, the query should then read:
    select * from some_table where fruit IN ('apple', 'orange', 'peach', 'berry');
    I will add the dilemma that I do not want to convert this query to become a PL/SQL based report. Rather, I want to leave it alone as a SQL Query. My initial attempt was to create a hidden item on the page and use APEX_UTIL.STRING_TO_TABLE with a loop to convert the shuttle data to a comma separated list. This worked great, however when I use the this hidden item in my query, it doesn't work properly. I hope I am explaining this well, but when I populate this hidden item, I will get something like this.
    apple,orange
    Great. Lets say the hidden item above is called P7_HIDDEN_VALUE (for example). I then try to reference it in my query, and here is the problem:
    select * from some_table where fruit IN (:P7_HIDDEN_ITEM)
    Do you see the problem. The item resolves itself to be apple,orange, when it really needs the quotes to be *'apple','orange'*
    Help!!!!

    Hi,
    This post might help
    How to enable user to pick which row without using filter in interact. rpt?
    Or Bens blog post
    http://munkyben.wordpress.com/2010/11/16/handling-aggregated-strings-in-sql-reports/
    Regards,
    Jari

  • XML publisher report using connected query

    dear all,
    I defined some XMLP reports with very similiar parameters.
    I found a strange issue, all reports using query as the source, they appear in the XMLP report viewer.
    But for those using the connected query, all are not able to be found in the XMLP report viewer list.
    Anybody has experience on this. Did I miss anything special for the connected query type?
    Many thanks.

    Is there anybody suffering the same issue?
    I double checked the settings of two XMLP report definitions.
    No difference, but the one with the connected query as the source can NOT been found.

Maybe you are looking for

  • Reload Software: 552 AND computer can't connect

    I've been at this trying to fix my phone for 2 days and still nothing.  I installed an app that didn't work (it came up with an error) so I uninstalled it.  I told it to reboot later and then later did a battery pull.  After that, it came on and said

  • OWSM+ BPEL Asynch Process

    Hi, Need some inputs on " how to secure asynch BPEL Process using OWSM(10.1.3.0)"? So far, I have created the server and the client agent - with simple log in the request and response pipeline(Server and Client). Whenever the end asyn service is invo

  • My itunes is saying it is danish but I am in the US how do I fix this?

    my itunes is saying it is danish but I am in the US how do I fix this?

  • PR00 problem

    Hi friends There is PR00 condition record for a material and also customer / material. I can create Quotation and sales order for this material and customer. when creating inquiry, system throws message pricing error: mandatory PR00 condition is miss

  • Ias 6.5 sp1... Problem

    Application is not able to get request parameters and include jsp's values of setters are not setting many times error starts with org.apache.jasper.runtime.HttpJspBase.service The same has been deployed in another place and is working fine but now c