Selection objects and Time Dimension

I have instantiated QueryClient object using the query manager. I have 5 dimension in my MOLAP cube where one of the dimension is TIME dimension. I create a selection object for each dimension and apply the selection array to the queryClient object. I create selection objects by using its constructor which takes dimension unique id as argument. I get OLAP Source not found error when I take this approach. When I do create a selection object by queryClient.createQueryAccess.getSelection("DimUniqID") for time dimension only, everything works fine and I see results. What is special about selections and time dimension ? Can anybody throw some light on this or there is some flaw in my understanding ?
Thanks
Swapan.

Did you review the topic "Defining a Query Programmatically" that is part of the BI Beans Help documentation. This has some good examples.
Hope this helps
Business Intelligence Beans Product Management Team
Oracle Corporation.

Similar Messages

  • Date and Time dimensions

    After reading the following article, I have decided to use SSAS dimension wizard for generating our Date dimension, which creates a DATETIME PK.
    http://www.made2mentor.com/2011/05/date-vs-integer-datatypes-as-primary-key-for-date-dimensions/ 
    I have also created a separate Time dimension as granularity of an hour is required.
    The Time dimension is very simple and only contains a surrogate key (INTEGER) and actual time in hours (VARCHAR).
    DimTime(TimeKey, TimeInHours)
    Our Fact table will now have a link to both the Date and Time dimension using the PK's.
    Our analysis is required by hour, day, week, month and year.
    My query is; Will this current structure cause any problems when creating MDX scripts to analyse our data (i.e. drilldown and rollup queries) Hour - Day - Week - Month - Year

    Hi Darren,
    According to your description, there a day and hour granularity in your fact table, so you want to a hierarchy like Hour - Day - Week - Month - Year, right?
    In your scenario, you created a time table that only contains a surrogate key (INTEGER) and actual time in hours (VARCHAR). We cannot create a Hour - Day - Week - Month - Year hierarchy without ant relationship between date table and time table. As per my understanding,
    you need create a foreigner key in time table, and join those table in the data source view, then you can create such a hierarchy. Here are some links about create time dimension, please see:
    http://www.ssas-info.com/analysis-services-articles/59-time-dimension/1224-date-and-time-dimensions-template
    http://www.codeproject.com/Articles/25852/Creating-Time-Dimension-in-Microsoft-Analysis-Serv
    Regards,
    Charlie Liao
    TechNet Community Support

  • Package, unit and time dimensions

    Hi. I understand that a star schema can have max of 16 dimensions out of which 13 can be defined. what are other three package, unit and time dimensions?are they used in all cubes? are they defined by SAP system itself?
    please help
    rajesh

    Hi Rajesh,
    We have to consider two things while u r creating the cube... Try to decrease the no of dimensions and also the No of reocrds in the dimension....
    Well we go for deciding which char has to assign to which dimension depending on one rule...
    Stronger entities will come into different dimensions and the weeker entities will come into same dimensions.......In other words One to one and one to many relationship will come into same dimension and may to many ioto differetn dimensions....
    Assign points if it helps
    Khaja

  • Selected objects and markers?

    Hello!
    Not sure what just happened, but I suspect I may have hit a hotkey shortcut for hiding the visual aid for selected objects.
    How do I change it back? I cannot see anymore which element (object, anchor, path, etc.) that I have selected on my artboard.
    This has happened to me before and I cannot remember how I fixed it, although I know it's a simple fix.
    Googling didn't help me, I'm afraid.

    View >> Smart Guides (Enableel with checkmark)
    Illustrator >> Preferences >> Smart Guides (Check more items to show more)
    Adobe decided about a decade ago to change the keyboard shortcut of CMD U from Ungroup to smart guides, I still make this mistake occasionally.

  • Fixing Account and Time Dimensions

    Gurus,
    I have a scanerio here , the Account dimension is Dynamic Calc
    the scripts are using Fix( @Relative (Accounts,0)) , does it make sense to include this statement ,
    please let me know the diffrence with and without the aboue statement .
    same with @relative (year total, o)
    Please explain
    Thanks
    Tanay

    I've heard people state that FIXing on level zero Accounts when all of the upper level members are dynamic is a waste of time and logically that makes sense (The upper level members would get valued but not stored and that would take time). Having said that, I have tried calcs with and without that kind of FIX and while in theory code without the FIX should be slower, I have been unable to actually see an appreciable difference. For completeness' sake and because it drives me crazy to think that useless numbers are being calculated, I typically FIX on level zero Accounts, even when all of the upper level members are dynamic.
    Wrt "Year Total" -- that might make more sense as that is probably not the dimension name, but a parent in the hierarchy. There could be other stored level zero members about and you may not want to impact those other members, hence the @RELATIVE("Year Total", 0) could be significant.
    The only way to know this within the context of your database is to try it both ways and see if you get a performance boost one way or the other. Please be sure to report back with the results of your experiment -- maybe it'll make me change my mind.
    Regards,
    Cameron Lackpour

  • I want to be able to restore not just my last session but a session from a previously selected date and time.

    Kind of a question and a suggestion. I accidentally closed my session with a load of tabs open. I then accidentally reopened firefox twice, once with my old session and a new session which was just my homepage. Meaning to close the latter I accidentally closed the former, and now I can't restore all the tabs I had open as firefox will only remember the last session I had open, i.e. the one with just my homepage. Is it possible to set up a 'session history' feature, so that just as I can go back and open a tab from yesterday or last week I can open a session from yesterday or last week?
    Thanks
    Steve

    Hi,
    I lost my session about two days ago, with a lot of important tabs that just vanished as I upgraded my Firefox.
    Now I don't know if it is possile to restore that session. I didn't have the session-manager extension installed..
    I also found in:
    C:\Documents and Settings\xxx\Application Data\Mozilla\Firefox\Profiles\xxx.default
    some files that I think they might be useful, that are called "sessionstore" (JScript script file).
    Can somebody help me?
    Thanks a lot!

  • Script to apply a random CMYK swatches from a group of swatches to selected objects.

    I would like to write some scripts for randomising the allocation of swatches to adjacent object.
    Example:
    Imagine a map of Europe and all her nation states/territories. I have a User Defined Swatch Library. I can open the AI document it was made from as I understand from this thread that having the swatches as objects on the page makes them easier to be referenced in a script. 
    I want to iterate through the selected objects and randomly assign one of the colours in the swatch document as a fill to each object. It would be great if hidden swatches (they are all small rectangular 'colour chip' filled paths) on page were not included in the reference swatches randomly choosen from.
    Iterating the selected objects I can do, but not sure what references I need to use to create an array of swatches to randomly choose from.
    I see I can make an array of swatches using the general swatch group from Adobe's CreateSwatchGroup scripts:
    JS
    var docRef = app.documents.add(DocumentColorSpace.CMYK)
    // Create a new SwatchGroup
    var swatchGroup = docRef.swatchGroups.add();
    swatchGroup.name = "CreateSwatchGroup";
    // Get list of swatches in general swatch group
    var genSwatchGroup = docRef.swatchGroups[0];
    // Collect 5 random swatches from general swatch group and move to new group
    var i = 0;
    while (i < 5) {
              var swatches = genSwatchGroup.getAllSwatches();
              swatchCount = swatches.length;
              var swatchIndex = Math.round(Math.random() * (swatchCount - 1)); // 0-based index
              // New swatch group does not allow patterns or gradients
              if (swatches[swatchIndex].color.typename != "PatternColor" && swatches[swatchIndex].color.typename != "GradientColor") {
                        swatchGroup.addSwatch(swatches[swatchIndex]);
                        i++;
    // Updates swatch list with swatches moved to new swatch group
    swatches = swatchGroup.getAllSwatches();
    // [… etc etc]
    AS
    tell application "Adobe Illustrator"
    activate
              set docRef to make new document with properties {color space:CMYK}
    -- Create a new SwatchGroup
              set swatchGroupRef to make new swatchgroup in current document with properties {name:"CreateSwatchGroup"}
    -- Get list of swatches in general swatch group
              set genSwatchGroup to swatchgroup 1 of docRef
    -- Collect 5 random swatches from the general swatch group and move to new group
              set i to 0
              repeat until i is 5
                        set swatchesRef to get all swatches genSwatchGroup
                        set swatchCount to count every item in swatchesRef
                        set swatchIndex to random number from 1 to swatchCount
                        set currentSwatch to item swatchIndex of swatchesRef
      -- New swatch group does not allow patterns or gradients
                        if class of color of currentSwatch is not pattern color info and class of color of currentSwatch is not gradient color info then
      add swatch swatchGroupRef swatch currentSwatch
                                  set i to i + 1
                        end if
              end repeat
    -- [… etc etc]
    If someone can help me to create the Swatch Array object of swatches loaded from a seperate document (or unique layer) then I think I can work my way to changing the fill on the existing paths (the nations in my map of Europe example).
    Would be very cool if I could detect neighbooring paths (nieghbooring nations in my map of Europe example) make sure the colour being assigned is not within a certain hue/CMYK range of the random colour and if it is rechoose random colour. I have no idea how to perform the logic of determining neighbooring paths in an Illustartor script. Anybody?!
    I'd prefer Applescript for sake of readiblity and also I'm learning AS ATM. Plus I'm using Script Debugger.app (which is excellent) to work with AS and I can't seem to run JSX scripts from within Extend Script Toolkit 2 (perhaps I need to make my scripts point to Illustrator?)
    But Javascript is okay if someone has this covered already :-)

    I would like to write some scripts for randomising the allocation of swatches to adjacent object.
    Example:
    Imagine a map of Europe and all her nation states/territories. I have a User Defined Swatch Library. I can open the AI document it was made from as I understand from this thread that having the swatches as objects on the page makes them easier to be referenced in a script. 
    I want to iterate through the selected objects and randomly assign one of the colours in the swatch document as a fill to each object. It would be great if hidden swatches (they are all small rectangular 'colour chip' filled paths) on page were not included in the reference swatches randomly choosen from.
    Iterating the selected objects I can do, but not sure what references I need to use to create an array of swatches to randomly choose from.
    I see I can make an array of swatches using the general swatch group from Adobe's CreateSwatchGroup scripts:
    JS
    var docRef = app.documents.add(DocumentColorSpace.CMYK)
    // Create a new SwatchGroup
    var swatchGroup = docRef.swatchGroups.add();
    swatchGroup.name = "CreateSwatchGroup";
    // Get list of swatches in general swatch group
    var genSwatchGroup = docRef.swatchGroups[0];
    // Collect 5 random swatches from general swatch group and move to new group
    var i = 0;
    while (i < 5) {
              var swatches = genSwatchGroup.getAllSwatches();
              swatchCount = swatches.length;
              var swatchIndex = Math.round(Math.random() * (swatchCount - 1)); // 0-based index
              // New swatch group does not allow patterns or gradients
              if (swatches[swatchIndex].color.typename != "PatternColor" && swatches[swatchIndex].color.typename != "GradientColor") {
                        swatchGroup.addSwatch(swatches[swatchIndex]);
                        i++;
    // Updates swatch list with swatches moved to new swatch group
    swatches = swatchGroup.getAllSwatches();
    // [… etc etc]
    AS
    tell application "Adobe Illustrator"
    activate
              set docRef to make new document with properties {color space:CMYK}
    -- Create a new SwatchGroup
              set swatchGroupRef to make new swatchgroup in current document with properties {name:"CreateSwatchGroup"}
    -- Get list of swatches in general swatch group
              set genSwatchGroup to swatchgroup 1 of docRef
    -- Collect 5 random swatches from the general swatch group and move to new group
              set i to 0
              repeat until i is 5
                        set swatchesRef to get all swatches genSwatchGroup
                        set swatchCount to count every item in swatchesRef
                        set swatchIndex to random number from 1 to swatchCount
                        set currentSwatch to item swatchIndex of swatchesRef
      -- New swatch group does not allow patterns or gradients
                        if class of color of currentSwatch is not pattern color info and class of color of currentSwatch is not gradient color info then
      add swatch swatchGroupRef swatch currentSwatch
                                  set i to i + 1
                        end if
              end repeat
    -- [… etc etc]
    If someone can help me to create the Swatch Array object of swatches loaded from a seperate document (or unique layer) then I think I can work my way to changing the fill on the existing paths (the nations in my map of Europe example).
    Would be very cool if I could detect neighbooring paths (nieghbooring nations in my map of Europe example) make sure the colour being assigned is not within a certain hue/CMYK range of the random colour and if it is rechoose random colour. I have no idea how to perform the logic of determining neighbooring paths in an Illustartor script. Anybody?!
    I'd prefer Applescript for sake of readiblity and also I'm learning AS ATM. Plus I'm using Script Debugger.app (which is excellent) to work with AS and I can't seem to run JSX scripts from within Extend Script Toolkit 2 (perhaps I need to make my scripts point to Illustrator?)
    But Javascript is okay if someone has this covered already :-)

  • Insert Date and Time doesn't update

    i am inserting a date and time in my numbers documents so that i know which paper copy is the most current. i do this by going to Insert pulldown and selecting Data and Time while in a Footer Cell.
    this data does not update upon re-opening the file and i end up printing multiple copies over weeks and months with simply the date that I inserted the Date and Time into the footer.
    is there a way to do this so that it updates?
    TIA

    As most of the times,
    this kind of question is answered in Numbers User Guide.
    When you insert a date_time value in a cell, you insert a fixed value.
    If you want a living one, you must insert a formula.
    =NOW()
    or
    =TODAY()
    would achieve your goal.
    Yvan KOENIG (VALLAURIS, France) dimanche 25 décembre 2011 21:40:50
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • The date and time will not set why?

    It keeps saying selecting date and time but never does. I tried signing in with my apple ID and it says to set date and time first and the only thing it lets me select is state.

    Welcome to the Apple Community.
    Assuming this is not the first time you have used your Apple TV
        1.    You might try restarting the Apple TV by removing ALL the cables for 30 seconds.
        2.    Also try restarting the router.
        3.    If the problem persists, try a restore, you may want to try the previous procedures several times before doing this.
    If this is a new Apple TV, it may also be that your network router is not allowing access to the timeserver, check that your router allows access over port 123.

  • CS3: elements sorting of selection object

    Hi people!
    I think U know that in CS2 app.selection[0] always return LAST selected object
    and app.selection[app.selection.length] return FIRST selected object
    its logically good way.
    but in CS3 Adobe changed this order. And now sorting of objects in this array depend not from selection order.
    now question: how to determine the first and last selected object in CS3?
    Му collection of cs2 scripts be based on this behoviour.
    Did anybody know how to solve this problem. May be exist simple way via javascript? Or harder - via third party plugins...
    Help please!

    >now question: how to determine the first and last selected object in CS3?
    Unfortunately, you can no longer do that in CS3. I don't know of any workarounds.
    Peter

  • Ranking and Date dimensions

    Hello everyone,
    I am trying to sort some values descending in order with addtional time dimensions so i can prompt them on my dashboard.
    I can get it to rank correctly when I omit the Date fields (Year,Qtr,Month) however, if these are present then i get the ranking based on smaller values due to the dates because OBIEE is breaking it down to the month
    which have different costs associated to that date.
    Example:
    Field1 | Value(desc) | Rank
    1001     $3,654      1
    1400 $1,520      2
    3501     $1,511      3
    3508     $1,200      4
    1601     $958     5
    1401     $608     6
    1602     $200     7
    So when Month is present for example, my amount is not 3,654 but rather 2 rows that sum up to 3,654. I do not want that to happen, but i still want to have the fields so i can filter.
    Field1 | Value(desc) | Rank | Month
    1001     $1,830      1 Jan-2009
    1001     $1,824      2 Feb-2009
    Does anyone know how to display as the first table with the additional Date fields on affecting the row result?

    Hi Darren,
    According to your description, there a day and hour granularity in your fact table, so you want to a hierarchy like Hour - Day - Week - Month - Year, right?
    In your scenario, you created a time table that only contains a surrogate key (INTEGER) and actual time in hours (VARCHAR). We cannot create a Hour - Day - Week - Month - Year hierarchy without ant relationship between date table and time table. As per my understanding,
    you need create a foreigner key in time table, and join those table in the data source view, then you can create such a hierarchy. Here are some links about create time dimension, please see:
    http://www.ssas-info.com/analysis-services-articles/59-time-dimension/1224-date-and-time-dimensions-template
    http://www.codeproject.com/Articles/25852/Creating-Time-Dimension-in-Microsoft-Analysis-Serv
    Regards,
    Charlie Liao
    TechNet Community Support

  • Date time dimension solution

    I'd like to have a date and time dimension where i can drill down to hours and quarters. What i don't want is one large dimension ( too many rows :-). Getting a date and a time dimension linked from the fact table is another solution, but i don't know if i can drill down with this solution.
    My solution is creating a datetime dimension that is clustered with a date dimension and a time key and time table. What are the downgrades when i implement this? Probably creating a view wherein i join the cluster? And can i drill and create a single dimension using this implementation?

    I suspect that your chief problem is a forum mismatch
    ?

  • Time Dimension Type allows different values in attributes - Bug or Feature?

    Not sure if this is a bug or a feature.
    But if one has multiple hierarchies on a Time dimension. You have the ability to specify different values for member attributes in different hierarchies.
    Example.
    Hierarchy A has MIN_ID for it's Member and uses MIN_END_DATE for it's END_DATE
    Hierarchy B has MIN_ID for it's Member and uses SESS_END_DATE for it's END_DATE
    As per this post and David Greenfield's comment:
    Dimension Sort issue when multiple mappings for different hierarchies
    "Are you attempting to map the same attribute, SORT, to different columns in the two hierarchies? Put another way, do you expect the same member to have different values for the attribute in the two different hierarchies? If so, then this is a problem since a member must have the same value for the attribute regardless of the hierarchy."
    Unlike a user dimension, a time dimension appears to allow this and it appears to work as intended. Is the behavior in this case intended to be different between a user and time dimension?

    I think that this is not a bug. There is an incompatibility in design which prevents you from using the same attribute differently for both hierarchies.
    NOTE: Unlike parent relationship which depends on <dimension, dimension hierarchy>, Dimension Attribute is dependent on <dimension> alone, not dependent on <dimension, dimension hierarchy> combination. Hence it can only take on 1 value for 1 dimension member.
    I think that the time dimension only appears to allow this. The key thing to check is for Time Dimension members which are common to both the hierarchies. Only one of the mappings will take effect (usually the hierarchy which is loaded last will remain in the aw/usable for queries, reports.. it would have over-written the earlier attribute value loaded as per the earlier hierarchy load).
    Visualize a dimension as a long list of members which are built up contiguously on a per hierarchy, per level process using the mapping information saved. Once a member is defined (created) via Hierarchy A, it wont be created once again while loading Hierarchy B but is instead updated or redefined based on Hierarchy B's mapping info.
    Assuming the dimension load attempts to load Hierarchy A first and then Hierarchy B,
    * Dimension load for Hierarchy A will define the various members using MIN_ID and set the END_DATE attribute to value=MIN_END_DATE
    * Dimension load for Hierarchy B will re-define the various members using MIN_ID and re-set or over-write the END_DATE attribute to value=SESS_END_DATE
    * In this case, it looks like all members are common for both hierarchies (as both members are mapped to same column MIN_ID) and you would end up with END_DATE=SESS_END_DATE.
    Actually whether all members are common to both hierarchies or not depends on the quality of data in your snowflake/star table: if parent level for Hierarchy A as well as Hierarchy B is setup fine then the members will be same set (overlapping in whole). If some rows for MIN_ID have parent column for Hierarchy A setup correctly but parent column for Hierarchy B =null or invalid value then that member will exist in Hierarchy A alone and would contain END_DATE=MIN_END_DATE as the corresponding update along Hierarchy B would fail due to hierarchy data quality issues (join from current level to parent level).
    As regards a solution to your problem, you should not use the same attribute "SORT" for dual purpose (both hierarchies). Instead define attributes SORT_A and SORT_B and make them enabled for Hierarchy A, Hierarchy B respectively and map/use them appropriately in your reports.
    HTH
    Shankar

  • Data and time characteristics found in character and keyfigures?

    hi all,
    I can find date and time found in both characteristics and keyfigures. Can anyone tell me in which scenario we shall select date and time considered in characteristics and when shall we select date and time for keyfigures.
    can anyone explain me with an scenario.
    regds
    hari

    Hi,
    date and time will be key figures in the case if you want to do some calculation based on them like subtraction or multiplication ( you can do it i also thorugh formula valriables but it has it's limitation)and they are not going to be used as drilldown or for selection variables in the reports.
    If you want only selection and drilldown on then then you should go for char.
    Thanks

  • Ungroup selected items and delete them

    Hello!
    I have a code that removes the tags (if there are tags) from objects and then deletes them.
    The problem is if tagged objects are grouped. Or even grouped objects in another group.
    I need to ungroup the selected objects and then untagging and deleting them.
    How can i do this?
    My current code:
    for (var iSel = app.activeDocument.selection.length-1; iSel >=0 ; iSel--){
         var currentSelection = app.selection[iSel];
              if (currentSelection.associatedXMLElement != null) {
                   currentSelection.associatedXMLElement.untag();
                   currentSelection.remove();
              else {
                   currentSelection.remove();

    I think we need an extra loop through all pageItems of the selection, checking the tag names.
    You could assemble the length of the found objects tagged with "product". If the length is not 0, use a confirm dialog like that: "You are about to untag and delete [number] of objects tagged "product". Do you really want to do that?" [No] [Yes]. If [No] is clicked, the script will stop.
    "Confirm" is documented here:
    http://jongware.mit.edu/idcsjs5.5/pc_Window (SUI).html#confirm
    For an example in usage look here:
    //Select an object that can get a fill color and run the script snippet:
    var myResult = confirm("Would you like to color your selection with \"Yellow\"?");
    if(myResult === false){
        //Do nothing!
        exit();
    if(myResult === true){
        app.selection[0].fillColor = "Yellow";
    Uwe
    PS. I'll be offline the next few hours…

Maybe you are looking for

  • Can someone help me with a problem I have publishing photos to Facebook and Flickr

    I am using LR4.4 on my HP laptop (Windows 7 Home premium) with Mozilla Firefox as my default browser. I was able to publish some photos from LR to my Facebook account early in October. I have some new photos to publish, but find I now can no longer p

  • How to handle the event "GROUPLEVEL_CHANGE" in ALV?

    Hi, I have done a BLOCL ALV report. In i am sorting the first field and not displaying it. But for every change in the first field page break should happen and the particular field is to be printed at every page break at the top. I am handling the pa

  • CSS arrowpoint cookie load balancing issue

    Hi guys, I need some advice on a load balancing issue. We have connections hitting the CSS via a proxy environment. As a result i see only one source ip address. I want to use arrowpoint cookies for session stickeyness. However when i enable the rule

  • Compile forms and reports under 9ias

    I'd like to know how to compile forms & reports ( which binary to use ) for deploying an application to the web with 9ias OS : aix 433 using 9ias 10210 thanks

  • Open video in Windows media player

    The county offers streaming video of meeting of the Board of Supervisors. The video requires that it be playing in Windows media player for the Mac. When I click on the video link on the County's web site the video opens in what I presume is a dedica