Substitution variable-can't set

Hi,
We have one user who have access in 4 (3 essbase/1 planning) database in different applications. We have many other cubes/applications in which that user have no access. We are using one substitution variable in calc, report etc which is using in all the 4 databases abovesaid. Now user want to input/set that variable only once instead of many times. When I go to set variable using that user login ID, choosing 'All Apps' and 'all DBs' option in vsub variable screen, it is giving error "create variable failed for row 0". What are the other setting that user should have to make it working?
If I choose all apps and all dbs option, my calc and report will be impacted anyway...?
Thanks & Regards.

If you have the same variable defined at different lavels then the order Essbase looks is the database, then the application then the global defined variables, so for example say you have the following defined for the valiable currmth
Application database value
All applicaitons All databases Sep
Sample All databases Aug
Sample Basic Jul
Demo Basic May
If you currently do a caclulation (or use the substitution variable in another way) For Sample.Basic you would get Jul for Demo.basic you would get May and for any other database (since they are not defined) you would get Sep
If you removed the line for sample.basic you would get Aug for the sample.basic, May for Demo basic and Sep for anything else
Remove both sample.basic and Sample and you would get Sep for sample.basic May for Demo Basic and Sep for anything else.

Similar Messages

  • How can I set #HOST# variable referenced in the Chart template?

    #HOST# and #HOST_PROTOCOL# are being set incorrectly by APEX from CGI variables when I create a chart. I am using APEX 4.1 and Oracle 11g. The get the continual "Loading data..." and then after it times out I get "Error loading file".
    Before we changed to a secure http environment, our charts worked. After we changed to the new web layer, the charts do not work. The #HOST# substitution was set to http://correctservername/ and #HOST_PROTOCOL# was set to http. We set PlsqlCGIEnvironmentList REQUEST_PROTOCOL=https in the dads configuration file and now the #HOST# displays https but it also includes the default port number which we do not want (https://correctservername:port/) The charts work without the port. REQUEST_PROTOCOL is not in the cgi list and setting this variable set #HOST_PROTOCOL#. What variable can we set to make #HOST# correct. It seems like #HOST# is being set by #REQUEST_PROTOCOL#'://'||HTTP_HOST||':'||SERVER_PORT||SCRIPT_NAME||'/'. SERVER_NAME could also be used in of HTTP_HOST. I don't know how APEX is setting #HOST#. Does it come from a host alias somewhere in the environment?
    I don't want to add a new cgi variable called HOST because HOST sounds so generic and it might interfere with something else running in our environment. Or, I don't want to change the plsql cgi environment variable (such as HTTP_HOST) because many developers may use owa_util.get_cgi_env('HTTP_HOST') to get the current server. If the SERVER_PORT is part of the #HOST# then what could I change it to if it needs to be null. If you leave it blank, then the default SERVER_PORT comes from the CGI variables.
    I would rather not create a global variable (hard-coding) and create a new chart template using the global variable or create a before header application process to re-direct url without a port.
    Edited by: Donna C-Houston on Oct 10, 2012 1:06 PM

    Hi Donna,
    changing the CGI environment variables HTTP_HOST, REQUEST_PROTOCOL and SERVER_PORT is the correct way how to resolve this, because it appears that your hiding the web server where you have installed mod_plsql or EPG by a different outside facing web server (also called reverse proxy). That's why APEX gets the host name, protocol and port of the internal web server, but should actually get the values of your reverse proxy web server. Can can fix that by changing the following CGI environment variables.
    HTTP_HOST should just contain the domain name (no protocol or port). For example: www.oracle.com
    REQUEST_PROTOCOL should contain http or https
    SERVER_PORT should be the port for https
    I don't want to add a new cgi variable called HOST because HOST sounds so generic and it might interfere with something else running in our environment. Or, I don't want to change the plsql cgi environment variable (such as HTTP_HOST) because many developers may use owa_util.get_cgi_env('HTTP_HOST') to get the current server. If the SERVER_PORT is part of the #HOST# then what could I change it to if it needs to be null. If you leave it blank, then the default SERVER_PORT comes from the CGI variables.The value of HTTP_HOST is wrong anyway and points to your internal web server, but I assume your developers actually want to get the host name of your external web server if they use it to generate absolute URLs. That's why I wouldn't bother and set it to the correct host name.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Using a business rule to set the substitution variables

    Hi All,
    I am having issues with setting the value of Substitution variable from a Business rule.
    Any help would be appreciated.
    Thanks,
    Shakil

    Thanks for your response, John.
    I am trying to set the Substitution variable through a data form on which the Business rule is attached.
    The admin guide for Planning states that "You can set substitution variables on the Essbase server,
    application, or database level. The same substitution variable can exist on multiple levels;
    Planning uses the first one it finds as it searches in this order: 1) database 2) application 3)
    server." So I believe that it should be possible.
    Regards,
    Shakil

  • Substitution Variable on Forms

    Hi All,
    I can not use Substitution Variable which is set to range,for example &FcstPeriods (Apr:Dec) on the form.
    In a form I need member1's data for Historical months (jan to Mar) and member2's data for FutureMonth's (apr to Dec).
    Instead of updating form every month, I am intrested to know if there are any other options.
    Thanks

    John,
    Sorry I am not following you.
    set var1=Jan, var2 =Feb,.. upto Var12=Dec this month. And then next month what should I set the variables to?
    The following are columns on form for this month
    Member1     Member1     Member1Member2     Member2     Member2     Member2     Member2     Member2     Member2     Member2     Member2
    &var1     &var2     *&var3*     &var4     &var5     &var6     &var7     &var8     &var9     &var10     &var11     &var12
    and for next month
    Member1     Member1     Member1     Member1Member2     Member2     Member2     Member2     Member2     Member2     Member2     Member2
    &var1     &var7     &var3     *&var4*     &var5     &var6     &var7     &var8     &var9     &var10     &var11     &var12
    Thanks

  • Substitution Variable & its usage in formulas

    Hi, I have a requirement of using Substitution variable ,say "CurMonth" in the formula for @PTD("JAN":&CurMonth). If I can be able to do this then I can update my substitution variable every month & then change the value in the PTD function using the substitution variable. My question here is whether substitution variable can only be used in calc scripts & not in formulas , if so why & is there any way my requirement can be met. Your ideas & solutions appreciated very much. Thanks & Regards

    Substitution variables cannot be used in the outline - only in a script. If you want to be able to use the function in a member formula, you will either have to hard-code the month range, or tag the proper months with UDAs, and use the @UDA function to select them. That way, you can just change the UDA's every month rather than the formula, but the change will be an equal amount of work for either solution.If you don't mind using a calc script, you can use a sub variable, but you won't be able to make it dynamic calc as you would a member formula.Hope that helps.Regards,Jade------------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]

  • Create Report Layout (Apex 3.2) - How can I set the substitution variables?

    Hi,
    I created a "Report Query" under "Shared Components". I now want to work on the corresponding "report layout". I created a "Generic Columns (XSL-FO)". I read the following in the documentation:
    The following are valid substitution strings:
    #PAGE_HEADER#
    #PAGE_HEADERFONT_COLOR#
    #PAGE_HEADER_FONT_FAMILY#
    #PAGE_HEADER_FONT_SIZE#
    #PAGE_HEADER_FONT_WEIGHT#
    #PAGE_FOOTER#
    #PAGE_FOOTER_FONT_COLOR#
    #PAGE_FOOTER_FONT_FAMILY#
    #PAGE_FOOTER_FONT_SIZE#
    #PAGE_FOOTER_FONT_WEIGHT#
    #PAGE_WIDTH#
    #PAGE_HEIGHT#
    #HEADER_BG_COLOR#
    #HEADER_FONT_COLOR#
    #HEADER_FONT_FAMILY#
    #HEADER_FONT_SIZE#
    #HEADER_FONT_WEIGHT#
    #BODY_BG_COLOR#
    #BODY_FONT_COLOR#
    #BODY_FONT_FAMILY#
    #BODY_FONT_SIZE#
    #BODY_FONT_WEIGHT#
    #BORDER_WIDTH#
    Where can I set the values for these substitution variables in my "Report Layout"? Could someone give an example? I can't seem to find documentation on this.
    Thanks!
    Francois

    Thanks for the tip however I'm not trying to do this through the print tab, I'm calling the report using the following get_print_document in pl/sql code:
    l_report_blob := apex_util.get_print_document(
    p_application_id => l_application_id,
    p_report_layout_name => l_report,
    p_report_query_name => l_report,
    p_report_layout_type => l_output_format,
    p_document_format => l_output_format,
    p_print_server => null);
    Where could I set these substitution variables ? I'm simply calling a report query and layout created under Shared Components.
    Thanks
    Francois

  • Setting Essbase substitution variable thru ODI

    Hello Friends,
    We have some procedures in ODI that call maxl scripts to unlock app, clear data and agg. But how do we set Substitution variable in Essbase?
    Any feedbacks are appreciate...
    Thank You.

    Thanks John.
    - We created a maxl script with the statement below
    alter system set variable 'ActMon' 'Feb';
    - Created a procedure in ODI to call the maxl
    the procedure is working...but we still have to manually edit the maxl script every month to change the current month value.
    How about this?
    We have a oracle table in ODI schema which has month column populated. can we use that month column data and some how set the Essbase Sub var?

  • Setting substitution variable to connection string (not ODBC name)

    Hi,
    I havce a question regarding the use of a sub variable in SQL data loads as the data source. I find this works great when the variable is set to an existing ODBC. What I would really like to do is skip the ODBC creation step and have the substitution variable be the actual connection string, such as "Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase; Uid=myUsername;Pwd=myPassword;"
    Can anyone confirm or deny whether this functionality exists? As usual, the documentation is vague on the subject and doesn't exclude the possibility, but doesn't include it, either.
    Thanks!

    My first thought is that no, you can't do that. Even if you could, I'm not sure if you'd want to do that. The easiest way to find out is simply to try. But more than likely I think you should just have "hard-coded" values for the source/target server. If you are trying to stay with the same load rule for dev/test/prod servers, you might just be better off coming up with a naming scheme that let's you keep them all separate.
    Cheers,
    Jason Jones
    [http://www.jasonwjones.com]

  • Set substitution variable

    Can anyone tell me how to set a substitution variable on a data load, if possible?
    Or any other way to automatically update a substitution variable

    you can do it through a maxl script.
    the maxl script should flow as below...
    load data using import maxl command
    based on the return code you can set the value of subst variable using the following script.
    if it is a variable on db:
    alter application <appname>.<dbbname> set variable <subst variable name> <variable value>;
    if it is a server level subst variable
    alter system set variable <subst variable name> <variable value>;
    - Krish

  • Can we use Substitution variables in MAXL?

    Hi,
    Can we use substitution variables in MAXL script?
    I have to run this MAXL command for clearing a slice of ASO cube on V11.1.1.3.
    alter database Apname.DBname clear data in region 'CrossJoin({[2009]},{[Dec]})';
    I am planning to use Current_year & Current_month variables instead of hardcoding 2009 & Dec as I have to use this everymonth to clear the current months data.
    If it is allowed, what is the syntax?
    Is there any alternative apart from substitution variables?
    Appreciate your thoughts.
    Thanks,
    -Ethan.

    You would just use ampersand and the variable name instead of the hard coding e.g. &yearVar &periodVar.
    Not tried it on aso clears but in theory it should work as ...'CrossJoin({&yearVar},{&periodVar})';
    just change yearVar and periodVar for your substitution variable names.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How can I set a variable number of values in a SQL IN clause?

    Hi,
    How can I set a variable number of values in a SQL IN clause without having to change the text of the SQL statement each time?
    I read the link http://radio.weblogs.com/0118231/2003/06/18.html. as steve wrote.
    SELECT *
    FROM EMP
    WHERE ENAME IN (?)
    But we need the steps not to create type in the system and would there be any other solution if we would like to use variable number of values in a SQL IN clause ?
    We are using JDeveloper 10.1.3.2 with Oracle Database 10.1.3.2
    Thanks
    Raj

    Hi,
    can you please explain why the solution from steve is not the right solution for you.
    regards
    Peter

  • Can I set a Session Variable from a Dashboard Prompt, using values that are

    Hi All
    Trying to set a Session Variable to an integer value, by letting users select a text value from the drop-down list on a Dashboard Prompt. The goal is to set the input parameter to the IndexCol function, but to provide the end users with a text description of what they are setting.
    Select Value Set Variable Value
    My 0
    My Team 1
    My Companies 2
    My Teams Companies 3
    Any suggestions on how to accomplish this? Certainly we could populate the drop-down from a data source, however I don't see how to populate a variable with something other than the values on the screen.
    The IndexCol function is referenced in a Filter in Answers, and I'm thinking to populate a Session variable using the (Presentation) variable value set from the prompt. But how to do this? I see a reference to a function NQSSetSessionValue(), but cannot find documentation on how it works.
    Any clue will be greatly appreciated.
    Thanks

    Hi kishore..
    Looks like the link u have sent uses advanced SQL tab to set session variables. I want to know if I can use "set variable NQ_SESSION.myvar= @something" in the "SQL results" -while creating a dashboard prompt-.
    Purpose: I want the session variable to be set based on whatever report that im currently in.
    And i dont want to use presentation variables because im using a reset button in my page.
    My reset script resets presentation variables and NOT session variables.
    Thanks in advance
    Loy

  • Problem setting the value of a substitution variable in a calc script

    Hi, All.
    I'm trying to update the value of a substitution variable inside an IF statement and I'm having trouble.
    Here's the code:
    *"Jan"(*
    IF  (LoopCounter = 1) &varEntity = "100";
    ENDIF;)
    the error I get back from EAS is:
    Error: 1200336 Error parsing formula for [Jan] (line 54): [(] without [)]

    I know CL knows a lot about HBR, if he's around today... LOL
    As a matter of fact, I just used an HBR (not using Calc Manager till I have to)'s macro functionality to drive fx for different Scenarios in a Planning app. Here's how I call the macro:
              /*     Call the macro mcrFxCoreOutYears for the four fx rate types for ALL 12 months of the year.     */
              FIX(&BudYear)
                   %mcrFxCoreOutYears(Constant)
                   %mcrFxCoreOutYears(Comparable)
                   %mcrFxCoreOutYears(Estimate)
                   %mcrFxCoreOutYears(Actual)
              ENDFIXI pass the Scenarios Constant, Comparable, Estimate, and Actual to the macro mcrFxCoreOutYears. You can apply HBRs against Essbase.
    I believe (I can't remember what exactly -- is it that templates don't accept parameters? That seems hard to believe. Looking at a CM template, that does seem to be the case. Bummer if I'm right.) that Calc Manager BRs have less functionality wrt templates, but I haven't worked with CM for over a year.
    It works really well -- a single place to maintain code and no appreciable performance cost.
    You cannot launch a HBR from a MaxL script but HBRs can be launched from command lines -- this may constrain where you place your automation (it basically has to run off of whatever the EAS server is. You may end up shelling out of MaxL to execute the HBR or even execute scripts across servers -- that does get more complicated.).
    Anyway, if you have any more questions, ask away -- it really is a very powerful component. I will have to look at CM more closely (sooner or later I will lose the HBR vs CM argument and at least need to know if templates support parameters) to see if I'm right on what I wrote above.
    Regards,
    Cameron Lackpour
    P.S. You cannot define an ARRAY in an HBR macro because ARRAY arrayname[value] gets read as a parameter. I ended up declaring the array in the calling HBR.
    P.P.S. I really need to write up the fx approach in a blog post -- it is wicked fast and really easy to use. Too many other posts in the queue already.
    Edited by: CL on Aug 24, 2011 1:48 PM

  • Can we set a default value for the container variable in BPM?

    Can we set a default value for the container variable.?
    Suppose if i have a loop step and i have given a container variable i=5 as end condition.What value will it take during its first execution?Can we set the value for container before a recieve step?

    Hi
    Define Container Variable of Type integer and Category Simple Type .Use Condtion in Loop.
    In Container Operation Step Assign value and Use Expression to
    Increase or Decrease Valus according to your operation.
    look Pattern 4 in this blog to understand Container Operation
    /people/sharathchandra.girmaji/blog/2008/09/11/bpm-with-patterns-explained-part-1

  • How can I show the current value of a substitution variable in FR?

    Hello,
    I want to paste the current month in a text box using a substitution variable in my report. How can I use the Curmth sub-var in a text box? Which function would I use to paste the substitution variable. Thank you.
    -- Adi
    Edit:
    The Sub-Var is not used anywhere in the report but it is in the database that the report accesses.
    Edited by: Aditya26 on Apr 12, 2012 8:42 AM

    I think you can only reference items on the actual report.
    It might be easier to pull the subvar into the report (on a hidden column/row) and then you can reference the cell.
    Cheers, Iain

Maybe you are looking for

  • IR Problem with COUNT (*) OVER () AS apxws_row_cnt

    Hi all, i have a query wich is ran under 2 seconds when ecexuted in SQL (TOAD), when i use this query in an interactive report then it takes minutes. When i reviewd the query which APEX is sending to the DB i noticed an additional select clause: SELE

  • WORD WON'T OPEN FROM NETWORK DRIVE OR ANY LOCATION.

    Windows 7 Pro Office 2010 Standard Computer is connected to the network drive domain.  Word is the only office program with this problem. Whenever i Clicked on word file on network drive. Work tries to open then it just stop working. After that i tri

  • Safari will not play audio.

    Safari stopped playing audio for me on my MacBook Air.  The audio on the computer works because i can get audio with full volume when i play a file on iTunes.  Please help me with what might be wrong.

  • I have a problem! I haven't buy anyting, but apple took 1$ from my credit card. What is it?

    I haven't buy anyting, but apple took 1$ from my credit card. What is it?

  • Resizng JFileChooser problem!!

    Hi, i have really wierd problem with JFileChooser.FileChooser is displayed very wide.It fills my screen.I use j2sdk1.4 and Windows XP.I used fileChooser.setPreferredSize(new Dimension(450,280)); it is resized.But now ComboBox that allows me to choose