Passing multiple parameters between two report portlets on the same page

Hi,
I want to pass multiple parameters between two report portlets on the same page.
I have been succussful passing a single parameter between two portlets. The
following are the steps :
(1) Created first report based on the query
SELECT htf.anchor('http://192.168.0.84:7778/servlet/page?&_pageid=97&_dad=portal30&_schema=portal30&_mode=3&dept_code='||DEPTNO,DEPTNO) Department, ename FROM EMP;
(2) Created 2nd report
select * from EMP where DEPTNO = :dept_code
(3) Added pl/sql code before display page on the 2nd report
portal30.wwv_name_value.replace_value(
l_arg_names, l_arg_values,
p_reference_path||'.dept_code',portal30.wwv_standard_util.string_to_table2(nvl(g
et_value('dept_code'),10)));
(4) Created a page and added these reports as portlets.
Sofar it works fine for one parameter (deptno) . Now I want to add one more
parameter say empno to my first report query and would like to pass both the
parameters deptno and empno to the 2nd report. Please tell me how to pass multiple parameters ?
Thanks
Asim

Hi,
You will have to do the same thing
The select will be like this
SELECT htf.anchor('http://toolsweb.us.oracle.com:2000/servlet/page?_pageid=97&_dad=mb&_schema=mybugs&_mode=3&dept_code='||DEPTNO||'&empno='||empno,DEPTNO) Department,ename
FROM EMP
In the additional plsql code do the same for empno like this
mybugs.wwv_name_value.replace_value(l_arg_names,l_arg_values, p_reference_path||'.dept_code',mybugs.wwv_standard_util.string_to_table2(nvl(get_value('dept_code'),10)));
mybugs.wwv_name_value.replace_value(l_arg_names,l_arg_values, p_reference_path||'.empno',mybugs.wwv_standard_util.string_to_table2(get_value('empno')));
Thanks,
Sharmila

