Would like to use @variable('BOUSER')

Hi All,
I am working with
-->   Business Objects XI R2 (View Crystal Report using InfoView)
-->   Business Views XI R2  ( access the data using Oracle 10g ) building LOV location table with the
       proper access to the location(s) they have  to.
-->   Crystal Reports XI R2 (Database connection is the Business View)
I need to pass the BO User ID of the person running the report to the Oracle db.
Any suggestions would be greatly appreciated.
====================================================
I am working with 2 tables
-->   LOCATION_SECURITY.SECURITY_ALL_LOCATIONS
-->   LOCATION_SECURITY.SECURITY_FOLDER_LOCATION
If they exist in the LOCATION_SECURITY.SECURITY_ALL_LOCATIONS table then give them access to all locations also I want to display ...ALL value at the top of the LOV.
If they exist in the LOCATION_SECURITY.SECURITY_FOLDER_LOCATION table then give them access to all only the locations they have access to I DO NOT want to display the  ...ALL value at the top of the LOV.
Proposed Oracler View
Select @variable('BOUSER'), 99999 as Folder, '...ALL' as Location, 'All Locatiions' as Description
From dual
where (select Q.User_ID from LOCATION_SECURITY.SECURITY_ALL_LOCATIONS
          where Q.User_ID = @variable('BOUSER')) Is not null
UNION
Select C.User_ID, 99999 as Folder, B.Location, B.LocationName
From medgate_v60_app.MT_TBLLOCATION  B left join
     LOCATION_SECURITY.SECURITY_ALL_LOCATIONS C on C.User_ID Is not null and
     C.User_ID = @variable('BOUSER')
UNION
Select D.User_ID, D.Folder_ID, D.Location, E.LocationName
from LOCATION_SECURITY.SECURITY_FOLDER_LOCATION D Left Join
       medgate_v60_app.MT_TBLLOCATION E on D.Location = E.location
WHERE 
  D.Folder_ID in (SELECT O.REAL_FOLDER_ID FROM LOCATION_SECURITY.FOLDER_MAPPING O) 
  and @variable('BOUSER')

Do you need to use an SSO authentication?
  NO I am using an Oracle UserID for everyone with no prompt for password
Do you need to verify that you BOUSER matches a user stored in a table?
YES  the user either belongs in either the SECURITY_ALL_LOCATIONS table or the SECURITY_FOLDER_LOCATION table
Can you detail the workflow you want to do with BOUSER?
I know that in Business Views I can use CurrentUserName in a filter to select the person I want by using I would like to pass to the Oracle SQL View the user running the BO USER running the report.:
Here is what the original Oracle View looks like.
Select A.User_ID, 99999 as Folder, '...ALL' as Location, 'All Locatiions' as Description
From   LOCATION_SECURITY.SECURITY_ALL_LOCATIONS A
UNION
Select C.User_ID, 99999 as Folder, B.Location, B.LocationName
From  medgate_v60_app.MT_TBLLOCATION  B left join
         LOCATION_SECURITY.SECURITY_ALL_LOCATIONS C on C.User_ID Is not null
UNION
Select D.User_ID, D.Folder_ID, D.Location, E.LocationName
From LOCATION_SECURITY.SECURITY_FOLDER_LOCATION D
          Left Join medgate_v60_app.MT_TBLLOCATION E on D.Location = E.location
Where D.Folder_ID in ( SELECT O.REAL_FOLDER_ID FROM LOCATION_SECURITY.FOLDER_MAPPING O )
Edited by: Rick Phillips on Jan 29, 2009 3:56 PM

