Need calc script help....

i have a cube which used to take more than 2 hrs to refresh (mbr + data load + calc time)
A dim name Version used to be as DENSE earlier and i changed it to Sparse..
no it takes less than an hour to build...
but one of the calc script is not working completely....
in that calc script there are some IF conditions where i check for the current month and for each month i do different calculations
but now i dont know why ...the calc is going to the JAN calc part even though the curr mnth is NOV in my cube...
Can anyone help me with this issue???

fix(Entityx)
fix(("Fcst"))
fix(geo)      
"FTE Amount"(
IF(@UDA("Period","CurrMth") == "Mar" or @UDA("Period","CurrMth") == "Apr" or @UDA("Period","CurrMth") == "May")
"Jan"->"FTE Amount" = 10;
Feb"->"FTE Amount" = 10;
so on till dec.
elseif(@UDA("Period","CurrMth") == "Jun" or @UDA("Period","CurrMth") == "Jul" or @UDA("Period","CurrMth") == "Aug" )
"Jan"->"FTE Amount" = 20;
Feb"->"FTE Amount" = 20;
so on till dec.
elseif( @UDA("Period","CurrMth") == "Jan") or ( @UDA("Period","CurrMth") == "Feb") )
"Jan"->"FTE Amount" = 30;
Feb"->"FTE Amount" = 30;
so on till dec.
elseif( @UDA("Period","CurrMth") == "Sep" or @UDA("Period","CurrMth") == "Oct" or @UDA("Period","CurrMth") == "Nov")
"Jan"->"FTE Amount" = 40;
Feb"->"FTE Amount" = 40;
so on till dec.
elseif( @UDA("Period","CurrMth") == "Dec" )
"Jan"->"FTE Amount" = 50;
Feb"->"FTE Amount" = 50;
so on till dec.                    
endif;)               
endfix;
endfix;
endfix;
my currmnt is NOV....but i get values as 10 which should be the case when currmnt is mar or apr or may...
i even checked by individual IF's like IF(mar) do this....if(apr)....do this...
then its going to MAR... i dont know why..
CAn u help ??

