Heirarchical LOV prompts

Hi All,
Please help me to get a proper plan to create hierarchical prompt
i.e. for example whenever user enter Year (say 2001)at runtime in prompt box States also prompt with LOV but which should belongs to only 2001 year but I'm getting other years with + symbol but user dont need this
Thanks

Hello Malika,
Let me see if I got you correct: -
Year State
2001 NY
2001 NJ
2002 Chicago
2002 Washington
Select "State" in Designer --> Go to "properties" tab,
Click on "Edit" LOV.
You will see that in the query object "state" will already be there, drag and drop "Year" to the query filter and put a prompt like: -
Year equal to "Enter the value for year"
Remove the hierarchical display for "State" Object.
Click "Ok", Save and export this universe.
Now create webi report, select "State" in Query Object and  use "State" in filter section and put prompt as: -
Select In List "Enter the value(s) for State"
Now once you see the prompt window first you have to provide the answer for the inside prompt, in that way you can restrict data as per year.
Thanks,
Vivek
Edited by: Vivek Chauhan on Sep 12, 2011 1:48 PM

Similar Messages

  • Regarding LOV's in Crystal Reports- Business View

    Post Author: crystalappu
    CA Forum: General
    Hi All, I have developed a Business View for our crystal reports, We have like two levels of cascading prompting. In which the user can select ALL option in drop down LOV's in second level. I have added an 'all' object using command object in Business View. But when my Crystal report Developer is accesing my LOV prompt Group he is unable to see ALL in drop down LOV. But when i browse field in my command object i can see my 'ALL' object in it. Any idea upon this?

    Post Author: synapsevampire
    CA Forum: General
    Perhaps you should post an example or explain using technical information how you added this command object?
    Did you use a UNION ALL?
    -k

  • How to create @prompt filter at universe level for my Webi reports

    Dear all,
    I am using BO XI 3.1 SP3 with SAP BW 7.0.
    I have created an open[big] query based on a multiprovider for my OLAP universe.
    OBJECTIVE: to create LOV prompts for Calender year, for my webi reports, which takes 2010 as input then offsets the input year and then shows Gross sales for the prompt year [2010], 2009 & 2008.
    ISSUE: if 2010 is selected in webi prompt filter, then it doesn't display any data for any other year, lets say gross sales for 2009.
    ALTERNATIVE: i tried to create a prompt filter in the universe with this syntax,
    <FILTER KEY="@Select(Calendar year\Calendar year).[TECH_NAME]"><CONDITION OPERATORCONDITION="InList"><CONSTANT TECH_NAME="@Prompt('Enter year','N',,Mono,Free,Not_Persistent)"/></CONDITION></FILTER>
    it worked fine. but i also want to create a measure or dimension which subtracts 1 from the above filter and return a result with a previous year.
    e.g
    PROMPT: 2010
    PROMPT-1: 2009
    Universe structure
    [TIME]                         class
      [Calender year]        class
         [Calender year]     dimension  ( type:string)
    Please guide me with correct procedure and syntax.

    masood44 ,
    I think you should just prompt for year and capture and use the selection at the webi report  level.
    say you have calendar year(convert it into numeric) prompt at webi level. say user selects 2010 capture it in a variable var1:userresponse('enter year'). then create a variABLE (var2)  with formula :
    if(isPromptAnswered('enter year')='yes';([year] where year inlist(var1;var1-1;var1-2);null)
    build your report with var2 and gross income
    Thanks,
    Karthik
    Edited by: kbharadwaj79 on Jun 2, 2011 5:34 PM

  • Schedule a Webi XIR2 report to run for all values of the prompt ...

    Hi there,
    Any ideea about if it's possible to schedule a Web Intelligence XIR2 report to automatically run for all  150 different prompt values in the LOV (and have 150 different instances)?
    BOXIR2, Java deployment.
    Many thanks.

    You'd be scheduling the document 150 different times, each for one value of the LOV.
    You'd use the ReportEngine (REBean) SDK to read the LOV values, then use the Enterprise SDK to schedule.
    Here's a bit of code that illustrates how to schedule a Webi doc a single time with specified prompts.  You'd do something similar, but iterate the prompt setting and scheduling:
        IInfoStore iStore  = (IInfoStore) eSession.getService("InfoStore");
        ReportEngine reportEngine =  ((ReportEngines) eSession.getService("ReportEngines"))
                                        .getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
        IInfoObjects objs = iStore.query("Select TOP 1 * From CI_INFOOBJECTS Where "
                                          + " SI_KIND='Webi' And SI_INSTANCE=0 "
                                          + " And SI_NAME = '" + reportName + "'");
        //============================================================================
        // Open Webi document, then get and set Prompts collection
        //============================================================================
        IWebi            webi    = (IWebi) objs.get(0);
        DocumentInstance di      = reportEngine.openDocument(webi.getID());
        Prompts          prompts = di.getPrompts();
        for(int i = 0, m = prompts.getCount() ; i < m ; i++) {
            Prompt prompt = prompts.getItem(i);
            String name   = prompt.getName();
            if("Enter value(s) for State:".equals(name)) {
                Lov lov = prompt.getLOV();
                lov.refresh();
                Values values = lov.getAllValues();
                prompt.enterValues(new ValueFromLov[] { values.getValueFromLov(0),
                                                        values.getValueFromLov(1)});
            } else if ("Enter Shop Id:".equals(name)) {
                prompt.enterValues(new String[] { "261" });
        //===========================================================================
        // Copy prompts over to InfoObject
        //===========================================================================
        PromptsUtil.populateWebiPrompts(prompts, webi);
        //===========================================================================
        // Schedule Webi report to run once now
        //===========================================================================
        webi.getWebiFormatOptions().setFormat(IWebiFormatOptions.CeWebiFormat.Webi);
        ISchedulingInfo schedInfo = webi.getSchedulingInfo();
        schedInfo.setRightNow(true);
        schedInfo.setType(CeScheduleType.ONCE);
        iStore.schedule(objs);
    Sincerely,
    Ted Ueda

  • Crystal Report doesn't prompt for SAP credentials / errors out on refresh

    2 Environments tested with same results:
    <p>
    BOE XI 3.1 SP2 & BOE XI 3.1 SP2 FP2.5<br>
    SAP Intg Kit on mirrored SP/FP levels in each environment.
    <p>
    We've been successfully creating Crystal Reports against BEx queries in BW for months now as well as ECC master data.  We've also built universes and have WebI reports actively working against similar BEx queries in the same.  However, we're getting some curious behavior when we refresh the Crystal Reports against BEx queries in BW.  Verified all necessary transports and authorizations have been provided for both authoring, as well as refreshing/viewing on demand, etc.
    <p>
    We've setup all the Crystal Reports we're testing to:
    <p>
    a) Use custom database logon information specified here.<br>
    b) Specify a custom driver, leveraging the crdb_bwmdx driver<br>
    c) Prompt the user for database login
    <p>
    We have not enabled SNC as of yet.
    <p>
    1) When we refresh a WebI report hitting a BEx query with security applied, it doesn't prompt for the credentials, but we confirmed through tracing on the SAP side that if the user hits a paramater it has access to, the data comes through and when we hit a paramater they do not have access to, we can clearly see SAP reject it and it spits out a logical error on the BO side in InfoView and in the WebI logs on the BO server. 
    <p>
    2) When we refresh a Crystal Report hitting ECC data, we are prompted for the SAP credentials and everything works as expected
    <p>
    However:
    <p>
    3) When we refresh a Crystal Report hitting a BEx query in BW, we are not promtped for SAP credentials.  We immediately get the "LOV" prompts.  Now, if we use a test user in SAP that has NO SECURITY restrictions at all and open access to the query, the data comes through.  However, as soon as any security is applied to the query level, even if it is SAP ALL, we cannot retrieve the data.  Tracing is also strange, as we can see on the SAP side it buffer the selected paramaters, but unlike with the WebI reports, it never shows it reaching the point where it checks each paramater against what the role has access to.  An error is then spit back.  We run the same queries with the same users within SAP and get normal behavior.  It's as though as soon as we apply security to the query the mdx driver doesn't like it.  Dependant on the type of InfoView viewer we use, the errors we consistently get on the BO side are:
    <p>
    Interactive Viewer: "Error in File %reportname%: Encapsulating Page Failed"<br>
    Java Viewer:  "Error in File %reportname%: Database Connection Error"
    <p>
    Nothing glaring in the event logs on the BO servers or in the Crystal logs that I can see, however just because it isn't spitting a specific error in the crystal logs doesn't mean I'm not missing something because I don't know what to look for behavior wise. To reduce the liklihood that it has to do with the way the report was built, we've tried against the same query by building a report using standard methods, as well as the SAP Toolbar using a very plain jane report.  Same behavior.
    <p>
    Thoughts?
    Edited by: Jay Riddle on Mar 1, 2010 8:55 PM

    Hi,
    1) When we refresh a WebI report hitting a BEx query with security applied, it doesn't prompt for the credentials, but we confirmed through tracing on the SAP side that if the user hits a paramater it has access to, the data comes through and when we hit a paramater they do not have access to, we can clearly see SAP reject it and it spits out a logical error on the BO side in InfoView and in the WebI logs on the BO server.
    >> Which authentication are you using to logon to InfoView ? Whats the configuration in the Universe Connection for Authentication ?
    2) When we refresh a Crystal Report hitting ECC data, we are prompted for the SAP credentials and everything works as expected
    >> The user is using which authentication ? and against which system does he log on ?
    However:
    3) When we refresh a Crystal Report hitting a BEx query in BW, we are not promtped for SAP credentials. We immediately get the "LOV" prompts. Now, if we use a test user in SAP that has NO SECURITY restrictions at all and open access to the query, the data comes through. However, as soon as any security is applied to the query level, even if it is SAP ALL, we cannot retrieve the data. Tracing is also strange, as we can see on the SAP side it buffer the selected paramaters, but unlike with the WebI reports, it never shows it reaching the point where it checks each paramater against what the role has access to. An error is then spit back. We run the same queries with the same users within SAP and get normal behavior. It's as though as soon as we apply security to the query the mdx driver doesn't like it. Dependant on the type of InfoView viewer we use, the errors we consistently get on the BO side are:
    >> The user is using which authentication ? and against which system does he log on ?
    >> You mentioned security restrictions and I assume we talk about BI authorizations in form of data level security. If so - does the BW query include the authorization variables ?
    Ingo

  • Button LOV time limited

    I have a button based on an LOV. When user clicks on button, lov prompts for department code and runs a report.
    When the report finishes it automatically disables the entry so it cant be run again.
    I want this to be time limited to that after 24 hours the button will have all values again.
    Any clues?

    Call a javascript after 24 hours and set your value through a page process afterwards reset your page.
    Add this kind of code inside your HTML Header:
    &lt;script type="text/javascript">
    function fnc_flushValues() {
    // set application value
       var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=dummy',0); 
       get.add('P1_ITEM',v_id) 
       $x('P1_ITEM').value = v_id; 
       gReturn = get.get(); 
       get = null;  
    // reload page
       doSubmit('NOW');
    // start function the first time after 24 hours
    window.setTimeout(fnc_flushValues, 86400000);
    &lt;/script>Tobias
    http://apex-at-work.blogspot.com

  • Change prompts

    Hi,
    Is it possible to change the prompts before scheduling a Desktop Intelligence document
    using the java API.
    Regards,
    Nic

    Code sample:
    <%@ page import = "com.businessobjects.rebean.wi.*,
                       com.businessobjects.sdk.ceutils.prompts.PromptsUtil,
                       com.businessobjects.sdk.plugin.desktop.fullclient.IFullClient,
                       com.businessobjects.sdk.plugin.desktop.fullclient.IFullClientFormatOptions,
                       com.crystaldecisions.sdk.exception.SDKException,
                       com.crystaldecisions.sdk.framework.*,
                       com.crystaldecisions.sdk.occa.infostore.*"
    %><%
        //============================================================================
        // Log on and retrieve report from Enterprise
        //============================================================================
        LogonForm logonform = new LogonForm(response, request, LogonForm.NONE);
        if(logonform.display_if_needed())
              return;
        eSession = CrystalEnterprise.getSessionMgr().logon(logonform.username,
                                                           logonform.password,
                                                           logonform.cmsname,
                                                           logonform.authType);
        IInfoStore iStore
            = (IInfoStore) eSession.getService("InfoStore");
         ReportEngine reportEngine
            =  ((ReportEngines) eSession.getService("ReportEngines"))
                                        .getService(ReportEngines.ReportEngineType
                                                                 .FC_REPORT_ENGINE);
        IInfoObjects objs = iStore.query("Select TOP 1 * From CI_INFOOBJECTS Where "
                                          + " SI_KIND='FullClient' And SI_INSTANCE=0 "
                                          + " And SI_NAME = '" + reportName + "'");
        //============================================================================
        // Open Webi document, then get and set Prompts collection
        //============================================================================
        IFullClient      deski   = (IFullClient) objs.get(0);
        DocumentInstance di      = reportEngine.openDocument(deski.getID());
        Prompts          prompts = di.getPrompts();
        for(int i = 0, m = prompts.getCount() ; i < m ; i++) {
              Prompt prompt = prompts.getItem(i);
            String name   = prompt.getName();
              if("Select State(s):".equals(name)) {
                Lov lov = prompt.getLOV();
                   lov.refresh();
                Values values = lov.getAllValues();
                prompt.enterValues(new ValueFromLov[] { values.getValueFromLov(0),
                                                        values.getValueFromLov(1)});
            } else if ("Floor space greater than:".equals(name)) {
                prompt.enterValues(new String[] { "1500" });
        //===========================================================================
        // Copy prompts over to InfoObject
        //===========================================================================
        PromptsUtil.populateFullClientPrompts(prompts, deski);
        //===========================================================================
        // Schedule Deski report to run once now
        //===========================================================================
         deski.getFullClientFormatOptions()
             .setFormat(IFullClientFormatOptions.CeFullClientFormat.FullClient);
        ISchedulingInfo schedInfo = deski.getSchedulingInfo();
        schedInfo.setRightNow(true);
        schedInfo.setType(CeScheduleType.ONCE);
        iStore.schedule(objs);
    The cream is the PromptsUtil.populateFullClientPrompts to pass the prompts from ReportEngine SDK to the Enterprise SDK.
    Sincerely,
    Ted Ueda

  • Creating Cascading LOV

    Hello All,
    I am creating webi from universe based on Bex Queries.
    I want to create a Cascading LOV for Organizational Level in my webi report. (having Level 1 , Level2 , ....).
    But when i am going in Tools -> Cascade LOV option in universe and assign different levels and click on generate LOV, nothing happens or the functionality of cascading LOV doesn't work in OLAP Universes as we can not edit LOV.
    The version being used BO XI 3.1 SP2
    SAP BW 7.1 Patch Level 17
    Pls Help.

    Hi Akhil,
    I am working on BO XI R3.1 SP2.
    The functionality of cascading LoVs work in case of OLAP universe too. But you do not have the option to change the
    Cascading LoVs i.e. you can-not edit the levels one it is generated.
    Moreover, here in cascading LoVs Prompt doesn't get displayed for each level instead the values are generated in the
    hierarchially.
    If you need to change the levels, you need to generate it again. Hope this helps you.
    Regards,
    Rohit

  • Webi report scheduling error

    Hi All,
    When I am refreshing Webi report, getting error:
    Invalid Prompt definition. See your Business Objects administrator. (Error: WIS 00005)
    Please help.
    Regards,

    Hi,
    Please search the Knowledge Base for Articles before posting. www.service.sap.com/xsearch
    You need to look at :
    Note 1404402 - Expanding an WebI LOV prompt, using SAP BW Hierarchy node, fails with errors.  (FixPack2.5)
    Note 1569069 - Invalid prompt definition
    Regards,
    H

  • Dropdown values based on values

    Hi,
    I have table in database given below
    Manager Constant dollar
    A N
    B Y
    Now i create a dashprompt ( two fields Manager and Constant dollar ) based only on this table values. When i select A_ value dropdown should have only ' N '. If I, select B_ dropdown should have 'N' as well as ' Y '. How to get this ?
    Thanks
    Suresh

    You can create a prompt with two columns. Use the first (Manager) to fill a presentation variable and then based on that presentation variable filter the second column (the Constant).
    Now of course you can do the constant prompt the way we recently discussed (quick&dirty) but as John put it together so nicely afterwards, I definitely want to point you to the post...
    http://obiee101.blogspot.com/2008/12/obiee-lov-prompts.html
    @John: I fully agree by the way. LOVs should be more commonly used even in OBI.
    Cheers,
    C.

  • Scheduling a webi report with no access to univ. connection

    Hi,
    I have a user in BO enterprise, who has access to a report, but no access to the universe & universe connection.
    So ideally, the expected behavior is that, when the user schedules the report, the schedule should fail.
    When I do a schedule, by clicking on the prompts, and modify, it throws me an error that the Universe and universe connection are not accessible.
    But when I schedule the report, with all default settings (without modifying the prompt values), it schedules, and shows a Success status. (Though the report shows blank data)
    Has anyone observed this before? Any info on this would be helpful.
    Thanks.

    Hi,
    The use-case is:
    - An administrator creates a new user (by default belongs to Everyone group) and provides access to a particular report including the scheduling privileges
    - The Everyone group does not have access for the Universe or the Connection
    - When this user runs the report (View on Demand) and refreshes the data (via the Refresh Data button), the error is thrown stating that the universe is not found/not accessible.
    - When scheduling the same report, we see different behaviors (one of the prompt option happens to be a List of Values:
        - Changing the prompt values - Clicking the modify button on the parameters page and trying to select a value for the LoV prompt throws me the Universe not found/accessible error (which is correct as the concerned user does not have access to the universe or the connection)
        - With default prompt values (i.e. not changing any of the prompt values in the parameters page) - This shows that the schedule was successful and when i open the instance, it shows me blank report - The question here is, why would the schedule succeed when the user does not have the access to the universe/connection?
    Thanks -
    Chandra

  • Crystal reports LOV cascading prompts row level security not working

    Crystal report LOV cascading prompts with row level security is not woking when the crytal report cache server/page server cache (Oldest On-Demand Data Given To a Client (in minutes)) is turned on. But its working fine when the cache is turned off.
    Using XIR2 environment.
    Appreciate the response.
    Thanks
    Chenthil

    Hi Chen,
    In terms of what could be done on the Crystal Reports end, there is no such controls available.  However, your question may be better answered if it was posted to our Business Objects Enterprise forum. 
    It is at "BusinessObjects Enterprise Administration" section of the forums.
    FYI.

  • User Cannot manually Type LOV in Prompt Screen

    Hi Experts,
    WEBI reports built on OLAP Universes (Universes created on SAP BW) has below problem:
    As you know when user click's on Run Query or Refresh Data to run reports a prompt screen will pop up and in normal cases he has option of Selecting values for LOV's or user can type his value and run report But reports built on OLAP Universes user must select only from list of values.
    Is there any way that user can directly type his value and Run Query/Report.
    -Thanks,
      DEEPU

    Thanks Rohit for the information.
    Is that Lov object in your code should be Key or Text? for me key is not passing.
    Below is the code reflected into Universe as a filter if we create the prompt (User Variable) at BEx Query
    <OPTIONAL><FILTER KEY="[ZREG_BO]"><CONDITION OPERATORCONDITION="InList"><CONSTANT TECH_NAME="@Prompt('Enter Subscriber Region:','A',''Class\Lov Object',multi,primary_key)"/></CONDITION></FILTER></OPTIONAL>
    The difference between your code and BEx code is that BEx code uses Index Key ("Primary key" instead of "free") and it uses technical name (CONSTANT TECH_NAME instead of CONSTANT NAME).
    If i create prompts at Universe level instead of using the BEx Prompts (User Variables) Will there will be any performance impact ?
    Your help is highly appreciated.
    -Thanks,
      DEEPU.

  • Custom LOV or How to selct a Employe and their Dept is passed into a prompt

    I have been given a change request to enhance an existing Webi report built over a universe with a BEx query as the source.
    Currently they are prompted to enter an "employee name" but they now want to select the employee name but the result set to come back for the complete data set for they department they work in.  For example select Andrew and the data for all employees in the consulting dept to be returned.
    In old school BOBJ a work around was to put the prompt on the department name and amend the LOV to show 2 columns, Dept Name and Employee Name. So the users would scan down the list of employees ( column 2 in the LOV) and select them which would in fact select the department name and pass that back to the query to restrict the data set.
    Is there any work around or thought you can suggest to help out in the new world of a universe over BEx ?

    Hi,
    Sound like something that is easier implemented in the BEX query with a user exit variable.
    Ask your BW developers if you want to know more...
    Another option is to (ab)use the hierarchical display of prompts;
    create an LOV object for department with a built in (XMLfilter) condition on employee (use the normal employee LOV).
    set the LOV to use hierachical display.
    create a custom (XML) filter for department and point to the LOV for this prompt to the new LOV object for department.
    (hide the LOV object from the end-user...)
    What that should give you is a list of employees with a plus sign in front.
    Clicking on the plus will show the department.
    This they can select...
    Hope this helps,
    Marianne

  • Need WebI prompt values to reflect values in cube, not values in a LOV file

    While building the prompts for my reports, the values that appear when refreshing my prompt are that which are in a LOV repository file.  These values do not reflect what is in the cube and may confuse a user.  I am wondering how to get a full list (possibly broken out into pages) of what is in my backend cube.  I have tried going into Universe Designer and unchecking "Associate a List of Values", but I am still receiving only a partial list.  Any input is appreciated.

    Hi,
    Please anyone suggest me the solution on this. it's a quite urgent.
    Thanks in Advance
    Nag.

Maybe you are looking for

  • HT1414 How do I get recent pictures back if I restored my old iPhone and it brought back the old pictures but the new ones are gone

    How do I get recent pictures back if I restored my old iPhone and it brought back the old pictures but the new ones are gone?!?

  • I Cal duplicates

    I Cal duplicates everything onto the first date of the next month. If I delete that, it deletes all the original dates. I have spent hours on this. I am not synced to any other device. This happens where I duplicate or set an ending date on repeat

  • Maintain JCO Destination Issue

    Hi , I have configured SLD and maintained JCO destination WD_MODELDATA_DEST and WD_MODELDATA_DEST with SAP backend connection details. When i tried to create the JCO desitnation , i m getting the following issues: JCo destination 'RFC_MODEL' was succ

  • 2-java clients communicate with java based web-service

    I'm new 2 web-services. I need to create 2-java clients(a game like chess) & communicate them through a java based web-service. I can create the web service.(using Netbeans getting started tutorial.only the basic stuff) when we create the 2-clients a

  • Displaying a Blob with a Dynamic Page

    A dynamic page was created where one of the columns on the database table is a BLOB. The following error is received when trying to query the column from the dynamic page: : Unable to execute query (WWV-10201) The preference path does not exist: ORAC