Urgent!! How to include 'ALL' parameters in BI Pub 10g sql

Hello
Got a situation where i got parameter in a sql for a LOV.
LOV returns list of values. In BI Publisher 10g, for LOV paramter we have option for selecting 'All'.
When we select that option we get ALL in the LOV.
in my scenario , BI Pub report is called from external web UI.
Web interface don't understand 'All"
So i need to find a way inside SOL to add ALL so that when SQL runs it will return data for all parameter values
as well as for single parameter value.
How?
thanks
kp

Validate the parameter for null and then go for something like
Col LIKE (CASE WHEN Parameter='' THEN '%%' ELSE Parameter END)

Similar Messages

  • How to include lexical parameters in IN string in SQL QUERY BUILDER ?

    Hi,
    I have to write an SQL Query in SQL QUERY BUILDER in Reports 6i to retrieve all details pertaining to donor codes i insert randomnly at runtime.
    The Statement is like this
    SELECT TITLE_TAB.TITLE_CODE,DONOR_TAB.DONOR_CODE, DONOR_TAB.FIRST_NAME,DONOR_TAB.MIDDLE_NAME,DONOR_TAB.LAST_NAME,CITY_MASTER_TAB.CITY_CODE FROM DONOR_TAB,CITY_MASTER_TAB,TITLE_TAB
    WHERE DONOR_CODE IN (1,2,6,70,....)
    I cannot use lexical parameter '&' in SQL QUERY BUILDER as i have to use bind variable donor_code.
    How do i do it?

    How do i do that? Can you give me an example of how i can go about with it?

  • Urgent: How to Delete all Cards for a Crawler through SQL

    Folks,
    Good morning! I am trying to delete 2 million cards (should have been expired, and makes the search index rebuild take days) in a single folder in the Knowledge Directory in the 6.1 portal. The job to delete the folder ("Apply Later") has been running half of yesterday and then all night with nothing being logged in PTSpy or the joblog, little or no CPU activity.
    Does someone have a DB query that can zap the cards for this crawler? I know how to select the cards for a particular crawler ID, but don't understand how to delete them properly such that all references to those cards in other tables also get removed.
    Much appreciate !!!
    Cheers!
    Edited by: Plumtree on Jan 21, 2009 7:28 AM (fixed an 'oops')

    You obviously are looking for someone who has done and tested this before, which I have not...but when I delete a folder the following happens for each card:
    delete from:
    PTFolderCards
    PTCards
    PTCardProperties
    PTCardSecurity
    PTCardStatistics
    PTMigration
    update:
    PTInternalCardInfo (RefreshDate = null, ExpirationDate = null, RefreshRateUnits = null, RefreshRateNum = -1, MissingDeleteUnits = null, MissingDeleteNum = null)
    PTCardStatus (indexing status set to 3)

  • How to include all the child OU groups of a master OU group in LDAP authentication

    Dear All,
    I am using Apex 4.2 on windows server 2012 on internet explorer with database 11g R2 all 64 bit.
    we are using Microsoft Active Directory Authentication in our domain.
    I have created two protals, Staff Portal and Student Portal
    I have two groups, Staff and Students. these two groups coming under HCT group.
    I want to configure LDAP authentication for these groups, so that student cannot login to staff portal and vice versa.
    I had created on authentication schema in apex.
    inititally I configured as below
    for example I have a group ETC, inside ETC I have CSS in active directory,
    DN String=cn=%LDAP_USER%,dc=hct,dc=org
    Use Exact distinguish name=YES
    LDAP Username edit function=
    return apex_escape.ldap_dn (
                 p_string => :USERNAME,
                 p_escape_non_ascii => false ) || ',ou=users,ou=css,ou=etc,ou=staff,ou=hct'   ;
    Username Escaping=NO ESCAPING
    and it is working,
    now I have another group under ETC, which is ESS. how to include ESS also? I mean how to include all the child groups of a master group?
    because I will then only include the STAFF ou and the rest of the ou which coming under staff will come automatically.
    please refer to this thread for more details.
    Re: Re: Different LDAP authentication for Student and Staff Active directory groups
    Thank you.

    Powershell (or vbscript if you want to be old school).
    You can trigger a powershell script which will remove the offending user(s) easily enough with out resorting to a TOLDAP pass.  Nearly any script type thing would work but powershell is preferred.  It can be triggered separately from the TO AD stuff and will take multiple objects to run in one pass if you can construct the command line (or create a text file and feed it in).
    Otherwise, TOLDAP is the way to write to AD...
    Peter

  • How to include all of the original text in email replies with attachment

    I am using Mac Mail and I have set up the composing preferences to include all of the original message when responding. This only works so long as I don't send an attachment. If I send an attachment in my reply then the recipient doesn't receive any of the previous text, although the copy in my 'sent' box has it on. I contacted BT and got the following response "If you can send and receive emails including attachments via this software then this indicates that the client configuration is correct, and unfortunately this is as far as we can support Mac Mail. I would suggest you seek further advice from Apple as this may be down to the way you have configured the mail client’s composing preferences. Apple’s help desk will be able to tell you if this is a known issue". I've searched the forum for an answer but couldn't find one, does anyone know how to fix this?

    Annette, welcome to Apple Discussions.
    I don't know what is causing your mail problem, but offer a possible alternate solution.
    Open the email you want to respond to. Then click reply. Then copy the text.
    Then open a new message and paste the copied text. Add your attachment & any additional new text. Then send.
     Cheers, Tom

  • How to include all the fields of a Table into a Structure.

    How to include a Complete Table into a Structure.
    I want to include all the fields of KNA1 into a structure say W_KNA1(A local structure declared within a program)....How this can b acheived.
    Thanks in Advance.

    if i want to use INCLUDE STRUCTURE.....how will it work.
    TYPES : begin of ty_kna1,
                      INCLUDE STRUCTURE KNA1,
                  end of ty_kna1.
    tell me this is correct stmt.

  • How to include all of pic?

    Hi
    Brand new to iWeb, just messing around to see what it can do, maybe I'll use if I likes it. So, when I drop a pic on a page it can get cropped. How can I manage the cropping to include what I want, including all?
    best
    elmer

    iWeb is NOT free though, as you have to buy the Mac first.
    There will come a time when iWeb will not work and you will be forced to move elsewhere to a product that is supported and some folks have reported problems with iWeb already.
    Again, if it for a new website then don't use iWeb - either use Dreamweaver if you already have it or take a look at EverWeb that I have already linked to - it is cheaper to buy that than a new Mac in the first place, which is what you have to do to get iWeb or had to do in the past, as it's no longer available, so as you can see, iWeb was never really free at all.

  • Urgent: How to list all alias for a server throw DNS query?

    Hi
    Is there anyone know how to list all alias for a server by asking the network DNS. Is that possible?
    It doesn't work with InetAddress it return a single result.
    Best regard

    InetAddress will not get you the aliases, but you can certainly find all the different IP addresses for a specific host name using the getAllByName() method.
    You won't be able to get the aliases since those IP addresses (assuming there are more than 1) will all be cached as mapping to the name you passed to the getAllByName() method and you can't clear the map cache until the JVM exits.
    So your best hope is to get a list of IP's and either exit your app and restart with a new mode, or save them to a file for another app to read.

  • How to include all subsequent debit/credit?

    Hi Guru:
    Which table/transaction to include all sebsequent debit/credit memo in specific fiscal year?

    Hi!
    All  Sub debit/credit  memo  are to be  done From  "MIRO" T-code.
    Table  are to be  included  in  BSEG,BKPF,RSEG & RBKP.
    thanks,
    Rup

  • Periodic Alert-How to send all the records returned from the SQL in a mail?

    Hello all,
    I have defined a Periodic Alert, my SQL query returns more than one record whenever I run it. I also defined an action to send an email with the message consisting of the output variables from the SQL. Whenever i run this alert, a mail is being sent for every single record returned from the query. But i want to send a single mail containing all the records information that my SQL query returns.
    For Example: My SQL query lists all the users created on current date.
    Select User_Id, User_Name into &OUTPUT1, &OUTPUT2
    from fnd_users where trunc(creation_date) = trunc(sysdate)
    Now i want to send a mail with all the users information from the above query, to SYSADMIN. How can this be achieved?
    Thanks & Regards
    chakoo

    Hi Chakoo,
    If the Periodic Alert is not working as requried. You can write a simple package with 3 procedures to implement the writing output to a out file and simultaneuosly send email to multiple receiptents.
    Example:
    Create Package xx_pac
    Create public Procedure P1
    begin
    Select User_Id, User_Name into &OUTPUT1, &OUTPUT2
    from fnd_users where trunc(creation_date) = trunc(sysdate)
    fnd_file.put_line (fnd_file.output, &OUTPUT1, &OUTPUT2);
    end;
    (Create private Procedure P2
    begin
    ---Write the email package using the UTL_SMTP approch. Using this approch you can send the procedure P1 output file as an attachment to the desiginated receiptents.
    end;
    (Create public Procedure P3
    begin
    ---call the procedure P1 using the "g_request_id = fnd_request.submit_request"
    ---Wait for the above procedure to complete using "l_conc_status := fnd_concurrent.wait_for_request" procedure.
    ---call the procedure P2. (When called you must provide the correct to, from address)
    end;
    end;
    Register the Package xx_pac as a concurrent program and schedule when submit it from the request.
    Regards
    Arun Rathod

  • How to Include "all" header info when you Reply and ReplyAll

    Using Mail 3.5, when I Reply or ReplyAll I need to have "all" header info included automatically (From, To, CC, Subject, Date) which does occur when Forwarding but not when Replying to one or all. A REAL issue in the corporate world. Is there any way to accomplish this???
    Thanks,

    Did you ever get a reply to this question or did you manage to solve the issue in any way or shape? I am experiencing the same so eager to hear a solution.
    Thanks!

  • Exporting: How to include all metadata but keywords?

    When exporting to JPEG, is there any way to export all of the metadata that is currently exported, but exclude just the keywords? I know there is an option to minimize metadata on export, but that seems to remove everything but the copyright information. I know you can also right click on individual keywords in the library panel and uncheck the "include on export" checkbox. It seems, however, that you cannot select all the keywords and apply this globally- you have to select each keyword individually and make the change (as far as I can tell).
    So- what is the quickest way to remove just the keywords from an export, leaving all other metadata intact? Thank you.
    - Dave

    Yes, that works for individual keywords, but when I try to select ALL of my keywords at once and apply the change it does not save it. Since I have 200+ keywords, I'm looking for a quick, global solution.

  • Urgent : How to include Win2K CLASSPATH  to Tomcat 4.2

    I am running a web application on Tomcat 4.1
    Tomcat 4.1 uses CATALINA_HOME and JAVA_HOME
    enviroment variables and from my knowledge of the settings
    it does not utilise the Win2K CLASSPATH variable.
    I use a number of *.properties files to access values and variables
    so I need to set the startup program of Tomcat to include CLASSPATH.
    Is this possible ?
    Secondly is there any other way of making the web application recognise
    these property files .
    Based on some suggestions I tried including the files with classes
    and adding a zip file.
    It works fine with Tomcat 3.2.4 as it includes CLASSPATH on startup.
    Could anyone suggest the solution for this as I searched the Tomcat websites and could not find a solution.
    Thanks
    manosham

    I looked at the Tomcat 4 startup file and it looks like it overwrites CLASSPATH in the bin/setclasspath.bat file. You can get around that by modifying that file. Look for this line near the end:
    set CLASSPATH=%JAVA_HOME%\lib\tools.jar... and change it to ...
    set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CLASSPATH%Hope that helps :)

  • How to pass multiple parameters while calling a pl/sql procedure based serv

    Hi,
    I have a pl/sql procedure based service that needs to be invoked from the bpel console for testing purpose. This procedure accepts multiple input values which are of varchar2,boolean and datetime data types. How can I get the bpel console to throw a UI where I can enter these values --in other words where(which file and where) can I specify that these are the input parameters that need to be entered along with their types.
    Thanks for yr help!

    Change the payload of the request 'Process WSDL' message type. Change the element of the payload for the RequestMessage to be 'InputParameters' from the XSD generated by the DB Adapter wizard.
    Edit the payload (Element) - Choose 'Project Schema Files'. Select 'InputParameters' from the XSD.
    You can also change the ResponseMessage by doing the same thing, except that you select 'OutputParameters' from the XSD.

  • How to set multiple parameters in one EXECUTE IMMEDIATE sql

    I want to set both nls_language and nls_date_language, and set them as different languages. fnd_global.set_nls_context() doesn't work. So I think maybe I can use the EXECUTE IMMEDIATE, and add them together into one statement. But I don't know how to make that happen. Can anybody help me? Thanks very much.
    PS: It has to be done in one call.

    928091 wrote:
    Hey, thanks for your answer, I forgot to mention that it has to be in begin-end block, do you know how?EXEC is a SQL Plus API that can be used to run PL/SQL code. What it does is put the PL/SQL code in a BEGIN .. END block and run it.
    So you can also manually put the code in a BEGIN..END block and run like this.
    SQL> begin
      2     execute immediate q'[begin execute immediate 'alter session set nls_date_language = ''AMERICAN'''; execute immediate 'alter session set nls_language = ''AMERICAN'''; end;]';
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL> And i dont understand what possible benefit does it makes to do a single execution into a BEGIN..END over multiple execution.
    Why this code is not of your interest, something like this
    begin
         execute immediate 'alter session set nls_date_language = ''AMERICAN''';
         execute immediate 'alter session set nls_language = ''AMERICAN''';
    end;
    /