Similar Messages

  • CALC SCRIPT - HELP PLEASE!!! URGENT

    I am trying to write a Calc Script for the Outline below -
    AP_Related
    Trade_AP +
    2200 + (Alias – A/P Trade related Party)
    2210 + (Alias – A/P Trade I/P)
    2215 +
    AP_Corporate +
    2240 + (Alias – Brazil Fees)
    2250 + (Alias – Corporate Chargebacks)
    2260 + (Alias – Service Fees)
    2270 + (Alias – Fusion Fees)
    2280 + (Alias – Tech Fees)
    AP_Corp_IP + (UDA – Input_Accs)
    I want to put the values in 2240 and 2250 into AP_Corporate and the values of 2260,2270 and 2280 into 2210.
    I am trying to add the code to the existing code.
    /*Fix on members to copy Actual data to Forecast - */
    FIX(&ActMonthEnd,&ForecastYear,"Final",@RELATIVE("Product Groups",0),@RELATIVE("Departments",0),
    @RELATIVE("ICP",0),@RELATIVE("TOT_USG",0),@RELATIVE("Accounts",0))
    "Actual"(
    @CALCMODE(bottomup);
    IF(@ISUDA("Accounts","INPUT_ACCS"))
    "Basic"->"Forecast"->&ForecastYear=@SUM(@REMOVE(@RELATIVE(@PARENT(@CURRMBR("Accounts")),0),
    @REMOVE(@RELATIVE(@PARENT(@CURRMBR("Accounts")),0),
    @UDA("Accounts","SUMMED_ACCS"))))-@CURRMBR("Accounts");
         IF(@ISMBR("Tot_I/P_Mat_Costs_Roll Prod_INP"))
              "Basic"->"Forecast"->&ForecastYear->"Tot_I/P_Mat_Costs_Roll Prod_INP"=#Missing;
         ENDIF
         IF(@ISMBR("Metal_Costs_3rd_Party_INP"))
              "Basic"->"Forecast"->&ForecastYear->"Metal_Costs_3rd_Party_INP"=#Missing;
         ENDIF
         ELSEIF(@ISMBR("Oth_Exp_Misc_Inp"))
              "Basic"->"Forecast"->&ForecastYear->"Oth_Exp_Misc_Inp"="40110100"+"40079000"-"30100200";
         ELSEIF(@ISMBR("TOT_ALLOW_INP"))
              "Basic"->"Forecast"->&ForecastYear->"TOT_ALLOW_INP"="12005000"+"12005100";
    Edited by: user11300497 on Jun 24, 2009 12:00 PM

    Thanks for the response,but the Original script I sent is based on UDA's.I am sending the script and the modified Outline with the UDA's.Any help is greatly appreciated.
    The members are from Account dimension.
    AP_Related
    Trade_AP +
    2200 + (Alias – A/P Trade related Party)
    2210 + (Alias – A/P Trade I/P)
    2215 +
    AP_Corporate +
    2240 + (Alias – Brazil Fees) (UDA's:Summed_ACS)
    2250 + (Alias – Corporate Chargebacks)(UDA's:Summed_ACS)
    2260 + (Alias – Service Fees)(UDA's:Summed_ACS)
    2270 + (Alias – Fusion Fees)(UDA's:Summed_ACS)
    2280 + (Alias – Tech Fees)(UDA's:Summed_ACS)
    AP_Corp_IP + (UDA – Input_Accs)
    /* Purpose to copy a single month of actuals to the working forecast replacing a month of forecast.
    Run monthly to update the current Forecast */
    /* Assumptions.
    The substitution variables for
    ActMonthEnd = Is set to the month containing the Actuals to be copied.
    ActualYear = Is set to the year containing the Actuals to be copied.
    ForecastYear = Is set to the Current Forecast year value.
    ForecastVersion = Is set to the appropiate archive Forecast version.
    All input accounts have a UDA of "INPUT_ACCS" and not the UDA "SUMMED_ACCS"
    A parent has only one account with the "INPUT_ACCS" UDA amoung its children
    All siblings of the "INPUT_ACCS" member that are to be summed into the input account have a UDA of "SUMMED_ACCS"
    FIX("LC")
    FIX(&ActMonthEnd,&ForecastYear,"Basic",@IDESCENDANTS ("TOT_USG"),
    @REMOVE (@IDESCENDANTS("Accounts"),
    @LIST(
    "30000000",@SHARE("30000000"),
    "30003300",@SHARE("30003300"),
    "30020400",@SHARE("30020400"),
    "30020500",@SHARE("30020500"),
    "30010200",@SHARE("30010200"),
    "30010400",@SHARE("30010400"),
    "41002200",@SHARE("41002200"),
    "41002300",@SHARE("41002300"),
    "74001000",@SHARE("74001000"),
    "41000100",@SHARE("41000100"),
    "41001400",@SHARE("41001400"),
    "53000000",@SHARE("53000000"),
    "59000000",@SHARE("59000000"),
    "IP_Ship",@SHARE("IP_Ship"),
    "IP Tolling Ship",@SHARE("IP Tolling Ship"),
    "IP_NonAlum_Ship",@SHARE("IP_NonAlum_Ship"),
    "3rd_Party_Ship",@SHARE("3rd_Party_Ship"),
    "3rd party Tolling Ship",@SHARE("3rd party Tolling Ship"),
    "Margin - Full",@SHARE("Margin - Full"),
    "Margin - Tolling",@SHARE("Margin - Tolling"),
    "Discounts - Full - Value",@SHARE("Discounts - Full - Value"),
    "Discounts - Tolling - Value",@SHARE("Discounts - Tolling - Value"),
    "Base Metal Freight / Logistics - USD",@SHARE("Base Metal Freight / Logistics - USD"),
    "Flash Operating EBITDA",@SHARE("Flash Operating EBITDA"),
    "Flash Total Book Inventory",@SHARE("Flash Total Book Inventory"),
    "BMC / Tonne",@SHARE("BMC / Tonne"),
    "IP BMC / Tonne",@SHARE("IP BMC / Tonne"),
    "BMC_CPL",@SHARE("BMC_CPL"),
    "BMC_Cur",@SHARE("BMC_Cur"),
    "BMC_M0",@SHARE("BMC_M0"),
    "BMC_M1",@SHARE("BMC_M1"),
    "BMC_M2",@SHARE("BMC_M2"),
    "BMC_M3",@SHARE("BMC_M3"),
    "BMC_PQ",@SHARE("BMC_PQ"),
    "CPL Adjustment",@SHARE("CPL Adjustment")
         CLEARDATA "Forecast";
    ENDFIX
    /* copy in Actual Currency Rates for proper monthly converison
    FIX(&ActMonthEnd,&ForecastYear,"EOMRATE","Product_None","Dept_None","ICP_None",
    "Entity_None","Rate_EUR_USD","Rate_INR_USD","Rate_GBP_USD","Rate_KRW_USD","Rate_BRL_USD",
    "Rate_CHF_USD","Rate_CAD_USD","Rate_MYR_USD","Rate_SEK_USD")
    DATACOPY "Actual"->"Final" TO "Forecast"->"Basic";
    ENDFIX
    /*Fix on members to copy Actual data to Forecast - */
    FIX(&ActMonthEnd,&ForecastYear,"Final",@RELATIVE("Product Groups",0),@RELATIVE("Departments",0),
    @RELATIVE("ICP",0),@RELATIVE("TOT_USG",0),@RELATIVE("Accounts",0))
    "Actual"(
    @CALCMODE(bottomup);
    IF(@ISUDA("Accounts","INPUT_ACCS"))
    "Basic"->"Forecast"->&ForecastYear=@SUM(@REMOVE(@RELATIVE(@PARENT(@CURRMBR("Accounts")),0),
    @REMOVE(@RELATIVE(@PARENT(@CURRMBR("Accounts")),0),
    @UDA("Accounts","SUMMED_ACCS"))))-@CURRMBR("Accounts");
         IF(@ISMBR("Tot_I/P_Mat_Costs_Roll Prod_INP"))
              "Basic"->"Forecast"->&ForecastYear->"Tot_I/P_Mat_Costs_Roll Prod_INP"=#Missing;
         ENDIF
         IF(@ISMBR("Metal_Costs_3rd_Party_INP"))
              "Basic"->"Forecast"->&ForecastYear->"Metal_Costs_3rd_Party_INP"=#Missing;
         ENDIF
         ELSEIF(@ISMBR("Oth_Exp_Misc_Inp"))
              "Basic"->"Forecast"->&ForecastYear->"Oth_Exp_Misc_Inp"="40110100"+"40079000"-"30100200";
         ELSEIF(@ISMBR("TOT_ALLOW_INP"))
              "Basic"->"Forecast"->&ForecastYear->"TOT_ALLOW_INP"="12005000"+"12005100";
         ELSEIF(@ISMBR("Int_Exp_Third_Oth_INP"))
              "Basic"->"Forecast"->&ForecastYear->"Int_Exp_Third_Oth_INP"="40071200"+"40071300"+"40075530"+"40075540"+"40075550"+"40075570"+"40075580"+"40075590"+"40075610"-"30063200";
         ELSEIF(@ISMBR("Realized_Der_Metal_Inp"))
              "Basic"->"Forecast"->&ForecastYear=@sum(@RELATIVE(@PARENT(@CURRMBR("Accounts")),0))-@CURRMBR("Accounts")-
              (2*("30121240"));
         ELSEIF(@ISMBR("Unrealized_Der_Metal_Inp"))
              "Basic"->"Forecast"->&ForecastYear=@sum(@RELATIVE(@PARENT(@CURRMBR("Accounts")),0))-@CURRMBR("Accounts")-
              (2*("30131240"));
         ELSEIF(@ISMBR("TOT_EMP_INP"))
    "Basic"->"Forecast"->&ForecastYear=@SUM(@UDA("Accounts","EMP_ACCS"));

  • Need Table Script Help Please

    Is there a script to distribute table columns evenly between guides or margins? Here is the issue I am having. I have a big catalog and I need to take the price column out of every item but then i have to (shift-Drag) the table to get it to fill the space where the price column was.
    Thanks in advance for any help.

    Hello. Thank you for your reply. I don't think i asked me question clearly so for that I apologize but I have mage an image to illustrate what I am trying to do.
    1. This is that the table would look like before touching it
    2. This is the table after taking out the price column which is always the last column in all of the tables
    3. This is the table after evenly distributing the remaining column to fill the space where the price column was.
    I have a script that does step 2, now I just need one that will do step 3 if possible? Basically I have a script that deletes the last column in every table in a document but I need one to distribute the columns after taking out the price one.
    Thanks in advance for any help you can give me.

  • Need Action Script Help PLEEAASEE

    I have a project that and  is a prize wheel, here is my code for starting and stopping the wheel
    if (Key.isDown(Key.ENTER))
    speed=speed*.99;
    else if (Key.isDown(Key.RIGHT)){
        speed=5;
    else if (Key.isDown(Key.LEFT)){
        speed=0;
    this._visible=true;
    The right and left key functions work perfect but the enter key needs to be "held down" until the wheel slowly stops. I want to be able to just press the "Enter" key and the wheel will slowly (randomly)come to a halt. the problem code is in bold. any help would be great.

    Assuming you really mean you want to press and release the Enter key, what you need to do is have something else play the role of what the "if (Key.isDown(Key.ENTER))" line does for you in terms of repeatedly changing the speed value.  Something in the way of an onEnterFrame activity that gets intiated by the pressing of the Enter key, but just once... you need something to only allow it to intiate that enterFrame once...
    So somewhere outside that code you want to have a Boolean variable that is used when the Enter key is pressed which conditionally calls a function that initiates the enterframe activity and then sets that value to false to keep it from being called again.  That variable could be reset to true when the RIGHT key initiates a new go.  So pressing the Enter key sets that variable to true.  The code would follow along the lines of what I show below, but I cannot say it's polished stuff as shown... just the concept is attempted.  I don't know what other code you have involved in matters.
    var startSlowing = true;
    if (Key.isDown(Key.ENTER))
         if(startSlowing){
              slowItDown();
              startSlowing = false;
    else if (Key.isDown(Key.RIGHT)){
        speed=5;
        if(!startSlowing ){ // means it was restarted in mid-spin
              delete this.onEnterFrame;
          startSlowing = true;
    else if (Key.isDown(Key.LEFT)){
        speed=0;
        if(!startSlowing){
              delete this.onEnterFrame;
    function slowItDown(){
         this.onEnterFrame = function(){
              speed=speed*.99;
              if(speed < someLimit){
                   delete this.onEnterFrame;

  • Need Calc Script Desperately!

    I have no idea how to create these and have spent too much time searching online.  I need a calculation script for Text Field 33 x 50%...

    Place this code as the custom calculation script of the field in question:
    event.value = this.getField("Text Field 33").value * 0.5;

  • Need help in solving complex Calc Script

    Gurus
    I am working on a calc script which involves complex calculations. I got struck at the following. Please help me with your ideas...
    we have 4 dimensions and values for some of their members as follows.
    --------------------------------------------------------Dim3.mem1->Dim4-----------------Dim4.mem1->Dim3
    Dim1.mem1->Dim2.mem1-------------------------------0.6---------------------------------------100
    Dim1.mem1->Dim2.mem2-------------------------------0.6---------------------------------------200
    Dim1.mem1->Dim2.mem3-------------------------------0.6---------------------------------------300
    Dim1.mem1->Dim2.mem4------------------------------#MI---------------------------------------400
    Dim1.mem2->Dim2.mem1-------------------------------0.6---------------------------------------500
    Dim1.mem2->Dim2.mem2-------------------------------0.4 --------------------------------------600
    Dim1.mem2->Dim2.mem3-------------------------------0.4---------------------------------------700
    Now I want to add only particular values of the second column. For example all the values whose respective value in first column are equal.
    so here it is
    Value1=100+200+300+500(because 0.6 is common and different from 0.4/#MI)
    Value2=400(because #MI is common or different from 0.6/0.4)
    Value3=600+700 (because 0.4 is common and different from 0.6/#MI)
    Like this we have so many members in all the four dimensions.
    Thanks in advance.
    MP

    Gurus
    I am working on a calc script which involves complex calculations. I got struck at the following. Please help me with your ideas...
    we have 3 dimensions and values for some of their members as follows.
    -------------------------------------------------------------Dim3.mem1---------------------------Dim3.mem2
    Dim1.mem1->Dim2.mem1-------------------------------0.6---------------------------------------100
    Dim1.mem1->Dim2.mem2-------------------------------0.6---------------------------------------200
    Dim1.mem1->Dim2.mem3-------------------------------0.6---------------------------------------300
    Dim1.mem1->Dim2.mem4------------------------------#MI---------------------------------------400
    Dim1.mem2->Dim2.mem1-------------------------------0.6---------------------------------------500
    Dim1.mem2->Dim2.mem2-------------------------------0.4 --------------------------------------600
    Dim1.mem2->Dim2.mem3-------------------------------0.4---------------------------------------700
    Now I want to add only particular values of the second column. For example all the values whose respective value in first column are equal.
    so here it is
    Value1=100+200+300+500(because 0.6 is common and different from 0.4/#MI)
    Value2=400(because #MI is common or different from 0.6/0.4)
    Value3=600+700 (because 0.4 is common and different from 0.6/#MI)
    Like this we have so many members in all the four dimensions.
    Hope this one is clear..
    Thanks in advance.
    MP

  • Need a calc script

    for me data comes to a parent level .its just above the leaf members.
    now i need to push the same data which is at 1 level above to the leaf members to all the members under the parent.
    i am not able to find out a way to write a script to that...i am new to calc scripts.
    can anyone please help me out.

    i tried with alloc....
    FIX("entity")
    "F"= @ALLOCATE (entity->F,@CHILDREN ("entity"),"F" , ,subtract);
    ENDFIX
    initailly i have 0 at F i mean a->F ("a" is child of Entity) so my logic was....
    it takes value from entity->F and subtracts value from F which is 0 and sets it to F(a->f)
    so its just like giving the value of entity->f to entity's children.
    it worked fine.
    but the problem was when i did default calc first and then tried this formula its not working
    i did default calc first because i dont want the values from entity to roll up .
    i dont know why its working before default calc and not working after dafault calc.
    can anyone help me with this.??

  • Help with calc script to copy level 0 members

    can someone help me with the correct syntax<BR>to formulate a calc script to<BR>copy data from one time member to another<BR>if the Organization has 0 data?<BR><BR>outline looks like this.<BR>also, the whole outline is dynamic calcs<BR><BR>TIME <BR> JAN<BR> FEB<BR> MAR<BR><BR>ORGANIZATION<BR> ORG123<BR>     Team1 (Teams are level 0)<BR>     Team2<BR>     Team3<BR> ORG456 <BR>     Team4<BR>     Team5<BR>     Team6<BR>SCENARIO<BR> monthly.outlook<BR><BR>PRODUCT<BR>     <BR>This is a pseudo code for what I'm trying<BR><BR>FIX ("monthly.outlook")<BR> FIX ("FEB")<BR>     IF ORG123 = 0<BR>          FIX (on all level 0s within ORG123)<BR>          datacopy JAN > FEB<BR>          ENDFIX<BR> ENDIF<BR> ENDFIX<BR>ENDFIX<BR>

    I got my answer, and here it is in case anyone else can be helped by this.<BR><BR>FIX ("monthly.outlook")<BR>FEB<BR>(<BR> IF (@ISMBR("FEB"))<BR>      IF (@ISDESC ("ORG123") and (("ORG123" == #MISSING) or ("ORG123"== 0)))<BR> "FEB" = "JAN60";<BR> ENDIF<BR>ENDIF)<BR>ENDFIX

  • Help: Need  script help to delete hidden layers. Action errors using panel command.

    I am trying to make an action (that is using some scripts) that will delete hidden layers. When I try and action that in photoshop, the actions stops for an error if the file didn't have any hidden layers. I think I need to script it so it will delete the hidden layers, and keep going if there aen't any.
    I couldnt find anything in th ejavascript ref guide for doing this. ( I'm sure I was looking right at it, I am a noob).
    Thanks for any help you can give.

    Here is a script to will delete hidden layers but not throw an error is there are no hidden layers.
    try{
         var desc = new ActionDescriptor();
         var ref = new ActionReference();
         ref.putEnumerated( charIDToTypeID( "Lyr " ), charIDToTypeID( "Ordn" ), stringIDToTypeID( "hidden" ) );
         desc.putReference( charIDToTypeID( "null" ), ref );
         executeAction( charIDToTypeID( "Dlt " ), desc, DialogModes.NO );
    }catch(e){}
    Note you could also do this with just actions steps. Have the action add a layer then hide it before the delete hidden layers menu item step. That way there would always be at least one hidden layer and no error.

  • HELP! Need a script for renaming layers

    Hi-
    I've got an Illustrator CS6 document that has 500+ layers with individual words on them (a word cloud).  I'm needing to animate this in AE.  When I "Release to Layers (Sequence)", all of the layers become Layer 1, Layer 2, etc.  Is there a script that will rename all of those layers to be the text inside them? 
    i.e. Layer 1 has the word "Pencil" as a sub-layer, editable text.. I need to rename the Top-Layer Layer 1 to "Pencil".  I'm hoping there is a script that can do this so I don't have to manually rename all of the layers.
    I have found this script:
    var idoc = app.activeDocument;
    var ilayer = idoc.activeLayer;
    for (i=0; i<ilayer.layers.length; i++) {
        var isublayer = ilayer.layers[i];
        isublayer.name = isublayer.pageItems[0].name;
    But is doesn't seem to do what I need.
    Any help would be greatly appreciated!
    Thanks,
    -Mark

    Hi Carlos-
    Here is part of my layers pannel before Releasing to Layers:
    Here is part of my layers pannel after Releasing to Layers:
    So I want Layer 6 to be "Hideaway Backpack Straps" without having to rename it manually.
    Any help would be great!
    Thanks
    Mark

  • Help... Need a script for DVD@CCESS (DVDSP 4.0.3)

    Can anyone help me with a scripting question:
    I need a script that will allow me to search a windows pc for installed or missing DVD@CCESS, - promt for installation, and then install, - or pass on to play the DVD from first play. Obviously DVD@CCESS will be on the DVD in a directory ([email protected])
    Thank you....
    Verny

    Verny - welcome to the discussions.
    The person who I know has done this is Alex Alexzander. You can contact him over at http://www.editorsbin.com
    He is changing the site at the moment and may not have that particular tutorial online, but he definitely wrote it and created the scripts needed to get it working.

  • Serious, Pro level Illustrator Scripting help needed

    I need a pretty robust script and I am willing to pay for it. I am sorry if soliciting like that is a against forum rules, I will find out if my post gets, deleted/locked. I am just serious about this need for a script.
    I am not sure if this is possible in Illustrator, but I really hope so. I need a script that will read the information from the x,y position and width x height in the Transform Palette of any selected object (or objects would be even better), including all the the different reference point values, and then write discrete user selected info; based on a easy to use panel of check marks, radio buttons or whatever, to a text field a set number of pixel offset from the upper left corner of the object bounds.
    I would be happy to explain further if this is the correct place for this type of discussion.
    If this is not the right place, my humblest apologies but perhaps someone could turn me on to a better place?
    Thanks in advance for any help!

    This does not sound like a big task.
    Here is a script I use every day.
    displays the Width and Height below each selected Item or group.
    have a go and let me know if this is kinda what you are thinking.
    from there we can work out how you want everything displayed
    var doc = app.activeDocument;
    var sel = doc.selection;
    var TOmm = 2.83466796875;
    Dim(sel);
    function Dim(objs) {
        for (var i=objs.length-1;i>=0;i--) { // loop through your collection of objects
            var bounds = objs[i].visibleBounds; // Get visibal bounds, which are only visable bounds in some cases...
            var b1 = bounds[0] /TOmm;
            var b2 = bounds[1] /TOmm;
            var b3 = bounds[2] /TOmm;
            var b4 = bounds[3] /TOmm;
            var W = Math.abs(b3-b1).toFixed(1);
            var H = Math.abs(b4-b2).toFixed(1);
            var txt = doc.textFrames.add(); // Create the text frame
            txt.contents = "Size:  "+ H + " x " +W + " mm W";  // Adds contents to frame
            txt.position = [objs[i].left,objs[i].top - objs[i].height - 20]; // Positions the frame
    This example ignores clipping paths and measures everything, including what is clipped.

  • Need help - need a script

    Hi All,
    I have no knowledge of applescript and need something made to meet a deadline. I am a graphic artist for the national office of a non-profit with 400 agencies.
    I need a script to control adobe illustrator to make customized logo packages for all of the agencies. I have 5 base documents. There are multiple logos per document. The text is set as "aaa" that needs to be customized. I am doing a find and replace to insert the text. Each file also has a 'tagline' layer that gets turned off and saved that way also.(a PNG) One master file gets saved as an illustrator PDF.
    I need the script to ask me what the agency number is and also what the agency name is and make/name a new folder and then process the logos in illustrator saving the files in the new folder.
    They needed to be completed yesterday, but it takes me roughly 10 to 15 minutes to do one agency. I have no time to work on them during the day a all so I am pretty deserate. We have no budget for this, but I am willing to pay $50 or so out of my own pocket(sorry... recently had twins so I'm broke too)
    Please contact me at [email protected] if you could do this.

    Hi jasonschaeffer
    try here
    http://macfreelancer.com/
    Budgie

  • Ruined my contacts with Apple Script, need someone to help me modify the script to undo what I did!

    Hi all, so all my contacts started with "+1". The goal was to erase the "+" and just have all of them start with "1". However, I messed up royally. I ran the following script, which made all my contacts start with "1+1". :
    tell application "Contacts"
              repeat with eachPerson in people
                        repeat with eachNumber in phones of eachPerson
                                  set theNum to (get value of eachNumber)
                                  if (theNum starts with "1+") then
                                            set value of eachNumber to "1" & theNum
                                  end if
                        end repeat
              end repeat
    save
    end tell
    This is messed up in 2 ways. Firstly, I meant to write "+1" in the script, but instead I wrote "1+". Secondly, even if I had written "1+", it still wouldn't make sense, because I'd effectively be telling the program to just add "1" in front of what's already there, including the "+1".
    Could someone please tell me how to modify this script to say:
    If the contact starts with "1+1", then erase the "1+1". Then I would need another script to take all my numbers and add "1" in front of them.

    What you want to do is simply delete the first few characters from the phone number, yes?
    How about something like this:
                             repeat with eachNumber in phones of eachPerson
                                            set theNum to (get value of eachNumber) as string
                                            if (theNum starts with "1+1") then
                     set myFixedNum to (characters 3 thru -1) of theNum
                                            else if (theNum starts with "+1") then
                                                           set myFixedNum to (characters 2 thru -1) of theNum
                                            end if
                                            set value of eachNumber to (myFixedNum as string)
                              end repeat
    That will take you from 1+1 or +1 to 1 in one easy step.

  • @ATTRIBUTESVAL works properly in Calc script but not in Member Formula.

    We are using Essbase 11.1.2 –
    "Global_Period" is a Dynamic Calc Member. Below is its Member Formula:
    "ProjType " is an attribute (text) dimension.
    "Global_Period" ="ValidAccount";
    IF (@ISLEV ("Total_Expenses", 0) AND @ISMBR("HSP_InputValue") AND @ISLEV ("Version",0) AND
    @ISMBR("No_GL_Account") AND @ISLEV ("Scenario",0) AND @ISLEV ("Years",0) AND @ISMBR ("Local")
    AND @ISLEV("Tot_Org",0) AND NOT @ISIDesc ("Service_Division") AND @ISLEV("Tot_PRJ",0) )
    "Global_Period"->"No_GL_Account"-> @CURRMBR ("Projects") =
    1* "ValidAccount"->"Global_Version" ->"Global_Scenario"->&Budget_Year->"Global_Entity"->
    "No_GL_Account"->"HSP_InputValue"->"Local"->
    @MEMBER(@NAME(@CONCATENATE ("Proj_",@ATTRIBUTESVAL("ProjType"))));
    ENDIF
    The above Member- Formula is failed to work when opening a Data Form that contain "Global_Period".
    The error messages in the log file are as follow:
    [Thu Mar  1 16:55:39 2012]Local/Projects/Plan1/admin@Native Directory/1122748736/Error(1200370)
    Error executing formula for [Global_Period] (line 1): attempt to cross a null member in function [@X]
    [Thu Mar  1 16:55:39 2012]Local/Projects/Plan1/admin@Native Directory/1122748736/Error(1200370)
    Error executing formula for [Global_Period] (line 0): attempt to cross a null member in function [@_VAL]
    When converting the "Global_Period" to be a Store member.
    The Calc Script below is exactly equivalent to the Formula, and run perfectly with no Errors.
    "Global_Period" ="ValidAccount";
    FIX ("HSP_InputValue", "Local","No_GL_Account", @RELATIVE ("Total_Expenses", 0),
    @RELATIVE ("Version",0), @RELATIVE("Scenario",0), @RELATIVE ("Years",0),
    @REMOVE (@RELATIVE ("Tot_Org",0),@IDESCENDANTS ("Service_Division")),
    @RELATIVE ("Tot_PRJ",0))
    SET CREATENONMISSINGBLK ON;
    "Global_Period"
    ("Global_Period"->"No_GL_Account" -> @CURRMBR ("Projects")=
    1* "ValidAccount"->"Global_Version" ->"Global_Scenario"->&Budget_Year->
    "Global_Entity"->"No_GL_Account"->"HSP_InputValue"->"Local"->
    @MEMBER(@NAME(@CONCATENATE ("Proj_",@ATTRIBUTESVAL("ProjType"))));
    SET CREATENONMISSINGBLK OFF;
    ENDFIX
    For many reasons we prefer to use the Dynamic Calc Formula for "Global_Period".
    As result of some checking I discover that the problem is with the function @ATTRIBUTESVAL,
    because the formula has worked fine when I replace the @ATTRIBUTESVAL with a string.
    Please help, what is the right way to write the formula in order to make it work.
    Thanks
    Tami Kedem

    Dear Cameron Lackpour,
    Thank you very much, for your reply.
    I'd given it a try, but it didn't help.
    The purpose of this formula is as follow:
    We holds 1's (ones) for allowable combinations of "Project_Type and Accounts", namely, each project type has different list of accounts that are allowed for input.
    I need to populate the input 1's to all projects (and their children) according to its "ProjType".
    The Data forms has periods in columns, thus by putting "Global_Period" (Hide) as the first column, and use "Suppress Missing rows" - for each project (on the "Page") , the form will show just the allowable Accounts in rows.
    (we have around 300 Accounts, 50,000 members in Project dimension and around 25 Types of projects).
    Please help.
    Thanks!
    Regards,
    Tami Kedem

Maybe you are looking for

  • Trouble with putting tv shows on ipod

    I downloaded 3 shows from itunes and they downloaded fine to itunes. I went to put it on my ipod and it is saying "Could not copy to ipod because you are not authorized to play this on your computer". Can anyone help me get the tv shows on my ipod?

  • Ack for Inbound messages

    Hello All, I already worked with acknowledgements of outbound messages(and processing them in orchestration in case of failure etc). But now I have a requirement to generate acknowledgements for inbound messages, like I need to generate a custom outb

  • Sudoku in J2ME

    Hi guys, I am trying to fix a problem wit a MIDlet I have... jus want to know a way of drawing fixed numbers onto the Sudoku grid using an Array...

  • Calling ActiveX function

    I am using an ActiveX function that has following format (in C++) HRESULT GetLuminanceImage([in] long aMax, [out,size_is(aMax)] float fBuffer[], [out, retval]short *sRet); How can I call this function in labview. I need to know how to define the parm

  • Download photos to memory stick

    I have plugged my memory stick into my mac mini but nothing is showing on my screen?