Optional Date Prompt

I want to have an optional date prompt  But if no value past it equals a field from the Universe.  Is this possible

Hi,
Extended prompt syntax works in XI R2 also. Extended prompt syntax:
@Prompt('String','A',{Class\LOV},mono,constrained,not_persistent,{'Default value'},)
The default value that can be defined n the definition must always be the static one. It can't be dynamic. Eg. You can't have the today's date by default in the in the prompt.
if no value past it equals a field from the Universe. Is this possible
Yes it is possible indirectly. You need to do a workaround for the same:
Define a static (hardcoded) default value in the prompt let say I define'TODAY' for the today's date, then to fetch the result according to todays date modify your condition as:
@(class\object} in decode(@prompt(...,..,...,...,...,...,{'TODAY'},),TODAY,Select sysdate from dual)
OR@(class\object} in @prompt(...,..,...,...,...,...,{'TODAY'},)
You can write any query in the definiton that will fetch you the required result or a particular value.
Note:The above syntax is for oracle. You can look for similar fun. like decode in your DB or you can also use case statement.
I hope I have made myself clear to help you.
Regards,
Rohit
Edited by: rohit12 on Feb 9, 2010 6:49 AM

Similar Messages

  • How to get date prompts from one date column

    i have a requirement where i have to filter the data between two date prompts. i have only one date column and the date in the prompts shuld be selected by calendar.
    i have seen may approaches to do this and i got one where two dummy date columns should be declared in repository and used to define the date prompts.
    but using other methods i could not get the calendar option in prompt.
    but is there any other way to get the prompts with calndar selection without defining the dummy columns in repository
    thanks

    you can do that first select the date column you want to use in dashboard prompt then select another column and in the dashboard prompts then open the fx of the date prompt you first selected copy that and paste it in the second column and in the control section click on calender it will work you can use same date column as two prompts with out creating new column.

  • Display date prompt in crystal report output

    Hi There,
    In my report output the values entered in date prompt(range) is not displayed.
    I've prompt  that is created on document created on field. The properties of prompt are
    Posting date...... date.........static values
    value field : ERDAT.....
    value options:
    optional prompt: false
    allow custom values: true
    allow multiple values : false
    allow discrete values: false
    allow range values: true

    Hi Raj,
    I believe you're trying to display the start date and the end date of the date range parameter.
    Create a formula called 'start':
    Minimum(?Postingdate) //This formula extracts the start date from the date parameter
    Similarly, create another formula called 'end':
    Maximum(?Postingdate) //This extracts the end date
    Place these formulae on the desired report section.
    P.S: You may even do this in a single formula.
    Hope this helps!
    -Abhilash

  • 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

  • Two Dates Prompt error

    Hi
    Obiee experts
    i have faceing problem in obiee. i have two colums
    1. Etl_start_date 2. Etl_end date
    when i try to create two date prompts one is etl_start date and etl_end_date. Here those columns data type is (DateTime).
    what is the my problem is i have selected to two dates ex:- Etl_start_date= 01-25-2011 and Etl_end_date= 01-26-2011 then i click go button it's showing below error
    date value was expected (received "2011-01-19 00:00:00").
    Error Details
    Error Codes: QABPH2PO
    2. i am try to using this function in the dashboard Prompt but control (calendar option its not showing dashboard prompt) - substring(EVALUATE('TO_DATE(%1,%2)' AS CHARACTER ( 30 ), C_SESS_STATUS.ETL_START_DATE_TIME, 'DD/MM/YYYY HH24:MM:SS') from 1 for 9)
    How to reslove this problem velp me please it's very urgent
    If you have any solution in this issues please send me my mail id
    [email protected]
    Adnvace thanks
    satya

    Follow this link
    Date Prompt using Calendar view

  • Scheduling WebI reports in BusinessObjects 4.0 date prompts

    will SAp Business Objects 4.0 include some kind of feature to allow people to schedule webi reports in an easier way if the report conatins date prompts? For example if my report has 2 dates start date and end date prompts, it's logical if I want to schedule it to be refreshed every month I don't want to keep it scheduling with the same start date and end date for ever.  I want them to change depending on the month.
    I know there are some things that can be done at universe level, but what if a user doesn't have rights to modify the universe? It would be more useful to have some option in the schedule window to make the values change depending on some basic conditions.
    Or at least if profiles settings could help to do that by selecting in the list objects instead of fixed values from the list, it could help too.

    Hi,
    This looks like to be a request for future product enhancements.
    You need to log an Enhancement Request via Idea Place for the feature/functionality you would like to see in BI4.0.  Please follow steps in the attached SAP note [1515837 - How To: Enhancement Request Process - Idea Place |https://bosap-support.wdf.sap.corp/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3030303135313538333726]. If this idea is already submitted, you will need just to add your vote to it.
    Regards,
    Jeff

  • Change Webi Date Prompt Format

    Hi
    In BEx, I've created a variable on a date object.  Processing is manual/default. Single value.  Optional.  And ready for input.
    In the Universe Designer, I have changed the "Where" code on the filter to be a date format with a free selection - as below.
    <FILTER KEY="[!V000006]"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Valid Date From','D',,mono,free)"/></CONDITION></FILTER>
    When I refresh the document in Webi, when entering a date for the prompt, the format is M/d/yyyy.
    I would like to change this to dd.MM.yyyy - as this is what the users are used to when running queries in web templates.
    Where do I set the format for the Date prompt?
    We are on BO XI3.1 and SAP BW 7.0 on a DB2 database.
    Thanks in advance
    Anton
    Edited by: Anton Vogel on Jul 21, 2011 3:36 PM

    Hi
    It does.  But this can be a hassle when having to choose a date quite far in the past.  It is far more convenient to simply manually input a date.

  • How to handle date prompt in report

    Hi I have date column on database as timestamp.
    Now need to apply filter in report based on date prompt.
    Do i nee to cast it in Date format..or how i can do it.
    thanks,

    Hi User,
    Which versionof obiee are you in? If you are on 10.1.3.4.1 version, apply PATCH 9492821 to fix this issue.
    Can you do the following checks,
    In the repository physical layer, set the column to have a data type of date
    In the BMM layer, where the column is mapped, edit the column mapping to contain a CAST function to cast as date
    Regards,
    Dpka

  • Crystal Report Date Prompt  Query from SAP BW

    Dear Support,
    Using Crystal Report 2008 and Query is design In SAP BW
    Date Prompt is made mandatory in Query at Query Designer.
    Problem:  Requirent is that Date promt shoud take value currentdate-1
    when report is excuted first date prompt will show in that prompt value should have today date - 1 which is yesterday date.
    how to pass formula to date prompt?
    Thanks

    If the prompt value should always be CurrentDate -1, then there is no need to use a prompt at all. Just put the formula to the selection criteria.
    If you want the prompt to default to CurrentDate -1, while allowing the user to change the prompt to another date if they wish... That won't work. CR won't allow you to use a formula as the default value in a prompt.
    If there is a BO Universe between you and the tables... IE, you're building against the universe, you'll need to get with the universe designer and have them make an alternate field available that has the formula hard coded in the SQL as opposed prompting.
    HTH,
    Jason

  • A Date prompt defaulting the data in Report based on selection

    Gurus,
    I have a requirement , where i have a (in between) date prompt set in the dashboard current defulting to Start Month date and End Month date of current month.
    What the user want is based on the selection using a drop down in dashboard which has got values Last Day, Last week, Last Month , the default values in Date filter should change in dashboard.
    For Eg. If the user select Last Week, the in between date filter show the default date value as Last Week Mon and Last Sun, and should filter out the report based on that.
    Any idea's are welcome....
    Thanks & Regards
    -Saurabh

    Try to see if you can get user to agree on something easier.
    Here are the steps to achieve what you want.
    1. Create a prompt for 1 day, 2 week, and 3 month
    2. Create three separate reports based on above selection, which has page prompt for day/week/month respectively.
    3. Create GN based on step in 1 and then let UI change between three reports you created in step 2
    I hope this helps,
    Best luck

  • SELECT OPTIONS DATE.

    Hello , I need your help ,  to access to  every date in an interval of the select option , in order to execute a function module that use date in one of its parameters .
    select-options : dat for sy-datum .
       CALL FUNCTION 'ZPRUEBA''
         EXPORTING
           offic                =
           chdsk                =
           inicio_periodo       =
         FIM_PERIODO          =  dat  "but i need here every date of the interval
         NO_UPDATE            =
       IMPORTING
         NR_COBRANCAS         =
       ENDSELECT.
    How can I do that ? , tnhx.

    hi
    put the function module in the loop.
    data : date like sy-datum.
    select-options : s_date for date.
    while ( s_date-low LE s_date-high ).
    CALL FUNCTION 'ZPRUEBA''
    EXPORTING
    offic =
    chdsk =
    inicio_periodo =
    FIM_PERIODO = s_date-low
    NO_UPDATE =
    IMPORTING
    NR_COBRANCAS =
    add 1 to s_date-low.
    endwhile.
    reward if helpful
    prasanth

  • Date Prompt in OBIEE 11.1.1.7.0

    Good Afternoon, hope you all are well.
    We have the following issue in our production environment.
    Our Exact Date prompt is causing our reports to error, the reason being is that the relevant Fact table to the prompt has no data.
    Is there a piece of SQL we can add to the prompt to say if it cannot find any data to that specific date then use SYSDATE?
    Regards
    Rayno Matthee

    Thats not giving correct value. the Amount filter is also considering the date filters.
    Data Available:
    UserName    Month            Amount   
    A1               Jan 2015          100               
    A2               Feb 2015          150               
    A3               Mar 2015           200              
    I am getting below result:
    Filters
    Date from: 01-FEB-2015
    Date to : 24-March-2015
    Below is the expected result.
    UserName    Month            Amount    YTD Amount[FILTER("Amount" USING("Dim - Time"."Date" between date '@{date1}{2015-01-01}' and date '@{date2}{2015-03-24}'))]
    A2               Feb 2015          150                    350
    A3               Mar 2015           200                    350
    Below is the expected result.
    Filters
    Date from: 01-FEB-2015
    Date to : 24-March-2015
    UserName    Month            Amount    YTD Amount
    A2               Feb 2015          150                    450
    A3               Mar 2015           200                    450

  • Date prompt in obiee

    Hi Gurus,
    Prompt Name(date) =13-sep-10
    table name -test1
    requirement is to once i select the date from Date prompt let us say 13-sep-10 so it should select all the data after that date
    so should be query for the same in prompt SQL
    please help
    thanks

    TimestampDiff and TimestampADD( Difference of two dates) in OBIEE
    How to get a difference between two dates (in terms ) of days,weeks,months what every it may be
    The below formula gives you no.of days between day date and current_Date
    Days difference:
    TIMESTAMPDIFF(SQL_TSI_DAY, Time."Day Date",CURRENT_DATE)
    The below formula gives you no.of months day date and current_Date
    Months difference:
    TIMESTAMPDIFF(SQL_TSI_MONTH, Time."Day Date",CURRENT_DATE)
    The below formula adds months to day date column
    Toadd 12 months to a date column:
    TIMESTAMPADD(SQL_TSI_MONTH, 12,Time."Day Date")
    similarly we can write the formulas using different intervals based on the date format in the column
    Here are the intervals :
    SQL_TSI_SECOND,
    SQL_TSI_MINUTE,
    SQL_TSI_HOUR,
    SQL_TSI_DAY,
    SQL_TSI_WEEK,
    SQL_TSI_MONTH,
    SQL_TSI_QUARTER,
    SQL_TSI_YEAR.

  • Date prompt issue in obiee 10g

    Hi Experts,
    Am facing the date prompt error, but the type is mentioned as date, after this also am getting same problem
    plz help
    Thanks
    Vijay

    Hi,
    It will be useful if you specify what error you are getting and what you are trying to do.
    Regards
    MuRam

  • CR 2008 - Optional parameter prompts

    Hi!
    I sometimes use Optional parameter prompts in Crystal Reports 2008.
    The main reason is to minimise user input in Selection Criteria Screen.
    I have many subreports, and not all prompts are needed for all subreports.
    If the user leaves the prompt blank, then a formula will set a default value for the user.
    I usually put the optional prompt at the top, so that user needs only fill prompts at the bottom.
    Here is an example:
    I have a parameter field called "PreferredSortOrder"
    The Edit screen reads as follows:
    Type: String
    List of Values: Static
    Value:
        Original Order
        Description
    Value Options:
    Show on (Viewer) Panel           : Read Only
    Prompt Text                              : Preferred Sort Order [Optional]
    Prompt With Description Only  : True
    Optional Prompt                        : True
    Default Value                             :
    Allow custom values                 : False
    Allow multiple values                 : False
    Allow discrete values                 : True
    Allow range values                     : False
    Min Length                                  :
    Max Length                                  :
    Edit Mask                                   :
    Show value or Description        : Show Value
    My report works perfectly, even if I leave the parameter field blank
    I now add another parameter field called "WhichWarehouse"
    with exactly the same values as above.
    When I run the Crystal Report, I get this message;
    Error running Crystal Reports
    The report runs only if I type a value in the "WhichWarehouse" prompt
    (The "PreferredSortOrder" prompt remains blank)
    I did exactly the same as before. Why does the 2nd optional parameter not work like the first?
    What has gone wrong?
    Thank you
    Leon Lai
    JUST ADDED
    I just noticed that in the Field Explorer,
    (a) There is a green TICK near the parameter PreferredSortOrder
    (b) But no green Tick neat the parameter "WhichWarehouse"
    What does the green tick mean?
    Could this be the key to the mystery?

    Hi Leon,
    No green tick means that the prompt has Not been used in the report.
    If the report has Subreports, and if the subreport also has a 'warehouse' prompt then it could be this prompt that is causing the issue. You should link both the warehouse prompts to make sure you're only prompted once.
    -Abhilash

Maybe you are looking for

  • How can you turn off timestamps?

    We've setup our WebLogic instance (WebLogic 5.1 running on Solaris 2.7) such that all messages going to standard out get redirected to a file. We do this so that when errors appear on standard out we can capture them to help us problem solve later (A

  • How do I output widescreen over S-Video?

    I want to connect my MacBook Pro to a widescreen 16:9 TV over an S-Video cable. But when I do, the display is 4:3 stretched wide and distorted. It looks terrible! How do I tell the Mac that the resolution it should be providing over video out is 1280

  • The sound on my macbook air isn't working how can i fix this

    i was on line and i went to watch a video and the sound wasnt working and it still wont work everything is on but its not working out

  • EDI Invoice printing

    Hey all you Oracle experts, Hopefully simple question here surrounding Invoice printing and EDI. In our current setup we print most of our invoices on a daily basis, and the image generated through BI publisher gets archived successfully. We have rec

  • ExecDialog  not working

    Hi, I have used execDialog method in Adobe Javascript. It is working fine for Adobe Acrobat X Pro and Adobe Professional 7. But it is not working with Adobe reader 9. Any advise what is missing? Thanks