Maybe you are looking for

  • Pages 5.1 error "This document is too old. To open it, save it with Pages '09 first."

    When trying to open a Pages '08 file from a MacBook Pro in Pages 5.1 on an iMac, I get thr error message, "This document is too old. To open it, save it with Pages '09 first". I cannot locate a Pages '09 to use.  I can export the file from Pages '08

  • Population of Oracle DBs from XML?

    Forgive me if I haven't fully understood Oracle's new XML parser for Java, but is it possible to >>directly<< populate an Oracle database from an XML file or do you have to use the Java parser. As a developer using Delphi it would be most useful to h

  • Copy to Mac HD failure during sync

    WWhy won't my iPad sync info copy to my Mac Hd " unknown error message. Yosemite just upgrade to Mac book pro.

  • Passing default parameter to WebI for SAP BW cube

    Hi All, Data Source: SAP BW BI Layer: BO 3.1 Here goes my question: We have a cube which contains HR related data. I want to query data in such a way that it gets me data for the current month and year. The time dimension contains a hierarchy called

  • Hyper-V on Windows 2008R2 Running Windows 8.1 and Windows Phone

    I am a lone wolf developer running Hyper-V on a legally-licensed Server running Windows Enterprise 2008R2. I have extremely limited research funding. Since I need to evaluate Windows 8.1 and Windows Phone development for the 1080p Phone Emulator, I c