Use parameters in the folder

I am new to Discoverer, so please excuse me if this is a dumb question.
Right now, we have a table that is populated through a load procedure that runs at night. This is a kill-and-fill process which just runs a SELECT statement and inserts the results into a table. Many rows are created from this.
The Discoverer report I am looking at just queries the table for the data using parameters. Simple and easy.
However, I would really like to eliminate the load procedure all together and just use a pipeline function which gets the same information... and faster.
I would like to change the SQL statement being used now to the one using the pipeline function. In order to do this, I would need to pass in the parameters from the report into the SQL statement (date range and other things).
Is this possible?
I appreciate everyones time to read this.

Hi,
There are two techniques you can use to pass parameters through to the table function that is referenced in a view mapped into the EUL.
1. Join your table function to a table. For example, if you want to pass EMPNO into your table function then you can create your view like this:
CREATE OR REPLACE VIEW pipedview AS
SELECT e.empno, t.*
FROM emp e, TABLE(your_function(e.empno)) tThen you can create a empno parameter based on the empno column in the view. This method only works if you have a tightly controlled list of values for your parameters.
2. Use database contexts. Define a database context namespace and use a separate worksheet to set the database contexts. Check out some of these threads on how to use contexts with Discoverer:
Re: Implementing HR report in Discoverer
Re: Passing multiple parameters into Custom Folder...
Re: Parameters in SubQuery
Re: Passing Parameters to a discoverer folder using Note 282249.1
Then create your view like this:
CREATE OR REPLACE VIEW pipedview AS
SELECT * FROM TABLE(your_function(SYS_CONTEXT('DISCO_CONTEXT','EMPNO'))) tYour users will have to ensure that the context has been set before the reporting worksheet is run.
Rod West

