Getting a substitution variable value with VB API

Hi,I'm trying to get the value of a specific substitution variable on an application with EsbGetVariable().I get a nice message that says "you do not have sufficient access to get this subsitution variable." and then i get the return code of EsbGetVariable() that is 1051085 (i couldn't find it in any documentation).The funniest thing is that i can get the value of the substitution variable, using Application Manager, with the same Essbase user that tries to get the value in the API.Any help would be welcome...PS : here is the code of the macro i execute (hope it will be readable)...Public Sub ESB_GetVariable()Dim i As IntegerDim nCount As IntegerDim sts As LongDim oVariable As ESB_VARIABLE_TDim hCtx As LongDim AppName As String * ESB_APPNAMELENDim DbName As String * ESB_DBNAMELENDim szApp As IntegerDim szDb As IntegerDim pAccess As IntegerDim X As VariantX = EssVConnect("Feuil1", "xxx", "xxx", "xxx", "Gmo_RvIt", "It_Repr")If X = 0 Then hCtx = EssVGetHctxFromSheet("Feuil1") If hCtx <> 0 Then sts = EsbGetActive(hCtx, AppName, szApp, DbName, szDb, pAccess) oVariable.AppName = AppName oVariable.VarName = "Divers_VR" sts = EsbGetVariable(hCtx, oVariable) MsgBox "status is " & sts MsgBox "Divers_VR value is " & oVariable.VarValue Else MsgBox "EssVGetHctxFromSheet failed with status " & hCtxEnd IfElse MsgBox "EssVConnect failed with status " & XEnd IfEnd Sub

testing formatting ...
0.03965 0.00026 ds ... <save> auth user=nobodyEdited by: gpoz on Apr 18, 2013 12:14 PM

