Create prompt with CurrentDate

Hi, please help me!
I need create prompt in Information Design Tool or Web Intelligence that display the current date on a prompt when the query is refreshed.
I read the forums, but the decision for yourself is not found. System settings:
1. Information Design Tool 4.1 Support Pack 3
2. Business Objects BI 4.1 Support Pack 3
Initially I was here a formula
DIM_DATE.DATE_DT  BETWEEN  Trunc(to_date(@Prompt('Дата (начало):','D',,Mono,Free,Persistent),'dd-MM-yyyy HH24:mi:ss')) and Trunc(to_date(@Prompt('Дата (окончание):','D',,Mono,Free,Persistent),'dd-MM-yyyy HH24:mi:ss'))
To solve my issue I used a few solutions:
1. First, I created a prompt on universe using the function
DIM_DATE.DATE_DT  BETWEEN  Trunc(to_date(@Prompt('Дата (начало):','D',,Mono,Free,Persistent,{'SYSDATE'}),'dd-MM-yyyy HH24:mi:ss')) and Trunc(to_date(@Prompt('Дата (окончание):','D',,Mono,Free,Persistent,{'SYSDATE'}),'dd-MM-yyyy HH24:mi:ss'))
but it was not working.
2. Then I decided to use CASE WHEN
DIM_DATE.DATE_DT = (CASE WHEN @Prompt(‘Enter date or Today’,’A’,,mono,free,not_persistent,{‘Today’})=’Today’ THEN SYSDATE ELSE @Prompt(‘Enter date or Today’,’A’,,mono,free,not_persistent,{‘Today’}) END)
this does not work.
3.Then I decided to create prompt on the with help sql in query panel
SELECT
  DIM_DATE.DATE_DT,
  DIM_BRANCHES.BRANCH_NAME
FROM
  DIM_DATE,
  DIM_BRANCHES,
  FCT_DEVICE_AGGR
WHERE
  ( DIM_DATE.DATE_ID=FCT_DEVICE_AGGR.DATE_ID  )
  AND  ( DIM_BRANCHES.BRANCH_ID=FCT_DEVICE_AGGR.BRANCH_ID AND DIM_BRANCHES.START_DTM <= (select date_DT from dim_date where date_id=fct_device_aggr.date_id) and DIM_BRANCHES.end_DTM >= (select date_DT from dim_date where date_id=fct_device_aggr.date_id)  )
AND 
  DIM_DATE.DATE_DT  BETWEEN  Trunc(to_date(@Prompt('Дата (начало):','D',,Mono,Free,Persistent,{'SYSDATE'}),'dd-MM-yyyy HH24:mi:ss')) and Trunc(to_date(@Prompt('Дата (окончание):','D',,Mono,Free,Persistent,{'SYSDATE'}),'dd-MM-yyyy HH24:mi:ss'))
but it was not working.
How can I set the default value of the current date?
Regards,
Kristina.

Hi Krystsina
There is no direct way to do this you can check below blog for workaround.
http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/
http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/
http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/
~Anuj

