How to create optional parameters

Hi all
im a report.
in my report I'm using name date and provider as parameters.
Date parametrs are mandatory and the provider name parameters are optional

Select $vendor_name from po_vendors where creation_date between: p_from_date and: p_to_date or $vendor_name =: p_supplier_name

my request is this but if I don't give the name of the provider and run the report im get all values, but if I given name provider as a parameter also im getting all values.
Please help me.

Thanks in advance

Which may be linked to the OR operator used for the provider, because the information will be retrieved even if no provider is provided, as long as the date of creation is the date range.

condition must be:

and $vendor_name = nvl (: p_supplier_name, $vendor_name)

Tags: Oracle Development

Similar Questions

  • How to pass optional parameters in discoverer 4i

    Hello
    How to pass optional in oracle discovere 4i parameters, please any body can help me.


    Kind regards
    Roxanne.

    Hello

    Sorry, I wasn't very clear.

    If you have a question to your EUL, for example, a fullname element and that you set a parameter based on the fullname element, for example, fullname_param and then your workbook contains a condition that uses the parameter, for example, fullname IN: fullname_param.

    If you change this condition by adding a supplement OR in the State, you can change the condition of:

    FullName IN: fullname_param or NVL (fullname, 'ALL') = DECODE (: fullname_param, 'ALL', fullname)

    Then when your user enters the value ALL the parameter fullname_param the condition that you have defined a filter on the fullname element displays all lines.

    Now if you also have a list of values defined for the fullname element then the item class used by the fullname also element will have to be changed so that it returns the value ALL in the list of values.

    Hope that is more clear now.
    Rod West

  • How to create a parameterized report - select "- ALL -" for the Department and manager does not.

    I downloaded the app OEHR sample of objects and followed the steps in Oracle® Application Express Advanced Tutorials
    Version 3.2.

    The report and the settings seem to work fine except when I get 'everything' for service or manager I get no corresponding success.

    What is the way most effective to get 'everything' if the user selects all for dept and mgr - so we would like to return all records in the table.

    Snipprt region

    Enter search Edit   
    Edit
    Edit
    Edit

    Here is the sql code that was provided as part of the turitoral.

    SELECT

    'OEHR_EMPLOYEES '. "" EMPLOYE_ID ""EMPLOYE_ID"

    'OEHR_EMPLOYEES '. "" NAME ""FIRST NAME",

    'OEHR_EMPLOYEES '. "" LAST_NAME ""NAME,"

    'OEHR_EMPLOYEES '. "" ""E-MAIL. "

    'OEHR_EMPLOYEES '. "' PHONE_NUMBER '"PHONE_NUMBER. "

    'OEHR_EMPLOYEES '. "' HIRE_DATE ' 'HIRE_DATE ',.

    'OEHR_EMPLOYEES '. "" JOB_ID ' "JOB_ID,

    'OEHR_EMPLOYEES '. "" TREATMENT ""TREATMENT. "

    'OEHR_EMPLOYEES '. "" COMMISSION_PCT ""COMMISSION_PCT. "

    'OEHR_EMPLOYEES '. "" MANAGER_ID ""MANAGER_ID. "

    'OEHR_EMPLOYEES '. "" DEPARTMENT_ID ""DEPARTMENT_ID ".

    Of

    "#OWNER # '." OEHR_EMPLOYEES' 'OEHR_EMPLOYEES '.

    WHERE

    (lower (first_name) like '%' | lower(:P1_NAME) |) '%' OR

    Lower (last_name) like '% "| Lower(:P1_NAME) | '%')

    AND department_id = decode(:P1_DEPT,'%null%',department_id,:P1_DEPT)

    AND manager_id = decode(:P1_MGR,'%null%',manager_id,:P1_MGR)

    Hello

    Use this...

    SELECT

    'OEHR_EMPLOYEES '. "" EMPLOYE_ID ""EMPLOYE_ID"

    'OEHR_EMPLOYEES '. "" NAME ""FIRST NAME",

    'OEHR_EMPLOYEES '. "" LAST_NAME ""NAME,"

    'OEHR_EMPLOYEES '. "" ""E-MAIL. "

    'OEHR_EMPLOYEES '. "' PHONE_NUMBER '"PHONE_NUMBER. "

    'OEHR_EMPLOYEES '. "' HIRE_DATE ' 'HIRE_DATE ',.

    'OEHR_EMPLOYEES '. "" JOB_ID ' "JOB_ID,

    'OEHR_EMPLOYEES '. "" TREATMENT ""TREATMENT. "

    'OEHR_EMPLOYEES '. "" COMMISSION_PCT ""COMMISSION_PCT. "

    'OEHR_EMPLOYEES '. "" MANAGER_ID ""MANAGER_ID. "

    'OEHR_EMPLOYEES '. "" DEPARTMENT_ID ""DEPARTMENT_ID ".

    Of

    "#OWNER # '." OEHR_EMPLOYEES' 'OEHR_EMPLOYEES '.

    WHERE

    (: P1_NAME IS NULL OR)

    (: P1_NAME IS NOT NULL AND)

    (

    (lower (first_name) like '%' | lower(:P1_NAME) |) '%') OR

    (lower (last_name) like '%' | lower(:P1_NAME) |) '%')

    )

    )

    ) AND

    (: P1_DEPT IS NULL or department_id =: P1_DEPT) AND

    (: P1_MGR IS NULL or manager_id =: P1_MGR)

  • How to create a few new loops to monitor parameters

    Hi all

    Now, I should create a few new loops to monitor the parameters, all parameters have own monitoring frequency.

    I'm trying to use to use sub VI, but the sub VI contains the infinite loop for monitoring and For just run only once, is that I just followed a values.

    My main question is this: how to create some news loops of real-time monitor parameters of different frequencys

    Without seeing your application as a whole, it is difficult to give an exact answer, but there are basically two steps (and many details):

    1. The data that you want to monitor must be accessible or published somehow like being in a global, FGV, event defined by the user, etc.

    2. Create a VI that a while loop that global readings, FGV or whatever several times. The rate at which you read is based on speed, the value can change.

    That's all - with the exception of all the details that I mentioned earlier.

    Mike...

  • How to create objects dynamically (with # dynamics of parameters)

    I need to create a set of objects based on a definition of an XML file (obtained from the server) and add them to my scene.

    I understand how to create the object using getDefinitionByName (and limitations on classes that need to be referenced to be loaded into the SWF file).

    But some objects require parameters for the constructor, and others do not. The XML code can pass easily in required parameter information, but I can't figure out how to create a new object with a dynamic set of arguments (something similar to the use of the Function.Call method of (obj, argsArray).)


    For example, I need something like this works:

    var MC = new (getDefinitionByName (str) as class). call (thisNewThing, argsArray)

    Currently, it is that I can get:

    MC var = new (getDefinitionByName (str) as class)(static, list, arguments)

    Thoughts?

    I think what Dave is asking is a little different.

    He is eager to know how to call the constructor of an object dynamically (when he knows that the number of constructor arguments when running).

    This class I will do it, but seems to be a hack:

    s http://code.Google.com/p/jsinterface/source/browse/trunk/source/core/AW/utils/ClassUtils.a? spec = svn12 & r = 12

    See the "call" method, which has first counts the number of arguments and then calls one of the "n" construction methods based on the number of constructor args.

    I have yet to find a clean way of AS3 to do ala things 'call' however.

    -Corey

  • How to create a second Adobe PDF printer with different parameters?

    Hi all

    I know that it is possible to create copies more or less unlimited normal printers under Windows (XP SP2) which each have their own settings. Very useful for standard jobs that require special configurations.

    We want to use the same technique for the creation of PDF. Now, I'm wondering how to create a second Adobe PDF printer?

    I try to create a new printer on the printer port "my Documents\ * .pdf" which is used by the existing printer, but I wonder what driver to use. Unfortunately there is no Adobe entry in the list and I can not find manually, either.

    We are still on Acrobat 8 (Professional)

    Any tips?

    Thank you very much

    Mike

    The easiest way is to add a generic printer driver. Then enter the properties, change the name and set up the port and in the printer driver. Then edit the remaining properties. You may need to leave after selecting Properties and then open back for these properties took effect. If you are looking for using the PDF Maker printer you should change the name to Adobe PDF, and you can have one of these. For use as a printer, then the other name will work fine.

    It's been a while since I've done this type of addition, but it worked when I did it.

  • How to create a horizontal line in the region of html

    Hello

    How can I create the html elements, including a horizontal line in an html area filled with items. I want to use this horizontal line to part elements optically. Moreover, my solution for now is to group the elements belonging together in a separate html area. So I have now 3 parts of html, each filled with 5 columns of elements. Is it possible to align the elements in the 3 regions (together)? Cause at the present time, only the items in each region are aligned.

    I use oracle 11 g 2 with apex 4.1

    wucis wrote:

    Apex version is 4.1

    Theme: Sapphire 17

    Page: Two level Tabs - right Sidebar (optional / based on a table)

    The region is HTML

    Main question is, how to create a horizontal line as visible separator between items.

    My personal preference would be to group the items according to the needs in the subregions and use CSS to display the Visual borders and uniform spacing of control over formatting tables.

    If however you want using HTML single region, is to create elements of the only view to the agenda of the positions of the sequence in the region where you want the jumps to appear, with the following parameters:

    Name: PX_HR_1 / / substitute suffix number and an increment of page as required

    Display in the form: Display only

    Save Session State: NO.

    Start on a new line: Yes

    Start the new field: Yes

    ColSpan: number of columns in your layout

    Label: leave blank

    Horizontal/Vertical alignment: Above

    Model: --choose a model--

    Type of source: Static assignment

    Source of value or expression:

  • How to create a model Web ADI and save it in our applications?

    Hi all

    I want to create a user registration model he Web ADI so that I can send the form to the customer and they will just fillup the spreadsheet with all users want to add to the system and then load using Web Adi.

    For example, this form is:

    Capture.PNG

    I want to create a model Web ADI for the forms above, which is recorded in the database of applications. As in the example of template below:

    1. Add Oracle WEB ADI you your responsibility. Learn how to create document etc.

    2. via large Oracle book, Journal enter and click Launch Wizard Journal... from there, you can create similar joint document


    Capture2.PNG

    Please help how to create templates like this.

    Thank you very much

    MK

    I haven't worked much on WebADI recently. But I think I understand the mode of operation has not changed, so the link I gave (the one Karim) should always hold.

    The other two (more recent) that I found when google

    oatrain: Simple Custom WebADI Integrator with 12.1.2 Desktop Integration Manager

    Oracle Web ADI: Creating a custom Integrator | Suite Oracle e-Business Applications

    According to the second link:

    Desktop Integration manager involves the creation/management of integrators and parameters

    Office Integrator allows you to create any documents, layout, Mapping, configuration options etc.,.

    You can connect to the application and see what the differences are. Sorry I don't have access to an instance at the present time and no longer remember.

    Cjeers

    AJ

  • How to create a file .eas for sprite sheets?

    Hello

    Does anyone know how to create a file .eas for sprite sheets.

    It looks like a data xml file that would normally correspond with a sprite sheet. I usually use automated sprite sheet software to create the xml data form. I don't see the option for .eas export file in the software of the packer of texture that I use.

    It would be convenient that Photoshop has the ability to export an eas... perhaps with a plugin.

    Thanks for your help.

    EAS file format is also a JSON format, but is specific on board animate. Currently, this spritesheet format can be generated from Flash Pro CC 2014.

    Spritesheets (image file with sprite of equal size stacked in the order) of other tools like packer of texture can also be imported in animate as the dialog box animate import Spritesheet support it. Production however you specify the rows/columns and parameters in the import of fill dialog box so that the sprites are created with precision.

    Plese do try it and let us know if it works for you.

    -Reynaud

  • How to create a PDF/X1a on a Mac? (with or without iWork)

    Hi all
    I don't have an idea what is a "PDF/X1a.
    I know how to create or convert PDF files on a mac, with the Preview app and the iWork.

    But a "PDF/X1a? What is c?

    Anyone know how to create or convert a "PDFX/X1a?

    Thanks to you all.

    Here is an explanation:

    https://www.prepressure.com/PDF/basics/PDFX-1A

    Frankly, I didn't know there are different "flavors". I create .pdf for years without knowing or worry about this. I just use an excerpt:

    Or, if you are in a document Pages (iWork as long that is not really exist anymore - there are separate applications: Pages, Numbers, Keynote), use the export as PDF option.

    Have never heard of someone that they were not able to read the PDF, I sent as an attachment.

  • I can't understand how to create live bookmarks in Firefox 7.0.1

    I can't understand, even with Google, the search, how to create live bookmarks in Firefox 7.0.1. Whenever I select an RSS feed or the attempt to create one, I am taken to another Web page asking if I want to open it with Google Reader or put it on my Google Homepage. I prefer to keep it in a folder in my bookmarks in Firefox toolbar. I have other live bookmarks and attempted to 'copy', then update the source information and food Web site, but they return to foods that I copied them each time they are reloaded. Help, please.

    Options-> Applications-> Web Feed-> add live bookmarks in Firefox.

  • Bookmarks Manager no longer exists on 7.01. How to create folders and organize my favorites?

    Bookmarks Manager no longer exists on 7.01. How to create folders and organize my favorites?

    I don't use a Mac, but I think it is similar. Organize bookmarks, is renamed the show all bookmarks option.

  • How to create only a recovery of the operating system?

    I understand Recovery Manager installs everything, including the factory etc. applications. I just bought a new HP desktop computer and I am interesting to have only an operating system recovery disks or method to install OS only from the recovery disc.

    Is this possible?

    If this is not the case-how can I get support for the operating system that came with the computer?

    Thank you

    Hello

    You should find that you have the ability to perform a system restore minimized when you use Recovery Manager who will just reinstall the operating system and the original, but without the additional software drivers.

    However, what I think personally is a better option is to create a System Image - the main advantage of this is that you can get the operating system exactly as you wish (all updates/service packs applied, all software installed, personal files, etc.) and then create the image.  This way, if you need to reinstall, you get the PC to exactly the State in which it was when you created the image.  It's even easier with Windows 7, as the possibility of creating a System Image is built.  See the guide below for details.

    http://www.howtogeek.com/HOWTO/4241/how-to-create-a-system-image-in-Windows-7/

    I strongly recommend to always create your recovery discs - you are not too sure.

    Kind regards

    DP - K

  • Portege M500 - how to create recovery DVDs?

    Hi there :)

    I bought Toshiba Portege M500. Anyone know how to create a CD/DVD of recovery on this model?

    I installed the "recovery CD creator" but - I just can't create it. The only thing that came on the screen is: Qosmio Player recovery CD.

    On the help page - there are instructions to create the disk - but the options were not available to me. (i.e. the system recovery disc option)

    Help, please! I would really appreciate it!

    Sophie

    Hello

    Portege M500 was equipped with HARD drive recovery option?
    Did you find the information you need to create a recovery disk in the user's manual?

    Where did you find the "Toshiba recovery CD creator"?
    This tool has been pre-installed?

    I guess that there is no image on the HARD drive files that are needed to create the recovery disk Toshiba and so you can't create it.

  • How to create VI execution asynchronous step using the API

    I want to create a "run way asynchronous step VI" using the API TestStand in LabVIEW.

    Navigation on the details of the step and the properties of the object, apparently, that it is a type of 'special' step that is actually a SequenceCall.  However, I don't see how to access the data contained in this type of step.  I enclose my current VI used to 'Browse' the data for reference.

    Please advise on how to create this step.

    Thank you

    Hey LVB,

    I'm sorry, I didn't know that you always wanted to use the "Use the Prototype sequence" checkbox option.  In this case the attached code should demonstrate how this can be accomplished.

    Thank you

Maybe you are looking for