Bind variable in OBIEE 11G

Hi,
Is there any bind variable concept in OBIEE 11g.
If it is not there then how to achieve this.How to write a where clause to get the result set dynamically.
Thanks-Bhaskar Gouda
Edited by: 961171 on Sep 25, 2012 12:44 AM

Hi,
I can make use of repository variable ,but my scale marker doesn't get changed .I am giving all the details .Please help me if you can.
My scale marker SQL Query is as below.
select trucks.factrucks
from "plant model"
Now i want to add a where clause say:
select trucks.factrucks
from "plant model"
where truckid=:p_truckid;
How can i do this and pass the parameter from go_url.Please help me out.
Thanks-Bhaskar

Similar Messages

  • Presentation Variable in obiee 11g

    Hi all ,
    I had a dashboard report with year , quarter , month and order type name as prompts .
    Now my client requirement is , when order type name is "Ord" , the reports with order type name starting with 'ORD" should be displayed.
    In simple i know we will use " Like" operator .
    But now my problem is we have to assign a presentation variable for order type name.
    So can some one tell me how to add a presentation variable in OBIEE 11g , i tried in web , but none of it helped me to finish the job ,, since i am very new to obiee can some one please explain me in non technical language
    Thank you for your help

    Hi Jay , Thank you very much for reply , now i got a little idea , but few doubts abt ur reply .
    Yes i will edit dashboard prompt and assign a like operator and will save the prompt , but when editing the report , you said to apply a filter *LIKE @{presentation_variable}{default_value}%*
    In the above what will be in place of presentation_variable and what should be in default_value.
    I have tried it in this way : Like @{Sales Order Lines Order Type Name} , where Sales Order Lines Order Type Name is my dashboard prompt .
    but it didn't worked when i have given 'Ord' in dashboard prompt the error says: Sales Order Lines Order Type Name is LIKE (pattern match) ord

  • Data and Dashboard Security using ROLES Variable in OBIEE 11g

    Hi all,
    I'm currently using OBIEE 11g. I'm wondering how to implement the security for data and dashboard in the 11g.
    Below is the sample of how the security matrix requirement when I use the 10g version. In 10g, we usually use GROUP (for the data filter in RPD) and WEBGROUPS (for dashboard objects) variables in my initialization block to read from database. As we have 2 different variables, it is possible to control security separately for data and dashboard.
    GROUP | Country
    G1 | US
    G2 | FR
    G3 | UK
    WEBGROUPS | Dashboard
    WG1 | D1
    WG2 | D1
    WG3 | D1
    WG1 | D2
    WG2 | D2
    WG1 | D3
    WG3 | D3
    WG3 | D4
    Now, in 11g, the recommendation is to use ROLES variable (for application role). So, how would I apply the required security matrix above in 11g using just ROLES variable? Do I still create G1, G2, G3, WG1, WG2, and WG3 as application roles then only use G1-3 in the RPD to filter the data and only use WG1-3 in the analytics to serve as webgroups?
    Any advice on this? Thank you very much.

    "...Could you elaborate more?"
    I mean that role creation and user->role assignment will be managed outside of to the obiee interface - whether that's via the database, LDAP, fmw etc.
    Webgroup creation and assignment is managed within the obiee interface and I think that has a lot of benefits - generally you have people responsible for shared folders and dashboard creation, so having them responsible for webgroups and presentation permissions is preferable for me.
    "are you saying that I use the role G1-3 only in the RPD, while using the role WG1-3"
    Yes .. I'm assuming you have something like
    G1 | US
    G2 | FR
    G3 | UK
    WG1 | Finance
    WG2 | Marketing
    WG3 | Sales
    Which becomes
    R1 | US
    R2 | FR
    R3 | UK
    R4 | Finance
    R5 | Marketing
    R6 | Sales
    And John belongs to R1 and R4, Fred belongs to R2 and R4 etc. So you would set your data filters against R1-R3 and use R4-R6 like webgroups in the presentation services.
    Regards,
    Robert

  • Date Variable in Obiee 11g

    Hi All,
    I have created a dynamic repository variable that gives the current date. The date is given in the following format 'MM/DD/YYYY'. This is format that I want the date to appear in. In the presentation catalog, I have created a presentation variable dashboard promt called StartDate, that defaults to the repository variable CurrentDate. I have also created a report that has a number of measures filtered in different ways. If we take one of the measures in the report, what I have done is edited the formula to filter the measure by reported_date>Date'@{StartDate}'.
    Now when I got and see my dashboard I get an error, 'Datetime value 06/07/2011 from 06/07/2011 does not match the specified format'. However when I click 'Apply' on the prompt, the error does not appear and it just says that there is no data for this report.
    Can someone please help me solve this problem?
    Thanks,
    Nikita

    I solved this issue by using steps listed here http://gerardnico.com/wiki/dat/obiee/cast_as_date.
    Thanks

  • How to create Presentation Variable in OBIEE 11g

    Hi,
    Can any one tell me how to create a Presentation Variable. I know about the creation of Session and Reporsitory variables.
    Is it to be created in the Edit formula of the column in criteria tab.
    Thanks

    Hi,
    Refer : http://gerardnico.com/wiki/dat/obiee/presentation_variable_initialization
    Thanks
    Aravind

  • Using presentation variable in OBIEE 11g

    Hi,
    Is is possible to use a prompt to filter data from two sections of a dashboard?
    My dashbaords contains two sections , each pointing to seperate reoport. Can I filter data in the two reports using parameter selected in one prompt?
    If not possible , the wht is the way to achieve this.
    Thanks and Regards
    Santosh

    Thanks Rondo,
    In our project we have e-Biz Oracle ERP application where actuals are captured. Customer is using a third pary tool called Neotix to buid RPD automatically based on Database (oracle) of this application.
    Nw we are building new application for planning and budgeting in Hyperion prodicut by oracle where Database is Essbase. I will be creating an RPD for budget/planning reports based on Essbase data source.
    For creating on report for Actual Vs Budget, I need to have both Actuals data from e-Biz and Budget data from Hyperion comming out of one RPD.
    So I want to merge those two RPDs and build by Actual vs Budget report based on the Business model from this merged RPD.
    I want to understand hw to build the buisness model in the merged RPD so that I can get the acutal and budget data together in the same report using Answers. I am using OBIE 11g.
    Please tell me wht should be my reporting strategy for achieving this. Can I create single business model for two dataa source which I will import in phyisical layer? How Do I join the two data sources in my RPD, in the business model? What are the challanges to do this kind of model in the merged RPD. ? Do u think there will be challanges to joing Essbabase members (since it is multidimensional cube ) with e-Biz data source in physical layer?
    If I build multiple subjects area (one for e-Biz datasouce and another for Essbase data souce) what modeling steps, I need to implement in presentation layer of the merged RPD?
    In answers how to I build report so that actual and budget data can be displayed together? Are there any technical challanges to implement such report in Answer? If yes, then what are the ulternative approaches?
    I came to know that if it is not possible to get both actual and budet data together in one report, then I should build a dashboard with two sections , and build two reports (one for actuals data and another for dudget data ) and then place one report in one section and another section in another section in the dashboard. Is it a good approach? Is there any better approach?
    I want to use one prompt to filter data for actuals and budget . eg. for year 2012, I want to dislpay Actuals as well as Budet values?
    Please provide your expert inputs...
    Thanks and Regards
    Santosh

  • Issue with repository variable in OBIEE 11g

    Hi
    While i am using repository variable directly in filter it is working fine, but when i am using 'repository variable -1' in filter then it is throughing error as 'repository variable -1' is not present.
    Can't we use - , + on repository varaibles in filters.Can anyone help me.
    Thanks
    Edited by: Manu on Apr 2, 2013 4:28 AM

    I want to know how answers is treating it char type or number type?
    just cast it to number and try.
    Edited by: Srini VEERAVALLI on Apr 2, 2013 7:00 AM
    BTW: how you are calling variable
    lik this
    repository variable - 1
    or like this
    VALUEOF(repository variable) - 1
    Edited by: Srini VEERAVALLI on Apr 2, 2013 7:11 AM

  • Users and Group in OBIEE 11g

    Hi,
    I am trying to bind LDAP with OBIEE 11G. I am using following Rittman Blog
    http://www.rittmanmead.com/2010/11/oracle-bi-ee-11g-security-integration-with-microsoft-active-directory/
    whenever i click USERs and GROUPs it takes a hell of time(more than 30 mins) to display users and groups, Please suggest if any thing can be done abou it
    All other tabs and setting are working fine.
    I did not find any thing in Adminserver.log
    Please suggest
    Regards
    Saurabh

    Hi Kishore,
    In 'All User Filter' field is left blank
    In 'User Name Attribute' I filled sAMAccountName.
    Also i check Adminserver-stdout log, the one which we create after we create windows services. There i can see following error
    Jan 18, 2012 6:00:16 PM GMT+05:30> <Error> <Console> <BEA-240003> <Console encountered the following error java.lang.RuntimeException: netscape.ldap.LDAPException: Server or network error (81); Cannot contact LDAP server     
    I guess its not able to connect LDAP server. But I checked all the attribues twice (on 10G LDAP configuration) they are working. I am not sure if there is problem in attributes or there is some setting I am not aware about.
    Please suggest!

  • Problem with dashboard prompt initial value (OBIEE 11g)

    Hi alli,
    I have a problem with dashboard prompt and session variable in OBIEE 11g.
    I have declared a session non-system variable which I set/change with dashboard prompt. At login the variable is initialized in initialization block that gets a value from an SQL select statement.
    When I change the value in prompt, the session variable changes accordingly, as it should (change is made by calling function NQSSetSessionValue() within javascript function). While I am in my dashboard, cruising around pages the variable stays the same, and when I return to the page that has prompt on it, the correct value is shown. Everything works fine.
    The problem occures when I go to Catalog (in presentation services) to create some new Answers. When I return back to the same page in dashboard (which has a prompt), the prompt selected value and session variable are set back to the default value. It looks like the initialization block is executed again.
    My prompt is configured like this:
    - Choice List Values: SQL Results
    - Default selection: Variable Expression (@{biServer.variables['NQ_SESSION.VariableName']} )
    - Set a variable: Presentation Variable
    Is there a way to stop the initialization block from executing again? Isn't it logical that the initialization block executes only at login, when the session variable is empty? I don't need it to execute every time i come to the dashboard.
    Thanks in advance,
    Marko
    Edited by: markor on 14.3.2011 8:58

    How and where do you use the nqssetvalue() function.
    I tried it in several places but it doesn't work.
    Can you help me, please!
    Thanks

  • OBIEE 11g Prompt's default value doesn't work with a presentation variable

    Hi, I'm using OBIEE 11g and I have two dashboard prompts (Product Name and Product Number). Theses prompts are hierarquical, so the values that are displayed in the Product Number prompt have dependency with the values chosen on the Product Name prompt. This I was able to do, but now I want to put a default value on the Product Number prompt. The steps are:
    1 - The user chooses the value for the Product Name Prompt and by doing that the Product Number prompt is automatically filled with the correspondent value.
    But unfortunatelly this is not working, after choosing the value for the Product Name the default value for Product Number is not displayed (when you open the prompt the values displayed are correct and already filtered considering the Product Name but the prompt is not automatically filled with the default value).
    What I did is:
    On the Product Name Prompt I've created a Presentation Variable called PROD.
    On the Product Number Prompt I've selected:
    1 - For the "Choice List Values" field I've checked the option "Limit Values by All Prompts"
    2 - For the "Default Selection" field I've chosen the SQL Results option and enter the following SQL:
    SELECT "Products"."Product Number" FROM "Sample Sales Lite"."Products" WHERE "Products"."Product"='@{variables.PROD}
    What am I doing wrong?
    Thank you,
    Carla

    Sorry I was wrong in my previous thread.
    Actually your approach is not correct, Product Number choose constraint that will show as per the selection of Product Name.
    Coming to default value for Product Number you are going for sql override that is okay but not work with variable, instead of setting default values for product number set that to product name.
    if not you need to go for 2 different prompts
    Prompt 1 Product Name hit GO
    Prompt 2 will work based on as you defined earlier with variables
    Hope this helps

  • Presentation Variable issue in OBIEE 11g

    Hi,
    I have 2 reports, report 1 and report 2
    When i drill down on report 1 column 'Number of id's' will open the details report of Id's report 2
    I am using a Presentation variable in report 2 filters (detail report) which is generated in Main report dasnbord prompt.
    They have separate star schema.
    Main report(reprot1) using Aggregated table.
    Sub report(report2) using detail table.
    Problem:
    After upgradation from OBIEE 10.1.3.4 to OBIEE 11.1.1.5,(Unix server) The presentation variable value is not getting passed to the detail report. This is working completely fine in OBIEE 10g.
    Is there any BUG in OBIEE 11g wrt presentation variable or do we want to change the configuration?
    Thanks,
    Satheesh

    Hi,
    Not sure about the behaviour in 11g, but we faced a similar issue in 10g while passing the presentation varaibles to detail report where main/detail report where coming from different subject areas. The behavior was a little unpredictable. To overcome this, we tried using request variable instead of presentation variable and it worked for us.
    You can give it a try by doing the same and see if it works for you.
    Thanks

  • OBIEE 11g Session variables

    Would anyone know who to setup the USER session variables in the RPD for OBIEE 11g?
    The security setup we have is LDAP Authentication & Default authenticators in Weblogic. Is there a way to retrieve this in the RPD or in answers?
    Lastly, would proxy (act as) functionality configuration differ from 10g because of the above?
    Thanks.

    All,
    Use VALUEOF(NQ_SESSION.USER) whether you are in the front end or .RPD, :USER doesn't work anymore. Also, there is no need to wrap the syntax in quotes, if you do, it won't de-reference the variable.
    Thanks,
    Josh
    Edited by: JFuter on Mar 24, 2011 5:16 PM

  • 10g vs 11g: VO bind variable values stale on jbo.ampool.doampooling = false

    Hi gang
    (JDev 11g Build 5188)
    I'm currently doing some testing as recommended by the Fusion 11g Guide to test the ADF BC state management with jbo.ampool.doampooling = false (see sections 36 and 37). I'm seeing different behaviour under 11g vs 10g.
    I have a single updateable VO with a query restricted by a single bind variable. I have a single JSF page with the bind variable as an inputText control, the executeWithParams operation as a commandButton, and a table showing the results from the VO.
    Under 10g I can:
    1) Open the page
    2) Enter a value (say X) for the bind variable, hit the executeWithParams button and correctly see results in the table matching bind variable value X.
    3) Enter a different value for the bind variable (say Y), hit the executeWithParams button and correctly see results in the table matching value of the bind variable value Y.
    Under 11g I get different behaviour for # 3. Instead when I press the executeWithParams button with the value set to Y, the table still show results for the previous bind variable value X?
    It must be noted that if I set jbo.ampool.doampooling = true, the problem disappears, but presumably the error will reappear in a production system under load, so I need to track down what's happening here.
    Possibly I'm seeing a bug, but given the large amount of 11g changes and large amount of documentation I need to read on state management, it could just be I've missed something vital for 11g.
    Does anybody have any opinions what's happening here?
    Thanks for your help in advance.
    CM.

    Hi Chris,
    Yes, waking up in my lair after the long winter ;-)
    No problem for the version numbers.
    The reason I was asking was that the referenced issue was reported for JDeveloper 10.1.3.4.0
    So I'm not convinced this is the same issue.
    Bug 7517882 is fixed in 11.1.1.1.0, but a patch is available for 11.1.1.0.1
    I checked I could download it myself:
    1) in (classic) MetaLink, click tab "Patches & Updates"
    2) click "Simple Search"
    3) select "Search By" "Patch Number"
    4) enter the patch number: 7517882
    5) select the Platform "Microsoft Windows (32 bits)"
    6) click "Go"
    7) Download the patch for version 11.1.1.1.0
    8) click "View Readme" and follow instructions to install the patch.
    If you have any problem, open a SR requesting a support engineer to upload the patch on our FTP server.
    I would recommend you test the patch to ensure this is the same issue and the problem is fixed in your case after applying the patch.
    If not, you can easily de-install it anyway.
    For completeness, the following bugs were closed as duplicated of Bug 7517882
    Bug 7553275 - VOIMPL.GETBINDVARIABLE() RETURNS NULL AFTER APPLICATION MODULE ACTIVATION.
    (logged against 10.1.3.4.0)
    Bug 7556903 - JDEVELOPER 11G EXECUTEWITHPARAMS DOES NOT WORK CORRECTLY WITH AMPOOLING OFF
    (logged against 11.1.1.0.0)
    Regards,
    Didier.

  • OBIEE Integration with ADF - Reports with bind variables

    Hi,
    I've managed to integrate obiee with ADF by following the steps described in:
    http://www.oracle.com/technetwork/middleware/bi-publisher/adf-bip-ucm-integration-179699.pdf
    This is all fine and all but what about reports with complex queries where bind variables are needed?
    In short I need to send specific values from ADF application as parameters to the query of the report before building it, then create it and download the file as pdf.
    I don't have problems with building the file and downloading it when the query in the report has no bind variables, but when it does I do not know how to send them to the report.
    I can't seem to find such an implementation or example anywhere and I am stuck.
    Could anyone please point me in the right direction, eighter by providing a solution, or a link to such an example?
    Thank you!
    P.S.
    I'm using OBIEE 11.1.1.6.0 and JDeveloper 11.1.2.1.0
    Mihai Cornean
    Edited by: 885382 on Apr 11, 2013 11:10 PM

    Hi,
    try the BI Publisher forum for question towards this product BI Publisher
    Frank

  • Bind Variables at runtimeADF mobile 11g:

    Hi,
    I am creating the Adf mobile application.
    In table i have AD,DM,propertynumber,community,totalhomes,occ_curr,occ_fcst columns.
    In first page i am displaying only AD's.under AD i have more than one DM.
    In first page of my mobile application,i am showing only distinct(Ad) from the table.
    if we select one of the AD and navigate to second page then we have to show the DM's,propertynumber 's,community....etc under that
    selected AD.(my SQL query is select DM,propertynumber from table where ad= "selected AD in first page")
    How can i send the selected AD in my first page as bind variable to my SQL query at runtime to create view object dynamically.so that in second page i can use this viewobject to show the dm's,property number,community..etc information.
    Please anyone provide me the sample code or guidelines to achive this.
    I appreciate your time and help.
    Thanks
    Saialja.
    Edited by: sj0609 on Mar 30, 2009 9:10 AM
    Edited by: sj0609 on Mar 30, 2009 9:48 AM

    Hi John,
    Thanks for the reply.
    i created the AD_VO using SQL query select distinct(Ad) from iphone_demo.
    next i create the second DM_VO using select DM,PROPERTYNUMBER,community,TOTALHOMES,OCC_CURR,OCC_FCST from iphone_demo.
    next i created the viewlink between these two VO's by selecting source attribute as Ad from AD_VO and Destination Attribute as Dm from DM_vo .
    Next in appmodule datamodel page i added the the instance DM_vo via the created view link to AD_VO .
    when i run the App module to test the link it is not giving any detail rows under the selected AD it is showing only the column names.but i am not getting any rows.
    The different AD's i am getting in first window.in second window no rows.
    Can you tell me where i went wrong.
    Sailaja.

Maybe you are looking for