Similar Messages

  • How to use @variable(bouser) in Universe to get BOE userid in Xcelsius

    Dear Expert,
    I have request that need to display BOE userid to displayed in Dashboard using Xcelsius,
    after searching in Internet, i found that it can be done by using @variable(bouser) in an object in the Universe, and use the object in Qaaws, but i don't how to use it.
    already tried insert /* @variable('BOUSER') */ in END_SQL universe parameter, but still no luck.
    my question is :
    how to use @variable(bouser) in universe? and then my Xcelsius can display the BOE userid?
    thanks in advance for any answer.
    I Using SAP Integration KIT to create universe from Query BEX
    Luqman
    Edited by: luqman hakim on Jun 29, 2010 4:03 PM

    >
    Didier Mazoue wrote:
    > Hi,
    >
    > You are mentioning that you are using SAP Integration Kit.
    > Does it mean that the source you are targeting is SAP BW?
    >
    > If it is the case, this is unfortunately not supported.
    > SAP BW MDX does not support calculated expressions that return string or date: this is a limitation of SAP BW engine.
    > This is one of the reason why a lot of user exit are used to address these needs.
    >
    > Regards
    > Didier
    Didier Mazoue 
    yes, my Data source is SAP BW, and connected to BOE via SAP INT KIT.
    It's too bad that SAP doesn't support so simple requirement.
    you said : user exit 
    are used to address these needs.
    so there are possibility to solve my problem.
    would you give me the logic of user exit?  which part I should create the user exit
    I'm quiet familiar with user exit in BW
    thanks

  • HT2477 I have a new MacBook Pro which has Windows 7 installed so I have only ever used it as a PC,  I would like to use the apple system but was never shown how to do this and I cannot even work out how to switch it on .  If I just press power iI get wind

    I switch the power on on my MacBook Pro I get windows7
    this is no problem but I love my IPad and would like to use the apple system on my MacBook .
    CAn anyone tell me which keys I press to change from windows 7 to Apple most articles I have read tell you it is easy but not one says "firstly press x then press y and when you see c press v so I no idea how to do it,
    I am well educated but I am 75 so I do not understand the jargon but I am fairly good at using computers and I do like the app system.
    I Would be very pleased if someone can advise me
    best regards
    TOm

    Reboot, hold the option key down as soon as you hear the chime. When the Boot Manager appears select OSX instead of Windows.

  • I would like to use time Machine to back up to a network SMB drive. I can see the drive on my desktop but it will not show in the time machine window to be able to select it

    I currently have a mini server (OSX10.8.5, server 2.2.2) that I am using Time Machine to back up 4 external drives that are connected to the server via firewire 800. I would like to use Time Machine to back up to a windows network SMB drive. I can see the drive on my desktop but it will not show in the time machine window to be able to select it for use.
    Can this be done
    Thanks for any and all help

    The supported targets for Time Machine backups are local (direct-connected) disks, and network targets include Time Capsule, a disk hanging off the current-generation AirPort (though not earlier AirPort devices), and OS X Server systems.
    The Time Machine storage is based on the HFS+ file system, so I would not expect TM to work with SMB file services.
    While there are hacks to allow Time Machine to access network drives, I would not consider those to be reliable. Skim the forum and the 'net for related details, and for previous discussions of setting this up and the related issues that can arise.
    Remember to test the recovery with whatever you decide to use; whole point of backups is the ability to restore the data, after all.
    If you want to learn more about Time Machine, Pondini is an excellent resource.

  • I would like to use my HP officejet pro 8600 and HP officejet pro 8100 for printing envelopes

    I would like to use my HP officejet pro 8600 and HP officejet pro 8100 for printing envelopes.

    Hi there cv4928,
    Could you provide the community with a little more information to help narrow troubleshooting? What operating system are we using and what application will we be printing from?
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • I installed the latest version of Firefox and it opens to google. I would like to use my old Sbcyahoo home page as the default page. How do I change

    I installed the latest version of Firefox. The home page is now a google search box. I would like to use my old sbcyahoo desktop with its icons. I am unable to make the change.

    Oops. I could have been more clear, sorry.
    TOOLS > OPTIONS > GENERAL tab
    Under Start-up at the top of GENERAL, you have an option to type in the url or use the tabs to set your homepage to the current page.
    Go to your chosen site, open OPTIONS and click 'Use current page.'
    Sorry for the shorthand version previously. I blame the cat.

  • I have a Samsung Laptop but would like to use Cinema Display with mini displayport.  Is that possible?

    I have a Samsung Lap top but would like to use Cinema Display.  The only connections on my lap top is HDMI and VGA.  How can I get it to work?

    Thanks Malcolm.  I saw this on the apple site
    Kanex C247D Single-Link DVI to Mini DisplayPort Converter
    Will that work?
    I also spoke to someone at apple..They told me to get 2 cables.  Mini DisplayPort to Dvi and Dvi to Hdmi..Connect the 2 and it will work...Do you think it will work? Just to save$$$

  • HT201401 I have my a song purchased from Itunes and would like to use part of it for a ringtone and get all the way thur the process of getting it to my phone but it goes to sync to my phone it doesn't show up in my phone like it says it is suppose to und

    I have my a song purchased from Itunes and would like to use part of it for a ringtone and get all the way thur the process of getting it to my phone but it goes to sync to my phone it doesn't show up in my phone like it says it is suppose to under ringtones. Does anyone have any tips on how to do this.

    http://osxdaily.com/2010/09/04/make-free-iphone-ringtones-in-itunes-10/
    https://discussions.apple.com/message/17777381 - making a ringtone
    Getting ringtones folder to show in iTunes - https://discussions.apple.com/thread/2629494 - iTunes > Preferences. Under the General tab below Show, confirm Ringtones is selected

  • HT204074 How do I use 2 apple id's on one mac?  I have my apple id on my mac and would like to use the same mac for my wife's phone and ipad?

    How do I use 2 apple id's on one mac?  I have my apple id on my mac and would like to use the same mac for my wife's phone and ipad?

    Correction, thats two itune id's

  • TS2972 What is the point of Home Share if all devices must have the same Apple ID?  Three family members in this home would like to use the facility but all have different Apple IDs.

    Three family members use ITunes and would like to use Home Share but the HOme Share set-up guidance states that all devices must use the same Apple  ID.
    Is there a workaround for this impasse?

    Three family members use ITunes and would like to use Home Share but the HOme Share set-up guidance states that all devices must use the same Apple  ID.
    Is there a workaround for this impasse?

  • TS3510 I have 3 different apple devices using the same Apple ID and would like to use FaceTime to call from one device to the other.  Do I need a different Apple ID for one of the devices in order to do that?

    I have 3 different apple devices (iPod Touch, iPad and MacBook Pro) using the same Apple ID and would like to use FaceTime to call from one device to the other.  Do I need a different Apple ID for one of the devices in order to do that?

    I found this on a related question in the Community:
    Yes you can do it. I do it with 4 different devices all using the same Apple ID.
    You need to associate different email addresses for each device in order to use those email addresses as the "contact at" email address. The reason the calls are dropping on you now is that what you are trying to do is like calling yourself on your own phone.
    You can also create new iCloud accounts on each device simply to use for FaceTime, but I'm guessing that the users of the other two devices have their own email addresses which will make this work for you quite easily.
    Take a look at this for more information.
    The seems to go against what Gail said and the issue you raised about buying dup apps was my first concern.  If this other post is correct, how to I set a different "contact at" in the iPod Touch?
    Goose

  • I need help with color pallette in iPhoto 11. I have created a book and would like to use a different color background than those given in "background." I have found the color palettes but can't seem to incorporate them into my backgrounds palette.

    I need help with color pallette in iPhoto 11. I have created a book and would like to use a different color background than those given in "background." I have found the color palettes but can't seem to incorporate them into my backgrounds palette.

    That is not a feature of iPhoto - suggest to Apple - iPhoto Menu ==> provide iPhoto feedback.
    Additionally I have no idea what you are saying here
    I have found the color palettes but can't seem to incorporate them into my backgrounds palette.
    And it always helps for you to dientify the version of iPhoto that you are using
    LN

  • Hi, I have two iPads, two separate accounts I have purchased apps on one Acc. and would like to use them on my second iPad. How is this possible

    I have two iPads, two separate accounts I have purchased apps on one Acc. and would like to use them on my second iPad. How is this possible

    If you go to Settings > iTunes & AppStore , you can sign out from your account, and sign in with the one you've used to purchase apps.This will not remove any apps you already have on it.
    Then you can go to AppStore and download apps you've purchased (either via "Purchased" button in "Updates", or simply search for them and download them.
    That way you can have multiple accounts' apps on your iPad. When updating, you will be prompted for the credentials for account you've purchased given App with.

  • I have an HP Deskjet D4200 series printer that ised with my iBook G4.  I would like to use it with my new MacBook Pro that I just purchased.  Is there anyway to do this?  When I try to install the driver using the CD, I get the message, "can not open the

    I have a HP Deskjet D4200 series printer that I used with my iBook G4 and I recently purchased a new MacBook Pro 13.5" and I would like to use this printer with my new lap top.  When I use the disc to try to install the printer driver, I get a message that "I can't open the application HP Installer because the Power PC applications are no longer supported.  I am not sure what all that means but is there any way to use this printer with my new computer?
    Thanks

    It would help to post this in a more proper form. This is for the iTunes family of stores.

  • My daughter is currently using my Apple ID with her ipod touch.  I will be upgrading her to an iPhone 4S and would like to use a differnt Apple ID and a new computer and still keep all the current music and apps that she has now.  How do I do this?

    My daughter is currently using my Apple ID with her ipod touch.  I will be upgrading her to an iPhone 4S and would like to use a different Apple ID and a new computer and still keep all the current music and Apps that she has now.  How do I do this?

    Make a new Apple ID for her.
    Use it on her iPhone 4S for iCloud, iMessage and FaceTime.
    Use your ID on her iPhone 4S for iTunes and App Stores.
    Sign in with your Apple ID on iTunes Store (on iTunes app of her new computer)
    Authorize her new computer with your Apple ID in iTunes (iTunes menu>Store>Authorize this Computer)
    Check "Share my Library on my Local Network" in iTunes Preferences in your and her computer
    Sign in Home Sharing of her iTunes with your Apple ID.
    Copy all the Music she wants from the old computer to the new one. (Must be on the same network)
    Copy all the apps she wants from the old computer to the new one. (Must be on the same network)
    Export all playlist as xml files from the old computer to the new one.(right click on the playlist to export and "File>Library>Import Playlist to Import)
    Sync her iPhone 4S with all content she wants from her new computer (all data from the old computer will be deleted)
    Are you sharing Contacts or other data from iCloud?
    Be careful or ask for help about moving from iCloud account to another one.

Maybe you are looking for

  • Error AC531 - Design question

    Hello experts, A US company with fiscal year running from Oct-Sept wants to roll out the fixed asset template to a Asian country e.g. China having fiscal year Jan-Dec. Since US is the parent company the depreciation area 01 has US GAAP valuation in C

  • Forgot my security question answers, how do I reset them?

    I forgot my security question answers...... How can I reset them??? Help!!!

  • Error Code : 80072EFD

    I have Lumia 800. I continuously get error code : 80072EFD because of which I'm unable to connect to Windows Live Id. Since, I'm unable to connect to Live Id(hotmail id), almost everything on this phone doesn't work except Gmail. From another email i

  • [Trouble] The Report has no tables

    Hi there, i have trouble in using Crystal Reports for .NET 2.0. I load a CSV file via JetDB Provider as Text database and try to use it as DataSource for my report. But it crashes all time, with a error like this "report has no tables". Actually i do

  • Error message in UCCE 9.0.1

    Hai , After installing UCCE 9.0.1 when trying to access through GUI I get the following error .So inorder to login to the system what should i do. I installed Win2k8 ,Sql Server2k8 and ICM/CCE/CCH installer .Done all steps as provided in documentatio