Help with Report Script please :(

Hi,
I'm trying to write a report script with a slight calculation and would really appreciate some help.
Ideally I want to create a report where I only get the Account and Value. I select all my members but I need a calculation on the Entity dimension. Here's what i am trying to achieve:
(All selected members for all Entities + All selected members for all Entities in group RIA-IFRS REPORTING ADJS. ) Yes I'm duplicating the members of group RI-IFRS REPORTING ADJS.
So account 100 for all Entities = 50
account 100 for all Entities in RI-IFRS REPORTING ADJS. = 25
I want to display account 100 grouped as 75 without showing a line for each entity.
This is what I have so far but it doesn't work right:
ROWREPEAT
SUPCOLHEADING
SUPCOMMAS
SUPHEADING
SUPBRACKETS
SUPEMPTYROWS
TABDELIMIT
MISSINGTEXT "#mi"
DECIMAL 2
NOINDENTGEN
<PAGE ( Years, Version, Currency, Scenario, InterCompany, "Entity", "Cost Center","Set of Books","Reporting")
"FY10" "Current" "Currency" "Actual" "InterCompany" "Entity" "Cost Center" "AB_CON_USD" "Reporting"
<ROW ("Account")
<LINK(<DESCENDANTS("Total Balance Sheet Accounts","Lev0,Account"))
{ CALCULATE ROW "Entity" = "Entity" + "RI-IFRS REPORTING ADJS."})
<COL (Period)
"Dec"
!

Dreamscapeuk wrote:
Hi Robert,  I wasn't getting any data, but I managed to figure that out.  Basically I created 2 columns with the values I needed and then added them up with a calc cloumn.  However I can't get my essbase substitution variables working.  So I created a substitution variable called CurrQtr  and set this to Quarter3.  In my script I'm using this @CurrQtr as  a period however it doesn't use it as it's just giving me the total for the Period dimension.  Any help?
Here's the script:
ROWREPEAT
SUPCOMMAS
SUPBRACKETS
SUPEMPTYROWS
TABDELIMIT
MISSINGTEXT ""
DECIMAL 2
NOINDENTGEN
<PAGE ( DataSrc, Years, Version, "P&L Type", Currency, Scenario, InterCompany, "Cost Center","Set of Books","Reporting")
     "DataSrc" "FY10" "Current" "No_Type" "USD" "Actual" "InterCompany" "Cost Center" "AB_CON_USD" "No_Cost_Type"
<COLUMN (Period)
          @CurrQtr
     WWL "RIA-IFRS REPORTING ADJS."
CALCULATE COLUMN "Gaap" = 1 - 2
ORDER 0,3,1,2
<ROW (Account)
<LINK(<DESCENDANTS("Global Accounts","Lev0,Account"))
In my script I'm using this @CurrQtr as a period however it doesn't use it as it's just giving me the total for the Period dimension. Any help?
I don't understand this...
*<COLUMN (Period)*
*          Qtr3      WWL "RIA-IFRS REPORTING ADJS."*
have you tried like this.??
Edited by: Prabhas on Feb 1, 2011 12:05 AM

