How to capture user ID within Calc script, when running?

Client wants to capture run information automatically (user ID - who ran selected calc script ), and save that information in application itself to see who ran it last time, without checking related logs.
User IDs have been enumerated already so if we can pick user ID text, we can set them as number value in Essbase. Expectation is to generate CDF to see related user ID and refer property file to get related number, to save in one of account. Its only possible if we can get in same session when run CDF and check who runs it.
Any possible way to identify user ID from calc script in Essbase?
Edited by: 962124 on Oct 15, 2012 9:30 AM

Could you please mark the responses as helpful or answer so others can benefit from your time?
Kyle Goodfriend
http://www.in2hyperion.com
Please make sure to assign helpful/answered to responses if applicable - it rewards those who help and benefits the user community.

Similar Messages

  • Easy Question: How to identify user roles within form?

    Hi folks,
    I would like to display/hide button which calls static data maintenance form (from other form) based on current user roles.
    If user has role "STATIC_DATA" granted then DISPLAY button (which calls static data form), else DO NOT DISPLAY it.
    Any example, how to get user roles within form?
    Thanks,
    Tomas

    I can do it with below code:
    declare
      l_cnt number;
    begin
      select count(*)
         into l_cnt
         from user_role_privs
      where granted_role = 'STATIC_DATA';
      if l_cnt > 0 then
            -- display it
      else
         -- do not display
      end if;
    end;I think, above should work.
    Thanks,
    Tomas

  • Essbase performance issue when calc scripts are run on FDM cube on same server

    We have a large Essbase application which has high usage on a daily basis, which is being impacted when we run Calc scripts on an FDM forecast cube which is on the same server. The large application is on EIS 11.1.2 and the FDM cubes are being migrated to the same server and also being upgraded from EIS 7.1 on Unix to EIS 11.1.2 on NT. Every time the Calc scripts are run on the FDM cube, the performance of the Essbase application is degraded and it shuts down after some time.

    Sudhir,
    Do you work at a help desk or are you a consultant? you ask such a varied range of questions I think the former. If you do work at a help desk, don't you have a next level support that could help you? If you are a consultant, I suggest getting together with another consultant that actually knows more. You might also want to close some of your questions,. You have 24 open and perhaps give points to those that helped you.

  • How to pass user and password in workspace when open a bqy

    hello,
    how to pass user and password of workspace when refresh a bqy for a query in DB2.
    I don't know where to insert the properties in order to use user and password of workspace,
    I want to use user of login of workspace,
    I don't want to make to appear the mask of login newly when the user refresh the query.
    I don't want to set a default user and password
    thanks
    massimo

    Dear Friend,
    What you mean?
    1. Do you mean how to pass login page on workspace ?
    2. or Do you mean how you can use a connection file to connect to db that is hide from user?
    3. or You mean how to use user & password to login to doc on workspace
    Answer for 1:
    use link
    http://HyperServer:45000/workspace/browse/get/MyFolder/MyIR.bqy?user=admin&pass=password
    Answer for 2:
    a) Upload or import connection file ( MyConn.oce ) to DB2 into workspace,
    b) for IR doc properties change file connection ( MYConn.oce )
    Answer for 2:
    use link without user & pass parameter
    http://HyperServer:45000/workspace/browse/get/MyFolder/MyIR.bqy <?user=admin&pass=password>
    regards
    siyavuş

  • Calc scripts are running low

    Hi All,
    Few of our calc cripts are runnig low for EPM applications.
    Its happening like some of the calc scripts are running fine..while a few other are running slow.
    Can you ugget what thing needed to be checked
    Thanks

    Hi,
    The version is not mentioned.
    Hope the below tuning methods are helpful:
    1. Check that compression settings are still present. In EAS, expand the application and database. Right-click on the database > Edit > Properties > Storage tab. Check that your "Data compression" is not set to "No compression" and that "Pending I/O access mode" is set to "Buffered I/O". Sometimes the compression setting can revert to "no compression", causing the rapid growth of the data files on disk.
    2. On the Statistics tab, check the "Average clustering ratio". This shoud be close to 1. If it is not, restructure you database, by right-clicking on it and choosing "Restructure...". This will reduce any fragmentation caused by repeated data import and export. Fragmentation will naturally reduce performance over time, but this can happen quite quickly when there are many data loads taking place.
    3. Check the caches and block sizes.
         a.Recommended block size: 8 to 100Kb
         b.Recommended Index Cache:
              Minimum=1 meg
              Default=10 meg
              Recommendation=Combined size of all ESS*.IND files if possible; otherwise as large as possible                     given the available RAM.
         c.Recommended Data File Cache:
              Minimum=8 meg
              Default=32 meg
              Recommendation=Combined size of all ESS*.PAG files if possible; otherwise as large as possible           given the available RAM, up to a maximum of 2Gb.
              NOTE this cache is not used if the database is buffered rather than direct I/O (Check “Storage”           tab). Since all Planning databases are buffered, and most customers use buffered for native           Essbase applications too, this cache setting is usually not relevant.
         d. Recommended Data Cache:
              Minimum=3 meg
              Default=3 meg
              Recommendation=0.125 * Combined size of all ESS*.PAG files, if possible, otherwise as large as           possible given the available RAM.
    A good indication of the health of the caches can be gained by looking at the “Hit ratio” for the cache on the Statistics tab in EAS. 1.0 is the best possible, lower means lower performance.
    4. Check system resources:
    Recommended virtual memory setting (NT systems): 2 to 3 times the RAM available. 1.5 times the RAM on older systems.
    Recommended disk space:
    A minimum of double the combined total of all .IND and .PAG files. You need double because you have to have room for a restructure, which will require twice the usual storage space whilst it is ongoing.
    Please see the below document for reference:
         Improving the Performance of Business Rules and Calculation Scripts (Doc ID 855821.1)
    -Regards,
    Priya

  • How to capture the data within the given range of maximum and minimum values ? from csv files

    My requirement,
    1. Here, the user will provide the range like maximum and minimum values, based on this range, the VI should capture the data within the given range. ( from CSV file as attached )
    2. Then VI should calcluate the average value for captured data and export it to excel.
    This is my requirement can anyone help me on this.
    Many thanks in advance
    rc_cks
    Attachments:
    sample_short.csv ‏2439 KB

    Hi,
    Thanks for remnding me. I forgt to attach the VI, 
    Here I am attaching the VI, what I tried. 
    From attached CSV file, I have to find an average value for columns B,C,D,E,F,G,H,I and AJ, AK. ( data range will be defined  by user ), focused only on these columns
    Here, the scope is to calculate an average value for given data range by user as MAX and MIN data.  
    FYI:  I tried manually for two instance i.e column H & I.  As per H column one steady state values from  7500 to 10500 and similarly in I column 7875 to 10050. So, I gave these as a limit to capture and calculate the average value. But unfortunaltely, requirement has been modified as per below requirements.
    More Info on requirement: 
    --> The user will define the range of data by giving some MAXIMUM and MINIMUM values(for above mentioned columns induvidually), then VI should capture          that data range and it has to caculate the average value for that range of data. This is the task I have to complete. 
    --> I am stuck in creating a logic for data capturing for given range of MAX and MIN value from user, 
         Can anyone help me on this. 
    If my explanation is not clear, Please let me know.  
    Many thanks, help mw
    rc
    Attachments:
    VI_rc.vi ‏25 KB
    sample.zip ‏4166 KB

  • How to capture user name and date in the database

    How to capture the person name who edits the application and the date of edit in the database...
    Pallavi

    Hi
    There are substitution strings you can use for this purpose.
    1.APP_USER ------is the current user running the application
    2.SYSDATE --------represents the current date on the database server
    APP_USER Syntax
    Bind variable------ :APP_USER
    PL/SQL------- V('APP_USER')
    Substitution string---------- &APP_USER.
    SYSDATE_YYYYMMDD Syntax
    Bind variable------- :SYSDATE_YYYYMMDD
    Direct PL/SQL------- APEX_APPLICATION.G_SYSDATE (DATE DATATYPE)
    PL/SQL-------- V('SYSDATE_YYYYMMDD')
    Your application will be based on a table with primary key column. You create a 'before update trigger' on that table and add columns 'UPDATED_ON' and 'UPDATED_BY' to that table. Add the following to that trigger:
    :NEW.UPDATED_ON := SYSDATE;
    SELECT V('APP_USER') INTO :NEW.UPDATED_BY FROM DUAL;
    -Priyanka

  • How to reference current ICP in calc script?

    Hello Everyone,
    I am working on an HFM calc script. I am trying to assign the current ICP member to a variable. I attempted this using the following line of code:
    POV_ICP = HS.ICP.MemberFromID(HS.ICP.IDFromMember(""))
    I don't receive any error messages, but I don't seem to be populating the POV_ICP variable either.
    Your help is greatly appreciated!
    Chris

    Ha ha... Good one.
    I came back to post A solution and low and behold - you arrived at the same...
    You've probable realized that the POV_ICP was only ever going to reference the ICP_None account under any condition.
    Glad to hear you're back on track - G'Luck
    Public Const WriteToFilePath = "C:\Documents and Settings\Admin\My Documents\!WRITEtoFILE" 'Will write log to app server you are currently logged on to. Need to ensure this path exists on each app server
    Sub WriteToFile(txtStringToWrite)
    On Error Resume Next
    Const ForReading = 1, ForWriting = 2, ForAppending = 8
    Dim fso, f
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set f = fso.OpenTextFile("C:\Documents and Settings\DemoUser\My Documents\!WRITEtoFILE\RulesLog.txt", ForAppending, True)
    f.WriteLine txtStringToWrite & " " & Now()
    f.Close
    On Error GoTo 0
    End Sub
    'CALCULATE
    SUB Calculate()
    'Set current POV members
    POV_YEAR = HS.Year.Member
    POV_PERIOD = HS.Period.Member
    POV_SCENARIO = HS.Scenario.Member
    POV_ENTITY = HS.Entity.Member
    POV_VALUE = HS.Value.Member
    'Variables
    vPeriodNum = Hs.Period.Number()
    vPeriod = HS.Period.Member()
    vScenario = Hs.Scenario.Member()
    vYear = Hs.Year.Member()
    vEntity = Hs.Entity.Member()
    vValue = Hs.Value.Member()
    vEntisBase = HS.Entity.IsBase("","")
    IF vEntisBase = TRUE AND (vValue = "<Entity Currency>" or vValue = "<Entity Curr Adjs>" or vvalue = "[Elimination]") THEN
    'Check for value in ICP
    SET DataUnit = HS.OpenDataUnit("")
    lNumItems = DataUnit.GetNumItems
    FOR i = 0 TO lNumItems-1
    'Get the next item from the dataunit     
    CALL DataUnit.GetItem(i, strAccount, strICP, strCustom1, strCustom2, strCustom3, strCustom4, dData)           
    CALL WriteToFile(POV_SCENARIO & " " & POV_YEAR & " " & POV_PERIOD & " " & POV_ENTITY & " " & POV_VALUE & " " & (strAccount & " " & strICP & " " & strCustom1 & " " & strCustom2 & " " & strCustom3 & " " & strCustom4 & " " & dData))
         IF strAccount = "X" THEN
         'Do Nothing
         ElseIf dData <> "0" THEN
    ''      ElseIf dData = "1" THEN
         END IF
         NEXT
    END IF
    END SUB
    This taken from the Rules.txt file...
    Actual 2007 Jan EntityCashPool <Entity Currency> [ACashPool] WI [None] [None] [None] [None] 555555 2/1/2011 11:33:22 PM
    Actual 2007 Jan EntityCashPool [Elimination] [ACashPool] WI [None] [None] [None] [None] -555555 2/1/2011 11:33:22 PM
    Actual 2007 Jan EntityCashPool [Elimination] ICRecPayDiff WI [None] [None] [None] [None] 555555 2/1/2011 11:33:23 PM

  • Calc scripts are running slow(all of a sudden)

    All of a sudden, for the past few days, we are noticing that all our calc scripts have been running very slow.
    The same scripts used to run much faster earlier.
    Has anybody seen this kind of scenario?
    We did a RAM upgrade on the eas server, and have restarted all services.
    Other than that, nothing has changed in our system.
    Thanks.

    It can be quite common for calcs to slow down over time, but there are some things to do to mitigate this.
    1. Are you using Intelligent Calc? All things being equal (a very broad statement in essbase, since things are never equal) if there is more activity by users, it could affect how many blocks are marked dirty. This is probably not your issue, because a properly written calc wouldn't slow down much for this reason. I had to mention it though because I have seen an installation where their calc was 'Calc All' and they used intelligent calc to create the scope of the calc. (bad, very bad)
    2. Do you perform DB restructures? (either explicity by Restructuring or by exporting level 0, clearing and import level 0 then agg) If this is not done on a regular basis (regular depends on the usage of the cube) then you could be experiencing fragmentation, which increases the size of the database, increasing run times.
    3. Have you just added another fiscal year to the database? More data means bigger database.
    RAM upgrade on the EAS server shouldn't affect calc times (unless essbase services are also running on the EAS server, then there might be something to it).
    Most of these (and other) issues can be mitigated by applying proper scope to your calcs (Fix statements).
    What environment are you running in? Windows or Unix?
    New application?
    What kind of time increases are we talking about here?
    Robert

  • Securely deploying and using credentials within a script (not running the script under the credentials)

    Here is my scenario - I have SCOM 2007 R2 and on certain agents I want to execute a script. One of the actions of that script is to access a secured web page using a username and password via integrated authentication (IE pop-up for auth).
    The username and password that I need to use are unrelated to the Windows domain that the servers run in, meaning you can think of the website as if it were a public site (it isn't, but it has no security sharing with the domain where the agents run - no trust,
    no nothing).
    I can easily accomplish this by hard-coding the username and password within the script (powershell), however, I don't want to do this for security reasons. Here's a rough example of the relevant code:
    $targetURL = "https://somehost.somewhere.something/filename.zip"
    $path = "c:\downloads\filname.zip"
    $wclient = New-Object System.Net.WebClient
    $wclient.Credentials = New-Object System.Net.Networkcredential($uname, $pword)
    $wclient.DownloadFile( $url, $path )
    What I want is a way to pass the $uname and $pword variables to this script securely, with the script running on a schedule under SCOM. The SCOM agents run as localsystem and need to remain that way.
    I currently use Run-As accounts and profiles for other functions where the entire script runs under the run-as profile, but I can't figure out how to extract the username and passwords, and doubt it's even possible.
    To be clear, I cannot run the script under the given credentials as a Run-As account as those credentials are not known to the local server. I need to somehow pass the credentials to the script (other than hardcoding) or extract them from the run-as accounts.
    I've looked at the get-runasaccount cmdlet and can see some of the info there, but don't see a way to re-use, pass-through, or extract the password for use in my scenario.
    Any guidance? Can I get there from here?

    Hi, check this
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/ebfc706d-93be-4ca0-83e0-33d9e072fb97/powershell-script-monitor-with-encrypted-password?forum=operationsmanagerauthoring
    But you should not specify runas account for your workflow, just reference Runas Username and Password from Profile and use simple authentication. (The same way as in article above)
    So in the end your script will be executed by default action account but you'll pass username and password securely to your script.

  • Stop calc script when it retrieves in excel

    Hello All,
    I have a strange error. I run a calc script and can see the processing looking at task manager in Windows. However, when I retrieves this database, the calc script stop to run. Does Somebody know what happen? I could realize the database is with locked status. Is there any parameters to avoid it?
    I am using:
    Essbase Server 9.3.1.3
    Essbase Client 9.3.1.3
    Excel 2000
    Regards and thanks advanced,
    Wallace Galvão
    São Paulo - Brazil

    when you say stops to run, do you mean the calc script ends or that it stalls and is not calculating anything else? If it is the latter, then prehaps when you retireive, you have turned in update mode in your options which locks the cells until you are done. You could check this by going into EAS/AAS and checking for locks (not locked objects). If you lock the cells the Calc has to wait for them to be unlocked to allow it to continue.
    If you mean the calc script ends, I can't answer as I've never seen that before

  • How to create a one click apple script to run sudo rm -rf in terminal

    Hey Everyone
    I have sensitive information on my computer, quite paranoid and would love to have a one click script to run sudo rm -rf in terminal.
    I'm quite new to scripts and all that, can someone please explain how to do this as a noob?
    would love if I didn't need to enter the password to authorise the wipe.
    also is there anything more effective as sudo rm -rf?
    and can sudo rm -rf be undone? like can some traces be brought back from the drive if your like a super pro at hard drive data recovery?

    Welcome to Apple Support Communities
    That's not the way to delete everything from the hard drive, because your files can still be recoverable after running that command with special apps.
    Instead, if you want to make sure that your data cannot be recovered, start up in OS X Recovery (hold Command and R keys while your Mac is starting up), open Disk Utility and erase your OS X partition by choosing one of the security options you can use to erase your files. See > http://pondini.org/OSX/DU2.html
    A better option would be to put that sensitive data onto an encrypted external drive

  • Slow script when run as an application

    I have created a script for processing images with Photoshop. When I run the script from Script Editor it completes its task literally twice as fast as when I run it as an application. Does any one have an explanation as to why this would be the case?
    The script in summary asks the user for 2 folders, it then pairs up images from the folders, opens them both in Photoshop, copies the paths from one image to the other, crops the image and saves a copy in the appropriate place, then moves on to the next pair of images.
    I don't understand why it woud run twice as sluggishly as an application?
    Any suggestions much appreciated.

    Rien,
    I have also consistently seen the same problem, and asked a similar question a couple of years ago without a satisfactory response. If you write an AppleScript studio application your script will run at about the same speed as when running the script from script editor.
    To observe the problem you just need an application script that is communicating information back and forth betweent the script and the application it is driving, and then check out the performance difference between running it as an application or not. If you run Activity Monitor you can see that the cpu spends plenty of its time idle when running the script as an application.
    If you grab a copy of iMagine Photo from:
    http://www.yvs.eu.com/downloads/iMaginePhoto.dmg
    and get PhotoScript1 from about 1/2 down the following page:
    http://www.yvs.eu.com/documentation/readingandwritin.html
    Run the script from both within script editor and as the application droplet.
    It demonstrates the problem. But I have seen worse, this was just the first script on my website that I found that demonstrates the problem.
    Kevin

  • How do I turn on the keyboard backlight when running Win 7 in Bootcamp 4.0?

    Power Plan 2.5e does not find a Bootcamp process, so doesn't think I'm running it, and is no help. The backlight works perfectly in Mountain Lion, but I can't getit to come on at all when running Win 7. What am I missing?

    Well the problem is most certainly having 2 versions Why on earth would you
    do that ?
    You'll have to remove both and reinstall version 4, although at this point
    you probably should upgrade.
    Please note: I read this Forum through e-mail. If you respond to me; please
    quote, otherwise I have no idea whom your response is addressed to or the
    context. This is all thanks to how this forum doesn't work properly, yet.
    Regards,
    S.D.A. (Stephen)

  • How to turn off mouse (or touchpad) scrolling when running vim in an xterm?

    Just updated 13" macbook pro (mid-2010) from Snow Leopard (10.6.8) to Yosemite (10.10.1).  Previously, when running vim in an xterm, scrolling with the touchpad did nothing inside vim, it just scrolled the xterm history back so I could see what I had done before executing vim.  Now, the same scrolling action (either with touchpad or with an external mouse with scrollwheel) moves the cursor position inside vim (if I'm in navigate mode).  I want to turn this feature off.  I'm sure some people like it but I do not.  Anyone know whether this is something to be blocked by vim settings, or perhaps something in the xterm settings I need to change?  Vim version is 7.3 (2010 Aug 15), which must be a slightly later version than I had under the original operating system, since I got it July 2010. 
    I've tried modifying various vim settings, but to no effect.  I haven't found a comprehensive list of such settings to try systematically. 

    While I do not have Yosemite up and running at the moment, I cannot actually play with Yosemite Terminal.app.  But you should at least look through the various Terminal -> Preferences to see if there is any configuration option that is telling the Terminal how to treat scroll operations.  And try things like changing the "Declare terminal as: ............." setting, as that may affect the Terminfo database entry, which Vim uses to decide on what it does with various keyboard escape keys for input as well as displaying output (not sure if that would affect scrolling input, but it is worth a shot).
    Instead of using X11 and xterm, consider giving iTerm a try.  I have been using as my terminal emulator for years, and at work I live in terminal sessions, ssh'ed into various Linux, Solaris, AIX platforms.
    <http://iterm2.com>  A newer version
    <http://iterm.sourceforge.net> an older but still viable version (I used this on my Snow Leopard 10.6.8 system)
    iTerm will give you Tabbed windows just like Terminal (actually had Tabbed windows years before Terminal.app).  It will allow you to define what a double-click selection thinks is a word.  It has an option to automatically load anything selected into the copy/paste buffer.
    NOTE:  I have nothing against X11 and xterm.  I also use X11 (XQuartz) all day as well as terminal sessions, with various Linux, Solaris, AIX X11 displays being sent back to my iMac at work, frequently using gvimdiff.