Similar Messages

  • Problems using Parameters

    Hi im trying to contribute documents on UCM using parameters because my legacy applications wont support webservice and because this can be the most simple way.
    Reading services documentation i found CHECKIN_UNIVERSAL
    If i use this url:
    http://localhost/idc/idcplg?IdcService=CHECKIN_UNIVERSAL&dSecurityGroup=Public&primaryFile=C:/test.txt&dDocAuthor=AUTOR&dDocTitle=TITLE
    I get this error message:
    Content item 'DEMO_000002' was not successfully checked in. The content item must have a primary file.
    I did exactly like the documentation.
    What`s missing?

    The check in services require an actual file as a payload along with the call. Simply using parameters in the url will not work for a check in. Unless you want to do a metadata only check in?
    In which case if your server is configured for that you can add this addtional parameter to your url: createPrimaryMetaFile=true
    Read More Here:
    [http://www.corecontentonly.com/2008/09/15/MetadataOnlyCheckIn.aspx|http://www.corecontentonly.com/2008/09/15/MetadataOnlyCheckIn.aspx]

  • Robocopy not copying the folder creation date

    We migrate the data between 2  Windowsfile servers using robocopy and it works finew ith issues. Only issue is it doesnt copy the folder creatiopn date from source to destination server, it does copy the file creation date without any issues. Command
    we use is as below.
    robocopy.exe %1 %2 /COPYALL /MIR /ZB /R:10 /W:2 /TEE /DCOPY /LOG+:robocopy_%3.log
    This command is called using a batch file where we specify the source and destination using the below syntax.
    call Robocopy_Module.bat "C:\Backup" "C:\Restore"
    Kindly advise if this is normal behaviour , if not what is the correct command used to copy the Folder creation dates.

    I was using like this
    Go to CMD prompt,
    RUN as Administrator
    Type  
    robocopy "source path" "destination Path" / MIR
    It will copy including time stamps.
    or create seprate folder in a destination place and copy everything into that folder.
    It will work.

  • Downloading images used to go automatically to the last folder used to save images, even when reopening Firefox. In just the past few days, possibly coinciding wih the most recent updates, the folder defaults to the 'Downloads' folder. This is most annoyi

    Downloading images used to go automatically to the last folder used to save images, even when reopening Firefox. In just the past few days, possibly coinciding wih the most recent updates, the folder defaults to the 'Downloads' folder. This is most annoying. What happened? Internet Explorer 8.0 did the same thing. This was one of the reasons why I started using Firefox to download all images. I went into Tools>Options and it only lets me set another folder. I dont want to set a specific folder I want it to always go to the last folder used. So what gives?
    == This happened ==
    Every time Firefox opened
    == possibly when the most recent updates were installed, a few days ago

    Thanks jscher 2000. I guess I didn't make it clear. "It restarts with all the addons activated, and resumes with the tabs that were open before closing it." IE, it's running fine now with all the extensions activated. Everything is OK now.
    So something in the Firefox code was causing the bad behavior. It's not essential that I find out what the problem was - I'm just curious. And if anybody else has this same problem, it might be nice to have it corrected at the source.

  • Downloads used to open after download. NOw they just end up in the download folder and I have to go to the folder to find it and open it. I did not change seettings, maybe an update changed it? I cannot find a way to change this in settings.

    Downloads used to open after download. NOw they just end up in the download folder and I have to go to the folder to find it and open it. I did not change seettings, maybe an update changed it? I cannot find a way to change this in settings.
    == This happened ==
    Every time Firefox opened
    == A week or two ago. Not sure if result of most recent update.

    Downloads used to open after download. NOw they just end up in the download folder and I have to go to the folder to find it and open it. I did not change seettings, maybe an update changed it? I cannot find a way to change this in settings.
    == This happened ==
    Every time Firefox opened
    == A week or two ago. Not sure if result of most recent update.

  • How do I create an action to save as, but into a different folder than the one I used to create the action?

    I am having an issue with my action being created to save under the same folder that my action was created with.  For instance, I opened an image, recorded the action, then I went to a different folder to play the action, but it saves to the previous folder.  How do I add some way to change the folder I want my pics to save to?

    If you want to give Scripting a try paste the following text into a new file in ExtendScript Toolkit and save it as a jsx-file into Photoshop’s Presets/Scripts-folder.
    // saves jpg into same folder;
    // be advised: this  overwrites existing jpgs of the same name without prompting.
    // 2010, use it at your own risk;
    #target photoshop;
    if (app.documents.length > 0) {
    var thedoc = app.activeDocument;
    // getting the name and location;
    var docName = thedoc.name;
    if (docName.indexOf(".") != -1) {var basename = docName.match(/(.*)\.[^\.]+$/)[1]}
    else {var basename = docName};
    // getting the location, if unsaved save to desktop;
    try {var docPath = thedoc.path}
    catch (e) {var docPath = "~/Desktop"};
    // jpg options;
    var jpegOptions = new JPEGSaveOptions();
    jpegOptions.quality = 12;
    jpegOptions.embedColorProfile = true;
    jpegOptions.matte = MatteType.NONE;
    //save jpg as a copy:
    thedoc.saveAs((new File(docPath+'/'+basename+'.jpg')),jpegOptions,true);
    //that’s it; thanks to xbytor;

  • HT201317 Photos from my iphone and ipad are going into my photo stream on the devices but aren't going into the folder on my windows PC. They used to but they suddenly stopped. Has anyone else had this same problem?. I have checked all settings and they a

    Photos from my iphone and ipad are going into my photo stream on the devices but aren't going into the folder on my windows PC. They used to but they suddenly stopped. Has anyone else had this same problem?. I have checked all settings and they appear OK

    Hi AP_In_Surbiton,
    I am really sorry that you have had so much trouble getting your Caller ID up and going.  I'll be happy to help you out with this and get it working for you.
    Could you drop me in an email please? Use the 'contact us' form in my forum profile under the 'about me' section. You can find it by clicking on my username.
    Thx
    Craig
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)”
    td-p/30">Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • When I want to organise my bookmarks most of the options are greyed out and cannot be used including create new folder! Help

    '''''''''bold text'''''''''
    When i want to organise my bookmarks most of the options on the organise bookmarks menu are greyed out and cannot be used - including create new folder etc. Help please.

    Make sure you are not in the Private Browsing Mode:
    File > Private Browsing is UNCHECKED.

  • Some emails don't appear in the folder list, I can only find them by using Search Messages

    As of yesterday, new emails from one regular correspondent do not appear in the list of messages when I click on Inbox. The only way I can access them is to use "Edit/Find/Search Messages". They are still in Inbox, they haven't been moved to another folder.
    Thunderbird version is 31.6.0.

    None of these apply, the messages have been received, I can find them using Search Messages but they do not appear in the folder contents.

  • When using Iphoto to import photo from existing folder, what happens if I delete the photo in Iphoto ? Will the original file in the folder be deleted too?

    When using Iphoto to import photo from existing folder to iphoto, what happens if:
    1. I delete that photo in iphoto? will the original file in the folder be deleted too ?
    2.  when importing, does the hard disk store 2 versions of the photo, hence occupying additional space in the harddisk?

    1 - no  --  iPhoto only manages fiel within the iPhoto library - it does not ever do anything with files outside the library
    2 - No idea what you are asking - by default (and strongly recommended) iPhoto copies the original to the iPhoto library and you delete the source file outside the iPhoto library - iPhoto alwasy has at least two versions of every photo and some times three - it always have the original, a thumbnail and once a photo is modified a preview - this is not optional - if it is not what you want then iPhoto is not the correct progrtam to be using for phopto management
    LN

  • When I use under file save page as a desktop icon firefox downloads 2 a icon and a folder, how do I get rid of the folder and just keep the icon like in I.E.

    I'm just trying to save my favorite website short cut icon to the desktop instead of using bookmarks for everything. In I.E. you have the option to save to desktop your favorite website and you only get a shortcut icon. but in Firefox if you save your website to your desktop you get both the website icon but also a folder. but if I try to remove or delete the folder it removes the icon also. how in Firefox can I get just a shortcut icon for favorite website but without the folder.

    Hi Panamark,
    The problem has been resolved for me. I am a little fuzzy on how it got fixed.
    I only have 3G, so I think I went to the library to use wi-fi.
    I think I just deleted the stuck apps, and the downloaded them again. You do not have to pay again when you download a previously purchased app.
    It is now August, and fortunately I have not had any stuck apps lately.
    As you may already know, you cannot download an app over 20 MB via 3G.
    I have the Kindle app also. No new updates lately. I only bought one thing using Kindle. It was a guide to iPad that was only $1.99 or so, but it did not really have anything that cannot be found in normal free Apple guide.
    I have borrowed an ebook from the library using Overdrive app. You can choose the ebook version from Kindle.
    I don't have any weather apps.
    Let me know what happened when you get the chance.
    M

  • How to use multiple selection parameters in the data model

    Hi, after have looked all the previous threads about how to use multiple selection parameters , I still have a problem;
    I'm using Oracle BI Publisher 10.1.3.3.2 and I'm tried to define more than one multiple selection parameters inside the data template;
    Inside a simple SQL queries they work perfectly....but inside the data template I have errors.
    My data template is the following (it's very simple...I am just testing how the parameters work):
    <dataTemplate name="Test" defaultPackage="bip_departments_2_parameters">
    <parameters>
    <parameter name="p_dep_2_param" include_in_output="false" datatype="character"/>
    <parameter name="p_loc_1_param" include_in_output="false" datatype="character"/>
    </parameters>
    <dataTrigger name="beforeReport" source="bip_departments_2_parameters.beforeReportTrigger"/>
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    select deptno, dname,loc
    from dept
    &p_where_clause
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_DEPT" source="Q2">
    <element name="deptno" value="deptno"/>
    <element name="dname" value="dname"/>
    <element name="loc" value="loc"/>
    </group>
    </dataStructure>
    </dataTemplate>
    The 2 parameters are based on these LOV:
    1) select distinct dname from dept (p_dep_2_param)
    2) select distinct loc from dept (p_loc_1_param)
    and both of them have checked the "Multiple selection" and "Can select all" boxes
    The package I created, in order to use the lexical refence is:
    CREATE OR REPLACE package SCOTT.bip_departments_2_parameters
    as
    p_dep_2_param varchar2(14);
    p_loc_1_param varchar2(20);
    p_where_clause varchar2(100);
    function beforereporttrigger
    return boolean;
    end bip_departments_2_parameters;
    CREATE OR REPLACE package body SCOTT.bip_departments_2_parameters
    as
    function beforereporttrigger
    return boolean
    is
    l_return boolean := true;
    begin
    if (p_dep_2_param is not null) --and (p_loc_1_param is not null)
    then
    p_where_clause := 'where (dname in (' || replace (p_dep_1_param, '''') || ') and loc in (' || replace (p_loc_1_param, '''') || '))';
    else
    p_where_clause := 'where 1=1';
    end if;
    return (l_return);
    end beforereporttrigger;
    end bip_departments_2_parameters;
    As you see, I tried to have only one p_where_clause (with more than one parameter inside)....but it doesn't work...
    Using only the first parameter (based on deptno (which is number), the p_where_clause is: p_where_clause := 'where (deptno in (' || replace (p_dep_2_param, '''') || '))';
    it works perfectly....
    Now I don't know if the problem is the datatype, but I noticed that with a single parameter (deptno is number), the lexical refence (inside the data template) works.....with a varchar parameter it doesn't work....
    So my questions are these:
    1) how can I define the p_where_clause (inside the package) with a single varchar parameter (for example, the department location name)
    2) how can I define the p_where_clause using more than one parameter (for example, the department location name and the department name) not number.
    Thanks in advance for any suggestion
    Alex

    Alex,
    the missing thing in your example is the fact, that if only one value is selected, the parameter has exact this value like BOSTON. If you choose more than one value, the parameter includes the *'*, so that it looks like *'BOSTON','NEW YORK'*. So you need to check in the package, if there's a *,* in the parameter or not. If yes there's more than one value, if not it's only one value or it's null.
    So change your package to (you need to expand your variables)
    create or replace package bip_departments_2_parameters
    as
    p_dep_2_param varchar2(1000);
    p_loc_1_param varchar2(1000);
    p_where_clause varchar2(1000);
    function beforereporttrigger
    return boolean;
    end bip_departments_2_parameters;
    create or replace package body bip_departments_2_parameters
    as
    function beforereporttrigger
    return boolean
    is
    l_return boolean := true;
    begin
    p_where_clause := ' ';
    if p_dep_2_param is not null then
    if instr(p_dep_2_param,',')>0 then
    p_where_clause := 'WHERE DNAME in ('||p_dep_2_param||')';
    else
    p_where_clause := 'WHERE DNAME = '''||p_dep_2_param||'''';
    end if;
    if p_loc_1_param is not null then
    if instr(p_loc_1_param,',')>0 then
    p_where_clause := p_where_clause || ' AND LOC IN ('||p_loc_1_param||')';
    else
    p_where_clause := p_where_clause || ' AND LOC = '''||p_loc_1_param||'''';
    end if;
    end if;
    else
    if p_loc_1_param is not null then
    if instr(p_loc_1_param,',')>0 then
    p_where_clause := p_where_clause || 'WHERE LOC in ('||p_loc_1_param||')';
    else
    p_where_clause := p_where_clause || 'WHERE LOC = '''||p_loc_1_param||'''';
    end if;
    end if;
    end if;
    return (l_return);
    end beforereporttrigger;
    end bip_departments_2_parameters;
    I've written a similar example at http://www.oracle.com/global/de/community/bip/tipps/Dynamische_Queries/index.html ... but it's in german.
    Regards
    Rainer

  • I use Windows Vista and Microsoft Outlook. After migrating to iCloud, the calendar of iCloud tranferred only part of my past Calendar items to the folder iCloud Calendar in my Outlook. How can I transfer all the entries?

    I use Windows Vista and Microsoft Outlook. After migrating to iCloud, the calendar of iCloud tranferred only part of my past Calendar items to the folder iCloud Calendar in my Outlook. How can I transfer all the entries? In iCloud's site all are there.

    If the calendar is on iCoud.com, all you would need to do to get it on your phone is go to Settings>iCloud on your phone, sign into your iCoud account and turn Calendars on.  The iCloud calendars will then download to your phone.

  • I can no longer drag a link to a folder -- a Windows folder -- to save it. This feature is (was) very useful as I could save links relevant to my work in the folder for the project.

    In previous versions I have been able to drag the icon from the address bar to a Windows folder, producing a clickable link in that folder.
    I even have FAQ and Help files on various web sites advising people to do that as it is very useful to have links to web sites in a folder relevant to the content of the folder.

    This is very frustrating -- this feature worked in ver. 3, not sure about 4, but now FF 5 has removed it. This is important enough to me to either revert to v. 3 or use Opera (see below).
    IE v. 8 has removed it too.
    Opera v. 11 will do it -- but it only saves to the desktop and not to folders, so you have to drag the icon to the desktop and then drag it into the folder.
    I use this regularly with presentations -- will be doing one next weekend -- and I take it on a USB memory stick to someone else's computer. I can click on a link in the presentation folder and have that page open in their default browser. It does me no good to have the link in my bookmarks back at my office.
    If you're going to remove the feature, you might ought to remove the suggestion to use it at:
    http://kb.mozillazine.org/Mouse_tips
    and
    https://support.mozilla.com/en-US/kb/Creating a desktop shortcut to a web page
    Please restore this feature!

  • I am looking for a specific photo in my event folder, it does not show up, yet when I use the search feature, the photo is there.  Why doesn't it show up in the folder?

    I am looking for a specific photo in my event folder, it does not show up, yet when I use the search feature the picture is there.  Why doesn't it show up in the folder?

    What system and iPhoto version are you running?
    If your're using iPhoto 9 or later  Command (right) - click on the photo in the search window and select Show Event in the Contextual menu. 
    That will take you to the event where the photo is.
    OT

Maybe you are looking for