Similar Messages

  • Create prompt with date-filter and initialize it with current date

    Oracle BI 11 g
    Hi!
    I need to create dashboard prompt with date-filter and initialize it with current date. How can I do that?
    I tried to create repository initialization block and add variable. But I don't know what should I write to DataSource? I tried to use functions Now(), Current_Date, sysdate (for example, SELECT Now() FROM tbl_Calendar) but without results - when I pressed "Test..." button I got errors - something like "Now() is unknown function" or "Incorrect syntax near key word Current_Date".
    After that I tied to use Presentation Variable in Prompt, but also without success ((
    Please, help me.

    I've created Repository Variable "CurrentDate", using SQL-query like this "select convert(varchar(10), getdate(), 104)" and now this variable is being initialized by value "07.04.2011". But I don't understand how to use this varible in DashboardPrompt! What item in list "Default selection" I should choose - "Variable Expression", "Server Variable" or something else? When I chose "Variable Expression" and write "CurrentDate" I got just string "CurrentDate" when preview Prompt. @{CurrentDate} gave me the same result.

  • How to create two prompts with same named object?

    Hi to All,
    I am a new user of OBIEE. Actually have only one column called creation date in my report. My requirement is in dashboard, I need to display two text boxes in same prompt with the name Beginning creation date and Ending Creation Date. Actually, I was able to do it with the operator "Between" but when i am doing it, I was not able to determine how can we get the values entered by the user for beginning date and ending date because both dates will get stored in the same prompt only (ie) in my "Creation date" prompt.
    Also, I have an another question, In a single prompt I need to repeat the same object more than once. But When I tried it shows the error "same column exists.. so this action will be ignored". Please help.
    Thanks in Advance,
    Thenmozhi

    Thenmozhi,
    You can think about having 2 different prompts: the first one with the operator >= and the second <=.
    For your second question you cannot have the same column in the same prompt more then once
    Regards
    Adil
    PS:Please assign points and close the thread when your question is answered

  • Exchange 2013 SP1 users randomly prompted with "The Microsoft Exchange Administrator has made a change that requires you quit and restart Outlook"

    I got a call to check an issue with a Exchange Server 2013 SP1 environment recently. All server was upgraded from Exchange server 2013 CU2 to Exchange Server 2013 SP1. It was done successfully but many users were being randomly prompted with a popup in their outlook
    client with the following message:-
    “The Microsoft Exchange Administrator has made a change that requires you quit and restart Outlook”
    Although there wasn’t any changes of late in the environment there were random popups like these for multiple users. As the behaviour was not consistent and effecting the entire upgration population
    Please suggest us how to resolve the issue.
    Regards, Md Ehteshamuddin Khan All the opinions expressed here is mine. This posting is provided "AS IS" with no warranties or guarantees and confers no rights.

    Hi,
    Does the issue happen to all Outlook 2013 users? Please create a new Outlook profile to have a try.
    If it fails, please check the msExchHomePublicMDB value in ADSI Edit:
    1. In Adsiedit, expand Configuration-->CN=Services -> CN=Microsoft Exchange -> CN=domain -> CN=Administrative Groups -> CN=Exchange Administrative Group -> CN=Databases.
    2. Right-click the listed database > Properties.
    3. Check whether the msExchHomePublicMDB value is set to an available value. Please change the value to <not set>.
    4. Click OK.
    Then check whether the issue persists.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • Need help in creating prompt for Month To Date Report.

    <span class="postbody"><font size="2">Hi All <br />I need to create a Month To Date Report using month(Start date & End date) as prompts, By default it has to run on the previous month data or if user selects his own range of dates then it has to bring the data for that range of dates ,one more thing is i am not showing the month and date columns on the report.Can any one help me how to create prompt for this in DeskI XIR2</font></span>

    Could you clarify some things? You are saying you are trying to transform the xml output of a webservice with an xsd, but an xsd is a schema that describes the allowed format of a xml file. If you want to transform xml from one format to an other (from one xsd to an other) you have to use a xsl file. You can make and test this with JDeveloper. Are you calling the webservice from esb or bpel?
    Kind Regards,
    Andre

  • How to create Rules with Flex Field mapping in the bpm worklist

    I Have created a flex field label and was able to map to the flex field attributes .
    But when i try to create a rules , I don't see the label or the flex attributes in the task payload .
    Can someone please help is understanding how to create Rules with Flex Field mapping in the bpm worklist .
    Even I am also searching for any scripts which will take the flex fields prompts and can directly create a label in the bpm worklist .
    Any pointers or suggestion is highly appreciated .

    Hi,
    SE38 -> Enter program
    Select Variants button and display. In the next screen, enter a variant name, (If not existing , press Create to create new one), else click on Change.
    Now the selection screen will display with a button "Variant Attributes" at the top.
    Click on that button.
    In the next screen, go to the selection variable column of the date field. Press F4 or drop down and select 'D' for date maintenance.
    In the column "Name of Variable (Input Only Using F4)" press F4 or drop down, select whichever kind of date calculation you want and save the variant.
    Now whenever you run the prgrm with this variant, date will be displayed by default.
    Regards,
    Subramanian

  • Problem in creating users with password restrictions

    I have enabled the following option in the Authentication>Enterprise tab of CMC.
    Must contain at least N Characters and specified N as 7
    Enforce mixed-case passwords
    However I am able to create user with password as abcd.
    Please suggest.
    Thanks in Advance

    I might be missing something but the rule applies to users changing their pw not administrators creating accounts. If the administrator sets this rule it would be thought/assumed that they would enforce their own rule when creating accounts. The users however should not be able to select 4 character passwords.
    I'll run some tests and see if I find out anything different.
    Tested this on XIR2 SP4 and XI 3.0 The rules apply to the user not the administrator creating the account.
    So create an account while the 7 character pw is enabled. By default the user logs in with the pw (any amount of characters) and is prompted to change their pw. They cannot choose anything less than 7 characters. So unless an administrator creates an account with a password less than 7 characters AND deselects the option to force a pw change. All new users will be forced to select a 7 character password.
    This is by design. If it forced the administrator to create accounts without a 7 character pw they could simply deselect the options(as administrators) so there is no security in forcing this.
    Regards,
    Tim
    Edited by: Tim Ziemba on Aug 13, 2008 5:28 PM
    Edited by: Tim Ziemba on Aug 13, 2008 5:33 PM

  • How to create prompt for inline filter?

    HI All. Can anyone plz help me, how to create prompt for inline filter?
    Let me give an examle...
    Suppose I've taken two columns as # of New Invoices and # of Cancelled Invoices
    Now, If I set a date prompt / month prompt, then the "# of cancelled invoices" column will fetch the number of cancelled invoice for that month only, which I have chosen in the prompt. But I want the "# of cancelled invoices" column to fetch data for the month chosen by me in another prompt.
    So, can anyone help me with the sql statement, which will fetch the prompt data (i.e., month / date chosen by the user) automatically and will furnish the result accordingly.
    Thanks.

    To create a column prompt:
    To create a dashboard prompt, use the following sub-procedure.
    Navigate to the Oracle BI Enterprise Edition Home page, locate the global header, hover the mouse pointer over the New menu to access the menu, and select Dashboard Prompt. From the Select Subject Area menu, select the subject area for which you want to create a prompt. The "Definition pane" is displayed.
    Click the New toolbar button in the Definition Pane to access the prompt type selection list. From the list, select Column Prompt. The "Select Column dialog" is displayed.
    Select a column and click OK. The "New Prompt dialog" displays. If your repository is configured for double columns, then ensure that you select the correct display column. For information on double columns, see "Understanding the Double Column Feature".
    The number of columns that you include in a prompt can affect performance. In general, you should limit the number of columns to as few as possible.
    If you are creating a dashboard prompt and want to add or remove related subject areas, then click the Select subject area button in the "Select Column dialog" to display the "Add/Remove Subject Areas dialog".
    To create an inline prompt, use the following sub-procedure.
    Create a new analysis or access an existing analysis for which you want to create a prompt. Click the Prompts tab. The "Definition pane" is displayed.
    Click the New toolbar button in the Definition Pane to access the prompt type selection list. From the list, select Column Prompt. The analysis' selected columns are displayed in the cascading menu that is adjacent to the Column Prompt selection item.
    http://webmastersomesh.com

  • HOW TO CREATE PROMPT BASED ON ANOTHER PROMPT IN OBIEE

    HOW TO CREATE PROMPT BASED ON ANOTHER PROMPT IN OBIEE.
    Requiremenst is as follows.
    Year ,Qtr columns in first prompt.Based on selection on these prompts second prompt should display corresponding prompts
    Second prompt will have Month ,Week and Day columns.Second prompt should be hidden and based on first prompt selection second prompt should display with constraint based on first prompt.
    Any help would be highly appriciated!!!

    hi,
    Using Guided navigation it is possible,
    Please refer the below links.
    http://gerardnico.com/wiki/dat/obiee/dashboard_prompt_1_eq_0
    http://businessdecisionsystems.com/blog/?p=448
    Hope this help's
    Thanks,
    Satya

  • WIS 00015 error- Multiple Query Filters contain a prompt with same name

    Hi
            I am working BOXIR2 environment. I created two prompts at Universe level- one of Date field and one on agency name field.
    syntax for the prompts is
    customerInfo.RSRCE_NAME =  @Prompt('Enter value(s) for AgencyName ','A' , , ,)
    datetable.STARDATE =datetable.STARDATE.STARTDATE =  @Prompt(' 'Enter value(s) for StartDate:','D' , , ,)
    When I include even one of  the prompts in the report I am getting an error WIS 00015 Multiple Query Filters contain a prompt with the same text, but the prompts use a different operand type.
    If I try to change text of one of the prompts in Universe selection statement, then I see the prompt two times in the report.
    Please let me know how to overcome this issue.

    Ok, I've simplified the case.
    Here is the real case :
    Object filter =
    Based on object =
    .[LEVEL01]
    Object filter =
    Based on object =
    .[LEVEL01]
    In WBI query result I take these objects :
    .[LEVEL01]
    .[LEVEL01]
    .[4IUX93YJGXQEHGLX0T0GPNA9Y]
    In query filters, my 2 filters with same text :
    1.
    I run the query.
    Answer to question 'Single Year Period ?' = Period 06 2010
    ==> MDX error
    A database error occured. The database error text is: Echec de l'exécution de la requête MDX SELECT  { .[4IUX93YJGXQEHGLX0T0GPNA9Y] }  ON COLUMNS , NON EMPTY CROSSJOIN( .[LEVEL01].MEMBERS, .[LEVEL01].MEMBERS ) DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS FROM SAP VARIABLES INCLUDING .[Z12010006] INCLUDING .[Z12010006] avec l'erreur Invalid MDX command with . (WIS 10901)
    And you can see that the value sent to both filters is the same and come from the first filter .[Z12010006] instead of applying the value to each filter .[Z12010006] for the first one and .[Z12010006] for the second one.
    Please, notice that if I change the order of this 2 filters in the WBI query, the MDX generated become :
    SELECT  { .[4IUX93YJGXQEHGLX0T0GPNA9Y] }  ON COLUMNS , NON EMPTY CROSSJOIN( .[LEVEL01].MEMBERS, .[LEVEL01].MEMBERS ) DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS FROM SAP VARIABLES INCLUDING .[Z12010006] INCLUDING .[Z12010006]
    Thanks for your help.
    G.OM.

  • Creating Database with Script

    Can any body guide me how to create DB with scripts, Here is the scripts
    ls -ltrtotal 6952
    -rw-r----- 1 oracle oinstall 7061504 Dec 4 11:17 tempControl.ctl
    -rw-r----- 1 oracle oinstall 2057 Dec 4 11:17 rmanRestoreDatafiles.sql
    -rwxr-xr-x 1 oracle oinstall 948 Dec 4 11:17 PSC01P1.sql
    -rwxr-xr-x 1 oracle oinstall 645 Dec 4 11:17 PSC01P1.sh
    -rw-r----- 1 oracle oinstall 682 Dec 4 11:17 postScripts.sql
    -rw-r----- 1 oracle oinstall 2634 Dec 4 11:17 initPSC01PTemp.ora
    -rw-r----- 1 oracle oinstall 2719 Dec 4 11:17 initPSC01PTempOMF.ora
    -rw-r----- 1 oracle oinstall 2621 Dec 4 11:17 init.ora
    -rw-r----- 1 oracle oinstall 185 Dec 4 11:17 CreateClustDBViews.sql
    -rw-r----- 1 oracle oinstall 915 Dec 4 11:17 CloneRmanRestore.sql
    -rw-r----- 1 oracle oinstall 1756 Dec 4 11:17 cloneDBCreation.sql
    -rw-r----- 1 oracle oinstall 954 Dec 4 11:18 postDBCreation.sql

    None of any script will help u. Followings are the steps to create manually database
    Assume you have selected f drive for the same -
    1. Choose drive with sufficient disk space
    2. create folder (folder_name)
    3. create bdump,cdump,oradata,pfile folder in (folder_name) folder
    4. open notepad and create pfile as named "init_sidname.ora" with required parameters (check parameters in sample pfile or ask to resend
    5. go to os prompt
    6. type commands
    oradim -new -sid init_sidname.ora -startmode m -pfile (path of init_sidname.ora file with filename)
    orapwd file=f:\oracle\ora92\database\pwd_nameoffile.ora password=sysdba entries=3
    create a sql script to create database with extention .sql
    set oracle_sid=sid_name
    sqlplus /nologsql>connect sys as sysdba
    password : sysdba
    sql> create spfile from pfile=(path of pfile)
    (it will create spfile in database folder of ora92 folder)
    sql> startup nomount
    sql> execute catalog.sql and catproc.sql scripts
    your database will be create and can be checked with select commands like
    select * from dba_datafiles;
    Rajesh thakur

  • WEBI Prompt with preset values

    Hello All,
    I have a requirement to create a prompt in WEBI which would display like below..
    "Dollar Denomination"
    This should have a preset of values
    "1"
    "1000"
    "1000000"
    When user executes the WEBI, the prompt should allow to select one value from the list of three values.
    I tried creating a prompt in query filter using" In List" option, but the default values are not populated. If I click "Set default values" and enter the three, those three values are selected by default.
    I want uses to select one of the value from these three values given above.
    Thanks
    Karthik

    Hello Rohit,
    Thanks for your reply. I tried both the suggestions but failed with errors
    In Universe, I created a dimension under the section "Key Figures" and named it "Dollar Denomination"
    and my formula for that was
    @Select(Key Figures\Dollar Denomination) In List @Prompt('Select Unit:','N',{1,1000,1000000},mono,constrained)
    It fails with parsing "Parsing Failed: Invalid Definition(UNV0023)
    With WEBI:
    I created a query filter with "Dollar Denomination" (that was blank dimension in the universe) and selected "Equal to" and selected as "Prompt" -> Clicked on the little question button and selected the following
    Prompt properties:
    Checked:
    Prompt with list of values
    Keep last values selected
    Check "Set default values"
    and keyed in
    Ones
    Thousands
    Millions
    I click on "..." button and could see that there is a prompt
    "Enter Dollar Denomination" : Ones;Thousands; Millions
    and Ones is selected on the right hand side.
    But when I deselect it and type Thousands in search conditon, it fails with database error MDX query with member....
    Sorry, I could not attach any screenshot with this message, but both failed..
    any other suggestions would be appreciated..
    Thanks
    Karthik

  • Primary key when creating reports with forms

    I'm new to APEX and I'm creating a report with forms using the wizard. I've checked the 'Include Analysis Pages' checkbox. When I select the 'add pages' button I get the following message:
    Table has no primary keys defined. A primary key is required when creating reports with forms.
    I know that the table does have a primary key because I defined it and also it is visible in the Sql workshop / Object browser and Toad.
    Am I missing something or is this some sort of bug?
    thanks
    sb

    You're missing something. This message means you've not told APEX what the primary key is. You shouldn't have been able to get passed the page in the wizard that asks for it though. Can't describe where it prompts for it from memory, but it shouldn't be hard to find.
    HTH
    Chris.

  • New iPad prompted with "Security Questions" on App Store. Need Reset but can't Reset, actually ...

    Just bought the new iPad. When trying to purchase from the App Store I get a message asking me to answer the "Security Questions" that follows, since it is the first time I am buying apps from the new device. Well, I forgot all my security answers. Then, when I go to the "manage your account" section on the "My Apple ID" page and select "Password and Security" (as explained in the Apple ID FAQ section at their support site), I am prompted with another "Please answer your security questions" check point before I can proceed. Well, like I said, I forgot all my security answers ... See, now I am caught in an endless loop and spent already 2 hours searching for a phone number or email support address at the Apple page, and could find none for that matter. I am stuck with 20 USD worth of credit in my Apple ID and cannot use it!!!
    Thus, I would like to know how may I "RESET" my security questions so that I may continue using my Apple ID?
    Kind regards to you all,
    Thanks for the patience,

    This should help you.......but I am with Ralph on this......How do you choose questions and answers only you should know and then not remember either?  Next time write the questions and answers down somewhere, then store them in a safe place for future reference.  I keep all my passwords and security questions/answers in a safe location in case of a situation like this:
    Go to:
    https://appleid.apple.com/
    Click Manage My Account, and sign in.  Go to the Password and Security section. If you've forgotten your answers, there will be a link just under the security questions fields where you can have a reset email sent to your Rescue email address.  You had to give Apple a Rescue email address when you created your security questions and answers.  You should keep that handy as well.

  • Create Rule with date flters...

    I am trying to create a rule that has effective date filters.. ie.. out of
    office rule.
    I can't seem to find out how to create the filters for the rule.

    I've created Repository Variable "CurrentDate", using SQL-query like this "select convert(varchar(10), getdate(), 104)" and now this variable is being initialized by value "07.04.2011". But I don't understand how to use this varible in DashboardPrompt! What item in list "Default selection" I should choose - "Variable Expression", "Server Variable" or something else? When I chose "Variable Expression" and write "CurrentDate" I got just string "CurrentDate" when preview Prompt. @{CurrentDate} gave me the same result.

Maybe you are looking for

  • Increase the column lengths of excel sheet through abap

    I developed a abap program and it was displayed the output.   So i need to display this out put in excel sheet.   for that I read the out put and placed in the excel, the only problem is the column lengths are small after download  i am dragging the

  • I have lost my address bar. Also I have no back or forward buttons any more. How do I get them back?

    I no longer have an address bar. I no longer have a Back button- forward button, Home icon. What happened? How can I get these important features back? I miss my old Mozilla Firefox == This happened == Every time Firefox opened == a week ago?

  • Payment Run Error( F110)

    Hi , I am getting error in Paymnet Run, "Balancing filed Business Area is not fileld in Line item - Due to this i am not able to print the checks. How to avoide & rectify this error. Regards, SSridhar

  • Using Google Docs to remotely convert documents.

    Damn, this is just too cool. GDD is a Python script that downloads all your Google Docs documents. What's even cooler is the fact that one can specify the conversion format. Which means, doc/docx/odt/rtf will be converted to HTML, xls/xlsx/ods will b

  • Problem in Database

    Dear all I am facing a problem in database well whenever a insert statement is fired the system is hangout and in server when some inactive sessions are killed the statement gets completed and always have to do that whenever a insert statement is fir