Similar Messages

  • OBIEE 11G - Issue passing parameters between two reports

    Hi folks,
    I am struggling to pass parameters between two reports in OBIEE 11G.
    My first report contains the following columns: Rolling Year Type (VCHAR), Year(VCHAR), Month(VCHAR), Cost(Double).
    My second report contains the following columns: Rolling Year Type(VCHAR), Year(VCHAR), Month(VCHAR), Category(VCHAR), Cost(Double).
    My requirement is to pass the Rolling Year Type, Year and Month values from report 1 to report 2.
    On the Month column properties of report 1, I have created an Action Link called 'Drill to Category'. I have clicked on 'Navigate to BI Content' and selected Report 2.
    Then on Report 2, I have included three filters: Rolling Year Type is prompted, Year is prompted, Month is promted.
    When I run the report I always get the following error:
    The specified criteria didn't result in any data. This is often caused by applying filters and/or selections that are too restrictive or that contain incorrect values. Please check your Analysis Filters and try again. The filters currently being applied are shown below.
    When I check the cursor cache, the filter values are correct. Does anybody have any idea why Report 2 does not display?
    When I remove the Month filter, the report works correctly.
    I have since changed the third filter to be Month No and although Report 2 does display, it does not pick up the filter on the Month No.
    I initially thought this may have been a caching issue and so I have disabled BI Server Cache but this does not fix my problem.
    This was never an issue on OBIEE 10G as I found it very easy to navigate between two requests.
    Has anyone else experienced problems with passing parameters between two request in 11G?
    Any help appreciated.
    Thanks
    Gavin

    Hi,
    I once tried this kind of requirement(with dashboard prompts though) and hit at similar issue. I later found out that the problem is with the space in the parameter values. Can you please let me know, if the same is the case with you?
    Suppose the parameter passed is "Jan 2010", but the report on the destination takes the value as "Jan" & "2010". Yes, it kind of split the parameter value to two based on space. I think we can notice the filters the destination report got, by enabling filter view.
    In this case, since you pass only value at a time, could you try placing the parameter value anyway in double quotes? I think the Server then will understand it as one value.
    Thank you,
    Dhar

  • Using the same photos and music between two user accounts in the same Mac

    Hi,
    I think this question might have already been asked in the forum.
    1. I have one MacBook Pro and two user accounts (One for me and one for my wife)
    2. We are having two seperate iPhones with seperate AppleIDs
    3. We want to maintain the apps / calendar / mail / reminders / contacts as seperate - Through iCloud (Seperate Apple ID approach) - All this is fine
    4. All we want to have it shared is the Music files and the Photo library without duplicating
    I have tried the shared folder approach for the music and having the iTunes point to that directory for the libary location in the preferences but unfortunately if she adds a folder to the library mine does not get updated unless I do a add folder to library and vice versa.
    Whats the best way to deal with the Photos / Music sharing between two user accounts on the same mac
    Thanks
    Shas

    To give other users read-only access to your iTunes library, use the Sharing features of iTunes. Sharing works over the local network as well as on the same computer. See the built-in help for details.
    To give others selective access to your iPhoto library, you have the option of using iCloud Photo Sharing, if the privacy implications don't bother you. The images will be stored temporarily on Apple servers.
    If you want to give full read/write access to more than one user, see the support articles linked below.
    iTunes: How to share music between different accounts on a single computer
    iPhoto: Sharing libraries among multiple users
    There is a way to share the library without moving it to a secondary volume. If you really need to do that, ask for instructions.

  • Links between portlets on the same page

    Hi,
    I want to search for an employee in a poplist. When I choose one from the poplist I want a report to start that will show all the projects he is working in.
    The above happens but when I put my form as a portlet on a page I want the report to start in another portlet on the same page. Now it opens in a new window and that's not good.
    This is how the link works.
    On the link in the form I have a call 'javascript:runrep()'
    On the form, in the 'Form text' section, in the 'Footer Text' I added the
    code for the runrep function (given below).
    <script>
    function runrep()
    var formObj = document.forms[0];
    var pers_id;
    for (var i=0; i < formObj.length ; i++){
    if (formObj.elements.name == "PERSONAL_SOK.DEFAULT.ID.01"){
    //PERSONAL_SOK is the form name
    pers_id = formObj.elements[i].value;
    break;
    var url="http://linux.ekn.se:7778/pls/portal/ppe_utv.ppe_visa_projektforslag.show?
    //PPE_UTV is the schema_name and PPE_VISA_PROJEKTFORSLAG is the report
    p_arg_names=pers_id&p_arg_values=" + pers_id;
    window.location=url
    </script>
    I guess the url has to have another adress to open on the same page, but what?
    /Jennie

    The post below shows you how to link two reports on the same page. You can probably modify it's solution to achieve what you're trying to do.
    Providing Oracle's default color pallete
    Regards
    Hsiu

  • How can I interact between two different frames in the same indesign template as well as from one template to another.

    I am looking for the best way (or any way) to interact between two different frames in the same indesign template as well as from one template to another. It's for a DPS app which needs to carry some button initiated data from one page to another and then present it in a table.

    There is no simple way to do it, as itunes wont let you use it on another computer without wiping the contents first.
    However if you really want to transfer songs to another computer then you could try this;
    * make sure that your ipod is accessible as a disk drive (ipod options)
    * when you plug your ipod into the computer you want to transfer to make sure you select "no" or "cancel" when it asks to wipe the contents. Leave the ipod connected and quit from itunes.
    * go to "my computer" and access the ipod directly. You probably have to select "view hidden files" from windows. You will see a lot of folders with odd names like ZX838aff with similar named files inside.
    * copy these files to a folder on your computers hardrive. Now remove the ipod and start itunes.
    * import the files from the folder you made in the last step.
    * Now your music is on itunes, but with unrecogisable names.
    This is the only way I have found to do it, but there may be another way, say with an application to do the hard work for you.
    Generic homebuild PC Windows XP
    Generic homebuild PC   Windows XP  

  • Can I have a Face Time conversation between two Apple devices using the same Apple ID?

    Can I have a Face Time conversation between two Apple devices using the same Apple ID?

    Yes, you can, but the two devices can't have the same e mail address associated with both.  Each, device needs its own unique e mail ADR.  In your case, the iPod can call your iPhone if you use the phone number, but the iPhone can not call your iPod because it must use the e mail address, and if the email address is the same on both, the iPhone will think it's calling itself, so the call will not go through.

  • Can you transfer files between two user accounts on the same macbook pro?

    Can you transfer files between two user accounts on the same MacBook Pro?
    Specifically, I used the Migration Assistant to move music and photos from my old PC to my new MacBook. 
    Somehow, I missed the fact that it was creating a new user account when it was doing this.  So none of music and photos are in the user account I originally set-up.  Instead, all these files are now in a different account.
    I'd like to consolidate all my files on the one user account and delete the other one.
    Is this possible and, if so, how do I do it?
    Thank you.

    you can crop files from one account to another using the Public Dropbox which every user account has.  Log into the user that has the files you want to move, then drag the folder you want to the new users' dropbox:
    I suggest a small scale test on a few files first before moving gigabytes of files.

  • Communication between Two WebLogic instances on the same machine

    Hi,
    We're having a problem with communication between two copies of Weblogic on
    the same machine. They are configured with seperate ports (regular and SSL).
    Independantly, they run fine. I can access EJBs running on either of them.
    The problem is that a bean in one of them has code which attempts to access
    an EJB on the other one. The procude fails when trying to obtain the initial
    context. This same code works if compilied independantly of WebLogic on the
    same machine.
    Are there any known issues regards communication between two running
    instances of Weblogic on the same machine?
    Thanks in advance,
    Randy Yarger
    marchFIRST
    [email protected]

    Thanks for the prompt reply.
    There is one IP address (internal address 10.227.1.34) one the machine. WLS1
    is set up at ports 7001 and 5133. WLS2 is setup at ports 7004 and 7005.
    When WLS1 attempts to obtain a context to WLS2 with the URL
    t3://10.227.1.34:7004/ it pauses for a long period of time. Running truss
    on the both WLS processes shows communication occuring between the two
    followed by long periods of silence. Finally WLS2 spits out the error
    ConnectionException[7001,7001,5133,5133,7001,7001] (paraphrased, I can get
    the entire error if it would help).
    After another long pause, WLS1 quits trying with the error 'Server
    10.227.1.34:7004 not found' (again paraphrased).
    Among the things we've tried:
    * Changing the URL from the IP to 127.0.0.1
    * Enabling/disabling SSL on either or both WLSs.
    * Changing the server name in WLS2's copy of weblogic.properties from
    'myserver' to 'myserver2' (previously they were both 'myserver')
    * Upgrading WLS2 to 5.1.0sp5 (Tried upgrading WLS1, but was getting class
    not found errors and quit because that WLS is being used by other people)
    This is a Solaris server. WLS1 is running 5.1.0 and WLS2 is running 5.1.0sp5
    Any suggestions would be appreciated.
    Best,
    Randy Yarger
    marchFIRST
    [email protected]
    "Michael Girdley" <[email protected]> wrote in message
    news:[email protected]...
    >
    >
    There should not be. What is your network configuration? Are they on
    separate IP addresses?
    Thanks,
    Michael
    Michael Girdley
    BEA Systems Inc
    "Randy Jay Yarger" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    We're having a problem with communication between two copies of Weblogicon
    the same machine. They are configured with seperate ports (regular andSSL).
    Independantly, they run fine. I can access EJBs running on either of
    them.
    The problem is that a bean in one of them has code which attempts toaccess
    an EJB on the other one. The procude fails when trying to obtain theinitial
    context. This same code works if compilied independantly of WebLogic onthe
    same machine.
    Are there any known issues regards communication between two running
    instances of Weblogic on the same machine?
    Thanks in advance,
    Randy Yarger
    marchFIRST
    [email protected]

  • Configuring SMTP Namespace Sharing between two Exchange Forests on the same LAN

    Hi guys, really hoping that someone can help me with configuring SMTP Namespace Sharing between two Exchange Forests on the same LAN.
    Basically, I have created a new forest and installed a new exchange organisation in this forest.  Both forests are located on the same IP subnet and a two way trust has been created between the forests.  Federated sharing has also been configured. 
    I can use ADMT to migrate the user and computer accounts to the new forest and also migrate test mailboxes over.  Ideally, I want to be able to do the mailbox migrations in stages so will need to be able to have mail flowing between the two forests. 
    I have read over the following article (http://ibrahimnore.wordpress.com/2012/09/06/configuring-smtp-namespace-sharing-between-two-exchange-forests-part-2/)
    which is good but it's demonstrating over the internet, can anybody advise how this can be achieved on the local LAN? 
    Any help greatly appreciated :-)

    Hi Gilliano,
    Thanks for correct link. I must say this is a very good article indeed, I read the entire article and if you go to the 3rd part of this article, please note the text "DOMAINC.COM is configured as Internal Relay Accepted Domain on both the domains"
    This is exactly what I asked you to check. Personally, I understand the method described in this article will work but its very complex to manage and administer, while the easiest option is to configure internal relay at the first place and no need to make
    so many DNS changes and customizations to your environment.
    The solution really depends on what your requirement is - Since you mentioned that you are migrating stuff over from source to destination - I feel this article is too complex for your situation and not really worth (for your requirement). The setup described
    in the article is an excellent choice if you are planning to keep both forests alive for longer duration due to several reasons like compliance or company mergers and so on...
    please let me know if my explanation is not clear enough.. we can even even have a one-on-one email conversation too!
    All the best!
    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. Regards, Siva

  • How to place two narrow portlets in the same row of a wide column

    Hi,
    How to place two narrow portlets in the same row of a wide column.
    Im using ALUI 6.1
    Thanks in advance
    sandeep

    As I understand there is no easy way to do it now. I guess in theory that can be done by customizing ALUI page layout source code, but this is significant efforts. Correct me if there is more easy way to do it.
    Edited by Bryazgin at 05/23/2007 7:32 AM

  • How do you get FaceTime to work between two Mac's with the same email address? Thanks, Mike

    How do you get FaceTime to work between two Mac's with the same email address?

    I would like to know the same thing.  How does facetime work between a MacBook Pro and an I Pad that run off the same email address/mac id

  • Can i use ichat between two separate macs on the same mobile me account?

    Can i use ichat over two separate macs on the same mobile me account?
    I have an imac at home and may be getting a macbook for work. Can i use my mobile me account to chat between the two macs or would i need a mobile me account per mac??

    Hi,
    No.
    You need two names that can login into AIM.
    In iChat you can use the Get an iChat Account which shows after you use the Plus Button in Accounts.
    This will give you a free @mac.com Name
    AIM Names are also free.
    9:31 PM Saturday; July 4, 2009
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Share iTunes purchases between two user accounts on the same Mac?

    I have a Macbook Pro, for my bride and I, and a Macbook, for our kids. Both Macs are authorized on my iTunes account.
    So, how can I share an iTunes Store purchased song on my account with my wife's? I understand how to turn on sharing and she can see my songs in iTunes on her account, but she cannot synch them to her iPod.
    Now, I'm allowed to authorize an iTunes account on up to five Macs. I have two. But I have four accounts. Either way, I won't be exceeding five copies, but can't find a way to get a song I bought in my iTunes to my wife's iPod.
    We use the same iTunes account but don't want to have to buy things twice to get them on her iPod. Just seems weird that I could put it on five machines but not two user accounts on the same one.
    Message was edited by: Sky Guy

    On my Mac Pro I moved the entire library to "Macintosh HD/Shared/iTunes". Changed the Folder location in iTunes Preferences->Advanced->General to point to that location. Then in each user change the Music/iTunes folder to be an alias or link pointing to the Shared/iTunes folder. You will likely need to change the permissions on that folder to give everyone the ability to read and write. Do that via "Get Info" on the iTunes folder using Finder. I'd suggest backing everything up before you do this.

  • Can I print 2 different reports consecutively on the same page?

    I need to print two different reports on the same page. E.g.
    Page 1.
    Report 1
    Report 2
    --------------- page break ---------------
    Page 2
    Report 1
    Report 2
    --------------- page break ---------------
    Is there any way to ensure that the physical page in printer does not eject when Reports finishes printing Report # 1? Also Report # 2 could span to multiple pages, but Report # 1 will always be a fixed form report.
    Thanks for your help
    Aparna

    Hi Srini,
    I suppose I could do as you suggested, but then that would be a work around, not a solution... Actually the Report # 2 that I have can be called independently and hence if I do as you suggest, I would have to make the same report twice. Hence any other ideas?
    Thanks,
    Aparna
    null

  • How to share the same QUERY among report, chart on the same page? and more

    Dear HTMLDB experts,
    I am absolute rookie to this tool, so I have some questions need you all's help.
    (1)
    When I build a page with a spread sheet and a chart on the same page, they all use the same query to get the data. However, I have to type in the SQL twice in spread sheet(report region) and chart's attribute sections. It seems so dumb, does it really run the same query twice, is there a way to share the same query?
    i.e. SELECT name, timestamp, value FROM foo WHERE name = :P1_NAME? (by the way, is :P1_NAME case sensitive?)
    (2)
    In the same chart, if I have two series from two columns of the same table, I have to write 2 queries, one
    select null, timestamp, value1 from same_table
    and
    select null, timestamp, value2 from same_table
    Is it possible to use one query: select timestamp, value1, value2 from same_table and define the series on two value columns of this single query? It's really no point to run two queris.
    (3)
    In a chart, when the query has ORDER by clause, it seems the chart is not showing up.
    So instead of using the query below
    SELECT null, to_char(ts,'mmdd') ts, value
    FROM same_table
    WHERE ts >= TRUNC(SYSDATE) - :P2_DAYSAGO - 1
    AND name = :P1_NAME
    ORDER BY ts
    I have to use a walkaround query
    SELECT null, ts, used
    FROM
    SELECT null, to_char(ts,'mmdd') ts, value
    FROM same_table
    WHERE ts >= TRUNC(SYSDATE) - :P2_DAYSAGO - 1
    AND name = :P1_NAME
    ORDER BY ts
    Further more, it seems :P1_NAME in the same subquery is not working for the chart, i get xml parsing errors in SVGviewer, however the same query works for the spread sheet area, I am really puzzeled. Not sure whether it's dumb tool or dumb me :-)
    Appreciate your help!
    Jianhui

    <quote>
    Further more, it seems :P1_NAME in the same subquery is not working for the chart, i get xml parsing errors in SVGviewer, however the same query works for the spread sheet area, I am really puzzeled. Not sure whether it's dumb tool or dumb me :-)
    </quote>
    For this particular issue, I found out that neither is the tool dumb nor is me. It's SVGViewer messed up with the firefox browser, after I rebooted the computer this morning, problem is gone. I didnt reboot after I copied SVGViewer dll and zip file to firefox plugin directory yesterday. Never had that pain with IE and Netscape, oh well :-). So please ignore this section, however other questions are still unsolved puzzles for me. Thank you all if you can share some light on those questions.

Maybe you are looking for