Enhanced Calc Script more flexible than native Essbase Calc Script?

What makes an Enhanced Calc Script more flexible than native Essbase Calc Script?
Run on Save or @CALCMODE function or Run time prompts or Can be run over the web or Substitution Variables or Custom Defined Functions.
Appreciate if u reply ASAP!!
Thanks in Advance!!!

Some posts on the subject
Business Rule
Business rule
Business rule
Cheers
John
http://john-goodiwn.blogspot.com/

Similar Messages

  • Calc takes more time than previous

    Hi All,
    I have a problem with the calc as this calc take more time to execute please help!!!
    I have included calc cache high in the .cfg file.
    FIX (&As, &Af, &C,&RM, @RELATIVE("Pr",0), @RELATIVE("MS",0), @RELATIVE("Pt",0), @RELATIVE("Rn",0),@RELATIVE("Ll",0))
    CLEARDATA "RI";
    /* 22 Comment */
    FIX("100")
    "RI" = @ROUND ((("RDL")/("SBE"->"RDL"->"TMS"->"TP"->"TR"->"AF"->"Boom")),8);
    ENDFIX
    FIX("200")
    "RI" = @ROUND ((("RDL")/("ODE"->"RDL"->"TMS"->"T_P"->"TR"->"AF"->"Boom")),8);
    ENDFIX
    Appriciate your help.
    Regards,
    Mink.

    Mink,
    If the calculation script ,which you are using is the same which performed better before and data being processes is same ( i mean data might not have exceptionally grown more).Then, there must be other reasons like server side OS , processor or memory issues.Consult sys admin .Atleast you ll be sure that there is nothing wrong with systems.
    To fine tune the calc , i think , you can minimise fix statements . But,thats not the current issue though
    Sandeep Reddy Enti
    HCC
    http://analytiks.blogspot.com

  • Need more flexibility than photo sites.....

    Looking to make Christmas cards and photo books, and need more customization than allowed on Snapfish, etc.  Any recommendations?

    If you are in Europe try Photobox.com (and if I refer you with your email details I can get a bonus 'gift'!).  

  • Essbase calc script performance issues

    Hi,
    I have essbase 9.3 running on Sun solaris 4 CPU, 16 GB server. The calc script "calc all" takes ~3 hrs to complete.
    This is the calc script.
    /ESS_LOCALE English_UnitedStates.US-ASCII@Binary
    SET UPDATECALC OFF;
    SET CALCPARALLEL 4;
    SET CALCTASKDIMS 2;
    CALC ALL;
    We don't have to calc all dim, but even if we
    But even with specific dim we get the same timing. Below is the script
    SET UPDATECALC OFF;
    SET CALCPARALLEL 4;
    SET CALCTASKDIMS 2;
    FIX ("Y2009", "Actual");
    CALC DIM("Data Source","Intercompany","LegalEntity","Site","Department","Entity");
    ENDFIX
    The ess00001.ind is 700 Mb and ess00001.pag is 2.1 GB.
    In Admin services, this is what I see for caches
    1) Index cache size is 1 GB for this DB
    2) Index cache current value is 1gb
    3) Datafile cache setting is 1.5 GB
    4) Datafile cache current value is 0 (?? not sure why??)
    5) Data cache setting 4.1 GB
    6) Index page setting 8 kb
    please help ...
    Thanks
    Moe

    Moe,
    I'm guessing you inherited this thing, else you would know why the cache settings are what they are, but here are some thoughts:
    Caches:
    3) Datafile cache setting is 1.5 GB
    4) Datafile cache current value is 0 (?? not sure why??)You're running the database in Buffered I/O, so the data file cache is ignored.
    1) Index cache size is 1 GB for this DB
    2) Index cache current value is 1gb You have consumed all of the cache -- I'm a little confused, as you state your .ind file to be 700 megabytes -- generally the index cache consumption doesn't go beyond the .ind file size. When you look at your hit ratio statistics in EAS, does it show a 1 against the index cache? If yes, then you don't need to look any further as that's as good as it's going to get.
    5) Data cache setting 4.1 GBUnless you're using MEMSCALINGFACTOR, I don't think Essbase is actually addressing all of the memory you've assigned. What are you showing as actually used? In any case, having a data cache almost twice as big as the .pag files is a waste as it's way too large.
    Easy, off the cuff suggestions without knowing more about your db:
    1) Try AGG instead of CALC DIM for sparse dimensions.
    2) Try turning off (yes, turning off, you'd be surprised) parallel calc, and benchmark it. It will probably be slower, but it's nice to know.
    3) Dimension order? Modified hourglass?
    4) Tried defragmenting the database and benchmarking the performance?
    5) What is your block size? Big? Small?
    6) I think you are not calculating your Accounts/Measures dimension in your calc? If you are, and it's dense, could you make those Accounts dynamic calc -- dropping a dimension from the calc can be huge.
    I'm sure there will be other suggestions -- these are the easiest.
    Regards,
    Cameron Lackpour

  • 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

  • Why is Array more efficient than flexible-size collection

    it is a bit more tricky to understand the two advantges of Array as following:
    1. access to items held in an array is often more efficient than access to the items in a comparable flexible-size collection,
    2. arrays are able to store objects or primitive -type values, but flexible -size collection can store only object.
    thanks in advance

    it is a bit more tricky to understand the two
    wo advantges of Array as following:
    1. access to items held in an array is often more
    e efficient than access to the items in a comparable
    flexible-size collection,The standard dynamic data structure (with standard I mean member of the collections framework) comparable to the array is the ArrayList. In principle the access to an element is equally efficient in both cases. (There's some overhead because you have to do a method call in the ArrayList case). It's only in very low-level algoritms you need to use arrays. In most cases ArrayList is fine.
    2. arrays are able to store objects or primitive
    ve -type values, but flexible -size collection can
    store only object.This is true with the standard collection, but there are alternative collections that can store primitives, for example,
    http://pcj.sourceforge.net/
    In the next version of Java there's a new concept call autoboxing. This means there's an implicit conversion taking place between primitive types and their corresponding wrapper class, say between int and Integer. This means you will be able to write your program AS IF you could store primitives in the standard collections.

  • Since loading Lion, I've experienced much more instability than Snow Leopard. In particular, Mail crashes with regularity, full-screen apps seem to run slower and show the beach ball more often for longer, etc.  I'm disappointed with the performance. Any

    Since loading Lion, I've experienced much more instability than Snow Leopard. In particular, Mail crashes with regularity, full-screen apps seem to run slower and show the beach ball more often for longer, etc. I love the features, but I'm disappointed with the performance. Any help coming from Apple?  I've been sending them so many reports after crashes, that their file must be full!

    Summoning max. courage, I did what you advised. Here is the result. What does this tell you? My Lion 7.2 (mid 2011 iMac) has several annoying glitches (which I have so far tolerated through gritted teeth) but none that have actually stopped me working.
    BTW, I see several items involving CleanMyMac which I did not know I had. It is generally villified as a trouble-maker. Spotlight can't find an app. or a utility of that name. How can I get rid of what's there please? Just delete?
    Last login: Thu Nov  3 20:55:11 on console
    Steve-Kirkbys-iMac:~ stevekirkby$ kextstat -kl | awk ' !/apple/ { print $6 $7 } '
    com.AmbrosiaSW.AudioSupport(4.0)
    Steve-Kirkbys-iMac:~ stevekirkby$ sudo launchctl list | sed 1d | awk ' !/0x|apple|com\.vix|edu\.|org\./ { print $3 } '
    Password:
    com.openssh.sshd
    com.stclairsoft.DefaultFolderXAgent
    com.microsoft.office.licensing.helper
    com.bombich.ccc.scheduledtask.067493DB-2728-4DF3-87D8-092EF69086E8
    com.bombich.ccc
    com.adobe.SwitchBoard
    Steve-Kirkbys-iMac:~ stevekirkby$ launchctl list | sed 1d | awk ' !/0x|apple|edu\.|org\./ { print $3 } '
    com.sony.PMBPortable.AutoRun
    uk.co.markallan.clamxav.freshclam
    com.veoh.webplayer.startup
    com.macpaw.CleanMyMac.volumeWatcher
    com.macpaw.CleanMyMac.trashSizeWatcher
    com.adobe.ARM.202f4087f2bbde52e3ac2df389f53a4f123223c9cc56a8fd83a6f7ae
    com.adobe.AAM.Scheduler-1.0
    Steve-Kirkbys-iMac:~ stevekirkby$ ls -1A {,/}Library/{Ad,Compon,Ex,Fram,In,La,Mail/Bu,P*P,Priv,Qu,Scripti,Sta}* 2> /dev/null
    /Library/Components:
    /Library/Extensions:
    /Library/Frameworks:
    AEProfiling.framework
    AERegistration.framework
    ApplicationEnhancer.framework
    AudioMixEngine.framework
    FxPlug.framework
    NyxAudioAnalysis.framework
    PluginManager.framework
    ProFX.framework
    ProMetadataSupport.framework
    TSLicense.framework
    iLifeFaceRecognition.framework
    iLifeKit.framework
    iLifePageLayout.framework
    iLifeSQLAccess.framework
    iLifeSlideshow.framework
    /Library/Input Methods:
    /Library/Internet Plug-Ins:
    AdobePDFViewer.plugin
    EPPEX Plugin.plugin
    Flash Player.plugin
    Flip4Mac WMV Plugin.plugin
    JavaAppletPlugin.plugin
    Quartz Composer.webplugin
    QuickTime Plugin.plugin
    SharePointBrowserPlugin.plugin
    SharePointWebKitPlugin.webplugin
    Silverlight.plugin
    flashplayer.xpt
    iPhotoPhotocast.plugin
    nsIQTScriptablePlugin.xpt
    /Library/LaunchAgents:
    com.adobe.AAM.Updater-1.0.plist
    com.sony.PMBPortable.AutoRun.plist
    /Library/LaunchDaemons:
    com.adobe.SwitchBoard.plist
    com.apple.remotepairtool.plist
    com.bombich.ccc.plist
    com.bombich.ccc.scheduledtask.067493DB-2728-4DF3-87D8-092EF69086E8.plist
    com.microsoft.office.licensing.helper.plist
    com.stclairsoft.DefaultFolderXAgent.plist
    /Library/PreferencePanes:
    .DS_Store
    Application Enhancer.prefPane
    Default Folder X.prefPane
    DejaVu.prefPane
    Flash Player.prefPane
    Flip4Mac WMV.prefPane
    /Library/PrivilegedHelperTools:
    com.bombich.ccc
    com.microsoft.office.licensing.helper
    com.stclairsoft.DefaultFolderXAgent
    /Library/QuickLook:
    iWork.qlgenerator
    /Library/QuickTime:
    AppleIntermediateCodec.component
    AppleMPEG2Codec.component
    DesktopVideoOut.component
    DivX 6 Decoder.component
    FCP Uncompressed 422.component
    Flip4Mac WMV Advanced.component
    Flip4Mac WMV Export.component
    Flip4Mac WMV Import.component
    LiveType.component
    /Library/ScriptingAdditions:
    .DS_Store
    Adobe Unit Types.osax
    Default Folder X Addition.osax
    /Library/StartupItems:
    Library/Address Book Plug-Ins:
    Library/Frameworks:
    EWSMac.framework
    Library/Input Methods:
    .localized
    Library/Internet Plug-Ins:
    Library/LaunchAgents:
    com.adobe.AAM.Updater-1.0.plist
    com.adobe.ARM.202f4087f2bbde52e3ac2df389f53a4f123223c9cc56a8fd83a6f7ae.plist
    com.macpaw.CleanMyMac.trashSizeWatcher.plist
    com.macpaw.CleanMyMac.volumeWatcher.plist
    com.veoh.webplayer.startup.plist
    uk.co.markallan.clamxav.freshclam.plist
    Library/PreferencePanes:
    .DS_Store
    Perian.prefPane
    WindowShade X.prefPane
    Library/QuickTime:
    AC3MovieImport.component
    Perian.component
    Library/ScriptingAdditions:
    Steve-Kirkbys-iMac:~ stevekirkby$

  • I have $8.05 balance on my gift card. I tried to buy an app more expensive than that so i had to add my credit card to the apple account. But I couldn't use the balance from the gift card anymore. How can I select to use it? or did I lose it?

    I  have $8.05 balance on my gift card. I tried to buy an app more expensive than that so i had to add my credit card to the apple account. But I couldn't use the balance from the gift card anymore. How can I select to use it? or did I lose it?

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    The MAS should use any credits first and then apply the remainder to a listed bank card.

  • Error executing essbase report script using maxl

    Hi,
    V 11.1.2.1 (64 bit) on windows
    An essbase report script errors when it is run from maxl. When I run it directly in maxl the error is
    Error - 1030205 - Client directory does not exisit: ...EssbaserServer\<instance>\client
    When I run it within EAS the error is
    Client directory does not exisit: EPMSystem11R1/common/EssbaseRTC-64/11.1.2.0client
    Unexpected essbase error 1030205
    The client is installed but the folder locations do not exist. There is a calc script which does a data export which works fine. The essbase report can be manually executed without a problem. This worked fine in 9.3.1.
    Here is the script (without actual names)
    export database 'app'.'database' using report_file 'AReport' to data_file 'c:\\Output.txt';
    I would appreciate any help. I have looked at the knowledge base and can't find anything relevant.
    Thanks in advance,
    Nathan
    I would appreciate

    Hi,
    The issue is now resolved.
    The client folder must be created where the EAS service is, not Essbase. Once this was done the report script could not be found. In discussion over the phone with Oracle we did some testing, as they use a non distributed environment. If you use 'using report file' you need to specify the path to the report file i.e.
    D:\Oracle\Middleware\user_projects\epmsystem\EssbaseServer\<instance>\app\<app name>\<database>\report.rep'
    The .rep must also be included.
    If you use 'using server report file' you only need to specify the report name, without the extension, and the data file path. You specify the path as normal i.e. D:\nathan.txt but you can get away with simply a file name such as 'nathan.txt'. In a distributed environment this exports to the server where the EAS service is to
    <drive>:\Oracle\Middleware\user_projects\domains\EPMSystem
    When Oracle support did this it went to the Essbase bin folder as it was a non distributable environment.
    The subtle differences between 9.3.1 and 11.1.2.1......
    Thanks to all those who contributed.
    Nathan

  • Exchange Rate table Upload to Native Essbase Application

    Hi Gurus,
    I have a native multicurrency essbase application in 11.1.2.1. For planning application exchange rate tables are there for which I can generate a currency conversion script to Essbase side. But for native essbase application how rates could be uploaded from exchange rate database table into essbase. we have a sample smartview template in which we want the rates to be populated.
    Thanks in advance.

    Hi all,
    Can we load exchange rates from sql table through rule files?....As my application is standalone essbase application so I can't take the advantages of Planning Exchange Rate tables.
    Please help. Thanks in advance

  • The Transform Each Effect: more flexibility is needed please...

    Is this really wishful thinking?
    Hi,
    I was reveiwing recently an episode on AdobeTV with Colin Smith regarding a very neat trick applying a style with Illustrator and repeating business cards on the same page. Very cool idea and way of using that effect indeed. I particularly like the fact that you can store and save that effect as a style so you can use it over and over again.
    http://tv.adobe.com/watch/no-stupid-questions-with-colin-smith/illustrator-business-cards/
    A question came up to my mind about an issue and some possible limitations of this "Effect", since it can only resize objetcs by entering  % values but nowhere can one can enter numeric values instead. Of course you can perform that task with the "Transform Pannel" but you cannot do it with the "Transform Each Effect". Let's say that you have many logos on a page that you would like to reduce/enlarge to a certain width or height for each one as 2" width for example, you would have to do the math first to figure our what would be the % and then transfer this result in % to the "Transform Each Effect" so it can do the task.
    In such a case, you cannot use the "Transform Panel"  to reduce all the logos at the same time to a individual width of 2" because Illustrator  then consider the width of all the logos globally or as a "Group" but not each one of them. So you would end up with the wrong result. And, going futher with the math would means further steps and maybe involves then other "Trial an error" tests before acheiving what you are looking for.
    For a better understanding, please view the above video where the author explain and debates quite clearly that point::
    http://youtu.be/V4-Ee9mJAOA
    Like the author says at the end of in his video, you can always make a small "Action Script" but it involves more steps andfurther testings. So more flexibility is needed here from the "Transform Each Effect" and I tend to agree with the gentlemen on that matter. As you may know, many of us who are involved in production the simple task of rearranging/transforming logos is performed many times for certain projects. By adding this feature to the "Transform Each Panel" would be a great help to us all. Also, just imagine if that feature could then be save as a "Style", what a great time saver it would be for all of us!
    I know that you can first rezise one object with the "transform Panel" an then use the the "Transform again" command  in order to apply it to the others. But you cannot do it to all at the same time because Illustrator apply that transformation then globally. Also, if the some logos are let's say of various sizes it does not work at all.
    Is there another way some of you may know how to do it simpler? Is there a special "Plugin" available with Illustrator that you may know who could perform that type of task?
    May I finally point out that i'ts not a matter of doing that small task but the pain rather resides in doing it over and over again. So I do beleive that flexibility is needed here for us all...
    Thanking you in advance and looking forward to read you,
    Robert Marchand
    P.S.:
    Sorry, but English is a "Work in progress" in my case...

    oh yeah. sorry. Two new errors were generated (same
    type). ...Yeah, sorry I didn't look closely enough.
    May I suggest a different approach? This is far from perfect, but is a big improvement of your current code:public class Inventory
        public static void main( String args[] )
            Iteminfo[] myItems = new Iteminfo[3];
            myItems[0] = new Iteminfo( 01, "Laptop", 15, 2000 );
            myItems[1] = new Iteminfo( 02, "Desktop", 25, 1500 );
            myItems[2] = new Iteminfo( 03, "Server", 10, 5000 );
            System.out.println("Inventory Program Part 2\n\n");
            displayItems(myItems);
            System.out.printf( "The total of all inventory is: $%.2f. \n\n", getInvTotal(myItems));
            System.out.printf( "The sorted inventory list is: ");
            sortItemInfo(myItems);
            displayItems(myItems);
        static void displayItems(Iteminfo[] myItems)
            for(int i = 0; i < myItems.length; i++)
                System.out.printf("Item "+(i+1)+": \n\n");
                myItems.displayInfo();
    static double getInvTotal(Iteminfo[] myItems)
    double total = 0.0;
    // Do the same thing with the for-statement here as
    // well, and add everything to the variable total.
    return total;
    static void sortItemInfo(Iteminfo[] myItems)
    // your sort algorithm here
    Try to finish it.
    Good luck.

  • Flash 8: More trouble than it's worth

    I'm an animator, so I do not use flash for it's more
    complicated tasks such as action scripting. However, I have had so
    many issues with just drawing, and animation, that I'm about to go
    back to flash mx. I cannot remember all of them but here is a small
    list off of the top of my head:
    - Images exported now come out the size of your finger nail,
    instead of actual pixle size
    - ctrl + z is now done in such a way that after a few hours
    of drawing and pressing ctrl + z, a computers resources are almost
    completely leeched, and flash will crash if you attempt to do it
    any more. I've gotten to the point where I was waiting about 5
    seconds for a ctrl + z to work, and I've got 4 gb of ram.
    - When using a wacom tablet, you can flip it for the eraser.
    Well don't even bother, because the eraser stays the same size as
    the pen you were just using, so it's about the size of a pin head,
    and completely useless.
    - When pasting in many frames (going from frame to frame
    pasting things), certain pen strokes become untouchable. You cannot
    erase them, or changes them. To fix this you have to click the pen
    mark, then the backround then switch to the tool you want again.
    This has to be done for every frame and can become very annoying as
    any animator will know.
    - Flash 8 claims to be able to export files so that flash mx
    can use them. Nope. The files are corrupted when opened with flash
    mx.
    - When drawing with the pen tool, you occasionally get an
    exploded line. It just shoots off in some direction. This happens
    mostly when holding shift and using the pen.
    - simple action scripts such as button command "onDrag" are
    next to impossible to find without the index tool, and even then I
    get errors in action script. I'm not an expert programmer and flash
    mx was easy enough for me.
    - My biggest complaint is the color mixer. It has been
    reduced to about 1/4 the size and I have to smash my face up
    against the screen to fine pick a color. All to make room for the
    now over-sized box that shows you the color you have picked. An
    alternative to this is to click on the paint bucket and then the
    color wheel, which isn't too hard... but as I explained, after
    doing it a thousand times, I'm sick of it.
    - A tiny, yet incredibly annoying, glitch for flash 8 is also
    in the color mixer. It involves trying to pick a color and having
    it immidiately snap back to black, or white, or whatever color you
    had previously. The color is indeed chosen anew, but if you want to
    choose a color and then lower opacity, I'm afraid flash 8 just
    doesn't allow it.
    There a few more things I have forgotten, but I'm sure I've
    said enough.
    ~Thanks for reading.

    jjjooee,
    Not sure what you hope to gain from your post, except maybe
    to blow off
    stream (which is fine, I guess). But in case a reply would be
    helpful, here
    goes ...
    > - Images exported now come out the size of your
    > finger nail, instead of actual pixle size
    When I export images from Flash 8, I have to option to
    specify
    resolution, depending on the format (PNG, for example).
    Images certainly do
    export at actual pixel size, though. Not sure what's going on
    in your case.
    > - ctrl + z is now done in such a way that after a few
    > hours of drawing and pressing ctrl + z, a computers
    > resources are almost completely leeched, and flash
    > will crash if you attempt to do it any more.
    I don't experience this at all.
    > I've gotten to the point where I was waiting about 5
    > seconds for a ctrl + z to work, and I've got 4 gb of
    > ram.
    Sounds like an unusual case. I have 2GB of RAM (even less on
    my laptop)
    and simply haven't seen this issue.
    > - When using a wacom tablet, you can flip it for the
    > eraser. Well don't even bother, because the eraser
    > stays the same size as the pen you were just using,
    > so it's about the size of a pin head, and completely
    > useless.
    This one, I've heard about from someone else's post. I have
    a Wacom
    tablet but haven't tested this particular feature. This one
    ... you may
    have a point.
    > - When pasting in many frames (going from frame to
    > frame pasting things), certain pen strokes become
    > untouchable. You cannot erase them, or changes them.
    Haven't experienced this.
    > - Flash 8 claims to be able to export files so that
    flash
    > mx can use them. Nope. The files are corrupted when
    > opened with flash mx.
    Nope. Flash 8 makes no such claim. What it can do is export
    for Flash
    MX 2004, and those files open just fine. I regularly
    subcontract on
    projects where the other team members have only Flash MX 2004
    and haven't
    had any problems. In the increasingly rare cases where other
    team members
    only have Flash MX, I save for Flash MX 2004, then open in
    Flash MX 2004 in
    order to save for Flash MX.
    > - When drawing with the pen tool, you occasionally
    > get an exploded line. It just shoots off in some
    direction.
    I begin to wonder if you have gremlins! This just hasn't
    happened for
    me -- I think ... ever.
    > - simple action scripts such as button command "onDrag"
    > are next to impossible to find without the index tool,
    and
    > even then I get errors in action script.
    Not sure what you mean by "index tool," but regardless, your
    best best
    for programming to get comfortable with the ActionScript 2.0
    Language
    Reference. I realize it can be intimidating if you're only
    getting started,
    but I find it really helps if you can think of things in
    terms of objects,
    then look up the class entry for the object at hand.
    See if this article helps you get a better sense of footing
    http://www.quip.net/blog/2006/flash/tackling-the-actionscript-20-language-reference
    > - My biggest complaint is the color mixer. It has been
    > reduced to about 1/4 the size and I have to smash my
    > face up against the screen to fine pick a color.
    This one ... absolutely. The mixer really should be bigger
    than it is.
    > - A tiny, yet incredibly annoying, glitch for flash 8 is
    > also in the color mixer. It involves trying to pick a
    > color and having it immidiately snap back to black,
    > or white, or whatever color you had previously.
    I *think* I know what you mean here, but not exactly sure. I
    agree with
    you that color selection could be improved, and I'm not
    really sure why this
    particular feature went a bit astray.
    > There a few more things I have forgotten, but I'm sure
    > I've said enough.
    > ~Thanks for reading.
    Sure thing. I'm sorry to hear you're so frustrated. Aside
    from the
    couple issues where I concur, I personally find that Flash
    just keeps
    getting better.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Executing Essbase Clear Script through FDM event scripts

    Hi,
    Is it possible to access and execute essbase clear script through FDM event scripts? I know one method is to modify Load action, but was wondering if can be done any other way.
    Thanks in advance.

    The Essbase client is installed on the FDM application server so yes. You can create a batch file that calls a calc script via the Essbase Client and execute this from your Event script

  • Big Problem with Directx 11 and Games scaling when lower than native resolution

    Hi Guys,
    MY system is Windows 7 Home Premium (Korean version), and I have dual GPUs, Nvidia Geforce GT 630m for gaming, and Intel HD Graphics 4000 for all other display matters.  My native resolution is 1920 x 1080.
    This problem wasn't there couple of years back, but from 2~3 years ago, when I play recent games that require/favour directx 11 (such as Assassin's Creed IV Black Flag, Batman: Arkham Origins), it seems when I use lower than native resolution (such as 1280
    x 720) and select fullscreen, giant ugly black borders always appear around the game, and the game does not fill the whole screen.  
    I thought this was something which could be fixed in my GPU's control panel, but there was no scale fullscreen option under Nvidia's control panel.  So I went into Intel HD Graphics control panel, but there was no Scale fullscreen option there either (under
    native resolution.  With lower resolution there was).
    Anyway, after months and months of searching, I finally found an Intel forum which was discussing the same situation:
    https://communities.intel.com/thread/44539
    While going through the forum, I found out from other users that problem is not with GPU's drivers, but with Directx 11.  
    To test this theory, I put Batman: Arkham Origins in Force Directx 9 mode, and changed the game resolution to 1280x720.  And the game showed no black borders, it scaled up perfectly to fullscreen under Directx 9 (so no problem whatsoever under directx
    9).  I changed the setting to Directx 11, and the ugly black borders appeared again.
    Could someone please help with this?  I know I can change my screen's resolution every time I play the game, but it's a real nuisance to do that.  And more games are utilising Directx 11 or higher, and I don't think there are many games where I can
    force Directx 9 mode like I did for Arkham Origins.
    Or if someone connected could contact the people working on Directx 11 and ask about this issue (and get them to contact me through my email below), that would be much appreciated.
    my email:
    [email protected]
    p.s. : all my GPU drivers are currently up to date, and the black borders issue is still there

    Hello MeipoXu
    While yes, at first people on the Intel forum thought it was the display driver problem (hence the question was originally posted on the Intel forum).  But if you look closely through the pages especially Pages 2 onwards, there are some very astute
    comments by some posters:
    Update to black borders problem: The problem is DirectX11. Fx. Company of Heroes has a setting "Shader Quality" that when set to ULTRA it will run directX11 and when set below ULTRA it will run directX9. So the intel graphics driver is not
    responsible! It is Microsofts DirectX11 that does it - maybe only to computers with both Intel HD and a second graphics card for video games
    Different workarounds to the black border problem:
    Change resolution before running fullscreen
    Use directX9 instead of directX11
    Fx. in CoH2 there is a setting fx. 50% of resolution, so even in native resolution the graphics is only half and thus faster
    Try window mode without borders
    and here's also another:
    I can confirm that this problem still seems to exist, and that it definitely seems to be related to DirectX 11.
    In a variety of games, turning DirectX11 off (either in-game or using ini files in some games that don't present you with the choice) fixes the issue. But this is obviously not ideal.
    I have a laptop with a native resolution of 1920x1080, but tend to run games at 1280x720 because it provides much better performance on my HD 4400 graphics chip. This bug and the memory leak issue on Windows 8.1 are extremely annoying.
    Like the first poster, my PC has intel HD GPU, and a second graphics card for games (Nvidia).
    And all the members have mentioned that they updated the intel graphics driver, but it does not fix it - so it doesn't seem like a graphics driver problem (and more to do with Directx 11).
    And they are right.  With Batman Arkham Origins, if I set the resolution to 1366 x 768 and apply fullscreen, under Directx 11, ugly black borders appears.  Luckily Arkham Origins has "Force Directx 9 mode" which I use, but a lot of games
    don't have this mode (such as ACIV Black Flag, Watch Dogs, Sleeping Dogs etc) - you either play in ugly black borders, or can't play the game at all.
    And all my Graphics Drivers are currently up-to-date, and issue still exists, so I don't think it's the driver problem.
    I have already tried that registry method you just mentioned.  It didn't work.
    As for Directx 12, well I just hope it works better than Directx 11 (with its ugly black borders in games) does, and works well like Directx9 (with no problem in scaling).

  • Would Anyone Mind Giving A Few Tips To Make This Script More Robust?

    Hello. I haven't done any scripting before but I've written this script to run as a post-recording process in Audio Hijack Pro:
    on process(theArgs)
    -- This part of the script will disable any timers that are set to repeat exactly 7 days (±1 minute) after the recording started
    -- Dates have the format "Monday 1 January 2007 12:00:00"
    tell application "Audio Hijack Pro"
    set allSessions to every session
    repeat with eachSession in allSessions
    set allTimers to every timer in eachSession
    repeat with eachTimer in allTimers
    try -- The try protects against empty values of "next run date"
    set nextDate to word 1 of ((next run date of eachTimer) as string)
    set nextDay to word 2 of ((next run date of eachTimer) as string)
    set nextMonth to word 3 of ((next run date of eachTimer) as string)
    set nextYear to word 4 of ((next run date of eachTimer) as string)
    set nextHour to word 5 of ((next run date of eachTimer) as string)
    set nextMin to word 6 of ((next run date of eachTimer) as string) as number
    set weekOn to ((current date) + (60 * 60 * 24 * 7) - (duration of eachTimer)) -- This calculates the date in 7 days, less the duration of the timer
    set weekOnDate to word 1 of (weekOn as string)
    set weekOnDay to word 2 of (weekOn as string)
    set weekOnMonth to word 3 of (weekOn as string)
    set weekOnYear to word 4 of (weekOn as string)
    set weekOnHour to word 5 of (weekOn as string)
    set weekOnMin to word 6 of (weekOn as string) as number
    if nextDate is equal to weekOnDate and nextDay is equal to weekOnDay and nextMonth is equal to weekOnMonth and nextYear is equal to weekOnYear and nextHour is equal to weekOnHour and nextMin is greater than (weekOnMin - 60) and nextMin is less than (weekOnMin + 60) then
    set enabled of eachTimer to false
    end if
    end try
    end repeat
    end repeat
    end tell
    -- The script then goes on to import the recordings into iTunes (as wavs), set tags and copy the wavs up to the server
    if class of theArgs is not list then -- This is a standard Audio Hijack Pro routine
    set theArgs to {theArgs}
    end if
    set recordedFiles to {} -- This will protect against theArgs being changed by Audio Hijack Pro whilst this script is still running
    set recordedFiles to theArgs
    set convertedFileList to {} -- This will keep track of the paths to the imported files
    tell application "iTunes"
    set current encoder to encoder "WAV Encoder"
    copy (convert recordedFiles) to trackList -- Do the conversion
    if class of trackList is not list then
    set trackList to {trackList}
    end if
    repeat with eachTrack in trackList -- Set the tags
    set artist of eachTrack to "Theatre Archive"
    set album of eachTrack to word 1 of ((name of eachTrack) as string)
    set convertedFileList to convertedFileList & (location of eachTrack as alias)
    end repeat
    end tell
    tell application "Finder"
    repeat with eachFile in convertedFileList
    -- This section (down to HERE) is a subroutine to delay the file copy until iTunes has finished creating the files
    set currentSize to size of (info for eachFile)
    delay 1
    set latestSize to size of (info for eachFile)
    repeat until currentSize is equal to latestSize -- Keep checking the size every second to see if it's stopped changing
    set currentSize to size of (info for eachFile)
    delay 1
    set latestSize to size of (info for eachFile)
    end repeat
    -- ...HERE
    duplicate eachFile to "Server HD:" as alias -- Copy the files up to the server
    end repeat
    end tell
    end process
    The idea is that it disables the repeating timer that created the recording (as I don't necessarily want it to repeat every week), converts the recording to wav in iTunes and then copies the wav up to our server. If I run it too many times in quick succession some files don't get converted, and then some wavs don't get copied to the server. I'd like to know a way of getting it to tell me why not!
    Thanks for any advice you can give.
    Rich

    Since you specifically ask if people can make it 'more robust', it would help if you indicated which areas, if any, were of particular concern.
    For example, does the script frequently fail in one particular area?
    That would help narrow it down significantly. There's little point in people deeply analyzing code that works just fine.
    If, on the other hand, you're looking for optimizations, there are several that come to mind.
    Firstly, you're making repeated coercions of a date to a string in order to compare them. String comparisons for dates are inherently dangerous for many reasons.
    For one, different users might have different settings for their date format.
    Both "Monday May 28th 2007 1:02:03am" and "28th May 2007 1:02:03am" are valid coercions of a date to a string, depending on the user's preferences.
    You might expect the former format whereas the current system settings use the latter so now 'word 1" returns "28th" rather than "Monday" as you expect.
    The problem is exascerbated by the fact that since you're coercing to strings you're now using alphabetical sorting, not numeric sorting. This is critical because in an alpha sort "3rd" comes AFTER "20th" because the character '3' comes after the character '2'. However I'm guessing you'd want events on the 3rd of the month to be sorted before events on the 20th.
    So the solution here is to throw away the entire block of code that does the date-to-string coercions. If my reading of the code and the expected values is correct it can all be reduced from:
    <pre class=command>set nextDate to word 1 of ((next run date of eachTimer) as string)
    set nextDay to word 2 of ((next run date of eachTimer) as string)
    set nextMonth to word 3 of ((next run date of eachTimer) as string)
    set nextYear to word 4 of ((next run date of eachTimer) as string)
    set nextHour to word 5 of ((next run date of eachTimer) as string)
    set nextMin to word 6 of ((next run date of eachTimer) as string) as number
    set weekOn to ((current date) + (60 * 60 * 24 * 7) - (duration of eachTimer)) -- This calculates the date in 7 days, less the duration of the timer
    set weekOnDate to word 1 of (weekOn as string)
    set weekOnDay to word 2 of (weekOn as string)
    set weekOnMonth to word 3 of (weekOn as string)
    set weekOnYear to word 4 of (weekOn as string)
    set weekOnHour to word 5 of (weekOn as string)
    set weekOnMin to word 6 of (weekOn as string) as number
    if nextDate is equal to weekOnDate and nextDay is equal to weekOnDay and nextMonth is equal to weekOnMonth and nextYear is equal to weekOnYear and nextHour is equal to weekOnHour and nextMin is greater than (weekOnMin - 60) and nextMin is less than (weekOnMin + 60) then
    set enabled of eachTimer to false
    end if</pre>
    to:
    <pre class=command>set nextDate next run date of eachTimer
    set weekOn to ((current date) + (60 * 60 * 24 * 7) - (duration of eachTimer)) -- This calculates the date in 7 days, less the duration of the timer
    if nextDate is greater than (weekOn - 60) and nextDate is less than (weekOn + 60) then
    set enabled of eachTimer to false
    end if</pre>
    The next area of concern is your copying of the files to the server. I don't understand why you have all the delays and file size comparisons.
    Given a list of aliases convertedFileList, you can simply:
    <pre class=command>tell application "Finder"
    duplicate convertedFileList to "Server HD" as alias
    end tell</pre>
    The Finder will copy all the files in one go and you don't need the repeat loop or the delays.

Maybe you are looking for