Similar Messages

  • Help with report script query please

    Hi,
    I'm trying to write a report script with a slight calculation and would really appreciate some help.
    Ideally I want to create a report where I only get the Account and Value. I select all my members but I need a calculation on the Entity dimension. Here's what i am trying to achieve:
    (All selected members for all Entities + All selected members for all Entities in group RIA-IFRS REPORTING ADJS. ) Yes I'm duplicating the members of group RI-IFRS REPORTING ADJS.
    So account 100 for all Entities = 50
    account 100 for all Entities in RI-IFRS REPORTING ADJS. = 25
    I want to display account 100 grouped as 75 without showing a line for each entity.
    This is what I have so far but it doesn't work right:
    ROWREPEAT
    SUPCOLHEADING
    SUPCOMMAS
    SUPHEADING
    SUPBRACKETS
    SUPEMPTYROWS
    TABDELIMIT
    MISSINGTEXT "#mi"
    DECIMAL 2
    NOINDENTGEN
    <PAGE ( Years, Version, Currency, Scenario, InterCompany, "Entity", "Cost Center","Set of Books","Reporting")
    "FY10" "Current" "Currency" "Actual" "InterCompany" "Entity" "Cost Center" "AB_CON_USD" "Reporting"
    <ROW ("Account")
         <LINK(<DESCENDANTS("Total Balance Sheet Accounts","Lev0,Account"))
    { CALCULATE ROW "Entity" = "Entity" + "RI-IFRS REPORTING ADJS."})
         <COL (Period)
         "Dec"
         !

    For the benefit of anyone else looking for this answer, I figured it out.
    //To do this it's better to create 2 columns:
    <COLUMN (Period)
              Q4           
    WWL "RIA-IFRS REPORTING ADJS."
    //Then add the 2 columns up:
    CALCULATE COLUMN "Q4 Gaap" = 1 - 2
    //And order the column how you want
    ORDER 0,3,1,2
    Hope this help someone out.
    http://atmyplace.co.uk

  • Help with Report Script export

    Hi All,
    I am trying to automate report script export using maxl.
    export database 'DP_A1423'.'DP_A1423' using server report_file 'MFHSB6WK' to data_file 'reportexport.txt'; it is executing with out any issues> But, i am not able to file file on server.
    export database 'DP_A1423'.'DP_A1423' using server report_file 'MFHSB6WK' to data_file 'G:\\Hyperion\\export.txt';  if i am giving it location, it throwing me error. Unable to Open File ['G:\\Hyperion\\export.txt']
    Can someone please point me in right direction.
    Thanks in advance.

    >>Cameron did revisit the use of MDX.
    ^^^I did.  And I didn't say it was wrong.  Only that there is no blanket rule better for MDX vs DATAEXPORT vs report scripts. I suppose you were saying that.
    What I did see was:
    1)  Large number of output rows tends to favor report scripts
    2)  Large amounts of data (particularly if in a BSO database and suppressing lots of data) tends to favor MDX.
    Which is really the best (read fastest) depends on the extraction requirements in question. Kind of stinks but there it is.
    Regards,
    Cameron Lackpour

  • I need help with this script please ASAP

    So I need this to work properly, but when ran and the correct answer is chosen the app quits but when the wrong answer is chosen the app goes on to the next question. I need help with this ASAP, it is due tommorow. Thank you so much for the help if you can.
    The script (Sorry if it's a bit long):
    #------------Startup-------------
    display dialog "Social Studies Exchange Trviva Game by Justin Parzik" buttons {"Take the Quiz", "Cyaaaa"} default button 1
    set Lolz to (button returned of the result)
    if Lolz is "Cyaaaa" then
    killapp()
    else if Lolz is "Take the Quiz" then
              do shell script "say -v samantha Ok starting in 3…2…1…GO!"
    #------------Question 1-----------
              display dialog "Around age 11, many boys left their fathers to become…" buttons {"Scholars", "Warriors", "Apprentices"}
              set A1 to (button returned of the result)
              if A1 is "Apprentices" then
                        do shell script "say -v samantha Correct Answer"
              else
                        do shell script "say -v samantha Wrong Answer"
      #----------Question 2--------
                        display dialog "Most children were taught
    to read so that they could understand the…" buttons {"Music of Mozart", "Bible", "art of cooking"}
                        set A2 to (button returned of the result)
                        if A2 is "Bible" then
                                  do shell script "say -v samantha Correct Answer"
                        else
                                  do shell script "say -v samantha Wrong Answer"
      #------------Question 3---------
                                  display dialog "In the 1730s and 1740s, a religious movement called the_______swept through the colonies." buttons {"Glorius Revolution", "Great Awakening", "The Enlightenment"}
                                  set A3 to (button returned of the result)
                                  if A3 is "Great Awakening" then
                                            do shell script "say -v samantha Correct Answer"
                                  else
                                            do shell script "say -v samantha Wrong Answer"
      #-----------Question 4--------
                                            display dialog "_______ was
    a famous American Enlightenment figure." buttons {"Ben Franklin", "George Washington", "Jesus"}
                                            set A4 to (button returned of the result)
                                            if A4 is "Ben Franklin" then
                                                      do shell script "say -v samantha Correct Answer"
                                            else
                                                      do shell script "say -v samantha Wrong Answer"
      #----------Question 5-------
                                                      display dialog "______ ownership gave colonists political rights as well as prosperity." buttons {"Land", "Dog", "Slave"}
                                                      set A5 to (button returned of the result)
                                                      if A5 is "Land" then
                                                                do shell script "say -v samantha Correct Answer"
                                                      else
                                                                do shell script "say -v samantha Wrong Answer"
      #---------Question 6--------
                                                                display dialog "The first step toward guaranteeing these rights came in 1215. That
    year, a group of English noblemen forced King John to accept the…" buttons {"Declaration of Independence", "Magna Carta", "Constitution"}
                                                                set A6 to (button returned of the result)
                                                                if A6 is "Magna Carta" then
                                                                          do shell script "say -v samantha Correct Answer"
                                                                else
                                                                          do shell script "say -v samantha Wrong Answer"
      #----------Question 7--------
                                                                          display dialog "England's cheif lawmaking body was" buttons {"the Senate", "Parliament", "King George"}
                                                                          set A7 to (button returned of the result)
                                                                          if A7 is "Parliament" then
                                                                                    do shell script "say -v samantha Correct Answer"
                                                                          else
                                                                                    do shell script "say -v samantha Wrong Answer"
      #--------Question 8-----
                                                                                    display dialog "Pariliament decided to overthrow _______ for not respecting their rights" buttons {"King James II", "King George", "King Elizabeth"}
                                                                                    set A8 to (button returned of the result)
                                                                                    if A8 is "King James II" then
                                                                                              do shell script "say -v samantha Correct Answer"
                                                                                    else
                                                                                              do shell script "say -v samantha Wrong Answer"
      #--------Question 9------
                                                                                              display dialog "Parliament named ___ and ___ as England's new monarchs in something called ____." buttons {"William/Mary/Glorius Revolution", "Adam/Eve/Great Awakening", "Johhny/Mr.Laphalm/Burning of the hand ceremony"}
                                                                                              set A9 to (button returned of the result)
                                                                                              if A9 is "William/Mary/Glorius Revolution" then
                                                                                                        do shell script "say -v samantha Correct Answer"
                                                                                              else
                                                                                                        do shell script "say -v samantha Wrong Answer"
      #---------Question 10-----
                                                                                                        display dialog "After accepting the throne William and Mary agreed in 1689 to uphold the English Bill of _____." buttons {"Money", "Colonies", "Rights"}
                                                                                                        set A10 to (button returned of the result)
                                                                                                        if A10 is "Rights" then
                                                                                                                  do shell script "say -v samantha Correct Answer"
                                                                                                        else
                                                                                                                  do shell script "say -v samantha Wrong Answer"
      #---------Question 11------
                                                                                                                  display dialog "By the late 1600s French explorers had claimed the ___ River Valey" buttons {"Mississippi", "Ohio", "Hudson"}
                                                                                                                  set A11 to (button returned of the result)
                                                                                                                  if A11 is "Ohio" then
                                                                                                                            do shell script "say -v samantha Correct Answer"
                                                                                                                  else
                                                                                                                            do shell script "say -v samantha Wrong Answer"
      #------Question 12---------
                                                                                                                            display dialog "______ was sent to ask the French to leave 'English Land'." buttons {"Johhny Tremain", "George Washington", "Paul Revere"}
                                                                                                                            set A12 to (button returned of the result)
                                                                                                                            if A12 is "George Washington" then
                                                                                                                                      do shell script "say -v samantha Correct Answer"
                                                                                                                            else
                                                                                                                                      do shell script "say -v samantha Wrong Answer"
      #---------Question 13-------
                                                                                                                                      display dialog "_____ proposed the Albany Plan of Union" buttons {"George Washingon", "Ben Franklin", "John Hancock"}
                                                                                                                                      set A13 to (button returned of the result)
                                                                                                                                      if A13 is "Ben Franklin" then
                                                                                                                                                do shell script "say -v samantha Correct Answer"
                                                                                                                                      else
                                                                                                                                                do shell script "say -v samantha Wrong Answer"
      #--------Question 14------
                                                                                                                                                display dialog "The __________ declared that England owned all of North America east of the Mississippi" buttons {"Proclomation of England", "Treaty of Paris", "Pontiac Treaty"}
                                                                                                                                                set A14 to (button returned of the result)
                                                                                                                                                if A14 is "" then
                                                                                                                                                          do shell script "say -v samantha Correct Answer"
                                                                                                                                                else
                                                                                                                                                          do shell script "say -v samantha Wrong Answer"
      #-------Question 15-------
                                                                                                                                                          display dialog "Braddock was sent to New England so he could ______" buttons {"Command an attack against French", "Scalp the French", "Kill the colonists"}
                                                                                                                                                          set A15 to (button returned of the result)
                                                                                                                                                          if A15 is "Command an attack against French" then
                                                                                                                                                                    do shell script "say -v samantha Correct Answer"
                                                                                                                                                          else
                                                                                                                                                                    do shell script "say -v samantha Wrong Answer"
      #------TheLolQuestion-----
                                                                                                                                                                    display dialog "____ is the name of the teacher who runs this class." buttons {"Mr.White", "Mr.John", "Paul Revere"} default button 1
                                                                                                                                                                    set LOOL to (button returned of the result)
                                                                                                                                                                    if LOOL is "Mr.White" then
                                                                                                                                                                              do shell script "say -v samantha Congratulations…you…have…common…sense"
                                                                                                                                                                    else
                                                                                                                                                                              do shell script "say -v alex Do…you…have…eyes?"
                                                                                                                                                                              #------END------
                                                                                                                                                                              display dialog "I hope you enjoyed the quiz!" buttons {"I did!", "It was horrible"}
                                                                                                                                                                              set endmenu to (button returned of the result)
                                                                                                                                                                              if endmenu is "I did!" then
                                                                                                                                                                                        do shell script "say -v samantha Your awesome"
                                                                                                                                                                              else
                                                                                                                                                                                        do shell script "say -v alex Go outside and run a lap"
                                                                                                                                                                              end if
                                                                                                                                                                    end if
                                                                                                                                                          end if
                                                                                                                                                end if
                                                                                                                                      end if
                                                                                                                            end if
                                                                                                                  end if
                                                                                                        end if
                                                                                              end if
                                                                                    end if
                                                                          end if
                                                                end if
                                                      end if
                                            end if
                                  end if
                        end if
              end if
    end if

    Use code such as:
    display dialog "Around age 11, many boys left their fathers to become…" buttons {"Scholars", "Warriors", "Apprentices"}
    set A1 to (button returned of the result)
    if A1 is "Apprentices" then
    do shell script "say -v samantha Correct Answer"
    else
    do shell script "say -v samantha Wrong Answer"
    return
    end if
    #----------Question 2--------
    display dialog "Most children were taught to read so that they could understand the…" buttons {"Music of Mozart", "Bible", "art of cooking"}
    set A2 to (button returned of the result)
    if A2 is "Bible" then
    do shell script "say -v samantha Correct Answer"
    else
    do shell script "say -v samantha Wrong Answer"
    return
    end if
    (90444)

  • Need help with Report Script calculation...

    When trying to implement a calculation on 2 members (sales, tax exempt) I am having a problem keeping the report from accumulating the calculation total...
    Any ideas would certainly be appreciated.
    Thanks,
    //*****Script******
    { CALCULATE ROW  "item1" OFF}     //sets variable for first calculation item
    { CALCULATE ROW  "item2" OFF}     //sets variable for second calculation item
    <row("entities", "Measures")
    //{Supoutput}
    {SETROWOP "item1" +}     //starts adding the member
    "Sales"
    {SETROWOP "item1" OFF}     //stops adding the member
    {SETROWOP "item2" +}          //starts adding the member
    "tax exempt"
    {SETROWOP "item2" OFF}     //stops adding the member
    //{OUTPUT}
    { CALCULATE ROW  "total sales" = "item1" - "item2"
    PRINTROW "total sales"}
    //*****what I am expecting******
    north      sales     777.00
    north      tax exempt     27.00
    north      total sales     750.00
    south      sales     796.00
    south      tax exempt     23.00
    south      total sales     773.00     <======     correct
    //******actualreport results******
    north     sales     777.00
    north      tax exempt     27.00
    north      total sales     750.00
    south     sales     796.00
    south      tax exempt     23.00
    south      total sales     1523.00     <==== accumulated number / wrong!
    Edited by: Adam M on Sep 29, 2011 5:06 PM

    You should do this calculation in Essbase, not in report script. Add dynamic calc member "Total Sales" with formula "Sales" - "Tax Exempt"...
    Regards,
    Yuri

  • Help with action script please

    hay guys, im having trouble with changing my action script to
    allow multiple layers of the same thing in order to show a greater
    sense of depth than the normal application. im using a flash
    toutorial on making a sort of matrix like falling text (
    link)
    and im not completely understanding what to change in order to
    accomplish my goal. i tryed to send them a message using their
    contact page, but its broken, forcing me to find a forum. im sure
    it has something to do with the third group of code where it
    identifies what its using. but whenever i change anything there to
    either match the identifiers or movie clip names the action script
    crashes when i test the movie. any help is appreciated.
    im using flash cs3 and made sure to create it all in action
    script 2.0
    please excuse my spelling, im sure i made a mistake
    somewhere.

    "FlashTastic" <[email protected]> wrote in
    message news:e4ir4t$ru4$[email protected]..
    >I don't think an enterframe will be your best bet.
    >
    > You might want to use something like
    >
    > if(_root._currentframe >= _root.totalframes){
    > loadMovie("myMovie.swf",_root)
    Why in the world would you do that when you can just put a
    keyframe on the last frame and ..
    loadMovie("myMovie.swf");
    tralfaz

  • Help with my script Please

         This is a script that I am using to batch flatten and rotate(if needed) files. This script is working intermittently and I can't seem to get a handle on why I keep getting the error message:
         - Could not save as "" because the file could not be found.
         Line: 66
         executeAction( idsave, desc64, DialogModes.NO );
    Please if anyone could help me that would be great.  It is getting rather annoying that it works sometimes and other times it does not. Thanks in advance.
        Clevadio
    //=============Find Current Documents path================//
    var CurrentPath = activeDocument.path;
    //=============Establish current documents destination===============//
    var folder1 = Folder(CurrentPath + '/' + 'Flats');
    //=============Check if it exist, if not create it.============//
    if(!folder1.exists) folder1.create('Flats');
    //=============Establish current documents file name=========//
    var CurrentFileName = activeDocument.name;
    //=============Modify current file name================//
    var modifiedFileName = CurrentFileName.replace( ".psd", "Flat" );
    //=============Establish save path====================//
    var saveFileCurrentPath = new File(folder1 + '/' + modifiedFileName);
    //=============Flatten document ====================//
    var idFltI = charIDToTypeID( "FltI" );
    executeAction( idFltI, undefined, DialogModes.NO );
    //=============Rotate  document if in 'Landscape'====================//
    if (app.documents.length > 0) {
         var myDocument = app.activeDocument;
         if (myDocument.width > myDocument.height) RotateToPortrait();
    function RotateToPortrait(){
         try{
        var idRtte = charIDToTypeID( "Rtte" );
            var desc2 = new ActionDescriptor();
            var idnull = charIDToTypeID( "null" );
                var ref1 = new ActionReference();
                var idDcmn = charIDToTypeID( "Dcmn" );
                var idOrdn = charIDToTypeID( "Ordn" );
                var idFrst = charIDToTypeID( "Frst" );
                ref1.putEnumerated( idDcmn, idOrdn, idFrst );
            desc2.putReference( idnull, ref1 );
            var idAngl = charIDToTypeID( "Angl" );
            var idAng = charIDToTypeID( "#Ang" );
            desc2.putUnitDouble( idAngl, idAng, 90.000000 );
        executeAction( idRtte, desc2, DialogModes.NO );
              return activeDocument.activeLayer;
         }catch(e){}
    // =======================================================
    //=============Now save document ====================//
    var idsave = charIDToTypeID( "save" );
        var desc64 = new ActionDescriptor();
        var idAs = charIDToTypeID( "As  " );
            var desc67 = new ActionDescriptor();
            var idmaximizeCompatibility = stringIDToTypeID( "maximizeCompatibility" );
            desc67.putBoolean( idmaximizeCompatibility, false );
        var idPhtthree = charIDToTypeID( "Pht3" );
        desc64.putObject( idAs, idPhtthree, desc67 );
        var idIn = charIDToTypeID( "In  " );
        desc64.putPath( idIn, new File( saveFileCurrentPath ) );
    executeAction( idsave, desc64, DialogModes.NO );
    activeDocument.close()

    You can turn off some of the dialogs with: app.displayDialogs = DialogModes.NO;
    #target photoshop
    if (app.documents.length > 0) {
    //Turn display dialogs off
    app.displayDialogs = DialogModes.NO;
    //=============Find Current Documents path================//
    var CurrentPath = activeDocument.path;
    //=============Establish current documents destination===============//
    var folder1 = Folder(CurrentPath + '/' + 'Flats');
    //=============Check if it exist, if not create it.============//
    if(!folder1.exists) folder1.create();
    //=============Establish current documents file name=========//
    //Current filename without the extension
    var CurrentFileName = app.activeDocument.name.replace(/\.[^\.]+$/, '');
    //=============Modify current file name================//
    var modifiedFileName = CurrentFileName +"Flat.psd";
    //=============Establish save path====================//
    var saveFileCurrentPath = new File(folder1 + '/' + modifiedFileName);
    //=============Flatten document ====================//
    activeDocument.flatten();
    //=============Rotate  document if in 'Landscape'====================//
    var myDocument = app.activeDocument;
    if (myDocument.width > myDocument.height) myDocument.rotateCanvas(90);
    //============Save File=======================//
    psdSaveOptions = new PhotoshopSaveOptions();
    activeDocument.saveAs(saveFileCurrentPath, psdSaveOptions, true, Extension.LOWERCASE);
    //Close Document
    app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);

  • Help with a script please

    Can anyone suggest a simple script to delete ~Library/Caches/Firefox evey time a user logs out? I want to trial such a script because the proxy is making Firefox act very starnge and deleting this folder gets it going again . . Thanks very much.

    take a look at http://www.bombich.com/mactips/loginhooks.html

  • Help with SQL Script please

    Hi there,
    What I`m trying to accomplish here is the following guys;
    This would be the pseudo code that I`m trying to convert into proper SQL;
    Declare @Parameter varchar(50)
    now I`m trying to find out how to find whatever is in the @Parameter in the values of table column. something like this;
    If @Parameter exists in (select column from table) then do something here else something else....
    Thanks very much in advance for your help.

    do you want some thing like below
    Declare @Parameter varchar(50)
    If exists (select column from table where column = @Parameter)
    begin
    --do something here
    END
    else
    Begin
    --something
    END
    Thanks
    Saravana Kumar C

  • Help with button code please?

    I am a novice and have just completed my first animated movie. I need help with action script.
    The movie is currently looped and I have created and invisible button the size of the frame with the intention that a user can click on the movie image to stop it and on second click continue the movie from where it stopped.
    I have used the AS event handler method to stop the movie. I have tested it and it works. But I cannot figure suitable code to restart the movie.
    Two questions;
    1. am I going about the task the right way? (should I use two buttons, one stop, one start)?
    2. if my approach is feasible, can anyone give me the correct AS to re-start the movie and put me out of my misery please?

    you can use the following after changing "yourbutton" and "yourmovieclip" to use suitable instance names:
    yourbutton.onRelease=function(){
    if(!this.toggle){
    yourmovieclip.stop();
    } else {
    yourmovieclip.play();
    this.toggle=!this.toggle;

  • Help with access control please

    So I'm trying to set up my brother's PSP to the wirless network through MAC address timed access. What I want to do is make it so that he can only access it through certain times in the day. I'm having troubles with actually getting it to work. Everytime I set it up, the PSP only show's up as a DHCP client and not a Wireless client. I tried the option panel with the add wireless clients through the first try access. Could I get some help with this issue please? Thanks!

    Just to calm your fears... There is no conspiracy. If someone had an answer or a suggestion they would post it.

  • Report Scripts - Please Can Some One Help Me

    Hello Gurus,
    Is it possible to display 2 members of the same dimension in adjacent columns using Report Scripts? if not what is the best available option?
    Consider this Sample Outline
    +Product
    +-Cofee
    +---Cafined
    +-------1100
    +-------1200
    +---Decafined
    +-------1300
    +-------1400
    +-Soda
    +---Coke
    +-------1500
    The format of the desired report is
    ======= Jan Feb Mar
    1100 Cofee 8 8 8
    1200 Cofee 8 8 8
    1300 Cofee 7 7 7
    1400 Cofee 7 7 7
    1500 Soda 6 6 6
    ================
    Please Can some one help me in this regard!
    Thanks In Advance

    If I remember correctly when I wanted to do something similar I imported the report with the level 0 members into SQL Server and then joined on a mapping table (was a parent/child table in our case) to get the other column. In our situation we already had the mapping table readily available because this is where the dimension was built from!

  • Help on Report Script

    Hi All,
    We are trying to write a report script to extract Level 0 data. We have an UDA associated with some parent members under a dimension (say "Entity"). Is there any way we can extract the level zero members of parent which are tagged with that UDA??
    Something like <LINK (<LEV((<DESCENDANTS("Entity") AND <UDA(Entity, ABCD)),0) where ABCD is the UDA tagged to the parent members.
    Please suggest.

    user8927833 wrote:
    Below are the examples to get data out using report scripts using UDA
    <UDA (product, "Sweet")The following example uses the UDA command within a LINK statement to select level 0 products that are sweet:
    <LINK(<UDA(product, "Sweet") AND <LEV(product, 0)).
    If you are on BSO then you can write data export calc scriptI am pretty sure that neither of these will work based on what the OP described. The first one would only get the members with the UDA, the second, only those at Level 0 with that UDA. I think the issue is that you cannot obtain the hierarchy beneath the UDA members. As timg suggested, push the UDA down to level 0, or figure another way out.

  • Help with Apple Script Code

    Hi,
    I found this Apple script online and here's how it works:
    tell application "QuickTime Player"
    activate
    try
    if not (exists document 1) then display dialog "Please open a QuickTime movie." buttons {"Cancel"} default button 1 with icon 1
    set thefile to (choose file name)
    save document 1 in thefile
    close document 1
    end try
    end tell
    +I run the Apple script+
    *1. It prompts me to open a movie file in Quicktime*
    +I open a movie in Quicktime+
    *2. It prompts me for an name and directory to save the new file in*
    +I enter a name and directory+
    *3. It saves a new reference movie in said directory with said name*
    This is useful if I want to customize every file, but unfortunately, I just want to mass create reference movies for a whole bunch of files.
    What I am looking for is for an Apple script that is a drag and drop application, so I can drop say 100 movie files or so, and have the Apple script create reference movie files with the same name and in the same directory automatically with no prompts.
    Since I am unfamiliar with Apple script I was wondering if someone would be able to edit my existing script to do what I want.
    Thanks so much for your help!

    Use Automator. It's great for repetitious tasks (like the one you've described), and it's very user-friendly. Open Automator, create a new workflow that executes the action you want, and you can apply that action to the resources you wish to edit.
    Good resource here:
    http://bit.ly/

  • Help With dynamic scripting for Dervied Property

    Hi,
    I am trying to get the the list of child nodes and then loopthorugh those nodes to do some calculation in a derived propety using dynamic scripting. I tried with below script.
    var childEnumerator = node.GetChildEnumerator();
    while(childEnumerator.MoveNext())
        var propValue = childEnumerator.GetCurrent().PropValue("Custom.Salary");
        print(propValue);
    While Evaluating this script I am getting below mentioned error. Any idea what i am missing here?
    DRM-16008: There was an error calculating Script property Custom.TotalSalaryExp for EMP_Zone/Emp/PPD1: TypeError: 'GetChildEnumerator' is not a function
    Please help me out. thanks fr your co-operation
    Regards,
    Sudipta

    Try this instead...
    var childEnumerator = node.GetChildEnumerator();
    childEnumerator.MoveNext();
    while(childEnumerator.GetCurrent() != null)
        var propValue = childEnumerator.GetCurrent().PropValue("Custom.Salary");
        print(propValue);
    childEnumerator.MoveNext();

Maybe you are looking for