Create a New Calc Script from VB.

Does anyone know how to create a calc script using the VB Essbase API? We are going thru a large modification. Most of our calc scripts are stored on an oracle database. The idea is to send the stored scripts to a text file and then using the essbase api to create new calc scripts based on the the text files. Any help or ideas would be appreciated.Thanks

This shouldn't be too difficult. You should be able to either read your existing script straight from your Oracle database using ODBC & ADO Recordset or from a test file using a scripting.filesystemobject and then make any changes using the VB code. Then use either the EsbBeginCalc/EsbSendString/EsbEndCalc or EsbCalc functions in the VB API to run them. I've used this sort of approach in the past to allow users to substitute specific members into 'template' calc scripts at runtime. Hope this helps.Mark Rixon www.analitica.co.uk

Similar Messages

  • Can "Planners" run calc script from the Planning web?

    This is probably a really naive question.
    However, can planners run a simple calc script(created in Essbase/AAS) from Workspace/Planning Web? If so what access would they be need to setup in Shared Service?
    Or do we have to convert the calc script into a Business Rule and then grant access to the users?

    John,
    Here are the roles that i assigned my user and he can view/launch the calc scripts from Planning Web without actually being an admin( i think)
    Analytic Servers : server access
    Business Rules: Administrator
    Planning App : Interactive User
    APS : Provisioning Manager
    I would also like to conver the calc script to a BR as suggested, but not sure why i see no users available in the Business Rules-> administration tab.
    As indicated above, the use has been provisioned as a BR admin!
    Also, i tried refreshing the app with filters, refreshing the user list from BR->admin(right mouse), de-provision and re-provision the user! Any ideas??

  • Help with creating a new XML file from an existing DOM tree!!

    i want to create a new XML file from an existing DOM tree
    i used this code to create a new document:
    static public Document createDocument(String fileName) throws ParserConfigurationException//,IOException,SAXException
              try {
                   DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                   factory.setIgnoringComments(true);
                   factory.setIgnoringElementContentWhitespace(true);
                   factory.setValidating(true);
                   DocumentBuilder builder =factory.newDocumentBuilder();
                   return builder.newDocument();
    //          handle exception creating DocumentBuilder
              catch ( ParserConfigurationException parserError ) {
                        throw new ParserConfigurationException();
              }then i used this code to transform the DOM :
    public void exportDocument(Document document) {
              try {
                   Source xmlSource = new DOMSource( document );
                   Result result = new StreamResult( System.out );
                   TransformerFactory transformerFactory =
                        TransformerFactory.newInstance();
                   Transformer transformer =transformerFactory.newTransformer();
                   transformer.setOutputProperty( "indent", "yes" );
                   transformer.transform( xmlSource, result );
           //then catching the exceptions
    But the file was not created and i didn't find where can i specify the DTD that the XML file should use and where can i enter the name of the XML file itself
    Another questoin can i write a DTD file dynamically during the execution of the program??

    Cross-post: http://forum.java.sun.com/thread.jspa?threadID=784467&messageID=4459240#4459240

  • Create a new oracle database from OCI or OCCI client

    Hi,
    How can we create a new oracle database from OCI or OCCI client?
    i am using the oracle 11gR2
    Thanks in Advance,
    Sreekanth Polaka

    Though I have not tried creating a database, try if its doable.
    You can use OCI to perform SYSDBA operations.
    So connect as OCI_SYSDBA and try executing the entire create database command.

  • Unable to create a new dispute case from UDM_DISPUTE

    Hello All,
    When I try to create a new dispute case from UDM_DISPUTE, I get the following error.
    Duplication in attribute display: Attribute
    FIN_RFC_CREATOR already used
    Can any one tell me what is the reason for the above error and how I can create a new test case using UDM_DISPUTE.
    Thanks
    Venkat

    Check your attribute configuration in FSCM - Dispute Mgmt - Dispute Case Processing - Attribute Profile - Create Attribute Profile.  Select the attribute profile that is assigned to your Case Type and select Assign Attributes.  Look to see if the attribute FIN_RFC_CREATOR is listed twice.
    Regards,
    Beth

  • How to create ArrayColletion in mx:Script from mx:Model id="results" source="/data/data.xml" /

    How to create ArrayColletion in mx:Script from <mx:Model
    id="results" source="/data/data.xml" />
    Please see my code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Model id="results" source="/data/data.xml" />
    <mx:Script>
    import mx.collections.ArrayCollection;
    import mx.utils.ArrayUtil;
    import mx.controls.Alert;
    </mx:Script>
    <mx:ArrayCollection id ="dt1"
    source="{ArrayUtil.toArray(results.result)}"/>
    <mx:Script><![CDATA[
    [Bindable]
    public var expenses:ArrayCollection = dt1;
    [Bindable]
    public var expenses2:ArrayCollection = dt1;
    [Bindable]
    public var dp:ArrayCollection=expenses;
    public function changeDataProvider():void{
    Alert.show(expenses.toString());
    if (dp==expenses){
    dp=expenses2;
    }else{
    dp=expenses;
    ]]></mx:Script>
    <mx:Panel x="10" y="10" width="100%" height="378"
    layout="absolute">
    <mx:ColumnChart dataProvider="{dt1}" x="10" y="10"
    id="myChart" height="318" width="100%">
    <mx:horizontalAxis>
    <mx:CategoryAxis categoryField="month"/>
    </mx:horizontalAxis>
    <mx:series>
    <mx:ColumnSeries displayName="apple" yField="apple"/>
    <mx:ColumnSeries displayName="orange"
    yField="orange"/>
    <mx:ColumnSeries displayName="banana"
    yField="banana"/>
    </mx:series>
    </mx:ColumnChart>
    <mx:Legend dataProvider="{myChart}" x="481" y="10"/>
    </mx:Panel>
    <mx:Button x="284" y="416" label="Change Data" id="bt"
    click="changeDataProvider()" />
    </mx:Application>

    Tracy,
    Thanks. That worked. However I have another related question:
    I convert the xml feed to a XMLListCollection by doing:
    <mx:XMLListCollection id="mission"
    source="{xmlFeed.lastResult.day}"/>
    and
    <mx:XMLListCollection id="mission1"
    source="{xmlFeed.lastResult.day.tBlock}"/>
    On the chart I have
    <mx:ColumnChart id="missionReadiness" height="150%"
    width="100%"
    paddingLeft="2" paddingRight="2"
    showDataTips="true" dataProvider="{mission1}">
    <mx:series>
    <mx:ColumnSeries xField="" yField="@today"
    displayName="Today"/>
    <mx:ColumnSeries xField="" yField="@tomorrow"
    displayName="Tomorrow"/>
    <mx:ColumnSeries xField="" yField="@afterT"
    displayName="After Tomorrow"/>
    </mx:series>
    </mx:ColumnChart>
    the yField works, but for the xField I want to have the @date
    but refers to the parent node, so I am clueless on how to refer to
    it.
    Also, I would like to display on the chart only the values to
    a specific date (like @date="05/17/2007").
    Any suggestions on how to do that?
    Gilbert

  • Cannot run calc script from Analyzer

    I just did an upgrade from 6.5 to 6.5.1 and I am unable to run one calc script on a particular database. I can run other calc scripts, just not this one. I get no error message or anything, I can keep clicking the calc button, but it does not run.Strangely, when I click the calc button, Analyzer puts a text file in the directory \\analyzer\appserver\bin with the user name (ex. gcrisci.txt) When you open this file, it is the calc script from Essbase I was attempting to run.I recall running into a problem like this in the past due to the size of the calc script. I thought the solution was to go into Analyzer.properties file and increase the MaxDataCellLimit values. The default is 50000, I've increased it up to 500000 with no resolution. So, I'm thinking maybe this isn't the fix.Does anyone know of a solution to this problem?Thank you.

    John,
    Here are the roles that i assigned my user and he can view/launch the calc scripts from Planning Web without actually being an admin( i think)
    Analytic Servers : server access
    Business Rules: Administrator
    Planning App : Interactive User
    APS : Provisioning Manager
    I would also like to conver the calc script to a BR as suggested, but not sure why i see no users available in the Business Rules-> administration tab.
    As indicated above, the use has been provisioned as a BR admin!
    Also, i tried refreshing the app with filters, refreshing the user list from BR->admin(right mouse), de-provision and re-provision the user! Any ideas??

  • Execute Essbase Calc Scripts from FDM

    Hi,
    Can any of you let me know how to execute Essbase Calc Scripts from FDM, these Calc Scripts are on Essbase Server. Any help would be greatly appreciated.
    Thanks

    See the thread below:
    Re: FDM - Script

  • Calc another calc script from a calc script or business rule

    is there a way to call a common calc script segment from other calc scripts or business rules. I do not want to replicate common code in multiple business rules. This common code updates the Essbase database, so it would need to take Essbase members as parameters and be able issue calculation commands. I do not find this possible with custom macros or custom functions. Thanks - Davis ([email protected])

    I do not think you can call another calc script from within a calc script. An alternative would be to write a MaxL script that strings multiple calc scripts together.Good luck.

  • Execute Calc Script from another application

    Hello Guru's,
    i have two applications (Planning and HPCM). Both 11.1.1.3.
    I write a calc.script in HPCM (with XREF) that provide me a data from Planning to HPCM. Now i am trying to execute a script in planning. So that a planning user can load the data by clicking a business rule.
    Is it possible?
    Many thanks,
    WhiteBaer

    VB is a system wide scripting engine, so you can run it from outside InDesign. You create an InDesign object to address InDesign. This can be done by another application as well.
    Javascript is a scripting engine provided soley by InDesign. Unless you have some method of telling InDesign to run the script, it's a non-starter. You can probably create a dll to tell InDesig to run a javascript, but I think a simple VB is WAY simpler...
    All you really need to do is write a very short VB and feed the javascript to the VB as a string anc call app.doScript() providing the javascript to the doScript method.
    HTH,
    Harbs

  • Hard Drive crash, creating a new iTunes Library from my iPhone

    Hi,
    My hard drive crashed with my iPhone back up and all my pictures, music etc. I have no back up.
    I need now to make sure my iPhone is backed up and get my photo's off the phone. So I have created a new iTunes and iPhoto file and copied the pictures across. But when going through the options for my iPhone in iTunes, I am fearful of wiping the information on my phone. It does not appear I can pull the information from my iPhone to my iTunes account, instead my phone will be wiped and the non existant music on my iTunes account wil replace my collection...
    I understand the need to protect against priracy, but come on, the phone has the same serial number!!
    How to I get around this and create a back up without deleting stuff?
    Thanks

    Hi,
    I am about to do this (https://discussions.apple.com/thread/2584477?start=15&tstart=0), but having lost all my photo's on my old hard drive, I am afraid I will lose them on my iPhone!
    Can someone tell me if the 'Library' photo's where kept as well as the 'Camera Roll' photo's?
    I cannot figure out if the photo's from the 'Library' (on the phone) have been included in the back-up.
    Thanks

  • How do I create a new Aperture library from pictures I moved from IMAC?

    I moved my Photos to External Hard drive from MAC . Can I create new aperture library in EHD?

    As I wrote as long as both programs are latest versions they share the same library structure and can open each others libraries.
    Open Aperture and then select File->Switch to Library. If the iPhoto library shows up in the list select it. If it does not select Other/New… If the iphoto library shows up in this list select it if not select Other Library and find, select and open the iPhoto library.
    At this point there are a few things you can do depending on your situation. You can just leave the library as is if you do most of your work in iPhoto. Or you can turn the this library into an Aperture library.
    To make it an Aperture library open Aperture and create a new empty library as you did before. Now go to File->Import->Library and select the iPhoto library. The iPhoto library will be imported and converted to an Aperture library.
    While all of thsi is safe you the iPhoto library it is alwasy a good idea to have a bakup of the library before starting just in case.
    regards

  • How to crop a mp3 file and create a new small one from it?

    Hi all,
    I would crop a long mp3 sound file and create a new small one with the short part from the long mp3 sound file. How to do it? Anybody can help me?
    Thank you very much.
    Regard
    David

    Have you managed to do this?
    I would also like to know how.
    Thanks
    Jeff Singer

  • How to launch Calc Scripts from Analyzer

    Hello all,Just wondering if that there is an easier way to launch calcs from analyzer... what are some of the ideas -using a executable lauch button, hyperlink, via Analyzer API? Any other ideas appreciated. regards, Ray

    This message has resolved my query by setting a larger MAX_PROPERTY_VALUE_LENGTH to "30"Thanks.I have come across this problem before. If it is the same problem it is to do with the length of your calc scripts. Obviously Essbase calc scripts are stored as .csc files, if these are too big Analyzer can't read them. This issue is caused by the ADM layer that Analyzer uses. Search on the server for a file called adm.properties .You should find the file in the following directory \\hyperion\analyzer\adm\lib .You may find you have more than one copy on the Server in which case edit them all. In the file find a string called MAX_PROPERTY_VALUE_LENGTH. You will find this is currently to 4 (this respresents 4kb). Increase the value to say 20. Save changes, restart Analyzer Service and hopefully this should have fixed the problem. I would love to know if this works. Paul Armitage. Analitica Ltd. www.analitica.co.uk

  • Best Practice for Creating a New WebHelp Project from an Existing One

    I'm currently working in WebHelp Pro (RH version is 9.0.2.271).
    I have a WebHelp project which currently supports the 2012 version of one of our projects. What I needed to do was to create a separate 2013 project, using the 2012 files as the starting point. I couldn't find a way in RH to create a new project by importing an existing WebHelp project, so I copied the 2012 files to a new directory, opened up the project, and renamed it.
    What prompts this question is that following this exercise, all seemed well, for a time. However, I have recently had to create new topics in the 2012 version. However, when I imported these topics to the 2013 project and compiled, they vanished--although the htm files still appear in the appropriate 2013 file folder (when viewed with Windows Explorer).
    After reading some forum postings, I thought that I might have corrupted my database by improperly creating the new project--but if what I did is the wrong way to go about it, I'm not sure what the correct way is. I will be grateful for any suggestions.

    The easy way to do this is create a copy using Windows Explorer.
    Open the project and go to File > Rename.
    Then you have your 2013 ready made project.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

Maybe you are looking for

  • Third-Party User Management Tools

    I'm looking for recommendations for third-party user management tools that can do the following: - Identify and bulk-expire/no visibility users that are inactive for >XXX days - Identify users with auto-forward rules - Bulk-delete inactive accounts (

  • Robohelp 8 HTML - VERY basic layout and naming question.

    OK, I'm sure this must be obvious to everyone else because I can't seem to find it in the places I've searched. My personal experience with Help files isn't helping (yeah, I know, bad pun). I'm creating a RoboHelp HTML file from a PDF file. While imp

  • I want to change my username from mfarooqq923 to mfarooq923

    I want to change my username from mfarooqq923 to mfarooq923

  • MouseDragged - storing current and previous location positions

    hi, I've got to write a program where a shape moves around the screen according to an AffineTransform. When the user drags the shape the shape will move around the screen and when they release the button it will move in the appropriate direction with

  • Merge Cells Without a Break?

    Post Author: JT21598 CA Forum: Desktop Intelligence Reporting All, Basically what I am trying to do is merge some cells that have duplicate values in them.  The records themselves are not duplicates but there are certain values within those records t