Date , Year Prompt

Team,
We have 2 prompts:
1 for Date
2 Year.
Basically what we need is that when a user click on any date, the year part of the Date prompt should be displayed in the YEAR prompt.
So is there a way in which we can use a Presentation variable for this
say, prentation variable for Date prompt is parTestDate
and if we can use this variable in Year Prompt as Year(parTestDate) then it should suffice.
But am not able to achieve the desired result or may be my approach is wrong
Please guide
Can you please help me with this.
Thanks
BG

Sorry, but this is not working.
I already tried before
I wanted to use presenatation variable because to use the variable of one saved prompt in another saved prompt.
Basically two diff prompts saved in diff shared folders.
Please advise

Similar Messages

  • How to add a date(Year, Month, Day) table in OBIEE Administrator

    Hi,
    I am new to this tool, we are developing a HR report for emp on leave or absentees. we have data since 1982 in our tables. we want to have a date table and dimension where we can give have a hierarchy for year, month, day, so that we can design our dashboards based on time. how we can do that in OBIEE Administrator and can we do it in warehouse builder as well, if so, how. ( we have a column for date in the table by name 'leave start date' and 'leave end date', can we use this and create our own table with year month and day as separate columns).
    Thanks.

    hi,
    Using date column u can create time dim in BMM layer
    Create a new logical table and pull your date column to this table
    Next,create following columns
    Refer http://www.rittmanmead.com/2007/04/30/obi-ee-time-dimensions-and-time-series-calculations
    leave start date
    Year level :Extract(year from date_column)
    Month and year level:CAST (Extract(month from fact_date_column) As CHAR(5) ) || CAST (Extract(yearfrom fact_date_column) As CHAR(5) )
    Mon-YYYY: EVALUATE('TO_CHAR(%1,%2)' AS CHARACTER ( 30 ), "Development".""."sample sales"."Dim - leave Date"."REPORT_DATE", 'MON-YY')
    YYYY-MM : CAST ( EXTRACT( YEAR FROM "sample sales".""."sample"."Dim - Report Date"."LEAVE_DATE") AS CHARACTER ( 4 )) || '/' || CASE WHEN EXTRACT( MONTH FROM "sample sales".""."sample"."Dim - Report Date"."LEAVE_DATE") BETWEEN 10 AND 12 THEN CAST ( EXTRACT( MONTH FROM "sample sales".""."sample"."Dim - Report Date"."LEAVE_DATE") AS CHARACTER ( 2 )) ELSE '0' || CAST ( EXTRACT( MONTH FROM "sample sales".""."sample"."Dim - Report Date"."LEAVE_DATE") AS CHARACTER ( 1 )) END
    Year Quater :: EVALUATE('TO_CHAR(%1,%2)' AS CHARACTER ( 6 ), "sample sales".""."sample"."Dim -Leave Date"."REPORT_DATE", 'YYYY') || '0' || EVALUATE('TO_CHAR(%1,%2)' AS CHARACTER ( 6 ), "sample sales".""."sample"."Dim -Leave Date"."REPORT_DATE", 'Q')
    Day: EXTRACT(DAY FROM DATE_COLUMN)
    Thanks,
    Saichand.v

  • Update Script Problem CS2 to CS3 ( Time/Date/Year Script NOT WORKING IN CS3?

    The below script works in CS2 but not in CS3? WHY?
    //DESCRIPTION: Use to insert date/time into document.
    if (app.documents.length == 0) { exit() }
    insertDTs(app.documents[0]);
    function insertDTs(aDoc) {
    var curPrefs = aDoc.characterStyles[0].extractLabel("dtprefs");
    if (curPrefs == "") {
    // Doc has no prefs; use saved prefs
    curPrefs = getCurPrefs(File(getScriptPath().absoluteURI.replace(/Insert\.jsx/, "Prefs.txt")));
    } // end if curPrefs
    var prefParts = curPrefs.split("\n");
    if (prefParts[2] != "[None]") {
    insertIt(aDoc, prefParts[0], prefParts[2]);
    if (prefParts[3] != "[None]") {
    insertIt(aDoc, prefParts[1], prefParts[3]);
    function insertIt(aDoc, formString, cStyleName) {
    var formStrings= ["Day, Month, Year"]
    var theFuncs = [dayMonthYear]
    var charStyleStrings = aDoc.characterStyles.everyItem().name
    if (indexOf(charStyleStrings, cStyleName) < 1) { return } // style not found or is No Style
    var func = indexOf(formStrings, formString);
    if (func < 0) { return } // requested form not recognized
    var dateString = theFuncs[func](new Date());
    app.findPreferences = app.changePreferences = null;
    aDoc.search("", false, false, dateString, {appliedCharacterStyle:cStyleName});
    } // end insertIt
    function dayMonthYear(date) {
    date.setDate(date.getDate()+1);
    // returns dayName, monthName date, year
    var myDateString = date.toLocaleDateString();
    myParts = myDateString.split(" 0");
    if (myParts.length != 1) {
    myDateString = myParts[0] + " " +myParts[1];
    return myDateString.slice(0,-5) + "," + myDateString.slice(-5);
    function indexOf(array, find,offs) {
    for( var i = offs == undefined ? 0 : offs; array.length > i; i++ ) {
    if( array[i]==find ) {return i}
    return -1;
    function getScriptPath() {
    // This function returns the path to the active script, even when running ESTK
    try {
    return app.activeScript;
    } catch(e) {
    return File(e.fileName);
    } // end try
    } // end getScriptPath
    } // end insertDTs

    It uses CS2-style searching is the most obvious problem.
    Try putting it in a folder named "Version 4.0 Scripts" -- without the quotes -- and run it from there.
    Dave

  • Scheduling a report with System Date as prompt

    Hi Experts,
    We have came across a requirement where users want to have a date prompt.
    While scheduling the report, by default prompt is to be populated with system date and it (prompt) should also allow us to select a different date.
    This report is used for regular run and also for scheduling.
    We need a single report with single prompt which allows us to run for any random date when prompted and also to be scheduled for the latest date.
    Please give us advice/ suggestion.
    Thanks
    Uttam

    Hi Neil,
    We have tried both the approaches given by you, but it is not working for my requirement.
    Let me explain it with the below scenario.
    scenario:
      we have developed the report by using 2 data providers,
    Dp1: It is a custom Query with date as follows ( it is a Transaction data) which brings the data from 1st day of month(user prompt) to user's prompt date.
    TRANSACTION_DATE BETWEEN last_day(ADD_MoNTHS(@Prompt('As Of Date :','DT','ABC\plant\Transaction Date',Mono,Free,Persistent,,User:0)
    Dp2: It is also Custom Query, but it has only data on month ends.
    DIMV_plant_EOP.TRANS_END_OF_MONTH_DATE = last_day(ADD_MoNTHS(@Prompt('As Of Date :','DT','ABC\plant\EOP plant Attributes\EOP Date',Mono,Free,Persistent,,User:0),-1))
    Report is having 3 prompts, namely
    1) As of date (prompt)
    2) Plant (prompt)
    3) Country (Prompt)
    For example: if my report is ran on 06-june-2014,
    DP1: Brings the data from 1st of June to 6th of june.
    DP2: Brings the Data from Inception to last month(say 30-may-2014) because it has only month end data.
    Upto this it is fine.... but
    My requirement is to schedule the report daily......
    Example: User want to schedule a report today(10-July-2014), tomorrow(11-July-2014) and so on...
    Scheduling should be done daily i.e, it has to fetch the data 10-Jul-2014, 11-july-2014,12-july-2014.... so on. 
    Automatically scheduling has to take the current date.
    Thanks,..

  • Disable "Send Data File" prompt

    When I open the pdf created in LiveCycle Designer 7.1 and click on "Submit to Email" it prompts me for what type of email app I use. It then presents the "Send Data File" prompt. The options are "Send Data File" "Print Form" and "Cancel." It also has a "Don't show again" checkbox.
    Is there a way to disable this prompt? For example after the user clicks on their email app it would simply open the email with the data file as an attachment.
    I'm afraid that my people may click on "Print Form" instead of "Send Data File" or they might click "Cancel". I just want to ensure this is as easy as possible for them to complete.
    Does anyone know if it's possible to disable the "Send Data File" prompt and automatically open an email and attach the data file?

    Amrit,
    I apologize for taking so long to respond to your question. It took me a while to locate someone on the Acrobat Team who could answer my questions.
    It's a good thing you asked about this because it turns out that this behaviour will no longer occur as of the next release of Acrobat. In the next release, if the call to submit a form's data via email comes from an Acrobat
    Action, the "Choose your email application" dialog will always be displayed (unless the user has already clicked on the "don't show this again" check box which you can't control programmatically). If, however, the call to submit the form's data comes from JavaScript, the dialog won't be displayed. Instead, Acrobat will use the system's default email application (e.g. Microsoft Outlook) to do the submission.
    Unfortunately, clicking on a button with the mouse or the keyboard (by setting focus to it and hitting the Enter key) as well as firing a button's Click event with execEvent("click"), as I had previously suggested, will all be considered Acrobat
    Actions and will therefore possibly show the unwanted "Choose your email application" dialog.
    In order to get around this, we need a solution which always uses JavaScript to do the submission. Fortunately, we can use the Acrobat Document object's
    submitForm method to do this, thereby ensuring that the unwanted dialog doesn't show-up in future versions of Acrobat. The only potential problem with this solution is that it'll only work if the form is rendered to PDF. If the form is rendered to HTML (using
    Adobe LiveCycle Forms, for example), this method will not work because Acrobat won't be involved in hosting the form.
    The trick is to use the
    event.target object in a regular button's Click event. This object is actually the Acrobat Document object. From there, you can use the
    submitForm method as follows in order to achieve the same behaviour as that of Designer's email submit button (in JavaScript):
    var sEmailAddress = "[email protected]";
    var sSubject = "This is an email";
    event.target.submitForm
      cURL: "mailto:" + sEmailAddress + "?subject=" + sSubject,
      cSubmitAs: "XML",
    I've attached a sample form which uses this JavaScript to submit its data via email. Give it a try to see how it works.
    Stefan
    Adobe Systems

  • Data Manager prompt

    BPC 7.5 NW SP11
    Question: Can i have the data manager prompt give parent node selection by default instead of only base members
    I have product dimension with ProductLine as parent node and Product Item as base member. In one of our process we have a BADI which takes the Product Line and does amount calculation for all the Product Items underneath it.
    My current setup is in the data manager package have a prompt for Product dimension selection. User has to select the Product Line but when the dimension selection opens it by default opens with CALC=N filter  which makes the selection only on Product Items. User has to remove the filter, refresh and then select the correct Product Line parent node. Once this is done, the script logic just calls the BADI and in BADI we read the dimension selection. so it goes smoothly.
    But users are making frequent mistake by selecting the Product Item (shown default) instead of Product Line(parent), understandably so.
    Main question:  Can i have the prompt show the parent nodes in selection  (custom filtered based on property  Product Type ="PL")
    What alternatives you may have taken for this situation.
    Product Line
    --- Product Item1
    --- Product Item2
    --- Product Item3
    ~ Dilkins

    Hi Andrew,
    The script looks absolutely fine. It should have worked fine. You just don't need the INFO statement.
    Please refer to the below links from help.sap:
    SELECT:
    SELECT Prompt() Command - SAP Documentation
    SELECTINPUT:
    SELECTINPUT Prompt() Command - SAP Documentation
    As per the link also, SELECT is for all the members, whereas SELECTINPUT is for non-calculated members.
    Can you please share the screenshot of the screen where the member needs to be selected.

  • When I imported my photos to iphoto 11 from an external drive they were no longer chronologically organized in folders by year & month. In fact, it changed the dates & years of the files so I can't even manually organize them.

    When I imported my photos to iphoto 11 from an external drive they were no longer chronologically organized in folders by year & month. Instead, they all went into one folder within a 2011 folder. In fact, it randomly changed the dates & years of all the files so I can't even manually organize them now.

    Are you sure that iPhoto is the app for you?
    iPhoto is designed to help you organise your Photos, but you seemed focussed on organising files.
    The idea is simple: organise them as you want in the iPhoto Window. As I said above, as you never access the files on the HD then how iPhoto stores them is of no relevance. (It's by date of import BTW).
    Where are you seeing these changed dates? In the iPhoto Window ? Somewhere else?
    Regards
    TD

  • Year Prompt selection

    Hi gurus,
    I have a requirement that if I select year value from prompt then the report data should filter with selected year and next year of the selected year.
    For Ex:
    If i select year 2010 then the year values in the report output should be 2010,2011.
    If i select year 2011 then the year values in the report output should be 2011,2012.
    that means selected year and selected year+1 should be displayed in the report.
    How can i achieve this, please help me out with your valuable solutions.
    Thanks,
    Tinku
    Edited by: 934322 on Mar 6, 2013 1:06 AM

    Hi,
    1) create a presentation variable PRE_VAR.
    2) create a prompt on the year column and assign the value to the presentation variable PRE_VAR.
    3) create two filters in the report with OR condition like (Year = PRE_VAR OR Year = PRE_VAR + 1)
    It may work for your requirement.
    Regards,
    Lakshmipathi.

  • Date (Range) Prompt to update page reports

    Hello,
    First I'd like to say that I am a beginner sql developer and completely new to apex. I've been thrown into it and I am learning as I go. With that in mind please forgive me for asking some, probably, obvious questions. Thanks in advance for any help.
    My page has one prompt, Time Period, a drop down box with the following values: Select Time Period (Null Display Value), Last Week, Last Month, Last Quarter, Last Year, Select Dates. Based on this selection I want to do a couple of things.
    My prompt is built off a static list of values and returns 1,2,3,4,5 according to the selection.
    How or where do I need to use a case or if/else statement to first check that prompt value and then define my start and end date? I'm quite confused as to whether I should be using a computation or a process or maybe something else..
    Thanks.

    If you want to show or hide items(or regions) on the page depending on what choice the user made, use(and learn) dynamic actions.
    If you need to change server session state, you'll do it in a computation to change one item or do it in process for everything else.
    IF and CASE statements are similar in functionality and you'll find good descriptions on the net using the keyword "PLSQL CASE IF".
    Note: There is a difference between a CASE statement and a CASE expression even do their syntax are almost the same.

  • How do I get the Previous Year for a Year Prompted

    Hi,
    I have the following situation:
    1. WebI Query: a prompt on CalenderYear and a YTD measure ( build in the universe)
    now I want to create a second query with a prompt on year. the prompt should have the same text as in query 1. But instead of quering for the year typed in, it sould run for year -1.
    I already studies the Guide of Didier Mazoue, but could not find a solutions.
    Has anyone done this before? Any ideas?
    Best Regards,
    Thilo

    Hi Thilo,
    I assume you want to leverage the system date for doing this ? If so then that is as of right now not possible in the Universe itself but you can use EXIT variables in the BW query and then use those variables in the Universe.
    Ingo

  • Report that uses web services as data source, prompts for database logon

    I have a crystal report that uses web services as a data source. When I deploy the report to Infoview it prompts me for a database username and password. Since I am not using a database it should not prompt me for these. I tried various options in the CMC->database settings for this report but it still prompts me for the database logon info or tells me that the database logon information is incorrect.
    The report work fine in the Crystal Reports Designer.
    Does anyone know how I can prevent this report from prompting me for the database logon info ?
    Thanks,

    What options have you tried in the CMC?
    Have you tried running the report in Crystal Reports installed directly on the Enterprise machine?

  • Parsing Failed for Date in Prompt

    Hi Folks,
    I am having Parsing Issue on "Key Date"  Object in Universe. See the Error and Code below for your review
    Error: Parse Failed: Exception: DBD, The value entered is not valid. It must adhere to one of the following formats.
              YYYYMMDD
               DD.MM.YYYYState:N/A
    Code:
            <OPERATOR VALUE="AND"><OPTIONAL><FILTER KEY="[0I_DAYIN]"><CONDITION OPERATORCONDITION="Between"><CONSTANT TECH_NAME="@Prompt('Day Interval From','A','Calendar Day\LovDay IntervalBase',mono,primary_key)"/><CONSTANT TECH_NAME="@Prompt('Day Interval To','A','Calendar Day\LovDay IntervalBase',mono,primary_key)"/></CONDITION></FILTER></OPTIONAL><FILTER KEY="[0P_KEYDA]"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Key Date','D',,mono,free)"/></CONDITION></FILTER></OPERATOR>
    This universe is created by someone else and client need to modify it with a calendar but i did not modify it yet however its already giving me the hard time. Kindly advise, any kind of help will be appreciated
    Thanks

    Use the code below for the filter:
    <OPERATOR VALUE="AND">
         <OPTIONAL>
              <FILTER KEY="[0I_DAYIN]">
                   <CONDITION OPERATORCONDITION="Between">
                        <CONSTANT TECH_NAME="@Prompt('Day Interval From','D',,mono,free)"/>
                        <CONSTANT TECH_NAME="@Prompt('Day Interval To','D',,mono,free)"/>
                   </CONDITION>
              </FILTER>
         </OPTIONAL>
              <FILTER KEY="[0P_KEYDA]">
                   <CONDITION OPERATORCONDITION="Equal">
                        <CONSTANT TECH_NAME="@Prompt('Key Date','D',,mono,free)"/>
                   </CONDITION>
              </FILTER>
    </OPERATOR>
    Regards

  • Adding Day, Month, Date,Year, Time to Menu BAR

    My Menu bar now shows "Thu 9:14 PM". I want to change it to Day, Month, Year, and Time. I presume this is done by Apple>System Preferences>Language & Text>Formats>Customize, but I can't get any further, and the words "Type text and drag element to create a custm format" doesn't help. Type where? Drag from where? Drag to where?

    Drag an element from the list below into eg the Short box and add text eg : instead of /. But I don't think this will give you what you want - go instead to Date & Time Preferences/Clock, and select Show the Date. But it won't give you the year.

  • Incorrect date year after import

    I like to organize my photos by date. When I import my photos through lightroom 5, I specify in the metadata to organize by date, (in which it is listed correctly) and choose the destination folder. However, once I perform the import, it creates a completely separate folder under the year "2012". How can I fix this problem to import under the correct file dates?

    How have you set the Destination options in Import? A screen capture of it would help.

  • Setting a date in Prompt

    Hi all
    I need to set sysdate in my Date Prompt in a "DATE" Format,and I m using system.currentTime
    When I use system.currentTime, It is taking the CurrentTime Stamp.
    which is failing in fetching records.
    I just want exact Date in "MM/DD/YYYY" AND SEND IT TO REPORT AND CHECK THE DATE AS IT IS...
    THANX IN ADV

    Hi,
    You can get the system date by giving {$SYSDATE()$} as Default Value.
    hope it will work.
    Edited by: user10681648 on Mar 3, 2010 2:16 AM

Maybe you are looking for