Custom 11.1.2.1 Essbase API function.

Recently, I decided to start playing with the API of Java Essbase to see if I could write a custom function that replaces a subvar. I found the createSubstitutionVariable command is already in the API. I wrote a MaxL script that registers a new function by calling the API command.

/ * Create a log file for the log information and script error * /.
spool $ 4;

/ Server connection * /.
Login $1 $ 2 $3;

CREATE or Replace FUNCTION "@SETGLOBALSUBVAR".
AS "com.essbase.api.datasource.IEssBaseObject.createSubstitutionVariable(String,String)".
SPEC "@SETGLOBALSUBVAR (String SubVar., String SubVarValue)"
COMMENT "defines the subvar specified to the specified value;

This creates the function (visible in environmental assessments). However, when I run a script that calls the function of calc, I get an error that it belongs in a block calco. When I place it in a block calco, I get an error message that an operator is expected after my custom function.
ex:
Difficulty ('Real', 'Final')
AC_12345=@SETGLOBALSUBVAR ('test', 'Hello');
EndFix


I also found http://codingwithhyperion.blogspot.com/2011/08/create-and-update-substitution.html Robb Salzmann CDF and tried to use that, but received the same error message. I was wondering if someone could point me in the right direction for the creation and use of custom functions to update the subvar.

Thank you
Daniel

Instead of activate SetMonthSubvar or SetYearSubvar, just trying to save the SetSubVar command in your jar file

Well, that's your problem. That the method is private, I'd be surprised if it will record as it is not visible externally. If you check the log of essbase to see if the FDC had registered correctly, you will see that registration has failed. Audit of the newspaper will save you a lot of time, you should always check it first. You said always not that you checked.

In addition, your code is written to receive a returned value of the CDF, but the method is declared empty so will never return anything.

Kind regards
Robb Salzmann

Tags: Business Intelligence

