@Variable vs @Prompt

Hi,
My deski has a free hand sql and uses @Variable.The issue is that when i run the report from DESKI it prompts the user to type the date but when i run the same report from infoview it prompts the user to select the date from a calender.How can i make this calender option disabled? I think it is ease to do this with @Prompt as it has the option (Free and Constraint) but how to overcome this issue in @Variable?

Just ask for the date in a character string way, then convert it to date.
So in oracle syntax
use
datecolumn = to_date(@variable('type date in the format dd-mm-yyyy'),'dd-mm-yyyy')
i.s.o.
datecolumn = @variable('give date')
the latter will trigger the calendar dialogue...
Hope this helps

Similar Messages

  • Presentation Variable in prompt, then BIN

    Hello,
    I have a 4 presentation variables, related to date which will be entered by the user (prompted). Can I use the presentation variables to setup the BINS? I have tried it and it just doesn't quite like it.
    Example,
    We a field called Issue Date
    Now, I want to check and compare 2 different Incident Date ranges.
    Therefore I have 4 presentations variables which hold the start and end date for each set. So, if I put Start date -01-05-2010 end date 10-05-2010 it will look into issue dates between this 2 dates. The issue is that the start and end date are entered by the user. So when I am creating a Bin I get a couple of errors:
    1. filter Editor Template not found on page
    2. nQSError: 10058] A general error has occurred. [nQSError: 46048] Datetime Month value 0 from 0000-00-00 is out of range. (HY000)
    If anyone can shet some light into how can I resolve this. I will highly appreciate it .
    Thanks.

    Hi,
    Yes you can use the presentation variable in the prompts.
    But first check if the presentation variable is getting assigned where you have called in the physical query generated. In Manage session-->view log.
    Try using a single quotes in the beginning and ending of the variable otherwise.
    And for the default selection, try building a dynamic variable in the rpd and call it in the prompt and check.
    Hope this helped/ answered.
    Regards
    MuRam

  • WEB Application / Dynamic variable input / Prompts

    I've defined a variable on characteristic Currency with the following definition:
    Processing by              : User Entry/ Default Value
    Variable represents        : Single Value
    Variable entry is          : Optional
    Ready for input            : yes
    Can be changed in query nav: yes
    Default Value              : EUR
    This variable ist used in "Currency Translation" as "Target currency" (variables entry: yes)
    The query is used in a Web-Report that performs the following command by selecting currencies from a checkbox:
    url=SAP_BW_URL_Get() +"&CMD=PROCESS_VARIABLES&SUBCMD=VAR_SUBMIT&VAR_NAME_1=SL_CURR&VAR_VALUE_EXT_1=";
    url=url+value;
    (value is the code of the selected currency)
    Everything works pretty good, but opening the web-report I get a prompt window for the variable. How can I avoid this ?
    Changing the variable property <Ready for input : no> causes the effect that the dynamically changing of the variable doesn't work anymore. It seems that in this case always the default value of the variable is taken.
    The application should use the default value while opening the report, afterwards it should be possible to set the variable dynamically.
    Thank you very much for your ideas !!

    Hi Stefan,
    you can activate/deactivate the variable screen with parameter "Force Variable Screen" in your web template.
    bye

  • Using @variable('BOLanguage') prompts in webi documents

    Hello,
    I am using @variable('BOLanguage') in the universe to handle multilinguism.
    Unfortunately, when running my webi document, the variable prompts whereas it is a BO variable.
    On top of that, let us suppose, I enter "test" as a value for this variable, when it is evaluated, the variable is evaluated as 'fr' or 'en' but not as 'test' which proves that this variable should not prompt.
    Does anyone have any idea about how to prevent 'BOLanguage' from prompting.
    Thanks in Advanced
    Sylvie

    Oh, ok that's interesting. I went back to find the documentation but couldn't find anything specific to BOLANGUAGE, just to @Variable in the Universe designers guide.
    http://help.sap.com/businessobject/product_guides/boexir31SP2/en/xi31_sp2_designer_en.pdf
    It mentions entering -var parameter at the command line when starting BO to get access to other variables, and the syntax to use for @variable. It also mentions language variables like 'Preferred Viewing Locale', but nothing about 'BOLanguage'. Anyway, looks like you have answered your own question.
    Thanks

  • Using variable in prompt label

    Hi,
    Does anybody now if/how you can use a session variable in a prompt label? I want to make a multiligual prompt.
    regards
    John
    Edited by: John Minkjan on Apr 15, 2009 4:28 AM

    Stijn,
    That did the trick!
    I will put it on the blog ASAP.
    EDIT: http://obiee101.blogspot.com/2009/04/obiee-multi-lingual-prompt.html
    regards
    John
    http://obiee101.blogspot.com/
    Edited by: John Minkjan on Apr 15, 2009 10:44 AM

  • Handling BW variables/BO prompts

    Hi,
    What is the best-practice way of handling prompts/input variables in a BW/BO scenario when it comes to the time characteristic/dimension?
    I want to report on
    Cost Center
    Company Code
    Value Current Fiscal Period (user input)
    Value Year to date (based on the current fiscal Period)
    Value Last year same period (same period(s) as the two values mentioned above)
    I want o be able to modify the chosen time period by using input control i WebI, e.g. without doing a new search in the database, only by using the data that is already in the cache.
    I'd appreciate input on best practices for this scenario.
    Thanks!!
    Regards,
    Fredrik

    Best practice would be to design the report using classes defined in the Universe with an exported list of values.  This will limit database traffic to refreshing the LOV and the reports will bind to that.

  • Variable in Prompts instead of a Date column

    Hi,
    How do I create a presentation variable of type date to use it in the prompt? I do not want to use the date column, but use a variable to pass the start date and end date. This is because, I have two views in a report. Both the views accept different date columns as input. Can someone please guide me here to solve this issue?
    Thank You,
    AK

    Hi,
    I was able to pass values to two different views from the date prompt. The only issue I have is with the filter.
    This is what I have in the filter:
    VariableExpr = myPresentationVariableName
    default = valueof(myRepositoryVariableName)
    The report runs fine, but I see errors when I click on 'Results' tab in Answers. The errors say, "Expecting datetime value but got valueof(myRepositoryVariableName)"
    I even tried to Cast it to date which says CAST(valueof(myRepositoryVariableName) AS DATE). But it did not work.
    Am I missing anything here? The errors appear only in Results tab of Answers. When the report is run through the dashboard, it runs just fine.
    Thank You,
    AK

  • Unable to set presentation variable to prompt default.

    i am tying to apply prompt default value as some presentation variable.
    as i want to set depending on the value selected by Same prompt.please help me.
    or else help me to write sql statement with presentation variable(of other prompt) to set default.
    Edited by: user12078402 on Oct 28, 2009 5:21 PM

    Okay, I just tried something that works, but it's a workaround that may or may not work for you depending on the number of values in the column.
    Anyway, try this:
    1) Create your first prompt and save it to a presentation variable (PV), say prompt1
    2) Use the same column and create another dashboard prompt. In this one however, change the "Show" to "SQL Results."
    3) Now after the SQL in the window, add WHERE tablename.columnname IN ('@{prompt1}', 'value1','value2', etc...)
    Here is the drawback, you have to list the values explicitly (unless someone knows a better way), but this will default the second prompt to the first prompt's selected value while allowing the user the choices of the rest of the column.
    Not the prettiest solution, but it does work...

  • Creating Variable for prompt

    Hi,
    I have a requirement where i have to create a variable based on a specific requirement.
    A prompt is placed on the year field. Now two variables should be created
    1.The Sales Revenue of the year that is selected by the user, and
    2.The Sales Revenue of the previous year for the year that is selected by the user.
    Please Help
    Thanks and Regards,
    Raja.N

    Hi  Rohit,
    I practiced the same formulas on eFashion. I used [year], [sales revenue] objects and prompt with equal to condition
    Cyear =UserResponse("Enter Year:")
    Pyear =FormatNumber(ToNumber(UserResponse("Enter Year:"))-1 ; "####")
    Csales =[Sales revenue] Where ([Year]=[cyear])
    Psales =[Sales revenue] Where ([Year]=[pyear])
    I created the above 4 variables(all are measures), but i couldn't get the data for 'Psales'. You said, you practiced on eFashion and you got the result. Please let me know if i do any mistakes.
    Looking forward to your reply.................
    Thanks,
    Shahin.

  • Variables in Prompt Label

    Hi,
    Is it possible to use any variables(session/repository/presentation) in Prompt Labels?
    Thanks,
    Satheesh

    Hi sateesh,
    You can use presentation variables in your dashboard prompts.How to use it you can follow this
    http://gerardnico.com/wiki/dat/obiee/presentation_variable_initialization
    UPDATED POST
    I suppose no we cant do it,never i tried or heard of it.Anyways got a blog from john
    http://obiee101.blogspot.com/search/label/VARIABLES
    hope answers your question.
    Cheers,
    KK
    Edited by: Kranthi.K on Mar 24, 2011 1:21 AM

  • Issue with presentation variables, dashboard prompt and filter

    Dear Guru's,
    I have a question about constraining a request with presentation variable set by a dashboard prompt. I have a dashboard prompt, that stores its value in a presentation variable . The prompt is about region. When the dashboard opens, the default of the prompt is all choices and it needs to show my reports with "All Choices". I've created the following filter on my two reports on the dashboard:
    "Dim Student"."Region" = '@{variables.GILLES}'
    or '@{variables.GILLES}' IS NULL
    One report is just the column "Dim Student"."Region" (to see if it works) and with this report the above filter works just fine. When nothing is prompted it shows "All Choices" when a choice is made the report responds accordingly.
    BUT
    The second report on my dash with the same region column, but extended with some time dimension columns and a measure gives an error which I'm not able to solve.
    +State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 14023] None of the fact sources for ToDate(# Feitelijke Instroom:[DAggr(Feit Instroom en Uitstroom Opleidingen.# Feitelijke Instroom by [ Dim Tijd.Maand Omschrijving, Dim Tijd.Maand Nummer, Dim Tijd.Jaar, Dim Kwalificatie.Kwalificatie Niveau, Dim Leerling.RCBREGIO Regio] )], [Level JAAR]) are compatible with the detail filter [Dim Tijd.Maand Nummer = 3, Dim Tijd.Jaar = 2010].+
    +(HY000)SQL Issued: SELECT "Dim Tijd".Jaar saw_0, "Dim Tijd"."Maand Nummer" saw_1, "Dim Tijd"."Maand Omschrijving" saw_2, "Dim Kwalificatie"."Kwalificatie Niveau" saw_3, "Dim Leerling"."RCBREGIO Regio" saw_4, "Feit Instroom en Uitstroom Opleidingen"."# Feitelijke Instroom Cumulatief" saw_5, REPORT_SUM(saw_5 BY saw_0, saw_1, saw_2) FROM repos_x WHERE ("Dim Tijd".Jaar = 2010) AND ("Dim Tijd"."Maand Nummer" = 3) AND (("Dim Leerling"."RCBREGIO Regio" = 'Noord-Oost') OR ('Noord-Oost' IS NULL)) ORDER BY saw_0, saw_1, saw_2, saw_3, saw_4+
    While the exact same report but without the "or '@{variables.GILLES}' IS NULL" doesn't throw any errors but doesn't show the "all choices" by default.
    The ultimate goal to achieve is to build a dashboard with several reports from several subject areas with one single prompt that opens default with "all choices" and constrains the reports accordingly.
    Any help is highly appreciated.
    Kind Regards,
    Gilles

    Phani,
    I know "All Choices" is a special value and that it doesn't represent NULL. My filter construction seems to work fine.
    My filter condition:
    "Dim Student"."Region" = '@{variables.GILLES}'
    or '@{variables.GILLES}' IS NULL
    When it's set by the prompt it filters the request accordingly (first condition evaluates to true), when it's not set the second condition evaluates to true and shows all the results (or it's not filtered).
    The problem is that it doesn't work when time dimensions are combined with this filter. Then it throws the error mentioned in the first post.
    By the way: your suggested solution doesn't work.

  • Using Presentation variables in Prompt Default using SQL Results.

    I have set a presentation variable in a prompt(say 1st prompt). In the 2nd prompt, using default option, when I try to reference this variable in SQL Results, I get this error.
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <@>: Syntax error [nQSError: 26012] . (HY000)
    The syntax used for SQL is:
    SELECT <tab>.<col1> FROM <subject area> WHERE <tab>.<col2> = @{variables.myvar}
    Note: However the same SQL works fine in SHOW option.
    Thanks in advance..
    Edited by: user457687 on Feb 27, 2009 3:13 PM
    Edited by: user457687 on Feb 27, 2009 4:49 PM

    - OK. In the second prompt, instead of setting Default to SQL Results, set it to Specific Value.
    - Then insert '{pres_var}' in the window. I got it to work this way.
    - It supplied the PV as the default in the second prompt after hitting "Go" on the first prompt.
    Hi, thanks for your suggestion but I don't need to have the value of the presentation variable itself as the prompt default. The variable is a filter for a specific SQL clause and the default is the result of this SQL.
    Cheers
    DrPlexi

  • BW Variable as Prompt values in Xcelsius

    Hi Experts,
    We want to create Xcelsius report based on BW Query.
    We can't use direct connection BW/Xcelsius because we haven't stack Java installed.
    So we have used the other method :
    - Universe on Query result
    - QaawS on this universe
    - Connection with Xcelsius.
    Connection is ok but we're facing an issue with prompt.
    We would like to have a mandatory prompt to determine a date intervall to filter the Xcelsius.
    BW Query has a mandatory prompt but we can't have a pop-up on Xcelsius. We have to put values directly on worksheet to filter the report (But we loose query's flexibility).
    The same issue happens when we put a prompt while creating the web service.
    Have you any idea on how to display a prompt in Xcelsius ?
    Thanks in advance,
    Thomas.

    Here an example with Live Office:
    XC, CR and LO Part 1 of 4
    /people/ingo.hilgefort/blog/2008/10/03/businessobjects-and-sap-part-1-of-4--creating-a-xcelsius-dashboard-on-top-of-sap-bi
    XC, CR and LO Part 2 of 4
    /people/ingo.hilgefort/blog/2008/10/07/businessobjects-and-sap-part-2-of-4--creating-a-xcelsius-dashboard-on-top-of-sap-bi
    XC, CR and LO Part 3 of 4
    /people/ingo.hilgefort/blog/2008/10/07/businessobjects-and-sap-part-3-of-4--creating-a-xcelsius-dashboard-on-top-of-sap-bi
    XC, CR and LO Part 4 of 4
    /people/ingo.hilgefort/blog/2008/10/10/businessobjects-and-sap-part-4-of-4--creating-a-xcelsius-dashboard-on-top-of-sap-bi
    and QaaWS:
    Xcelsius, Universes and Query as a Web Service
    /people/ingo.hilgefort/blog/2008/09/04/businessobjects-and-sap-part-10--xcelsius-with-universe-and-query-as-a-webservice
    Ingo

  • Behavior of customer exit variables (used as prompt) in a workbook

    Hi All,
    We are on NW2004s. I am using a customer exit variable in the prompt for my query then saved the query as a workbook.
    1. When I run the query the customer exit routine/program is called and the selection screen variable is populated with the correct value.
    Ex. Calendar year variable is a prompt variable defined as customer exit variable that gets the current year.
    when you run the query the prompt for calendar year shows "2007" as default value. this is correct.
    2. when I run the workbook using this same query, it looks like it is not executing the customer exit program. The value in the calendar year prompt is whatever the last value used when the workbook was last ran.
    I also placed a breakpoint in the customer exit program (EXIT_SAPLRRS0_001) to check if it is being called and it looks like it isn't.
    Is there a configuration/property that I should enable/check to make sure that customer exit variables used as prompts works in workbooks? Is this a bug? Anybody else have issues with using customer exit variables as prompts in their workbooks?
    Thanks in advance,
    Malou

    Hello Marilou,
    See the abswer I got from the 1st response on my question
    Save and reuse variable option in 7.0
    It may be a good help.
    Variables seem to be an understated item in the documents.
    Kind regards
    Message was edited by:
            BI developer

  • Passing variable value as a prompt

    Hi All,
    I have one problem related to passing variable through prompt. let's discuss whole situation. Suppose I have 5 interface having variable say user_id in each interface. And 5 packages for each interface. Now I have generated scenario for these packages. I am using these scenario to create one master package. Also I have created scenario for master package. Now I want to do something like this. When I execute scenario of this master package there should be one prompt asking value for user_Id value and that value should pass to all packages and interface and same value should be inserted in target table. I can bring prompt but can not insert that value in database.
    Request you to help me out in this case.
    Thanks and Regards
    -Pallav

    Hi Pallav,
    Not sure how are you trying to insert the variable value in the database but you can create an ODI variable to capture the user entered data from the scenario UI and you can pass the same variable to the underlined package/interfaces.
    Could you elaborate a bit more on the inserting the variable value in the database.
    Thanks

Maybe you are looking for

  • Error Log during logon of RAR 5.3 Portal - please help

    Hi Experts, We are unable to login into the CC portal [GRC RAR 5.3]. The login screen is appearing again and again without logging into the CC portal Below is the log file which we are getting and we understand that the product is not responding prop

  • Problem with lower third template & modifying the text...

    I'm doing a top 10 type video, & I downloaded this lower third template & I had never used AE before; I figured out how to duplicate it multiple times through the video where appropriate... but when I modify the text on one template it does the same

  • External drive not shutting down

    I have a 15" MBP running at 2.8GHz with 7200 rpm 500GB disk. This is a new set up, only installed in the last day or so. The MBP is attached to the Apple LED display to which is attached - via USB - a G-Drive Q 500GB external drive. The ext HD is use

  • Ungroup all groups of an indesign document

    hi i develop an indesign extension with CS extension builder 2 and flashbuilder 4.6 and i want to ungroup all the groups of a document. I've tryed : function breakgroup(qui){ for (var g=0;g<qui.length;g++)                                             

  • Backup from TS

    Simple Question: Can you backup directly from an external HD via USB2? Or do you need to have a firewire HD? Thanks