Similar Messages

  • Get if local variable exist with teststand API

    Hi,
     attach you'll find a sequence file and a VI. This VI should open the Expression Browser and after selection a variable (in this case I select Locals.test) the property object exists should tell me if this local variable exists. This is part of a bigger VI in which help of TS 3.1 API functions I'd like to ensure that the programmer selects a local variable of the type we need (in our case it has to be an array of containers). Some idea to make this work?
    thanks
    Alex
    Attachments:
    edit.vi ‏60 KB
    GetIfLocalVariableExists.seq ‏23 KB

    Alejandro,
    I am not sure what you are trying to accomplish.
    Why do you want the user to select a specific property?
    Could you describe your use case better?
    Be aware that the expression browser returns an expression. The user could enter whatever expression he wants.
    For your specific example if you select the "test" local variable, the lookup string would be "Locals.test".
    Since you are checking if the property exists under Locals, it would return false all the time. If you want to check if the property exists under Locals your lookup string should be "test".
    If you want to use "Locals.test" as the lookup string you will have to call 'Exists' on the sequence context.
    SequenceContext.AsPropertyObject().Exists("Locals.​test")
    In order to verify the type of a property object you can use
    PropertyObject.GetType() method.
    Hope it helps
    Antonio Lie.

  • Sharing complex substitution variable values between ASO and BSO databases

    We have ASO and BSO Essbase database member names with spaces in, and need to store some of these member names in substitution variables. However, this has to be done differently for ASO and BSO, due to calc script syntax requiring double quotes and MDX requiring square brackets. For example:
    ASO:
    &CurWeek value = Week 1
    MDX: [&CurWeek]
    BSO:
    &CurWeek value = "Week 1"
    Calc Script: &CurWeek
    As a result, the substitution variables cannot be shared between the ASO and BSO cubes, since the BSO variable value requires double quotes due to the space in the member name.
    Is there a way to get the above to work with both ASO and BSO? Can the double quotes be escaped in calc script syntax? Or can the double quotes be removed in the MDX formula?

    Hi TimG,
    Apologies for such a late reponse to this, genuinely haven't had a spare second to reply until now!
    Yes, I suspect a complex alias name may be the best solution here, and to remove the spaces from the actual member names.
    I was not aware of the latter part at all. My colleague has confirmed as much on this too - DBAG 11.1.2.1 pp117 & 118:
    "Note: If a substitution variable value is numeric or a member name starting with a
    numeral or containing the special characters referred to above is to be used both
    in MDX and non-MDX situations, create two substitution variables, one without
    the value enclosed in quotation marks and one with the value in quotation marks."
    "To ensure that a new substitution variable value is available in formulas, partition definitions,
    and security filters, stop and restart the application. All other uses of substitution variables are
    dynamically resolved when used."
    This last paragraph is the most concerning since we were planning to be able to update substitution variables values and then access the new values from calc scripts and formulae instantaneously. This quirk is unexpected and a little inconvenient. We may have to look at scheduling a change of substitution variable value overnight, followed by a stop/start of the app ready for the next day, and to work around needing to access changed values instantly.

  • Changing Substitution Variables - Value takes time to appear in Planning

    Hi,
    I have an issue with changing substitution variables values. When I do it, Planning takes about 5 minutes to "know" about that change and till then, it continues working with the previous value. Any Idea of how I can solve that?

    Hi,
    By default, each substitution variable is retrieved and cached from the Essbase server every five minutes or 300 seconds). You can change the retrieval interval by adding the SUBST_VAR_CACHE_LIFETIME property and setting its value in seconds.
    To set Planning application or system properties:
    1. Select Administration, then Manage Properties.
    2. Select:
    *Application Properties: set properties for the current application.
    * System Properties: set properties for all Planning applications.
    3. To:
    * Change a property, change its value under Property Value.
    *Add a property, click Add. Enter a name (avoid using spaces) and value for the property in the blank row.
    If you enter a property already on the tab, its name turns red to indicate it is a duplicate. You can duplicate properties between the application and system tabs.
    4. Click Save and confirm your changes.
    5. Stop and then restart the application server
    Ok?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to pass session variable value with GO URL to override session value

    Hi Gurus,
    We have below requirement.Please help us at the earliest.
    How to pass session variable value with GO URL to override session value. ( It is not working after making changes to authentication xml file session init block creation as explained by oracle (Bug No14372679 : which they claim it is fixed in 1.7 version  Ref No :Bug 14372679 : REQUEST VARIABLE NOT OVERRIDING SESSION VARIABLE RUNNING THRU A GO URL )
    Please provide step by step solution.No vague answers.
    I followed below steps mentioned.
    RPD:
    ****-> Created a session variable called STATUS
    -> Create Session Init block called Init_Status with SQL
        select 'ACTIVE' from dual;
    -> Assigned the session variable STATUS to Init block Init_Status
    authenticationschemas.xml:
    Added
    <RequestVariable source="url" type="informational"
    nameInSource="RE_CODE" biVariableName="NQ_SESSION.STATUS"/>
    Report
    Edit column "Contract Status" and added session variable as
    VALUEOF(NQ_SESSION.STATUS)
    URL:
    http://localhost:9704/analytics/saw.dll?PortalGo&Action=prompt&path=%2Fshared%2FQAV%2FTest_Report_By%20Contract%20Status&RE_CODE='EXPIRED'
    Issue:
    When  I run the URL above with parameter EXPIRED, the report still shows for  ACTIVE only. The URL is not making any difference with report.
    Report is picking the default value from RPD session variable init query.
    could you please let me know if I am missing something.

    Hi,
    Check those links might help you.
    Integrating Oracle OBIEE Content using GO URL
    How to set session variables using url variables | OBIEE Blog
    OBIEE 10G - How to set a request/session variable using the Saw Url (Go/Dashboard) | GerardNico.com (BI, OBIEE, O…
    Thanks,
    Satya

  • How to get essbase substitution variable in ODI

    Hi All,
    I have a problem that I need to get the substitution variable from Essbase /EAS to work on some SQL statement in ODI.
    How can I do in ODI ???
    Thanks for all ..
    Thomas

    Hi,
    If you read my blog post :- http://john-goodwin.blogspot.com/2009/11/odi-series-planning-11113-enhancements.html
    In the post there is a section on retrieving essbase substitution variables and using them in ODI.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to get BW-BPS variable value into Visual Basic?

    Hello,
    Scenario:
    Time characteristic 0FISCYEAR has a variable ZVFYEAR. In layout this time characteristic is defined as DATA COLUMN. When user changes VFYEAR variable’s value i want to get the value of variable into Visual Basic and to format header for table in the layout.
    How to get BW-BPS variable value into Visual Basic?
    Could you help me?
    Thanks in advance.
    Best Regards,
    Arunas Stonys

    Hi,
    If i understand your requirments correctly ,you need to read the value of the Variable and Put it on the layout. Here is how  i would solve this,
    Read the value of the variable using an ABAP program.The logic for this would be to read the variable value and post it on the layout on a cell.You can do this by calling the ABAP program on opening the layout.this can be done using LB_EXIT_FM  T-code. Now using the  SAP delivered SAPAfterDataPut  macro, read the cell in which you have placed the variable values and assign it to the necessary values you want to on the layout.All this will be done before the layout opens.
    Hope this helps.
    regards
    Sai Vishnubhatla

  • Is it possible to increase the substitution variable value length?

    Hi,
    Is it possible to increase the substitution variable value length to higher value? I checked the SQL User Guide (http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/apa.htm) and it says that the limit is 240 characters.
    i just want to know any workaround for this issue?
    Thanks.

    Hi,
    Basically I have a script contains SQL statement (eg: select c,b,a.........from table a.... group by a,b and order by b c) and I have another shell script that will read the whole entire SQL statement
    In my shell script, i do it in this way.
    sqlplus -S test/test@testdb $SQL statement and i hit the following issue
    string beginning ""select c...." is too long. maximum size is 239 characters. {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Acrobat pro Extended | Passing variable value with Querystring

    Hi,
    We are facing issue with opening a web link with passing a variable value as query string parameter. We have added a form button on the pdf page, on click of it we have opened a web page and we want to pass a variable value in the query string. We can not give the hard code value in querystring, as the value keeps on changing.
    Please refer to the images below.
    here the data will be my variable name, which contains some value. When i execute it, it passes data as a string, i want to pass its value in the query string parameter. How i can do this?
    I had found one more way, is to call a function on the form button click, and in that pass the query string parameter as a variable, it works. But the problem in this case i am faceing is, in the app.launchURL command i have to provide a http path, means something like http://www.google.com, then only it works. I have that page on my local (no server), so i want to add the path as onlu page.html
    //Reference code, this fun will be called on a button click
    function LaunchPage()
        app.launchURL("http://www.aptara.com/page.html?value="+data+""); //this works
        app.launchURL("page.html?value="+data+""); //this dosent works
    Please do let me know, how i should proceed. To repeat, i want to invoke a page, which is on my local system with a querystring, in which i sud pass a variable value.
    Thanks,
    Ajit danve
    Sr. Developer
    Aptara, Pune.

    re: George Johnson
    Thank you for the response. This process that we are looking to do is necessary. We have 400+ OLD PDF forms that currently are printed by our print shop and then manually filled out and scanned into our system. The current process requires a clinician to log into our scanning system, identify a patient chart, and then identify the type of report they are scanning in. This process is time consuming with possibility of errors (wrong chart selected, wrong form, etc.). Plus, we have to stock up to 400 forms at each location.
    We don’t have the funds to convert 400+ complex forms into electronic submissions where the form fields are discrete and file accordingly. So, what we have come up with to save costs of a new system and reduce potential errors is to add a barcode to each existing form.
    Basically, each form will get a barcode and a javascript function in the onload event to process and parse passed in link parameters.
    So when a clinician clicks on a form link in our EMR system the form will load passing in the patient acct. number and form name into the link parameters (all on our local intranet) so it will get embedded into the barcode on the form. They will then print the form fill out the data (or have the patient fill it out) and then drop it in the scanner. Our scanning system will automatically see the barcode and file the form under the correct patient and form folder based on the barcode info. (A scanned image of the form will save to the patient profile).
    Ultimately we would like to convert all of these forms to electronic signature/submission but we do not have the funds or the time to do this.

  • Get a web property value with REST

    Hello,
    i want to get the value of a property that i have set in my web property bag using REST call,
    is it possible?
    Thanks a lot

    Hi,
    According to your post, my understanding is that you want to get the web property.
    Per my knowledge, we could not use the listdata.svc to get the web properties, however, we can use the
    Webs web service to achieve it.
    https://social.msdn.microsoft.com/Forums/en-US/198dd547-22fd-4fda-89f2-b76553498c3b/get-web-properties-through-web-service
    What’s more, we can also use the JavaScript Client Object Model to access the property bag.
    http://derekgusoff.wordpress.com/2012/04/24/accessing-the-web-property-bag-with-javascript/
    http://www.jeremythake.com/2013/10/using-the-sharepoint-csom-api-to-get-a-property-bag-value/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Automation of assigning Substitution Variable Values

    Hi All,
    I have 3 substitution variables with values in my server as follows:
    Prev Month - "January"
    Curr Month - "February"
    Next Month - "March"
    I want to automate the assigning of values to the substitution variables so that in the next month, the values change automatically as follows:
    Prev Month - "February"
    Curr Month - "March"
    Next Month - "April"
    Is there any way available to accomplish the above task.
    Any help appreciated.
    Thanks,
    Raja

    Ditto Sean V. Except the date logic I built into a Perl script. So basically one answer is to use your favorite scripting/programming language to do the date manipulation and either pass to a MAXL script as a variable, or to build the MAXL script dynamically

  • Displaying Variables values with Text also in the selection screen of repor

    hai
    I have one InfoObject ZPLANT .When i try to excute the report then im getting only the Values of ZPLANT(not Text of those values) .Like below
    ZPLANT :-
    101 -
    (im getting like this)
    101 London Plant ( i want like this ,when i try to excute the report).
    Please tell me how to do .
    rizwan

    Yes kamaljeet ,
    When we press F4 , then we will gwt some values .
    I want those values with description also ..
    Pls tell me how can i get those F4 values with text in the selection screen of report .
    i ll assing the points
    rizwan

  • Getting error "Object variable or with block variable not set" when trying to open a FR report in studio

    Problem Description
    We are on FR 11.1.2.2.305 installed on AIX. a user is getting this error: "Object variable or with block variable not set" when trying to open a FR report from FR studio client installed on windows xp . Initialy, we thought it may be a FR client installion issue. We uninstalled and cleaned up registry and did a fresh installation of the client but the issue still persists. The FR server and the client are on the same version.
    The user is a LDAP user who is facing the issue. We have confirmed with other users and they dont have any issue accessing FR report from their own client but when they try to connect from the users machine who is having issues, the others users also see the above error. All the users are ldap users and all belong to same shared services groups so the provisiong is the same.
    Any input will be appreciated.
    Thanks

    OK, in this case of one single computer, please make sure that settings as per below KB document as in place and then validate the issue:
    Internet Explorer (IE7, IE8, IE9 and IE10) Recommended Settings for Oracle Hyperion Products (Doc ID 820892.1)
    The information in this document applies to the following Enterprise Performance Management products:
        Calculation Manager
        Data Relationship Management (DRM)
        Enterprise Performance Management Architect (EPMA)
        EPM Workspace
        Essbase Administration Services (EAS)
        Financial Data Quality Management (FDM)
        Financial Management (HFM)
        Financial Reporting
        Foundation Services
        Interactive Reporting
        Planning
        Shared Services
        Web Analysis
    Thanks!

  • Graph: Get Right Y-Axis value with GetGraphCursor

    Hello,
    I'm currently developing an application for a customer which contains data being evaluated in a graph control.
    There are different scalings of data so I use the left y-axis for digital data and right x-axis for analog data.
    Now I want to add an annotation marker with the current X and Y value being displayed, when the user clicks into the graph.
    I use those two functions to determine the position and affected plot of the marker:
     GetGraphCursor(tabHandle2, TABPANEL_2_GRAPH, 1, &x, &y);
     GetGraphCursorIndex(tabHandle2, TABPANEL_2_GRAPH, 1, &plotHandle, &plotIndex);
    Now this works fine for the left y-axis, but I can't seem to find a way to get the y-axis value of the right side plot.
    I figure plotHandle and plotIndex should help me to get this data, but sadly I don't know how to use this information.

    Ok to clarify:
    I have a graph with plot values on the left and right y axis. Some plots use the left and some the right side.
    On default there is no cursor in this graph. But I want to provide the option for the user to enable a cursor.
    When the cursor is enabled it snaps on to the closest plot and an annotation shows the respective x and y values of the plot point.
    The problem is, when the left y axis is active and the cursor snapped onto a right y axis plot, the displayed y value is wrong (since the left scale is used).
    By left clicking into the graph, the user is able to snap the cursor onto another plot.
    So the main problem is, when clicking on a plot, the active axis has to change according to the plots respective axis.
    I can easily make this decision since the plot styles are different (left side is VAL_FAT_STEP, right side is VAL_FAT_LINE), but for the axis switch to take effect on the cursor, I would need to delete and add the cursor again. But in this process I lose positioning of the cursor and it snaps to a different plot again.

  • Urgent: Formular question: get first/last month value with qty value

    We've got a query result as the following:
    Jan_2007 -- Feb_2007 -- Mar_2007 -- Apr_2007
    0 --- 54 --- 0 --- 3
    23 ---0 --- 12 --- 7
    In the above query result,
    1st row shows the sales quantity in Jan_2007 is 0, in Feb_2007 is 54, in Mar_2007 is 0, and in Apr_2007 is 3.
    2nd row shows the sales quantity in Jan_2007 is 23, in Feb_2007 is 0, in Mar_2007 is 12, and in Apr_2007 is 7.
    We would like to add a new column to get the first/last month value with quantity, e.g., in 1st row, the 1st month value with quantity value (>0) is Feb_2007, and the last month value with quantity value (>0) is Apr_2007. Therefore the 1st month value with qty is Feb_2007 and the last month value with qty is Apr_2007. In 2nd row, the first month value with qty is Jan_2007 and the last month value with qty is Apr_2007. But how to use formular to get the 1st/last month values with qty?
    We will give you reward points!

    Hello Kevin,  
    You can create forumula using [Boolean Operator|http://help.sap.com/saphelp_nw04/helpdata/en/23/17f13a2f160f28e10000000a114084/content.htm]
    IF<Logic Expression> THEN <Expression1> ELSE <Expression2> can also be made using a formula in the form
    You can also use the [AND, OR Logical operators |http://help.sap.com/saphelp_nw04/helpdata/en/23/17f13a2f160f28e10000000a114084/content.htm]to check all the keyfigure columns.
    Thanks
    Chandran

Maybe you are looking for

  • HT4623 apple on phone keeps flashing on and off, how can i fix this?

    I did an update and now the phone just keeps flashing an apple. How can I fix this issue?

  • 2010 27inch iMac display trouble

    My 27inch iMac isn't two years old yet, I paid apple a fortune for it, so you can imagine my annoyance, when, three months a ago, the left side of the screen appeared to darken slightly. I phoned customer service and they basically said its out of it

  • Lync 2013 mobile client can't see all fields in contact card

    We have deployed Lync 2013 infra in our organization, now we observed, mobile Lync client users are not able to see other users mobile number on contact card rest all information is visible. Is there  any workaround or fix to resolve this issue. Appr

  • How to achieve a fsb of 1333

    I am building my first pc and i plan to use the msi p45 platinum mobo. I was planning on using a 1333fsb processor with a ddr2 ram 667 and set the oc jumpers to 333mhz. is this all i need to set my fsb to 1333, or do i need to set additional changes

  • LDAP client binding failure stops TimerTask thread

    Hi There, I try to schedule a TimerTask once ldap binding fails, but the binding failure prevents the TimerTask thread to start. Any idea? or any work around? Thanks. try{ ctx = new InitialLdapContext(envs[ctx_idx], null); }catch(NamingException ne){