Multi Select generates a report

Hi all

Please help me on the following.

I have multi column select on the basis I need to generate the report in the Apex please suggest me on this.

Thank you

Hello

The SQL statement for the report on my page is:

SELECT EMPNO, ENAME, SAL
FROM EMP
WHERE ':' || :P16_SAL || ':' LIKE '%:' || TO_CHAR(SAL) || ':%'
ORDER BY SAL

As previously mentioned, a multiple-selection list will return a list delimited by a colon of values when the page is submitted - example 1:3:5. If these data are transmitted in a URL, only the first value will be considered as everything after the first colon is ignored - this is because the parameters in the URL are divided by the colon as well. The end of a typical URL will be something like:

...P1_ITEMNAME:itemvalue

Apex assigns Valeurelement to P1_ITEMNAME. If you need to pass values in several fields:

...P1_ITEMNAME1,P1_ITEMNAME2:itemvalue1,itemvalue2

When you pass a list to multiple selection via the URL, you get:

...P1_ITEMNAME:1:3:5

What Apex will perform as "set P1_ITEMNAME to 1"-the ": 3:5" is ignored because it is not part of the parameter 'values '.

I suspect that it is actually what is happening in your case - if you look at the URL when you have passed to the report page, you will probably see all the values have been adopted but those after the first: are ignored.

As long as you submit the page containing the selection list and do not clear the cache of the page you can still use the name of the item in the list to your report filter. For example, if you have the list on page 1 called P1_LIST and the report is on page 2, you can use the SQL for your report:

SELECT EMPNO, ENAME, SAL
FROM EMP
WHERE ':' || :P1_LIST || ':' LIKE '%:' || TO_CHAR(SAL) || ':%'
ORDER BY SAL

Value of P1_LIST will be in session, the value is always available on page 2.

Andy

Tags: Database