Maybe you are looking for

  • How do I get Safari to save MP3 website shows to my disk?

    One of the main reasons I use the internet is to download talk shows via my browser and listen to them later at my convenience. No problem ever doing this on Firefox, I simply SAVE AS when the show begins and save it wherever I like on my disk. Safar

  • Automatic Cost Element Creation

    I understand how to set the ranges OKB2 and run the batch job based on OKB3 to generate the cost elements based on the ranges but does having OKB2 configuration in place automatically setup cost elements for any new individual GL accounts that are cr

  • Oracle XE storage limit.

    Hi, i developed one schema with 2 tables, the tables have a maximum row size of 330 bytes and the second table has a maximum row size of 92 bytes. If divided for 4.294.967.296 bytes (4GB) bytes for to the maximum size of tables , get 11,59 MB(13.015.

  • ADF Tree table is not exapanding

    Hi all, I have to implement an ADF tree table along with a form. I have three Views, two of the views are used to populate the Tree table, And one of the view used in the Tree population is used to manipualte the form, And the third one is to populat

  • Caching read-only data in a weblogic cluster: Need Help

    Hello, I'm working on the development of a web site that will be based on a weblogic cluster spread across several weblogic instances running on several unix boxes. To avoid frequent hits to the database, I would like hold a huge amount of data in th