Custom calculation of LOAD FDQM script - adapter ESSBASE

Hello world

I am trying to modify the Essbase adapter default LOAD script, I entered the year to avoid the deletion of the data for all months of the year. Now I want to add another dimension, a custom8 (UD8) in the script in order to avoide compensation all data in custom8 ESSBASE dimension.i want just to filter the data on compensation for the value in the dimension custom8.

This is the part to LOAD a script that I modified to add the year:

If strEntity <>strCurEnt or bolFirstLine = RES. So FDMTrue

If Len (strCurEnt) > 0 Then

strTYear = API. . StrTargetYear of POVMgr.fPeriodKey (strPer (0))

' * CALC SCRIPT *.

' NOTE: CALC SCRIPT CAN BE MODIFIED FOR EACH CLIENT

"This script was changed to also include the year.

' Clear the intersection of (year, category, period, entity).

(strClear = «Difficulté ("") "& strTYear &" "" "," "" "& strTCat &" "" ", @Idescendants (" "" & strCurEnt & "" ")) ' & +" \n "

strClear = strClear & "CLEARDATA" "" "& strTPer (0) &" "";"& vbcrlf".

strClear = strClear & "EndFix".

'***************************************************************************

What should I add to increase the intersection to custom8 dimension?

Regars,

Savo

Ok

If you still have the same value, your solution is even easier.

You need the performance to VR0 at the beginning of the CORRECTION or the end.

Give it a try and let us know.

strCust8 = "VR0.

' * CALC SCRIPT *.

' NOTE: CALC SCRIPT CAN BE MODIFIED FOR EACH CLIENT

"This script was changed to also include the year.

' Clear the intersection of (year, category, period, entity).

(strClear = «Difficulté ("") "& strCust8 &" "" "," "" "& strTYear &" "" "," "" "& strTCat &" "" ", @Idescendants (" "" & strCurEnt & "" ")) ' & +" \n "

strClear = strClear & "CLEARDATA" "" "& strTPer (0) &"""; ' & + "\n"

strClear = strClear & "EndFix".

'***************************************************************************

Tags: Business Intelligence

Similar Questions

  • Import the custom calculation Script

    I have a purchase order General Im is about to build. I have a lot of subtotal fields needing a custom on them calculation script.

    Is it possible to load a script (XML / import data) in all my fields desired with the appropriate script?

    Or is there little javascript that allows to calculate per line?

    Sample:

    https://DL.dropboxusercontent.com/u/2944617/sample.PDF

    CAL script:

    Event.Value = (this.getField("__PRICE-01__").value * this.getField("__QTY-01__").value);

    If (+ event.value = 0) event.value = "";

    You can use a script to set calculation script custom field, like this:

    this.getField("FieldName").setAction ("calculate", "code as string");

  • Is it possible to convert excel function if (and a custom calculation script

    Our field staff use many Excel files for project documentation.  Our organization moves for iPad instead of laptops and we found that a PDF file to be filled on-line is a great resource for our staff.  I have created several of these forms that contain multiple lines and I just starting to learn how to write custom calculation scripts.  I have a more complex than most calculation and I don't know if this can be written in script.

    = IF (I6 < 0.7, G6 * 0.8, IF (AND (I6 > = 0.7, I6 < 0.8), G6 * 0.85, IF (AND (I6 > = 0.8, I6 < 0,9), G6 * 0.9, IF (AND (I6 > = 0.9, I6 < = 1,1), G6 * 1, IF (AND (I6 > 1.1, I6 < = 1,2), G6 * 1.1, IF (AND (I6 > 1.2, I6 < = 1.3), G6 * 1.15, of"extra work"))))))

    I6 is OverdepthRow1

    G6 is WithDowelsRow1

    I think I understand how to get started

    var v1 = get.thisField("OverdepthRow1").value;

    var v2 = get.thisField("WithDowelsRow1").value;

    if(v1<0.7) {}

    var result = v2 * 0.8

    Event.Value = result}

    ElseIf (v1 > = 0, 7 - now I don't know what to do!)

    I hope that I used the correct brackets and braces in the right places.

    I appreciate your help and your advice.

    Thank you

    Rhonda

    I'm sorry, I made a mistake with the first two lines. I have corrected a problem but introduced another. They must be:

    var v1 = + getField("OverdepthRow1").value;

    var v2 = + getField("WithDowelsRow1").value;

  • If/Then converted to a custom calculation Script

    Can someone help me convert = IF (A2 - A1 > 0, 0, A1 - A2) in a customized for use in an Adobe form calculation Script?

    Thank you!

    If A1 and A2 are field names, then the custom calculation script might look like:

    (function () {}

    Get the field values as numbers

    var A1 = + getField("A1").value;

    var A2 = + getField("A2").value;

    Set the value of this field

    Event.Value = A2 - A1 > 0? 0: A2 - A1;

    })();

  • Convert the IF function in the custom calculation Script

    Can someone help me with 'IF(Line7<Line8) Line7, framework8' conversion in a custom calculation Script?

    var L7 = Number(this.getField("Line7").value);
    var L8 = Number(this.getField("Line8").value);
    event.value = (L7		   
  • Custom calculation script

    Hello

    I have some problems eiditing my custom calculation scripts.

    at present, there are: ColorField ('IncubatorLow', ValidateMinMax ('IncubatorLow', 400, 1000) & & ValidateOrder ('IncubatorLow', 'IncubatorHigh'));

    I want to change it

    If (event.value > = 400 & & event.value < = 1000) event.target.textColor = color.black;

    Else if (event.value > 1001) event.target.textColor = ["RGB", 0.5, 1, 0];

    Else if (event.value < 399) event.target.textColor = ["RGB", 0.5, 1, 0];

    But whenever I save my pdf file, it keeps the old one? Although even I tried to delete, lock and so on?

    Under java script, I can't know what is may be the course?

    Any ideas? Thanks in advance!

    Found under Java Script: ColorField runs by Custom Caluclations a string. But if I do one for example a new java script for CustomColors - and change of ColorFields to CustomColors.
    And then save the pdf file, it always uses the Colorfield?

    Just solved the problem.

    The form field name: IncubatorLow - IncubatorHigh - now, I just called them: IncubatorLowColor - IncubatorHighColor, then change the java script for validationminmax and change the colors for my 'java script' CustomColors.
    Can register with it back to the original script.

    I do not understand why change the field can solve it, but it has

  • Custom calculation script % help

    What is the custom calculation script to arrive at a percentage of penetration between two fields? Example: 50 / 100 = 50%

    The simple notation of field: field 1 / field 2

    Custom script:

    var v1 = + this.getField ("Field 1") .value;

    var v2 = + this.getField ("Field 2") .value;

    If (v2 == 0) event.value = "";

    else event.value = (v1 / v2);

  • Need help custom calculation Script

    I need to make a script are a column of fields based on or no information found in another column of fields is the same or specific text. Please find below the screenshot of what I would like that to be done.

    I would like a sum of all the amounts that had Code A...

    You can use this script as of 'SumOfA ': custom calculation script

    var total = 0;
    for (var i=0; i<=2; i++) {
        if (this.getField("p1TC."+i).value=="Code A")
            total+=Number(this.getField("p1RecIn."+i).value);
    }
    event.value = total;
    

    You can adjust easily to the other field as well.

  • Character limit to the custom calculation Script?

    Hello. I have a document that has a text form field. I want to run a custom calculation script which basically says if field 'Number group' = xxxxxxx, so the 'Group name' field should = ABC company.

    I have a list of almost 575 group numbers and names that I need to put in the script. And I have the script works fine, but I'm guessing that there is a limit of characters for the field script? It doesn't let me put my complete list in there.

    Any suggestions on how to work around this problem?

    Thank you

    Brandy

    Yes, there is a character limit for internal JS Editor. The round it is to use an external, such as Notepad.

    Do go to Edit - Preferences - JavaScript and select "Use the external JavaScript editor" and then select the application you want to use.

    Don't forget, however, that you must close the external file each time that change you it if you want to update in the PDF file.

  • Run the script FDM Essbase, no .bat files

    I want to run a script directly from FDM Essbase without needing to use a .bat file.
    I went to hollow post where calls MaxL scripts are discussed, but I have not found anywhere, there is a solution for sending a script to essbase.

    I have problems connecting to essbase using already existing and subsequently adapter configurations send an essbase script to the server. This is done for example in the Load event - where the essbase data are disabled. I would need assistance on how to implement this kind of soluition in the event script for example BefImport.

    Hi Nicklas,

    A couple of things to note.

    You must pass a 1 as the first parameter to use a file as a calculation script. Note that a calculation .csc script example files that are in your database and it's called AggMonth.csc you would spend in:
    Set objHWRerurn = API. IntBlockMgr.IntegrationMgr.PobjIntegrate.varCon.DataManipulation.fCalculate(1,"AggMonth")

    If you use 2 as the parameter to the fCaculate function, which means that the calculation script is a string, you can search for 'Essbase calculation chain' in the adapter to see how it works.

    If you really want to use a .maxl script and not an Essbase calc script you do not use the fCaculate function and will shout to essmsh.exe with parameters that does not use FDM adapter functions.

    PS You can also configure features of validation in FDM and assign scripts to those and then tell FDM you use 'file '. For the planning/essbase, it makes more sense to have just a script probably the method you follow.

    Kind regards

    John A. Booth
    http://www.metavero.com

    Published by: Jbooth on March 18, 2011 09:25

  • Help with a custom calculation for rounding up/down in Adobe Pro

    Hello!  I've never written a custom calculation, so I'm lost; could someone help me please write one round to high-low a.50/.49 with this field name:

    CreditedTotalLocal + OtherHE

    For example, if the value of this field, which is the result of the function "value is the sum of the (+) of the following fields" on two fields named CreditedXXXXLocalHE and CreditedOtherHE - between 3.0 and 3.49, this field should be 3.0.  If the value is 3.50 to 3.99, the field should show 4.0.

    I'm sure it's very simple, but I've tried some things from this and other forums without success.  Help, please!

    Thanks in advance,

    Kim

    Instead of using the "field is the sum of the following fields:" or him simplified "Field Notation" you need a custom as a calculation script

    function myRound (n, d)
    {
    / * By d. P. story
    http://Math.uakron.edu/~dpstory/acrotex/elementary/rounding.PDF
    */
    n = String(n).replace(/^,$/g,""); "
    d =-1 * d
    var m = Math.pow(10,d);
    n * = m;
    n = Math.round (n);
    n / m =;
    d = ( d > 0 ) ? d: 0;
    n = n.toFixed (d);
    return n;
    }

    var nResult = this.getField("CreditedXXXXLocalHE").value + this.getField("CreditedOtherHE").value;
    Event.Value = myRound (nResult, 0);

    or

    function DoubleRound (nValue, nDec)
    {
    var nResult = Math.round (value * Math.pow (10, nDec + 1)) / Math.pow (10, nDec + 1);
    return Math.round (nResult * Math.pow (10, nDec)) / Math.pow (10, nDec);
    }

    var nResult = this.getField("CreditedXXXXLocalHE").value + this.getField("CreditedOtherHE").value;
    Event.Value = DoubleRound (nResult, 0);

    The above two functions to round the values decimal, myRound use - Dec for the decimal value to be rounded so that the DobuleRound use the positive value for the decimal number or powers of 10 as the 1,000 with the 3 myRound and -3 for DoubleRound.

  • Method of load FDQM classic

    Hi everzbody,

    I was wandering if someone could help me with the following number:

    Is it possible to define the Load method by location by default. For example, I have 2 sites for the first, when I go to the export screen I want pop window to display the default Load = method replace. For the second location when I arrived to the export screen I want pop window to display the default method Load = merge.

    is it possible to configure classic FDQM in this way?

    Kind regards

    Savo

    Yes it is possible but requires an extra copy of the HFM target system adapter to create. In the integration of the adapter settings, there are the option of the Load method which sets the default action of load for the adapter. By default, it is replaced, but can be changed to any of the other methods of load that is merge. So simply duplicate your original map of the load method change to merge and associate this adapter with your location 2

    Rgds,

    SH

  • Custom calculation - multiple if statements

    Hi guys

    I'm stuck with a simple If statement. New to JavaScript.

    I have a text field, drop-down "Gender" field "field" and the text field 'risk '.

    In the 'risk' text field, I need to have a custom calculation script to know if 'Male' > = 45 or female > = 55, risk + 1.

    I currently have the use of this:

    Event.Value = "";

    var a = + this.getField ("Age") .value

    var b = this.getField ("Gender") .value +


    If (a > = 45 & & b = "Male") event. Value = '+ 1'

    ElseIf (a< = 45 & & b = "Male") event. Value = '0'

    If (a > = 55 & & b = 'Female') event. Value = '+ 1'

    ElseIf (a< = 55 & & b = 'Female') event. Value = '0'

    Any help will be appreciated.

    I notice another error. You are attempting to convert the value of sex together with the sign, even if it is not. This generates an error and prevents your working code.

    Here is the fixed code:


    var a = +this.getField("Age").value;
    var b = this.getField("Gender").value;
    
    if (a>=45 && b=="Male") event.Value = "+1";
    else if (a<=45 && b=="Male") event.Value = "0";
    else if (a>=55 && b=="Female") event.Value = "+1";
    else if (a<=55 && b=="Female") event.Value = "0";
    else event.value = "";
    


  • Help custom calculation

    I need help to write a custom calculation.  That's what I need: I have four boxes (Tone4, Tone1, Tone3, Tone2).  Each box is worth its value (ie. If Tone4 is activated, it should give me 4 points).  How can I write a script that will give me the right value for the checkboxs?

    Tone2 Tone1 ToneScore Tone3 Tone4

    x                                                            4

    or

    Tone2 Tone1 ToneScore Tone3 Tone4

    x                                             3

    or

    Tone2 Tone1 ToneScore Tone3 Tone4

    x                               2

    or

    Tone2 Tone1 ToneScore Tone3 Tone4

    x               1

    or

    Tone2 Tone1 ToneScore Tone3 Tone4

    0

    Why these boxes are named differently? If they are part of an exclusive group (that is to say, you should not check more than one at a time) then they should have the same name but different export values. Then, you can simply set the desired values as the values of export for each box and use this code as the custom calculation of ToneScore script:

    Event.Value = this.getField("Tone").value;

    If (event.value is "Off") event.value = 0;

  • Executing Script clear Essbase through FDM event scripts

    Hello

    Is it possible to access and run the script clear essbase through event FDM scripts? I know, a method is to modify the action of the load, but was wondering if can be done otherwise.

    Thanks in advance.

    The Essbase client is installed on the application server in FDM, then Yes. You can create a batch file that calls a calc via Essbase Client script and run it your script of the event

Maybe you are looking for

  • Skype no longer works on appeal

    Hello I have Skype 7.11 and everything works well until last night. I was on call and all of a sudden, a dialog box pop up indicating that Skype has stopped working. I have uninstalled and reinstalled my Skype and persists the issue. Any advice or he

  • Is Tecra M5 - possible to install another OS on select slim HDD bay

    Is it possible to install another OS on slim select bay HARD drive (apart from the one which lies on native HARD disk). I intend to add a Bay slim HARD drive to my Tecra M5.

  • Install Windows 8 on HP TS IQ506T

    Hello Has anyone tried to install Windows 8 on HP TouchSmart IQ506t? I bought this all-in-one PC in 2008 and it still runs 64-bit Vista (yuck!). I'm debating between Windows 7 and Windows 8. Who would you recommend? Thank you

  • Just restarted my desktop XP computer and have to pan [drag to edge] to see it all.

    How this happen - I've changed nothing--same used flat screen monitor. Monitor is set at its resolution [native] max. I tried to lower the screen settings, but problem still exists and desktop bar on the right does not reach the bottom and bottom tas

  • ISA550 passthrough/licenses

    Hello world I am compairing PfSense with the ISA550 and the ISA570. I am a newbie in cisco (my apologies) products. I have a few questions about this comparison: (a) not the passthrough of MAC support ISA? (b) what I have to buy the "CON-SBS-SVC2" -