Default values in cascading prompts

Hi,
We are using Crystal Reports 2008 and our environment is Business Objects XI 3.1.
We have certain crystal reports with dynamic cascading prompts. Is there anyway where we can set the default value in the child parameter based upon the value selected in the parent parameter.
Thanks

Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

Similar Messages

  • How to pass current month as the default value in the prompt

    Hi,
    Could you please tell me how to pass the current month as the default value in the prompt.
    I have a report where month is a prompt. By Default it should ahve current month as the default value along with other months.
    Please let me know the syntax for the same.
    Thanks in advance!!
    Regards
    Sindhu

    Hi,
    what datasource do you have? Is it SAP BW or something else?

  • How to setup a default value when defining (prompting) for a value?

    When I prompt the user in a SQL statement then I can declare a default value like in:
    SELECT *
    FROM all_users
    WHERE username = nvl('&myvariable','SYSTEM');
    But when I define a variable this does not work:
    define tablename=nvl('&tablename','test123')
    How can I setup a default value here?
    Peter

    Is there a way to define a default value DIRECTLY in SQLplus DEFINE command (and not later when the value is used in SQL statement)?no, there is not for DEFINE but you can use ACCEPT:
    SQL> accept tablename prompt 'Enter value for table Name:' default EMP
    Enter value for table Name:
    SQL> select column_name
      2  from cols
      3  where table_name='&tablename';
    OrderNumber=1234
    COLUMN_NAME
    EMPNO
    ENAME
    JOB
    MGR
    HIREDATE
    SAL
    COMM
    DEPTNO
    8 rows selected.Max
    [My Italian Oracle blog| http://oracleitalia.wordpress.com/2010/02/07/aggiornare-una-tabella-con-listruzione-merge/]

  • Set default values in date prompt

    Hello,
    I have tried everything I can find in the forum to resolve a very daunting task. Thanks in advance for all your help.
    We have Crystal Server 2008 with Tomcat and IIS.
    I have several reports that use start date and end date  as parameters. When the user launches the report date prompt dialog box appears where you user can input the values. Typically (75% ) the user is always looking for yesterday's data however at times he/she would want to pick different date range to review the results. The requirement is to set the default values in the dialogbox to be currentdate-1. Any help is greatly appreciated.
    Paul.

    What we do for all of our reports is have the date parameters be text fields that allow something like PD for prior day, PM for prior month, CM for current month, YTD for year to date, etc.  We then have crystal functions (and database functions; one for start dates and one for end dates) that translates the characters to real dates.  If the text entered does not match one of the "mnemonics", it is assumed to be a date, and it is treated as such.  This allows using the same report for scheduled daily, weekly, monthly, quarterly, etc. and ad-hoc runs without any other special coding.  In your case, you'd set the default parameter values to PD.
    Our mnemonics are of the form [PY]{P|C}{D|W|M|Q|Y}[DOW][{+|-}n], where [PY] is optional to specify a prior year date (for comparison reports), P=Prior, C=Current, D=Day, W=Week, M=Month, Q-Quarter, Y=Year, [DOW] is optional, and used with [PY] to specify that you are looking for the same day of week in the prior year (if CD=8/24/09, PYCDDOW=8/25/08), and the +n or -n allows you to add or subtract days/weeks/months/quarters/years (depending on the interval used) to the date.
    HTH,
    Carl

  • Default value in dashboard prompt

    Hi,
    I have created 2 dashboard prompt one is projectnumber another one is date which is in 'MON-YYYY' format.
    My requirement is date prompt default value one month before a current month.
    Example if it is February 2012 it must displayed as JAN-2012
    Thanks in advance.

    Hi RR,
    Edit the Prompt.
    Under Default Selection select SQL Result and place the following query:
    SELECT concat(upper(CAST (MONTHname( TIMESTAMPADD(SQL_TSI_MONTH,-1, CURRENT_DATE)) AS CHAR(3))),concat('-',cast( YEAR( TIMESTAMPADD(SQL_TSI_MONTH,-1, CURRENT_DATE)) as char)))
    FROM "OBIA"
    Try this.. I think it will solve your issue.

  • Using a Sql Result in Default Value of Dashboard Prompt

    Hi,
    I Create a Dashboard Prompt, this have two dates, the initial and the last for a period to filter. I need to set the default value in the fist and last date of the previous month, for example, if today is 20th of november the default value of initial date has been 1th of October and the last date has been 31th of october.
    I used in default the option 'SQL Results' and use the next sentences:
    SELECT TRUNC(add_months(sysdate, -1), 'MM') FROM dual;
    SELECT TRUNC(last_day(add_months(sysdate, -1))) from dual;
    But when I try to use the dashboard prompt the result is:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <(>: Syntax error [nQSError: 26012] . (HY000)
    SQL Issued: SELECT TRUNC(add_months(sysdate,-1),'MM') FROM dual
    When I try to use only select sysdate from dual; the result is:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27004] Unresolved table: "dual". (HY000)
    Thanks for your help.

    Thanks for your help. Finally I solve this issue of
    this form:
    1. I Create a Initialization Block with the next
    sentences:
    SELECT TRUNC(add_months(sysdate, -1), 'MM')
    INITIAL_DATE ,TRUNC(last_day(add_months(sysdate,
    -1))) END_DATE, To_char(TRUNC(add_months(sysdate,
    -1), 'MM'), 'YYYYMM') PERIOD FROM dual;
    2. Then I Create three Repository Variables and
    assign the Initialization Block to this
    3. In the Dashboard Prompt I use the "Server
    Variable" Option in the default and call the three
    variables.
    Thanks again
    EdwinHi: How u access server variable with two fields of date. Actually, I am doing the same work. But I can not do this work. Because this is ok when the date is greater than or less than. When i use between, in default server variable button did not show any text area for reoository variable. I also made initailization block with 2 fields.
    My Task is, I have to initialize the one date coloumn. From Date: and To Date. Pluzz help me in section
    Ali Haroon Nawaz

  • How to set the default value in dashboard prompt?

    Hi there,
    In my Dashboard prompt I'm getting values like:
    Mar 2010
    Apr 2010
    May 2010
    Jun 2010
    How to set the default value to the current month (Jun 2010). I don't want to use "specific value". I want to use the "SQL Result" for populating the default value.
    Appreciate your help

    hi,
    you can create a Repository variable current_month with the expression as
    select to_char(trunc(sysdate),'Mon')from dual
    and use this in the prompt "Default to" Server variable and use this repository variable.
    hope this helps.
    cheers,
    vineeth

  • Query design: Default Value List Filter Prompt to None

    I am building a query with several filter prompts which are of data type Value List
    The problem is that the list defaults to the first value in the Value List, and I would like to default it to None. The reason of course is so users don't have to switch all the dropdowns to None manually.
    I am wondering, what is the default value that can default the list to None? I have tried "0", "None", "null" all to no avail. My current hack is to add another value to the value list called "Any" and make it the first choice in the list.

    Unfortunately I tried that and it didn't work.
    The values of my filter prompt are as follows.
    Parameter Name: AGREEMENT_TYPE
    Prompt Message Resource: Agreement Type 
    Default Value: null:616:null
    Data Type: Value List
    String Matching:Exact Match
    Value List Type: Agreement Type
    Prefill value from cache:
    Optional:
    Hidden:
    Locked:

  • Crystal Reports scheduling disregard the default values and requires prompts to be answered every time.

    Hi guys,
    When scheduling a Crystal report, the page to configure the prompt answers does not have any prompts answered by default - they all appear as "[EMPTY]". This means that any required prompts must be answered during configuration of the alert schedule. Since prompt is required and the default value (which is equivalent to not answering the prompt) is not available in the selection list.
    Is there any way around it?
    Ideally I would like the prompts to keep the default values, so I could schedule the report for all the prompt answers (Whole list of value) instead of having at least one prompt value.
    Is there any configuration in crystal reports or on database side that could help me resolve the issue.

    First off, Thank you for your replies!
    Rabeb SLIMANI, we can't use universes by user requirement. If we could, it would have to be through IDT (Information Design Tool) but, nonetheless, the users want a direct BICS connection between BEx and WebI.
    Victor Gabriel Saiz Castillo, we can't do that because the users want to choose between accessing the published instances or refreshing the reports on demand.
    The way i see it, it would take a second set of BEx query + WebI report to provide both functionalities (one for ready for input, another for not ready for input). Am I correct?
    @Sathish Kumar (sorry, i can't tag you right), i was checking with the BW team and we already have the logic for If left null, populate with Customer Exits.
    But they are currently mandatory, so we will change them to optional and test the behavior.
    If you have any other ideas, they are more than welcome! I will keep you posted on the outcome!
    Best regards,
    Francisco

  • How to add a default value in a prompt list?

    I have a prompt list that I'm getting from the database, I want to add a deafult value in the top of the list. Ei "ALL", my current list is:
    "AMERICAS"
    "EMEA"
    "ASIA"
    I want a list like:
    "ALL"
    "AMERICAS"
    "EMEA"
    "ASIA"
    This is the code I have:
    @Select(Country Region\Regionname)IN @Prompt('Enter the region','A',{'All'}distinct 'Country Region\Regionname',Multi,Constrained)
    It is displaying only "All". Does someone know how to merge text with a database list in a promp variable?
    Thank you!
    Marcela

    please find this post
    i've solved this problem with someone before
    Optional User prompt
    ok, lets get back to our problem
    since you are in sybase databases i dont know weather there is a DUAL table like oracle or not,
    anyway forget about it and follow those steps
    1. import the universe to the desginer
    2. Right Click any empty space on the Stage to Create a derived table.
    3. Give The derived table any Dummy Name lets say "ALL_table"
    4. write a small SQL statment in the derived table "Enter SQL Expression"
    select 'ALL' from anytable you have in the database.
    lets say the countries table itself
    SELECT 'ALL' FROM USER.COUNTRIES
    validate the SQL and Click ok.
    5.you will have a derived table called "ALL_table" with field name "ALL"
    6.Drag the Field Name ALL to the Same Class whicn you "Country Name" in.
    7.Get back to your "Country Name" Dimension and Double Click it to get its properties, then go to the Properties tab.
    8.in the peroperties tab. "Associate List of Values" ,, Click "Edit" Button.
    9.you will find your "Country Name" Dimension, click "Combine Queies" icon in the bar, to have another queries union with the first one.
    10. you will have another query with "U" beside itm Drag the "ALL" dimension in it, and remove the "Country Name"
    so you will have 2 union queries one with the "Country Name" and another on with "ALL"
    gooooooood.
    11.Click "Save and Close"
    12.Check Export with universe and "Automatically Refresh before use"
    13.now you can hide the "ALL" dimension we have created before, to make it invisible for the users. (do you have problem hiding this dimension?)
    14.export your universe
    15.open WebI
    16.Create Report on this universe.
    17.put the "Country Name" Dimension on the filter and make it prompt,
    18.Run the query,
    19. tell me what you see?
    good luck
    Amr

  • How can we change Prompt  default values based on other prompts....

    Hi Experts,
    I have a prompt Status --> DAILY,WEEKLY and MONTHLY.
    If user selects any one of this value the default value in another prompt Startdate and Enddateshould change,Here Startdate and Enddate is Editbox/calander control.
    Declared the presentation variable in first prompt and in the second prompt of SQL Results(Default to) i am writing
    +SELECT CASE WHEN '@{Pres}='WEEKLY' THEN VALUEOF(VAR_WEEKLY) END+
    but in the default one it was not showing the Repository variable value...
    Please suggest me any solution its an urgent
    thanks,
    saichand.v

    Hi Saichand,
    Are you getting an error ("Error Generating Drop Down Values")? Or are you just seeing a blank default value?
    If you are getting an error, do you have any presentation columns in your default SQL formula? If not, that's your problem. OBIEE won't let you construct a logical SQL query without having a presentation column in it somewhere.
    If this is your issue, try the following: SELECT CASE WHEN 1=0 THEN <PRESENTATION_COLUMN> WHEN '@{Pres}'='WEEKLY' THEN VALUEOF(VAR_WEEKLY) END FROM <SUBJECT_AREA>
    Be sure to replace SUBJECT_AREA and PRESENTATION_COLUMN with appropriate names. The condition 1=0 will never evaluate to true, so it's as if it's not there, but OBIEE will see that there's a presentation column in the formula and stop giving you the error.
    Good luck and if you found this post useful, please award points!
    Best regards,
    -Joe

  • Perl adcfgclone.pl dbTechStack default values...?

    Hi!
    Our config: DB 10g2.0.2, APPS 11.5.10.2
    When we run "perl adcfgclone.pl dbTechStack" then some default values are shown in screen:
    Do you want to use a virtual hostname for the target node (y/n)
    Target instance is a Real Application Cluster (RAC) instance (y/n)
    *Target system utl_file accessible directories list [var/tmpprod]:*
    Number of DATA_TOP's on the target system [6]:
    ...Where are those settings saved and retrieved in runtime? I'd like to change some default values to some new values (i.e. number of data tops to "7", after adding some luns)... Funny, but I couldn't find the source ... of that pattern.
    THX
    Funky

    Hsawwan
    I hope I'll not disobey some rules...however here it is:
    The script adcfgclone.pl calls CloneContext.class. This java code is responsible for creating the Target
    Context file. The default values for the prompts are read from CTXORIG.xml (a
    copy of the Source context file). There are some exceptions to this, one of
    them being the "number of DATA_TOPs". This default value derives from the
    number of "s_dbhome" variables in
    +$ORACLE_HOME/appsutil/clone/data/stage/addbhomsrc.xml. This file is generated+
    on the Source system by adpreclone.pl, and copied to the Target system during
    the copy phase.
    As you have uploaded your addbhomsrc.xml and it is not working as specified above indicates you may be hitting a bug.
    Your default value appears to equate to "number of "s_dbhome" variables in addbhomsrc.xml 1".+
    +This matches an issue reported in Bug 5345502, where an additional variable+
    +added for 10g was being counted in addition to the s_dbhome variables, making+
    +the default number 1 more than the source. This was fixed for both 11i and R12+
    +in :-+
    +- CloneContext.java 115.204+
    +- CloneContext.java 120.31+
    +As the AutoConfig/RapidClone code is collected from the Applications Tier into+
    +appsutil.zip, please check the following version on your Applications Tier:-+
    +- $JAVA_TOP/oracle/apps/ad/context/CloneContext.class+
    +If the version is < 115.204, then you need to apply the latest RapidClone patch:+
    +6718351 : 11i RAPIDCLONE CONSOLIDATED FIXES JUL/2008+
    +This will deliver CloneContext.java 115.223+
    +Please also check the version(s) on your Database Tier:-+
    +- $ORACLE_HOME/appsutil/java/oracle/apps/ad/context/CloneContext.class+
    +There is also another version on your Database Tier which is copied by adpreclone.pl+
    +into the Clone stage area, so we need to confirm that version:-+
    +- $ORACLE_HOME/appsutil/clone/jlib/java/oracle/apps/ad/context/CloneContext.class+
    +If the version on the Apps Tier is > 115.204 and does not match those on the Database Tier, or you had to apply the suggested patch 6718351, then you need+
    +to recopy the AutoConfig/RapidClone code over to the RDBMS Tier.+
    +Recreate appsutil.zip using this command on the Applications Tier:+
    +- perl $AD_TOP/bin/admkappsutil.pl+
    +Copy the created appsutil.zip to the RDBMS ORACLE_HOME and extract it using "unzip -o" to overwrite the existing+
    +code.+
    +Once you have the latest version, you will need to rerun the "preparation stages" on your Source system by rerunning adpreclone.pl, so the+
    +new code is copied to the clone stage area.+
    +You will also need to rerun adpreclone.pl on the Apps Tier.+
    +Finally, recopy the instance files to your Target system, and when you configure the Target Database Tier, and are+
    +prompted for the "number of DATA_TOPs", you should now see the number match+
    +that on the Source system, or more specifically, match the number of "s_dbhome"+
    +variables in+
    +$ORACLE_HOME/appsutil/clone/data/stage/addbhomsrc.xml.+
    Rg,
    Damir

  • Restricting Prompt values until parent prompt is selected

    OK - this should be simple,but again its causing problems. I have a prompt with a series of drop downs based on the Organisation dimension. They are restricted so that they are filtered accordinly when the values are selected. I need to go one step further and not show any values until de parent value is selected. I am trying to do this with presentation variables and then using SQL to generate the values for each prompt passing as filter the variable for the parent prompt. I am getting an errors on the "@{var_name}" syntax.
    Has anyone managed to do this?

    Sorry, I thought that was what you were asking for (aside from the syntax of using prompts in the SQL statement). So please clarify again. When the user selects a value in the parent prompt, that value is stored in the PV. Now, what exactly do you want the users to see in the drop down of the child prompt?
    I just thought of something... Are all your prompts stored in one prompt file? If so, and the prompts are all set to Report Defaults, values in the prompts won't show until the drop down value is pressed and a value selected. Also, the prompt won't launch the report until the "Go" button is pressed. (By checking "constrain," each subsequent prompt will be properly constrained by the one before, as applicable.)
    If the prompts are in separate prompt files, then above would not be true.
    Message was edited by:
    LC143

  • How to include a default value in Dynamic cascading prompt from 2nd Level.

    Hi,
      I use Command Object in 'Datbase Expert' to create 'Custom Tables'  and use these tables to fetch LoVs. I use Dynamic Cascading Prompts in the reports.  I have a peculiar requirement using DCP.
      There are Four Levels as in the Example:
      Continent
       Country
       State
       City
      In the Custom Table, requirement is to create an additinal row with '' that represents 'All Values selected' for that level starting from second.  and The default selection should be '' . I defined that '*' means 'All Vales Selected in the report' This si not a problem. But the problem how to show a default value in a Dynamic Cascading Prompt i.e. how we can make sure in an default value can be selected in DCP from Second Level?
    how can the examples 1,2,3 can be achieved detaisled below beacsuse we need to show a default value in Casacading Propmt
    Eg of Schedules with DCP:
    Schedule 1   
      Continent: Europe
       Country: *
       State: *
        City:  *
      Schedule2:
       Continent: Europe
       Country: England
        State: *
         City: *
    Schedule 3:
        Continent: Europe
       Country: England
        State: Greater London
         City: *
    Schedule 4:
    Continent: Europe
       Country: England
        State: Greater London
         City: City of london

    You won't be able to have a true "default" value in the various cascading levels, since there aren't default values in a dynamic cascading parameter.  That being said, I've created a sample report in Crystal Reports 2008 that has a Command-driven DCP with '*' values for the 2nd and 3rd levels of my 3-tier DCP and have accounted for them in the record selection criteria.  You can find the sample here at https://www.box.net/shared/mav5qp337j

  • How to set a default value for a drop down list box and then apply cascading based on the default value in Infopath 2010.

    Hello Everyone
    I have two drop downs. Both are coming from look up fields from two lists. i want to set a default value(first list item) for the first drop down list box and then apply cascading based on the default value for the next drop down list box. I found one article(http://www.bizsupportonline.net/infopath2010/display-first-item-drop-down-list-box-infopath-2010.htm)
    where in i can set a default value but i can't apply cascading based on that default value. Any suggestions would be highly appreciated.
    Thanks
    Ramanjulu Naidu N

    Hey Ramanjulu,
    Take a look at the below article which I believe will answer your question.
    http://basquang.wordpress.com/2010/03/29/cascading-drop-down-list-in-sharepoint-2010-using-infopath-2010/
    Daniel Christian (MCTS)

Maybe you are looking for

  • Schedule and Items program is not picking the new Billing lines created PN

    Hi Gurus, I am using version 11.5.10. I am populating the data into Property manager billing lines of lease thru API. Once the Lines are inserted I am calling the Schedule and items program to for authorizatio. My program is not picking up lines crea

  • Wild volume changes thru Home Theater System

    I have a Sunfire Theater Grand system hooked up by HDMI cable from DVR to HT. HDMI from HT to TV. Optical Audio from DVR to HT from HT to TV. For some reason I am getting large volume changes.  It seems to be switching from stereo to Dolby Digital wo

  • Sound missing from one clip when dvd made

    I am using the current version of iMovie. When I burn a DVD via iDVD (and save to Mobileme) I have one clip where the voice track drops out. This clip was filmed at the same time as others and plays fine in iMovie. I've tried replacing the clip with

  • Hi, please delete my account on Skype! Thank you!

    Hi, please delete my account on Skype, thanks!

  • How can i use %OperatorId in Normal View

    Sample code SELECT oprid , version , emplid FROM psoprdefn WHERE oprid=%OperatorId Greeting, i would like to design a view, where every login user only can see a list of "version" and "emplid" based on their operator id But when i put it into a grid,