Similar Questions

  • Region of report filters by using Multi Select lists

    Could someone please advise me accordingly.

    I want to use several multi selection lists to allow a user filter data in a report. I have a button for the user to send the page and apply their selected criteria. In my application I have want to reference the items select direct multi.

    for example

    Select studentid, studentname
    of student_table
    where of course in(:p1_course)
    and the Department (: p1_dept)
    and in the year (: p1_year)
    and... etc etc.

    My attempts to do so to this day, have been in pallets. I was hoping that one of you experts may be able to advise how to do this step by step.

    Thank you

    Steve C

    Hi Steve,.

    The results of the selections multiple lists would be in the format has: b: c (that is to say, the values separated by semicolons), so your WHERE clause must use something like:

    OÙ ' :' || : P1_COURSE | ':' AS ' %:' | COURSE | ':%'

    or

    WHERE INSTR (': ' |: P1_COURSE |) ':', ':' || COURSE | ':') > 0

    Andy

  • I need a box multi select drop-down list or list of selection with image or icon faclitliy

    Hello

    I tried to find a plugin or a jquery plugin that allows to perform the task of

    have a list of selection with images and there should be a facility such as multi select.

    How this can be accomplished. One have they implemented it in any of their application

    Any information will be greatly appreciated.

    Thank you

    pauljohny100 wrote:

    Hello

    I tried to find a plugin or a jquery plugin that allows to perform the task of

    have a list of selection with images and there should be a facility such as multi select.

    How this can be accomplished. One have they implemented it in any of their application

    Any information will be greatly appreciated.

    When ask questions user interface-related still State (at least) the full version of APEX, the theme and the version of browser compatibility / required.

    See the plugin jQuery Select2 , for which there is a plug in APEX .

    Pre-plugin when we have implemented requirements like this using a model report, CSS and personal...

  • Is it recommended to compile reports 6i in the generator of reports 10g?

    Is it recommended to compile reports 6i in the generator of reports 10g?

    Hello

    You use the database links in the report?

    If Yes, then I suggest to create views select links from the database and use them in the report.

    Also, be sure to apply the latest patch from developer 6i (#19).

    When you save the report in 10g then the file format will be different.

    It may not compile when you deploy in 11i system.

    Kind regards

    Bashar

  • Table multi-selection disabled the check boxes in ADF 10 g

    I think I met an obstacle when you work with a multi-selection table in 10 ADF.

    The selection itself works very well. However, my problem is to try to disable some of these boxes several selections. These boxes are disabled using the expression language. Once disabled, I can always choose these rows in the table using the button 'Select all' created by multiple selection facet. On the page sent, the disabled lines are not recognized as being selected, which is good. However, they always seem to be selected on the front-end server, which would be confusing for users.

    <af:table emptyText="No roles were found"
              binding="#{backing_userRoles.tableRoles}"
              id="tableRoles"
              value="#{backing_userRoles.userRoleList}"
              var="userRole">
                            <f:facet name="actions">
                              <af:commandButton text="Copy Roles"
                                                binding="#{backing_userRoles.cmdCopy}"
                                                id="cmdCopy"
                                                action="#{backing_userRoles.cmdCopy_action}"/>
                            </f:facet>
                            <f:facet name="selection">
                              <af:tableSelectMany text="Select items and ..."
                                                  binding="#{backing_userRoles.tableSelectMany1}"
                                                  id="tableSelectMany1"
                                                  rendered="#{backing_userRoles.managerFlag}"
                                                  disabled="#{userRole.role.autoGrantedFlag eq 'Y'}"/>
                            </f:facet>
    

    multiselecttable.PNG

    So as you can see, the disabled check box has been selected even when disabled. Any ideas on how to change this behavior? Or maybe just get rid of the default generated 'select all ' | 'Select none' orders?

    Thank you

    Cody

    Or, remove selection facet and make sure you have a selection logic - that is to say, some transient Boolean attribute of VO enabled/disabled state, and you have Select All/Select none

  • PowerCli script to generate the report for the VM and ESXi model

    Hello

    I'm trying to generate a report for the virtual machines to a domain controller that includes the operating system, Cluster and host of brand and model of ESXi, but for some reason any the ESXi info does not come through. Any help is greatly appreciated.

    Get-data center 'TEST ' |

    Get - vm |

    WHERE-object {$_.} PowerState - eq "Receptor"} |

    Select Name, @{N = "OS"; e = {$_.}} Extensiondata.Guest.GuestFullName}},

    @{N = "Cluster"; E={$_. VMHost.Parent}},

    @{N = 'Esxi model'; E = {Get-VMHost - VM $_.} VM | {{Select model}}

    The virtual machine has the properties of the host.  For your information "Model ESXi" use $_. VMhost.Model, $_ is the current information for pipeline for the virtual machine.  You did for the section "cluster".

  • Generate custom reports

    I want to generate a report for a date range that includes the following fields:

    Name of the signatory

    Email of the signatory

    Name of the signed document

    Date of signature

    I need this for our measures.

    How can I do this?

    Hi BV Littlefield,

    If you want to generate a report for a specific transaction, then please follow these steps:

    • Go to the page manage the
    • Select the document that you want
    • Click on the history tab on the right side of the page
    • Then choose the Audit report to run the report (find screenshot below):

    Let me know if you need more assistance.

    Kind regards

    Ana Maria

  • Script to generate the report to PAHO are / s

    Hello

    I've been looking around for a script, but I can't seem to find what I'm looking for. I would like something that would be lifted all VM would generate a report CSV which show the use of the IOPS / s by VM and all of the clusters and data warehouses (all).

    I just want to be able to assess what VM is particularly taxing our storage arrays.

    Any help or pointers in the right direction would be appreciated.

    Thank you!

    You mean something like this?

    It collects the IOPS for the full Eve and send the result by e-mail

    $metrics = "disk.numberwrite.summation","disk.numberread.summation"$finish = Get-Date -Hour 0 -Minute 0 -Second 0$start = $finish.AddDays(-1)$report = @()
    
    $vms = Get-VM | where {$_.PowerState -eq "PoweredOn"}$stats = Get-Stat -Stat $metrics -Entity $vms -Start $start -Finish $finish$interval = $stats[0].IntervalSecs
    
    $lunTab = @{}foreach($ds in (Get-Datastore -VM $vms | where {$_.Type -eq "VMFS"})){  $ds.ExtensionData.Info.Vmfs.Extent | %{    $lunTab[$_.DiskName] = $ds.Name  }}
    
    $report = $stats | Group-Object -Property {$_.Entity.Name},Instance | %{  $readStat = $_.Group |    where{$_.MetricId -eq "disk.numberread.summation"} |    Measure-Object -Property Value -Average -Maximum  $writeStat = $_.Group |    where{$_.MetricId -eq "disk.numberwrite.summation"} |    Measure-Object -Property Value -Average -Maximum  New-Object PSObject -Property @{    VM = $_.Values[0]    Start = $start    Finish = $finish    Disk = $_.Values[1]    IOPSWriteMax = [math]::Round($writeStat.Maximum/$interval,0)    IOPSWriteAvg = [math]::Round($writeStat.Average/$interval,0)    IOPSReadMax = [math]::Round($readStat.Maximum/$interval,0)    IOPSReadAvg = [math]::Round($readStat.Average/$interval,0)    Datastore = $lunTab[$_.Values[1]]  }}
    
    Send-MailMessage -Subject "IOPS Report" -From [email protected] `  -To [email protected] -SmtpServer mail.lucd.info `  -BodyAsHtml -Body ($report | Select VM,Start,Finish,Disk,Datastore,IOPSWriteAvg,    IOPSWriteMax,IOPSReadAvg,IOPSReadMax | ConvertTo-Html | Out-String)
    
  • 10.1.3.4.2 - Multi Select guest - research shows too many results

    Hello

    Someone sees a situation...

    When you use a multiple selection of dash prompt, the prompt has the following clause to return only the code with the status of N = select ID from table where status in (' ' n ') and it works fine

    but in the guest even if we use the code names of search for example Contains "XXX", it will return all codes regardless of status, though even she must return only status = N codes,.

    any ideas...

    Thank you

    Hello

    I assume you are using the available inside the Multi selection prompt search filter?

    If this is the case, then this is how OBIEE multi select work. When you apply the search condition in mutiselect, it generates a new query with the condition provided in exculdes and the search filter no matter what external sql filter.

    If you want to keep the filter at the prompt, use condition you be the guest (fx). It will be useful.

    See you soon

    HN

  • Generate Statspack report automatically once a day

    Hello

    I would like to generate statspack report once per day and send automatically to my emial to important parts of this report. Right now I have this sript:
    su - oracle -c "sqlplus perfstat/perfstat" << EOF
    column esnap new_value end_snap noprint
    select max(snap_id) as esnap from stats$snapshot;
    column bsnap new_value begin_snap noprint
    select max(snap_id)-24 as bsnap from stats$snapshot;
    define report_name=/home/oracle/sp_proba.lst
    @?/rdbms/admin/spreport
    EOF
    Of course I remove the lines below that parse and send information to my email. It is important to me that those command works when I paste the line in perfstat session (from sqlplus), but when I run the script it receive an error ORA-20200. Of course, it is obvious that this snap_id exists because I select in statspack view! Question is, why this code works when I run line by line of sqlplus session, but does not work when run from a script? Someone at - it such a problem?

    Best.

    try putting a------before instant stats$ $

    column esnap new_value end_snap noprint
    Select max (snap_id) as snapshot esnap of $ stats\;
    column bsnap new_value begin_snap noprint
    SELECT max (snap_id) - 24 as bsnap of snapshot of $ stats\;
    define report_name=/home/oracle/sp_proba.lst

  • Generate a report

    Hi friends,

    I have three table
    1-
    CREATE TABLE 'TRANSACTION_DETAILS '.
    (NUMBER OF 'S_NO',
    NUMBER OF "BILL_NO."
    DATE OF THE "BILL_DATE."
    VARCHAR2 (1000) "PARTY_NAME."
    VARCHAR2 (20) "VEHICLE_NO."
    'NOM_ELEMENT' VARCHAR2 (500),
    VARCHAR2 (4000) "DESCRIPTION."
    NUMBER OF "QUANTITY."
    NUMBER OF 'RATE. '
    NUMBER OF 'AMOUNT. '
    ENABLE 'TRANSACTION_DETAILS_CON' CONSTRAINT PRIMARY KEY ('S_NO')
    )
    /

    2-
    CREATE TABLE 'LAB_WORK_DTL '.
    (NUMBER OF 'ID',
    NUMBER OF "BILL_NO."
    DATE OF THE "BILL_DATE."
    VARCHAR2 (1000) "PARTY_NAME."
    VARCHAR2 (20) "VEHICLE_NO."
    VARCHAR2 (4000) "WORK_DETAIL."
    NUMBER OF "LABOUR_AMT."
    ENABLE 'LAB_WORK_DTL_PK' CONSTRAINT PRIMARY KEY ('ID')
    )
    /
    3-
    CREATE TABLE 'JOB_CARD_DETAILS '.
    ("ID2" NUMBER,
    NUMBER OF "BILL_NO."
    DATE OF THE "BILL_DATE."
    VARCHAR2 (1000) "PARTY_NAME."
    VARCHAR2 (20) "VEHICLE_NO."
    NUMBER OF 'AMOUNT. '
    ENABLE 'JOB_CARD_DETAILS_CON' CONSTRAINT PRIMARY KEY ("ID2")
    )
    /

    I want to generate a report with these three table of the total amount of the Bill as
    BILL_NO, BILL_DATE, VEHICLE_NO, SUM (AMOUNT), SUM (LABOUR_AMT), SUM (AMOUNT)

    I USE

    Select a.BILL_NO, a.BILL_DATE, a.PARTY_NAME, a.VEHICLE_NO, SUM (a.AMOUNT), SUM (b.LABOUR_AMT), SUM (c.AMOUNT) of TRANSACTION_DETAILS a, LAB_WORK_DTL b, c JOB_CARD_DETAILS where a.PARTY_NAME = b.PARTY_NAME and a.PARTY_NAME = c.PARTY_NAME and a.PARTY_NAME =: Group P38_PARTY_NAME by a.bill_no, a.BILL_DATE a.PARTY_NAME, a.VEHICLE_NO, b.bill_no, b.BILL_DATE, b.PARTY_NAME, b.VEHICLE_NO, c.bill_no, c.BILL_DATE, c.PARTY_NAME, c.VEHICLE_NO


    I have two entry corresponding to PARTY_NAME is 'A' TRANSACTION_DETAILS

    BILL_NO = 5 BILL_DATE = 5 MARCH 10, PARTY_NAME = A, VEHICLE_NO = 112, NOM_ELEMENT = C, AMOUNT = 12
    BILL_NO = 5 BILL_DATE = 5 MARCH 10, PARTY_NAME = A, VEHICLE_NO = 112, NOM_ELEMENT = D, AMOUNT = 50

    I have two entry corresponding to PARTY_NAME is 'A' LAB_WORK_DTL

    BILL_NO = 5 BILL_DATE = 5 MARCH 10, PARTY_NAME = A, VEHICLE_NO = 112, WORK_DETAIL = REPAIR CLUTCH, LABOUR_AMT = 250
    BILL_NO = 5 BILL_DATE = 5 MARCH 10, PARTY_NAME = A, 112, WHEEL BALANCING, LABOUR_AMT = WORK_DETAIL = VEHICLE_NO = 150

    I have two entry corresponding to PARTY_NAME is 'A' JOB_CARD_DETAILS
    BILL_NO = 5 BILL_DATE = 5 MARCH 10, PARTY_NAME = A, VEHICLE_NO IS 112, DESCRIPTION = ENGINE REPAIR, AMOUNT = 200
    BILL_NO = 5 BILL_DATE = 5 MARCH 10, PARTY_NAME = A, VEHICLE_NO IS 112, DESCRIPTION = PATROL, AMOUNT = 500

    When I run my code, then the result is

    Sum (a.amount) = 248
    Sum (b.LABOUR_AMT) = 1600
    Sum (c.amount) = 2800

    But the result should be

    Sum (a.amount) = 62
    Sum (b.LABOUR_AMT) = 400
    Sum (c.amount) = 700

    How can I get the correct value.

    Manoj Kauhsik

    1. I guess that there is more data associated with the PARTY_NAME 'A', so you showed us, because there is no average numbers you presented could add up to 248... (maybe another billno, date, vehicle?)

    2. you can delete ", b.bill_no, b.BILL_DATE, b.PARTY_NAME, b.VEHICLE_NO, c.bill_no, c.BILL_DATE, c.PARTY_NAME, c.VEHICLE_NO ' group BY

    3. you can also rewrite your query into something like:

    select a.BILL_NO,a.BILL_DATE,a.PARTY_NAME,a.VEHICLE_NO,SUM(a.AMOUNT) suma
    , (select sum(b.LABOUR_AMT) from LAB_WORK_DTL b where a.PARTY_NAME =b.PARTY_NAME) sumb
    , ...same for the third table...
    from TRANSACTION_DETAILS a
    where a.PARTY_NAME =:P38_PARTY_NAME
    group by a.BILL_NO,a.BILL_DATE,a.PARTY_NAME,a.VEHICLE_NO
    
  • Generate a report with table three

    Hi friends,

    I have three table
    1-
    CREATE TABLE 'TRANSACTION_DETAILS '.
    (NUMBER OF 'S_NO',
    NUMBER OF "BILL_NO."
    DATE OF THE "BILL_DATE."
    VARCHAR2 (1000) "PARTY_NAME."
    VARCHAR2 (20) "VEHICLE_NO."
    'NOM_ELEMENT' VARCHAR2 (500),
    VARCHAR2 (4000) "DESCRIPTION."
    NUMBER OF "QUANTITY."
    NUMBER OF 'RATE. '
    NUMBER OF 'AMOUNT. '
    ENABLE 'TRANSACTION_DETAILS_CON' CONSTRAINT PRIMARY KEY ('S_NO')
    )
    /

    2-
    CREATE TABLE 'LAB_WORK_DTL '.
    (NUMBER OF 'ID',
    NUMBER OF "BILL_NO."
    DATE OF THE "BILL_DATE."
    VARCHAR2 (1000) "PARTY_NAME."
    VARCHAR2 (20) "VEHICLE_NO."
    VARCHAR2 (4000) "WORK_DETAIL."
    NUMBER OF "LABOUR_AMT."
    ENABLE 'LAB_WORK_DTL_PK' CONSTRAINT PRIMARY KEY ('ID')
    )
    /
    3-
    CREATE TABLE 'JOB_CARD_DETAILS '.
    ("ID2" NUMBER,
    NUMBER OF "BILL_NO."
    DATE OF THE "BILL_DATE."
    VARCHAR2 (1000) "PARTY_NAME."
    VARCHAR2 (20) "VEHICLE_NO."
    NUMBER OF 'AMOUNT. '
    ENABLE 'JOB_CARD_DETAILS_CON' CONSTRAINT PRIMARY KEY ("ID2")
    )
    /


    I want to generate a report of the total amount of the Bill as
    BILL_NO, BILL_DATE, VEHICLE_NO, SUM (AMOUNT), SUM (LABOUR_AMT), SUM (AMOUNT)

    I USE

    Select a.BILL_NO, a.BILL_DATE, a.PARTY_NAME, a.VEHICLE_NO, SUM (a.AMOUNT), SUM (b.LABOUR_AMT), SUM (c.AMOUNT) of TRANSACTION_DETAILS a, LAB_WORK_DTL b, c JOB_CARD_DETAILS where a.PARTY_NAME = b.PARTY_NAME and a.PARTY_NAME = c.PARTY_NAME and a.PARTY_NAME =: Group P38_PARTY_NAME by a.bill_no, a.BILL_DATE a.PARTY_NAME, a.VEHICLE_NO, b.bill_no, b.BILL_DATE, b.PARTY_NAME, b.VEHICLE_NO, c.bill_no, c.BILL_DATE, c.PARTY_NAME, c.VEHICLE_NO

    SUM (a.AMOUNT), SUM (b.LABOUR_AMT), SUM (c.AMOUNT) according to THIS amount CODE of these columns are not correct and there is one more problem if BILL_NO does not LAB_WORK_DTL JOB_CARD_DETAILS this table result shows NO DATA FOUND but BILL_NO is available in
    TRANSACTION_DETAILS this table.

    How can I generate this report.

    Thank you
    Ed
    SQL> select a.BILL_NO,a.BILL_DATE,a.PARTY_NAME,a.VEHICLE_NO,
      2         SUM(a.AMOUNT),
      3         (select SUM(b.LABOUR_AMT) from LAB_WORK_DTL b
      4          where a.PARTY_NAME =b.PARTY_NAME
      5            and a.bill_no = b.bill_no
      6            and a.vehicle_no = b.vehicle_no) labour_amt,
      7         (select SUM(c.AMOUNT) from JOB_CARD_DETAILS c
      8          where a.PARTY_NAME = c.PARTY_NAME
      9            and a.bill_no = c.bill_no
     10            and a.vehicle_no = c.vehicle_no) job_card_amt
     11  from TRANSACTION_DETAILS a
     12  where a.PARTY_NAME ='A'
     13  group by a.bill_no,a.BILL_DATE,a.PARTY_NAME,a.VEHICLE_NO;
    
       BILL_NO BILL_DATE PARTY_NAME VEHICLE_NO SUM(A.AMOUNT) LABOUR_AMT JOB_CARD_AMT
    ---------- --------- ---------- ---------- ------------- ---------- ------------
             5 05-MAR-10 A          112                   62        400          700
    

    Max
    http://oracleitalia.WordPress.com

  • multi select sql problem - ORA-01722: invalid number

    Hello

    I have a multi select list and when I select only one item it works perfectly, but if I select several items, it gives an error. The sql statement is as below:

    SELECT * VIEW WHERE INSTR (': ' |: P1_ID |': ',' :'||) ID: ': ') > 0

    and I get the following error:

    ORA-01722: invalid number


    Here is some information on the display:
    Name of the column
    Data Type (NUMBER)
    Nullable (No.)

    Hello

    I just try this in my own sandbox application to sand...

    Create report area with

    SELECT t_id, t_code
    FROM t_table
    WHERE INSTR(':'||TO_CHAR(:P1_ID)||':', ':'||TO_CHAR(t_id)||':') > 0
    

    as the source.

    Create multiple selection list

    SELECT t_code, t_id
    FROM t_table
    

    as the source.

    Create a button with application of GO, subordinate the region report on request = GB.

    Now, I run the page, select a value in the list, click on go - region displays with the correct result.

    Now I run the page, select several values in the list, click on go - region displays with good results.

    What is your scenario? If so, it works for me...

    See you soon

    Ben
    http://www.munkyben.WordPress.com
    Don't forget to mark the answers useful or correct ;)

  • Generate a report and save it as a PDF

    Hi all

    Attachment VI I work on.,.

    Here I am trying to generate a report by adding the chart picture in it and save the report in pdf format.

    But I coudnt able to save it as a pdf.

    In the path dialog box, even if I give the file name as. PDF, still i coundt able to print pdf and when I tried to open it became corrupt.

    Please help out of this

    I started on the path of 'save as PDF from the word' awhile, but I never got to complete the VI.  I think that you need to do is to use the "word get ActiveX References.VI" and document. SaveAs2 method (call the node).  You must connect an integer '17' to the variant "file format" entry.

  • How to generate a report of the duration of the sessions remotely on windows server 2008 r2?

    Hello

    I have about 10 (local users, not domain) users who are loging in Microsoft Server 2008 R2 to use accounting and planning software (using RDS) remotely. I would like to generate a report for the time spent to see how many hours each of them had been registered. Ideally, I would like to see all of last year (2011). Is it possible to do? Thank you in advance!

    Stan

    Post in the Windows Server Forums:
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer/

Maybe you are looking for

  • How can I keep MediaPlayer Visual replacement I want with their garbage?

    I go on some websites and MediaPlayer inserts a sort of an advertisement on Ellen or some other stupid ad that I worry and become really boring how do I get out? There is also a popup on a facebook survey that keeps coming back. How can I get rid of

  • How to define upskin and downskin

    Hai, I need to know how to set upskin and downskin on the list... I tried this package com.cellapp.list.skin { import flash.display.Sprite; import flash.geom.Rectangle; import qnx.fuse.ui.display.Image; import qnx.fuse.ui.listClasses.CellRenderer; im

  • Error on VM VSS. ID 12289.

    We have a server2008R2 SP 1 windows VM that is backup takes via vcenter.But we do not take backup of the server. I need to know this error due vcenter.Here is the error:The volume shadow copy Service error: unexpected error DeviceIoControl (\\?\fdc#g

  • Changes to the default program

    Currently, my documents are all saved as Microsoft Word documents.  Unless I open Word specifically, my computer automatically opens in Microsoft Works word processor format.  This words all around if there open same at all.  I tried several times to

  • Overlay feature?

    Is there a superposition function in lightroom where I see a layout on my inbound pictures? Thank you