How to use % symbol for parameters in conditions in Discoverer

Hi all

In fact, I have to add four settings in that
two param should be % (average for select all) as a default.

That is to say that we use LIKE '%' in the query.

the problem is when I enter a value for a parameter, it should train for this value,
and if I need anything, I should enter the "%" symbol,

so, for what Iam confused how to use this,

Although I tried with a few options, it receives satisfactory results.

someone will help me please to achieve this.

Thank you in advance

Published by: user10271105 on Sep 17, 2008 03:37

Hello

You can create a parameter and give % as default. If you set the condition to use AS and when the default is used for the parameter, then the query contains LIKE '%' and everything is selected.

If you are using a list of values with your parameter, then you must add the '%' to your list of values so that the user can select this value.

However, this method will not work if some values in your database contains characters of percentage, because the condition LIKE 'ABC DEF %' will return as well as ABC % DEF ABCXYZDEF.

Unfortunately like escape syntax is not available in discoverer, so you have to invent a value that the user can enter for all, for example ALL the default value for the parameter.

Then use a similar State to:

question LIKE: param OR item = DECODE (: param,'* ALL *', item)

Rod West

Tags: Business Intelligence

Similar Questions

  • How to use pthread_create for multithreading in C/C++?

    Goal: Create two threads at the same time to collect and process the data.

    Error: Buffer problem. A [i] when I is increased, the accident will be held later.

    Question: How to use pthread_create for multithreading in C/C++?

    or you know any related document, I can read?

    Mini code:

    pthread_t A, B;

    void * rawacceleration(void*);
    void * featureacceleration(void*);

    pthread_create (& A, NULL, & rawacceleration, NULL);
    pthread_create (& B, NULL, & featureacceleration, NULL);

    Thank you for your attention.

    Sorry guys.

    It is a buffer problem.

    Try i = 0 to [i]. The problem is resolved.

  • How to use profiles for the metadata tab in window of Contribution

    Hi Experts,

    Is it possible to use profiles in metadata tab Contribution. ??

    I want each payable region must have its own profile. For, for example, if the user will pay company information, then the metadata tab should show only metadata related company, not other meta data that are not relevant here.



    Help, please

    I thought you said you knew how to use/create profiles in your previous post...

    It's the quick rundown: like the regular profiles, you will first need to make sure your content has the metadata field to trigger profile assigned when it is created. This is done in designer under the definition of "Changing the content of the region" in your area of contribution. Assign the "value of trigger to profile" under "Default metadata" and then as idoc to the activation of your profile content rule condition.

  • How to use a FOR LOOP to create multiple forms?

    I use Adobe animate CC (formerly Flash Professional CC) and I am trying to adjust the following snippet so that it creates several rectangles:

    var form = createjs new. Form (new createjs. Graphics ().beginFill("#FF0000").drawRect (5,5,100,100));

    this.addChild (shape);

    I then set it and put it in a loop I thought work in the reproduction of the form. The following code creates only a rectangle well?

    for (i = 0; i < 10; i ++) {}

    var i is new createjs. Form (new createjs. Graphics ().beginFill("#FF0000").drawRect (5,5,30,30));

    this.addChild (i);

    Move so that they do not lie on the other

    This.x += 50;

    }

    I think that the problem is how you use your iterator variable. In your loop, at the first start, i is equal to 0, then you immediately replace 0 with an instance of the Shape class, which means when he tries to loop again, I is not less than 10. They can't, because it is now a shape, not a whole number.

    Try this inside the loop:

    newshape var = new createjs. Form (new createjs. Graphics ().beginFill("#FF0000").drawRect (5,5,30,30));

    newshape.x += 50;

    this.addChild (newshape);

  • How to use iCloud for PC without an iOS device?

    I received an invitation to join a place to share photos of iCloud.  I'm not an Apple user, do not have an iOS device (or plan in the near future).

    I've created an Apple ID iCloud and have iCloud account.  I downloaded and installed iCloud for Windows on my PC.  However when I try to run the program and enter my Apple ID and password to connect, I get the following message:

    Unable to connect

    Your identifier Apple must serve to iCloud on an OS X device or an iOS to install before you can use iCloud for Windows.

    Is this to say that I can't access the iCloud photo sharing subscription since I did not have an iOS device to set up my account?  ICloud photos can be shared with users who have an iOS device to that?

    Thanks in advance.

    You can create an Apple on a Windows PC ID, but you cannot create an iCloud account - it is a separate additional process and unless you've been able to create one on a Mac or iOS device you don't have an iCloud account, only an Apple ID. This is why the error message you see.

    iCloud accounts are essentially positioned as a way for Mac/iOS users synchronize data from their devices and are a free service at the Starter level; the control panel is intended for users of Mac/iOS, which also happens to have a Windows PC. They are not intended for Windows users only. Unless you can find a way to set up a device to iCloud on a Mac or an iOS device, you will not be able to move forward.

    iCloud sharing photos can be configured as a public or private - the first are directly accessible in any web browser, but private sharing requires you to have iCloud account. If your source is not willing to set up a public share (that would be accessible to the world in general) you will not be able to access it without an iCloud account.

  • How to use labview for controlling the HP Network Analyzer

    Hello

    I have a HP network analyzer 8720D connect with my laptop by a USB-Gbspecifications FOR cable. I want to use LABVIEW for control to parser do measurement and data collection. What should I start? Where can I get the labview program to control the parser?

    Thank you.

    Help > find instrument Drivers. Then go to the Instrument Driver Network and read all the links on the use of pilots.

  • How to use findByPrimaryKey for concatenated PK

    Hello

    How to use EntityDefImpl.findByPrimaryKey (transaction, key) when the primary key is composed of two or more attributes?

    Thank you

    Anatoliy

    Anatoly,

    Object[] supplierKey = {value1,value2};//Put as many as u need
     EntityDefImpl supplierDefinition = SupplierEOImpl.getDefinitionObject();
    SupplierEOImpl supplier =  (SupplierEOImpl)supplierDefinition.findByPrimaryKey(transaction, new Key(supplierKey));
    

    Kind regards
    GYAN

  • How to use partitioning for large table

    Hello

    ******************
    Oracle 10 g 2/Redhat4
    RAC database
    ASM
    *******************

    I have a TRACE table that will also grow very fast, in fact, I 15,000,000 lines.

    TRACES (IDENTIFICATION NUMBER,
    NUMBER OF COUNTRY_NUM
    Timestampe NUMBER,
    MESSAGE VARCHAR2 (300),
    type_of_action varchar (20),
    CREATED_TIME DATE,
    DATE OF UPDATE_DATE)

    Querys who asked for this table are and make a lot of discs!

    --------------------------------------------------------
    Select count (*) as y0_
    TRACES this_
    where this_. COUNTRY_NUM =: 1
    and this_. TIMESTAMP between: 2 and: 3
    and lower (this_. This MESSAGE) as: 4;
    ---------------------------------------------------------
    SELECT *.
    FROM (SELECT this_.id,
    this_. TIMESTAMP
    Traces this_
    WHERE this_. COUNTRY_NUM =: 1
    AND this_. TIMESTAMP BETWEEN: 2 AND: 3
    AND this_.type_of_action =: 4
    AND LOWER (this_. MESSAGE) AS: 5
    ORDER BY this_. TIMESTAMP DESC)
    WHERE ROWNUM < =: 6;
    -----------------------------------------------------------

    I have 16 distinct COUNTRY_NUM in the table and the TIMESTAMPE is a number that the application is inserted into the table.

    My question is the best solution to resolve this table is to use partitioninig for a smal parts?
    I have need of a partitioning using a list by date (YEAR/month) and COUNTRY_NUM, is there a better way for her?

    NB: for an example of TRACES in my test database

    1 Select COUNTR_NUM, count (*) traces
    Group 2 by COUNTR_NUM
    3 * order by COUNTR_NUM
    SQL > /.

    COUNTR_NUM COUNT (*)

    194716 1
    3 1796581
    4 1429393
    5 1536092
    6 151820
    7 148431
    8 76452
    9 91456
    10 91044
    11 186370
    13 76
    15 29317
    16 33470

    Hello

    Yes and part is that you can remove the whole score once you don't need "of them. I think you should be good to go. Let me know if you have any other questions.

    Concerning

  • How to call oracle forms report using parameterlist for parameters

    Dear all,
    I want to know how to call oracle forms report and parameter passing between the report and the form with the list of parameters?
    can someone help me?

    What research? The forum is full of examples.

  • PS: how to specify length for PARAMETERS inside Ms itself?

    Hello
    I have a procedure as in the example below and just curios, how do I specify length for in_param be varchar2 (10) Ms itself doesn't execute code?
    I see that, by default, it affects 200 b, but do not need that much.
    I try to put as many defintion in MS itself to save the efforts made for the execution part, which will be managed by other people? Is this possible? Or should I change just not run code and then give it to the customer?


    -------------
    create or replace procedure (sp_ryba_cust_101)
    in_custID IN varchar,
    in_exec IN IS number
    t_custID varchar (10);
    number of t_exec;

    BEGIN...

    END...

    In order to make practical use, you declare the subtypes in a more comprehensive manner. For example

    create or replace package my_types is
     subtype my_subtype is varchar2(10);
    end;
    
    create or replace procedure p(a in my_types.my_subtype) is
    begin
      null;
    end;
    

    Often, the input parameters will be either original, eventually be stored in or otherwise refer to a table column. When this is the case, use the % type declaration. There is still no verification of size, but it is clear to everyone that the setting is good for.

    create or replace procedure p(a in user_tables.table_name%type) is
    begin
      null;
    end;
    

    If you want to introduce size check, so that with an overhead projector. For example

    create or replace procedure p(a in user_tables.table_name%type) is
     va constant user_tables.table_name%type := a;
    begin
      null;
    end;
    
  • How to use wireless for my TECRA S1

    I have a TECRA S1 and you want to use the wireless function to get on Internet, I already have two pc is connected to my wireless network how can I get my laptop on the network now.

    Thank you

    Hello

    -check if your laptop has a WIRELESS card with onboard (Manager of devices under network adapters or WiFi label on the low side)
    -If yes turn it on using wireless switch antenna ON / OFF in the front near the headphone jack
    -When the control led is CHECK if the WIFI is enabled by using the FN + F8 key combination
    -Depending on your local settings WLAN connectivity must be configured properly (TCP/IP)
    -You can use the Windows settings for WLAN configuration (you can find it under the "networks" tab a wireless WLAN properties)
    -refresh the available networks and if your LAN is displayed there you can add it as a favorite and configure (encryption)

    All that s!

  • How to use an analog signal to conditionally generate a TTL (or a square function) signal?

    Hello world

    I am using PCI-6229 and try to develop a code that can generate a TTL/place function signal from only one analog entry satisfies following conditions: 1. crossing a certain value (for example, 0 V); 2 slope edge of fall. The time delay between the point of passage and newly generated signal TTL/square will be essential to my measurement, and may not exceed 1 millisecond. Any suggestion on this subject? Thank you in advance!

    You are using the measure called Excel add-in? That's what this forum is for. Otherwise, you should post to the multifunction DAQ card and speak the language you are using.

  • How to use Labview for measuring the reflectance at different wavelengths automatically

    Hello!

    I'm using labview to communicate with MS257 (a monochromator). If I do not use Labview, I have to use the hand controller (set a wavelength from 300 to 1100 under a grating (a total of four grids).) It takes a lot of time. So I want to use labview to realize the automation. But I don't know how to do, I still can put only a wavelength as a command for MS257, not making any difference.

    Does anyone know how to deal with this?

    Thank you for your time.

    So where are you stuck? It is a fairly common task. Inside of a loop, you can increment the "xxx" and build a table of responses. Look at the Format function in the chain and a knot of shift register/feedback.

  • How to use RIDC for request WebCenter content Tables/views

    Hello

    Can I use RIDC content query API WebCenter 11 g Tables/views, if so, how can I achieve this?

    Kind regards

    Yes, you can.

    Call one of the schema (for example, GET_SCHEMA_VIEW_VALUES) and you will receive a set of results that you can iterate on.

    http://docs.Oracle.com/CD/E21764_01/doc.1111/e11011/c05_core.htm#BABBABBF

    Some examples of code RIDC links can be found here: http://jonathanhult.com/blog/2012/07/ridc-versus-cis/

    Jonathan
    http://jonathanhult.com

  • CS6 how to use gradient for edge tool

    Hello!

    I'm a graphic designer, I like to work the hand and not numbers. The new version of gradients of the CS6 can be given for races. Great!

    Please help me exactly how I can do with a convenient tool "gradient tool"?

    Unresponsive to changes in drag when I try to use the mouse to expose?

    CS6 somehow strange is described in advertising and instructions... I don't understand.

    http://helpx.Adobe.com/Illustrator/using/gradient-panel-gradient-tool-overview.html

    Kind regards!

    The gradient tool does not work on traits.

Maybe you are looking for