Similar Questions

  • Migration of Essbase API

    Hi all

    I have a Question about VB Migration API. (From [vr6.x - 6.5.7] at vr11.1.1)

    1. can we directly migrate us API release VB (vr.6.x - vr6.5.7) to Essbase 11.1.1.

    I think there will be no problem unless it has no functions that we use in lower versions and which have been removed in the latest versions.

    I don't think that there is no reference to the Essbase API Migration document.

    If anyone has it, can you share it with me?

    Yes, the Dll will be done with the installation of the client

  • Is it CVI API functions that search fo a path given of him exist file? as "DirectoryExists.

    Is it CVI API functions that search fo a path given of him exist file? like C ++ Builder 'DirectoryExists', I tried 'FileExists', but unnecessary


  • VI - ShGetFolder security and Windows API functions

    Hello

    Let me explain what I'm doing.

    In order to ensure a program and ensure that it can be installed only on a single computer; I read the MAC address of the PC, manipulate the MAC address to produce an activation code.  The user give me their address MAC and I give them the activation code for them to enter.

    The question is where to store the activation code.  I use LV 8.0 and Vista, but the software could be deployed to computers using XP or 2000.  Previously, I had decided to use the Windows registry to store the activation code.  However, I have since discovered that when I write in the registry under Vista the entry is not found.  I can be read ok but can't find it.  Where is it in Vista?  A search in the registry will not locate.  I find in XP ok.

    I need a reliable place to put the activation code once users have entered.  I've seen suggestions of using the Windows API function ShGetKnownFolderPath (Vista) and ShGetFolder (XP, it works for the year 2000?).  These features would allow me to do what?

    How can I use the fnctions of Windows APIs such as ShGetFolder?  I have no idea.

    Help, please.

    Thank you.

    Continuation of the last post...

    HKEY_CURRENT_USER will probably work for you. It's a little difficult but when different Vista users use the application.

    Be careful with Mike's suggestion. By default, it is not possible to write to the Program Files folder (even once, unless you run the application as administrator or you grant full access to the folder/file to the user or the group "Authenticated users").

    The application data folder may also be a good place to store. To get the path, you must use the Windows API to return the path of the folder. Implementation of the present can be found on the LAVA (post #7).

    Hope this helps,

    Daniel

  • Advanced Security manager-error initializing the Essbase API.

    Hello

    I installed OLAPUnderground > Security Manager Advanced for the export of all the safety of the user.  When I try to click connect he throws a connection error 'error of initialization of the Essbase API, unable to connect'. Someone knows this error before? Please let me know if I'm missing something.

    We currently use 11.1.2.3.500.

    Thank you

    Karim

    It seems that you did not create the windows environment variable:

    ESSBASEPATH

    D:\Oracle\Middleware\EPMSystem11R1\common\EssbaseRTC\11.1.2.0

    It's just an example path update to match your environment

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • Essbase Rounddown function

    Hello gurus

    I'm looking for essbase bso function to calc, where I can make rounding calculated value driver, for example ROUNDING ((a + b) / c) * C, in other words if (a + b) / C = 1.99 it should return the value to '1' ROUNDING, I scraped enough but not had any luck so far, any input will be greatly appreciated.

    Thank you!

    With the help of @INT would be enough http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/int.html

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • W530 with Windows 7: the GetSystemMetrics API functions do not correct result

    Hello

    I recently updated my external monitor for Samsung S27A850D best resolution 2560 x 1440. After some effort, I finally managed to get this resolution, and, among other things, the section of the display of the control panel correctly shows the resolution. However, when I use the function API GetSystemMetrics with the SM_CXSCREEN and SM_CYSCREEN parameters get values in 1707 and 960, respectively. Does anyone have an explanation for it?

    Kind regards

    bostjanv

    Hello

    Thanks a lot for your comment. In fact, I have defined the size to 150%, but I was completely unaware of the mechanism behind it and really didn't know anything about scaling issues.

    Kind regards

    bostjanv

  • Code stops at an API function if there is no breakpoint.

    I work with a Graphics Pro Essentials with CVI 8.5. When debugging my application, I'm occasionally guy stops at a function API (no point close to the point). I have to click on the "continue" button to continue debugging. This happens several times and my application crashes after a while.

    Thank you guys. I found the problem. It is due to asnchronous timers I used on Windows.

  • Using the custom on a box SQL PL/SQL function

    Hello

    Is it OK to use or the PL/SQL a SQL box-custom functions? Or is - against the standards? Thank you.

    What are the standards, the answer is Yes and no.
    -A function that returns a SYS_REFCURSOR will NOT work
    -A PIPELINED function and return a TABLE (a TYPE of OBJECT) will work

    SELECT id as PER_ID, description as EMAILID FROM TABLE(my_func('1234567890'));
    

    -A function returning a variable work

    SELECT PER_ID, my_func(:F1) AS PER_INFO  FROM CI_PER WHERE PER_ID = :F1;
    
  • Implementation can call api functions

    Sorry I am new to the call of functions in the api, I work with apex and bi publisher to merge pdf files. I know there is an api to do this function
    can someone give me the steps I must follow to implement.
    Thanks for your help,
    Doug

    Check this out to see if that would help.

    http://oraclebizint.WordPress.com/2008/02/04/Oracle-BI-EE-101332-adding-watermarks-to-delivered-PDF-documents-using-PDF-merger-API-of-bi-Publisher/

    Thank you!

  • Help with Essbase 9 and the Java API

    Hi, I am trying to connect to Essbase to a Java desktop app and I'm unable to do so. I need to know if I'm in principle do the right things and if I have the good environment set up.

    We have a server with Essbase version 9.3.1. We normally use essbase through the Excel add-in, and I already wrote it Excel applications that can use both the add-in and the Essbase API in VB. Now, I need to connect to Essbase but out of Excel and using the Java API. I have no idea what is APS don't my Essbase administrator.

    My request has the following (adapted from a post on this forum)-
    Public Shared Sub main (String [] args) {}
    String s_userName = 'user ';
    String s_password = "password";
    String s_olapSvrName = "ustca111";
    String s_provider = "http://localhost:13080/aps/JAPI ';
    try {}
    ESS IEssbase = IEssbase.Home.create (IEssbase.JAPI_VERSION);
    DOM IEssDomain = ess.signOn (s_userName s_password, s_provider, null, false);
    IEssOlapServer olapSvr = (s_olapSvrName) dom.getOlapServer;
    olapSvr.connect ();
    System.out.println ("connection to the server Analyic '" + olapSvr.getName () + "' has been a success.");
    olapSvr.disconnect ();
    } catch (EssException exp) {}
    System.out.println (exp.getMessage ());
    } }

    I'm running my app on my computer, not on the Essbase server, and the user name that I use is the same one I use (as a user of Essbase) through the Essbase Addin in Excel, not an admin login.

    When I run the application, I get:
    "Cannot connect to the Server.Make provider ensure that access code settings are correct and the server of the provider is running."

    Please can you confirm:
    (1) do I need an admin login for my client application to connect to the Essbase server or can I use a dial-up connection in normal play, like the one I use in Excel?
    (2) is the same provider regardless of the computer, i.e. "http://localhost:13080/aps/JAPI '; How can I know what this could be? Where can I get this information?
    (3) how can I make sure that the server is running the server needed 'provider', it's just a service that appears on the server services.msc? What should I ask the Essbase administrator for him to tell me what I need?

    Thank you very much.

    Leo

    Leo,

    You have APS and Shared Services running on your server? It would be the first question to answer. If you put in the url (http://localhost:13080/aps/JAPI, in your program) in a browser, you get a generic APS screen, or you get an error "page is not available. Unless you connect to APS that is running on the same computer that is running your Java application, the section 'localhost' should be the name of your APS Server.

    (1) for this Java program, you connect just to read only access that ID is OK
    (2) the supplier would be the same for every customer. The provider is the URL of your APS Server. Unless you run in embedded mode, you must APS to connect with the Essbase server. In embedded mode, you talk with the Essbase server, see [this thread | http://forums.oracle.com/forums/thread.jspa?messageID=3314485?].

    (3) APS - Analytic Provider Services, I'm not sure what it would show on a Windows Server. I suppose it would be something on Hyperion System 9 Analytic Provider Services. If you have installed APS, I would try the embedded road because it's the only way you will get to work.

    Published by: rjgideon on June 2, 2010 16:18

  • function SIERREUR function script essbase excel

    Hello

    How can I represent iferror excel script essbase calc function below. For example, if the values of B and C are null then the result is undefined.

    E = IFERROR (HAS * ((B/C) * D/1000), 0)

    What I have to write the below way or is there an essbase function to write it.

    (E)

    IF ("C" and "B' <>0 <>0)

    E = IFERROR (HAS * ((B/C) * D/1000))

    ON THE OTHER

    « E » = 0 ;

    ENDIF ;)

    Rgds,

    Vish

    Hi Vishal - I am surprised B being zero results in an indefinite (or in Essbase, #Missing) result.  It should really be only C which has the effect, because of the division by zero problem.

    In all cases, the effects of different operations on #Missing and zero are listed in the technical reference: results of the operation on the #MISSING values and zero (0)

    A good solution would be to add "0" to the result of your equation, because (as you can see in the linked table) #Missing + 0 = 0.

    For example:

    (« E »

    'E' = (A * ((B/C) * D/1000)) + 0;

    )

  • Can we use provider services talk to Essbase server by using the API

    Hi all
    I work with the API for essbase and thought if we could use the services of the provider to talk to Essbase using the API.

    Is it possible anyway?

    Second, the provider's services existed in older versions of Essbase?

    Please suggest

    Take a look at using the essbase API Java that you can communicate with essbase via provider's services.
    Before he was known as a provider of Services (version 9 and following), it was EDS (Essbase - Version 7 Deployment Services)

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Missing - Essbase 11.1.2 Java API Documentation

    I have trouble finding the Jave Essbase API reference documentation. On our Essbase (11.1.2) Server I found:

    $HYPERION_HOME/common/EssbaseJavaAPI/9.5.0.0/docs/japistart.htm

    However, the links on this page do not work as they look for a sub-folder ess_japi_html under the docs folder.

    Anyone know where I can either:

    (1) get/install file missing pages (content of the ess_japi_html)

    or

    (2) find 11.1.X online documentation (I can only find a 9.3 version)

    Thank you in advance for your help!
    Pete

    Hello

    I just had a quick glance at a 11.1.2 installation and I can see the documentation of the JAVA API to \Hyperion\products\Essbase\aps\docs\japistart.htm of essbase

    If you do not have an aps directory it seems that you have not installed "Analytic Provider Services"

    The documentation can also be found at \Hyperion\common\EssbaseJavaAPI\9.5.0.0\docs\japistart.htm

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Open built in the workspace Addons in LabVIEW application using the API

    I do Veristand project who uses a lot o custom code for additional features (database Custom logging, several preconfigured stimulus profile running on action of the user, custom logging datafile, customized SCADA-like display of the State of the system (pipes, valves, pumps, etc.)). On any other user of hand interface for the control of the program must be simple, because operators use (the only options, no change in operation) and similar to the previous system solution (which was HMI, touch screen with multiple monitors).

    I plan to do LabVIEW custom application for GUI which communicates with the gateway Veristand and target using API functions.

    However, I want to implement some already existing in the workspace tools in LabVIEW code, such as monitor of the alarm. There are "Open workspace tool" API functions in the labVIEW Veristand API function list. This function requires the toolpath to workspace as an argument. How can I set path for those built in the workspace tools? I'm not managing to find with the simple search.

    You may want to consider this topic

    http://forums.NI.com/T5/NI-VeriStand/open-workspace-tool/m-p/2253154

    Concerning

    -Eric

Maybe you are looking for

  • Qosmio X 300-no-work touch above keyboard

    After a manual install my touchscreen above the keyboard appears dark, but it lights up briefly when I touch, howerver activate any of the applications that are associated with the buttons on the Panel. What is missing here? Everything else in the sy

  • Satellite P300D Pro and Windows 7 - LCD problem

    Hello I update my Toshiba Satellite P300D from Vista to Windows 7 Pro and the only problem is when I change rezolution of 1440-900 to 1280-800 or below my screen shrinksYe and 1 last thing I have hiden partition recovery, but now I can't start to set

  • [Windows THIS 4.2] Need calculator, calendar & Applications Solitaire?

    Hello I have the windows device THIS 4.2. Resolution 320 x 240. Could someone provide me please with stock Solitaire, calculator & calendar programs? Thank you

  • use of ink on paper brochure

    I do monthly calendars on my HP4240 400 Series Photosmart printer/Scanner.  I want to use HP brochure paper, matte or brilliant, depending on your response, print.  I use 99 Photo Ink, who did an amazing job, I might add, on my HP photo paper.  My qu

  • Adding and removing programs

    When continue a program (Add/Remove Programs) you will lose data in the program?