OLAP 11g - Passing external Paramteres into AW

We are on OLAP 11gR2 release
I  have a scenario where in I need to pass Period dimension chosen by the USERS while they run queries ( via Cube ET views from BO application) against OLAP Cube. Since this is dynamic scenario, is there a way to do it via DML program??  Our ACCOUNT  dimension has attributes  BEGIN date and END date. QTD and YTD needs to be calculated based on the period parameter being passed, if it  is outside the this date range the no else yes.
PERIOD dimension member would be something like 201112 for Dec2012 which i think needs to be converted to proper date format.
HAs this been done before? Any help would be much appreciated.
Thanks.

Assume you're using sql to access aw, then BO parameters you need to pass would become oracle olap aw sql query where clause filters.
I dont think you're constructing the report/solution correctly by thinking in terms of passing parameters.
So instead of "passing parameters", think "framing/constructing the right sql".
What you need to do is define YTD, QTD appropriately in AW. They can be defined for all periods based on the time dimension in your model.
However you need to use the control parameter within the calling application/program: if account dimension attribute values meet the period specification criteria then call/reference YTD/MTD measures else use null instead.
YTD, MTD being defined as a calculated measure does not imply that the fromulae are pre-calculated and stored for all periods. It's only the measure definition which is stored and this defn results in the right calculation for MTD/YTD. No harm/work is done just because they're defined. Based on the scope/dimension members involved in the call to the cube/aw referencing these formulae/measures, these calculations are fired/triggered and the results calculated for the cells in question.
If you frame the right question (i.e. right sql from BO), you'll get the right answer/results from oracle olap quickly.
HTH
Shankar

Similar Messages

  • Export OLAP 11G AW/Cubes to OBIEE 11g

    Hi Experts,
    If anyone has handled this assignment of exporting OLAP 11G AW/Cubes to OBIEE 11g, Please share all details. Currently we use BO for reporting requirements and before going ahead with OBIEE 11g would like to make sure there is not much of a gap. As of now we see a lot of incompatibility while exporting  like some dims and cubes cannot be exported and so on. Any white paper/docs/information on this from experienced folks are welcome.
    We are on 11.2.0.3 db release.
    Thanks in advance,
    MS

    Here is some basic information about importing 11g analytic workspace cube and dimension metadata into OBIEE.
    There are two basic options as I suspect you already know:
    Option 1) Before the release of OBIEE 11.1.1.5 (I believe), there was no native support for the OLAP option within the administrator tool of OBIEE, and
      one needed to use the AwM plug-in to OBIEE. The AwM plug-in generates a UDML file which can be imported into OBIEE using the OBIEE admin tool.
      The AwM plug-in to OBIEE generates metadata for the source, business model, and presentation layers. The very latest version of the AwM plug-in will specially
      handle calculated measures created in AwM and create the proper calculcated measure expression in OBIEE. This is very important if you are querying above the cube
      to get the correct aggregation results. One area that has limited support is if a dimension only has value-based hierarchies. The plug-in will create a very simple level-based
      hierarchy to at least allow the dimension to be successfully created. You then need to do more work within the OBIEE administration tool to create the fully baked
      value-based hierarchies. I do not have any real-world experience with value-based hierarchies in OBIEE. Again, the AwM plug-in to OBIEE works with level-based hierarchies
      and supports multiple hierarchies per dimension. The AwM plug-in to OBIEE is available on the OTN download page for the OLAP option.
      Here is the link:  Oracle OLAP Downloads: Software & Samples
    Option 2) OBIEE 11.1.1.5 and later allows for native integration for accepting OLAP 11g dimension and cube metadata as a supported source.
       This integration makes the AwM plug-in somewhat obsolete (except for the calculated measure expression integration which is unique to the AwM plug-in and using
       AwM to create calculated measures including time-based calculated measures)
    Please expand on the incompatibility issues you are running into. Is this related to a lot of value-based hierarchies or other issues?

  • Accounts in UCM 11g from external LDAP provider

    Hi,
    We are developing an application using UCM 11g. For authentication and authorization we are using external LDAP. Following are the steps followed to configure the UCM 11g for external LDAP.
    1) Created User and Groups directory in LDAP
    2) Created user and group in LDAP.
    3) Assigned users to the groups.
    3) Created accounts in group directory .Account name start with @ and ends with (RW)
    4) Created a new provider in WLS.
    5) Created a new JpsProvider in UCM.
    Now, roles(groups in LDAP) and user are coming properly form LDAP. but the accounts are populating in UCM.
    Can anybody tell me the solution for this problem
    Thanks in advance..
    Regards,
    Nitin

    In theory there is no limit, but as with most of the products and features inside the Content Server it comes down to design and size impacting performance.
    So there is no simple answer.
    The more complex answer is you need to try to keep things as simple as possible while still completing your goals.
    For instance the Folders component in 11g is limited (hard coded) to 1000 files per folder maximum due to performance degradation if you put more in your folders. Many people just try to put more in and before the hard coded limit in 11g people did and their folders browsing became almost unusable due to slow browsing of the folder structure and files in side.
    Similarly with Security we can impact performance with too many security groups, badly designed Roles to access security groups or badly designed Account structures. Notice I only said "too many" on Security groups but not "too many" on Accounts. You should try never to go above 25 security groups (this is not a hard coded limit just a best practice) and the "badly designed" part of roles and accounts can lead to bad performance and even broken security.
    It comes down to DB performance, DB limitations and code limits.
    First off be aware that there is a limit on how long a query in the DB can be. Commands and SQL in the DB are not endlessly long, there is a maximum number of characters. Keep that in mind as we go along into the next parts.
    Second be aware that if you make a badly built query it will take a long long time.
    Third be aware that when you are building security models in UCM these security structures go DIRECTLY to DB queries and remember the above 2 points.
    So every search in UCM is a query when you take it back to the DB level, and every search requires a behind the scenes security check to make sure you can read the documents you are searching for. So any query built in the search interface gets an additional set of parameters automatically when executed (security).
    So now we need to also think about your Metadata and not just the Security on that limited length DB back end. Do your users have 99 metadata fields (I hope not) and if they do do they use most of them while searching? How long will that query be before you add the security query?
    Back to the security parts with accounts.
    If you have your users having only a few roles providing only access to a small number of security groups and those same users only having a few accounts then searches will get a short security access query added since the number of additional checks for security are small. If the roles and group accesses and account accesses are very large (to the extreme limit) again this will be easy to make a short query due to the small number of excluded security roles and accounts.
    BUT and this is a biggie. IF the users are given a number of roles and accounts that is middle of the road for number of total accesses then the query is as long as it can be and if the metadata is complex and large too then you may be running into the limit of Query string in the DB and your query may get truncated which results in a broken security model maybe.
    That is not even talking about the efficiency of the query and how long it takes.....
    Sorry for the book like reply to your simple question, but it really is not a simple question. :)

  • Passing formatted HTML into JOptionPane.showMessageDialog()

    I'm attempting to display a message dialog that contains text that is formatted as HTML. The examples I've looked up online show that you can indeed create a string that begins with the tag <html> and pass that string into most swing text components.
    Such as:
    String htmlString = "<html><b>This is a bold string</b>";
    JOptionPane.showMessageDialog(htmlString, ...);I want to do the same thing, but have my HTML stored in a seperate file. I tried using file IO to read in the html one line at a time, and append it into a StringBuffer. Then passing my buffer.toString() into showMessageDialog(). ..It's still not showing my HTML (although it does compile fine).
    Before I start digging into this deep, I just wanted to ask if there was a better solution for accomplishing what I'm trying to do here. Perhaps using a different component or something? I appreciate it.

    (shrugs) Both these examples seem to render the HTML OK, the first is a String provided to a JLabel, the second is an URL provided to a JEditorPane. I included the second to show a Swing component rendering HTML from an external source.
    import java.awt.Dimension;
    import javax.swing.JOptionPane;
    import javax.swing.JEditorPane;
    import java.net.URL;
    class TestHtmlRendering {
      public static void main(String[] args) throws Exception {
        // default for a String in a JLabel is bold,
        // so let's add some emphasis..
        String content =
          "<html><b>This is a bold, " +
          "<em>emphatic</em> string!</b>";
        JOptionPane.showMessageDialog(null, content);
        // styled HTML from http://pscode.org/test/docload/
        URL url = new URL(
          "http://pscode.org/test/docload/trusted.html");
        JEditorPane jep = new JEditorPane(url);
        jep.setPreferredSize(new Dimension(300,200));
        JOptionPane.showMessageDialog(null, jep);
    }I'd say the problem is in the code you did not show, though even the code you did show, was nonsense (show me the URL to the JavaDocs of any showMessageDialog() method that will accept a String as the first argument). For those reasons (and more), I recommend preparing an SSCCE that shows the problem. It is a little harder to prepare an SSCCE involving external files, though if you can demonstrate it using an URL (like above) that solves the problem.

  • How can I load an external SWF into a movie clip that's inside other movie clip?

    Hi.
    I creating my first flash (actionscript 3.0) website but I'm
    stuck with a visual effect I want to create.
    I have a window on my website called contentWindow. Every
    time you click a button this window is supposed to leave the stage,
    load the requested content and return to the stage.
    The sliding window is a movie clip with 83 frames, 21 to
    enter the stage, 21 to leave the stage again, 20 for nothing (its
    just to simulate the loading time) and 21 to return to the stage.
    Now my goal is, when the user clicks on a navigation button,
    the window exits the stage, loads an external SWF with the content,
    and then returns to the stage.
    I've the "window" movie clip with an instance name of
    "contentWindow". Inside there is another movie clip with an
    instance name of "contentLoader". The content that the user
    requested should appear inside the "contentLoader".
    Now, when the contentWindow leaves the stage, I get this
    error message:
    quote:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at rwd_fla::MainTimeline/trigger()
    If I switch
    "contentWindow.contentLoader.addChild(navLoader);" for
    "contentWindow.addChild(navLoader);" it works fine, but the
    external SWF doesn't move with the window.
    How can I load an external SWF into a movie clip that's
    inside other movie clip?

    Hi,
    Recently, I have been putting together a flash presentation.
    And I am just wondering if the following might help you, in your
    communication with the said swf file:
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    onComplete);
    function onComplete(event:Event):void
    event.target.content.thinggy_mc.y -= 100;
    Not the best example, but this allows you to target a mc
    within an external swf file. I think if you look up this code, you
    will have an answer ;)
    Kind Regards,
    Boxing Boom

  • How can I pass a value into a page fragment?

    How can I pass a value into a page fragment?
    I am implementing four search screens. And the only thing different about them will be their backing bean.
    So I’d like to do something like have four pages, each which retrieves its appropriate backing bean, sets that bean to a variable, and then includes a page fragment which contains the generic search page code (which will make use of that variable).
    The code in the four pages would be something like this:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:c="http://java.sun.com/jsp/jstl/core">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <c:set var="searchPageBackingBean"
    value="#{pageFlowScope.employeeSearchPageBean}"
    scope="page"/>
    <jsp:include page="./SearchPageBody.jsff"/>
    </jsp:root>
    At this point, what I’m seeing is that the fragment page, SearchPageBody.jsff, has no visibility of the searchPageBackingBean variable, either referencing it as #{pageFlowScope.searchPageBackingBean} or just #{searchPageBackingBean}

    The following will work, assuming you are needing to access a managed bean:
    Put this in the parent page:
    <c:set var="nameOfSearchPageBackingBean"
    value="employeeSearchPageBean"
    scope="request"/>
    Put this in the child, SearchPageBody.jsff:
    <c:set var="searchPageBean"
    value="#{pageFlowScope[nameOfSearchPageBackingBean]}"
    scope="page"/>

  • My Mac crashed. I got a new hard drive. I reinstalled Lightroom. Fortunately ircats are stored on an external drive. How do I import all of the old catalogues from external drive into a new LR catalogue. I have done it before. It has just been many years

    My Mac crashed. I got a new hard drive. I reinstalled Lightroom. Fortunately ircats are stored on an external drive. How do I import all of the old catalogues from external drive into a new LR catalogue. I have done it before. It has just been many years and I can't recall how.

    If you had stored your catalog files on an external drive, then all you have to do is double-click on them to open them and use them.
    Or you could move them to the internal drive and double-click on them once the move is completed.
    To create a single catalog file from multiple ones, you could use File->Import from Another Catalog

  • How to call a java method so I can pass a file into the method

    I want to pass a file into a java method method from the main method. Can anyone give me some help as to how I pass the file into the method - do I pass the file name ? are there any special points I need to put in the methods signature etc ?
    FileReader file = new FileReader("Scores");
    BufferedReader infile = new BufferedReader(file);
    Where am I supposed to put the above text - in the main method or the one I want to pass the file into to?
    Thanks

    It's a matter of personal preference really. I would encapsulate all of the file-parsing logic in a separate class that implements an interface so that if in the future you want to start taking the integers from another source, e.g. a db, you wouldn't need to drastically alter your main application code. Probably something like this, (with an assumption that the numbers are delimited by a comma and a realisation that my file-handling routine sucks):
    public class MyApp{
    public static void main(String[] args){
    IntegerGather g = new FileIntegerGatherer();
    Integer[] result = g.getIntegers(args[0]);
    public interface IntegerGatherer{
    public Integer[] getIntegers(String location);
    import java.io.*;
    public class FileIntegerGatherer implements IntegerGatherer{
    public Integer[] getIntegers(String location){
    FileInputStream fs=null;
    try{
    File f = new File(location);
    fs = new FileInputStream(f);
    byte[] in = new byte[1024];
    StringBuffer sb = new StringBuffer();
    while((fs.read(in))!=-1){
    sb.append(new String(in));
    StringTokenizer st = new StringTokenizer(sb.toString(),",");
    Integer[] result = new Integer[st.countTokens()];
    int count = 0;
    while(st.hasMoreTokens()){
    result[count]=Integer.valueOf(st.nextToken());
    count++;
    catch(IOException e){
    //something sensible here
    finally{
    if(fs!=null){
    try{
    fs.close();
    catch(IOException f){
    return result;
    Once compiled you could invoke it as java MyApp c:\myInts.txt
    Sorry if there are typos in there, I don't have an ide open ;->

  • What are the names of the ports I have in my Macbook Pro to plug an external monitor into?

    What are the names of the ports in my MacBook Pro that I can plug an external monitor into?

    You have Thunderbolt or Mini DisplayPort. If you know which external display you want or you already have it, look at the ports it has got and get a Mini DisplayPort adapter for it. There are Mini DisplayPort adapters for DVI, VGA and HDMI.
    Most external displays have DVI, VGA or HDMI. If you can use HDMI, use it, because it will provide much better quality. See > http://support.apple.com/kb/HT4241?viewlocale=en_US&locale=en_US
    Mini DisplayPort adapters can be used with Thunderbolt

  • Can I partition an external drive into MSDO and MACOS extended and use under bootcamp ?

    I am interested in using Windows 8 alongside my OSX MAVERICK with the Bootcamp 5 solution.
    However, I am trying to save the space on my internal SSD . Can I partition my 4TB WD external drive into 3 parts like this :
    1.5 TB dedicated for Time Machine in MAC OS Extended Format
    1,5 TB MAC for general purpose in MAC OS Extended Format
    1.0 TB Windows for my PC games and other stuff in exFAT for files larger than 4GB
    Is this possible at all or what would be better ?
    Thanks

    To resize the drive do the following:
    1. Open Disk Utility and click on the Continue button. Select the hard drive's main entry then click on the Partition tab in the DU main window.
    2. You should see the graphical sizing window showing the existing partitions. A portion may appear as a blue rectangle representing the used space on a partition.
    3. In the lower right corner of the sizing rectangle for each partition is a resizing gadget. Select it with the mouse and move the bottom of the rectangle upwards until you have reduced the existing partition enough to create the desired new volume's size. The space below the resized partition will appear gray. Click on the Apply button and wait until the process has completed.  (Note: You can only make a partition smaller in order to create new free space.)
    4. Click on the [+] button below the sizing window to add a new partition in the gray space you freed up. Give the new volume a name, if you wish, then click on the Apply button. Wait until the process has completed.
    You should now have a new volume on the drive.
    It would be wise to have a backup of your current system as resizing is not necessarily free of risk for data loss.  Your drive must have sufficient contiguous free space for this process to work.

  • Is it possible to buy an external casing into which a backplane ready hard

    Is it possible to buy an external casing into which a backplane ready hard drive will slot?
    After I set up a RAID 0 array, I will have a spare 640GB hard drive ( the original Apple one), and I was wondering whether it is possible to purchase an empty external casing which would house it.
    Just a thought!
    Or am I living in dreamland?

    Many thanks for the advice.
    Unfortunately, the range of ancillary products available to Mac users in the UK is very limited compared to the States.
    I was unable to track down any UK resellers of FirmTek enclosures, and I am reluctant to import from abroad, because it would be too much hassle to return products in the event of a fault.
    After a lot of googling I thought I had found the ideal solution when I came across a Macally Voyager Q Dock review in a back issue of MacWorld UK. However, although some Macally products are sold by UK resellers, I could only find the Voyager Q available from OWC.
    I came across lots of external hard drive cases, enclosures and docks, but invariably they were USB2.0 and/or eSATA, with a few also having FW400 ports.
    Eventually I tracked down one case and one dock, stocked by Storage Depot Co. UK, which had FW400, FW800, eSATA, and USB2.0 connectivity. I decided that the single bay case was the best option for me, and I have placed an order for one.
    If any UK Mac users are looking for either a single bay case, or dock, for SATA drives, with FW800 connectivity, these are the respective links for the case and the dock:
    http://www.storagedepot.co.uk/Hard-Drive-Cases/sc884/p1332.aspx
    http://www.storagedepot.co.uk/External-Hard-Drives/Hard-Drive-Cradles/sc883/p877 .aspx

  • Is it possible to plug an external camera into 1/8" a/v jack on my iPhone a

    Is it possible to plug an external camera into 1/8" a/v jack on my iPhone and view/record live video
    I am constantly installing surveillance cameras at various locations; I'd like to be able to use my iPhone as the live view device (as opposed to a larger portable DVD player).
    Is this possible, will the iPhone accept a video signal via the 1/8" jack like the external microphone, or even through the service dock
    In short I want the composite cable to provide a VIDEO IN, and a video out
    If this has already been developed please point me in the right direction. If not, any idea on how to develop the APP/Coding/Hardware, would also be of great help. Thank you in advance for you help.

    I am looking to do the same i have ben looking on the net the last few months but have found nothing it has to be possible if you can play video on a tv you should be able to record. Maybe a developer would be interested in developing a app.

  • Passing a string into an SQL query IN statement

    Hello,
    I need to connect to a database to pull some data to dynamically create a form based on the data I pull back. My SQL query works fine when I manually run it through a SQL client tool, but when I try to pass it through my workflow I'm having trouble with passing my string into the IN part of the statement. So if for example my SQL query is:
    SELECT Field1, Field2, Field3 FROM Table1 WHERE Field4 IN (?)
    I have a process variable that has the string I'm trying to pass into the ?, but I don't seem to be able to get the query to run. I have tried setting up my query to run as a Parameterized Query (passing my string process variable into the ?), and by setting the query up through xPath (where I am calling my process variable with an xPath declaration), but am not having any luck.
    The process variable I am trying to pass is formatted such that I'm passing 'Value1','Value2','Value3' but I can reformat this string if need be. Even with using test data I can't get the query to return anything. For test data I have tried: 'Value1','Value2','Value3' ; Value1','Value2','Value3 ; Value1,Value2,Value3 but the query never returns any data. I can't seem to see how to format the string to pass into the query. The Query will work with a single Value in the test data, but as soon as I try to pass multiple values within the string it fails. Any suggestions?

    The problem looks to be a limit on what I can pass into the SQL query component. My string is coming from data returned from another database. I take the xml output from that database call, pass it through a set variable component to remove my xml tags from the string, and then format the string in a script component (I have to do it this way because of the way the data coming out of my first database call). I've put in loggers, and can see that the string I'm passing into my query that is giving me problems, is formatted the same way as if I were to use the concat function Scott listed above. It looks like there is a limitation on what can be passed in my variable. I have tried creating my entire SQL query statement in a set variable component, and then just calling the process variable that holds that statement, but there is a character limit of 128 character for what can be passed in a variable through xpath in the SQL query component.
    The next thing I tried was changing my SQL where clause. Instead of passing my variable directly into the IN statement I set up a PATINDEX('%:'+countyname+ ':%', ?) > 0 call to check for the values in my database call. As you can see I took out the "," that I was passing as part of my string, thinking that the SQL component was getting confused by them, and placed ":" characters around my values being passed in my string variable. No matter what I try to do though I'm not able to get the query to run. The component looks like it is taking my string, and is seeing the whole thing as a string instead of passing it as individual values within a string.
    I think I'm getting close, but I keep getting a Content not allowed in prolog exception in the server logs.

  • I can't paste text from external sources into Photoshop CC 2014.

    Hello everyone,
    Since a few days I'm not able to paste texts from external sources into Photoshop CC 2014.
    I never have problems with Photoshop CC before.
    I have the new iOS Yosemite installed in my macbook.
    It's really frustrating, can someone help please?

    I have basically the same setup, except on a Mac Mini. I am unable to reproduce your problem. Double check that you are copying the original text in the first place, and then make sure you are pasting into a text layer as you cannot paste into a regular Photoshop layer -- nothing will happen. Create a text layer by clicking on a regular layer with the text tool, the T in the tool box. The new layer will show up in the layers panel identified by the first line of the text.

  • I've been running Windows XP over bootcamp on an iMac for a few years now and I can't seem to get any sound from external devices into the machine. Any ideas?

    I've been running Windows XP over Bootcamp on iMac for a few years and I can't seem to get any sound from external devices into the machine. Any ideas?

    O.K. fgonoz98
    I would do 1 thing at a time:"now the micropohone is not working in facetime"
    Here is what you can check to get your mike working in facetime:
    1. Hold down option while you click on the speaker next to time a. date,
    under input Device see if your mic is marked. If not: ✔️
    2. Click the apple top left/System Prefs./click on the Sound speaker:
    under Input highlight microphone.
    3. When you have factime on go to video above scroll and see if your mic is marked ✔️
    If that does not get it to work there is more you can check:
    (Utilities/Audio, midi setup)
    For any other audio device you do this for input and output.
    If you get stock post back

Maybe you are looking for

  • Excel attachment in email

    Hi Friends, I'm using FM SO_NEW_DOCUMENT_ATT_SEND_API1, to send my internal table contents as excel attachment via e-mail. I'm receiving the xls attachment via e-mail.  I'm using cl_abap_char_utilities=>newline to pass internal table contents line by

  • Intermittent no cellular service on startup

    Hi, I have a ipad mini 32gb (non-r).  It is on Telus cellular network.  Intermittently, I have no cell data service when I power on the mini or if I switch from wifi to 3g.when I'm going out.  This is intermittent and happens 2-3 times a week.  the o

  • I click on firefox update for Mac OS X 10.6, the screen flashes then nothing happens. Pease help

    There is really nothing else to add, I have tried to download the latest vesion via the email sent to me and going onto the Mozilla web site.

  • CS4 Library empty  - Many threads here... few answeres

    I've installed CS4 from the CS4 Production Premium CDs .  Did what appeared to be a full install.  The routine doesn't offer many choices.... install or browse. I'm just now getting to Encore... having spent several days working up a project with PS

  • Using HA SQL server For 3rd Party SQL Access

    Is it possible to use the HA SQL server as the access point for SQL stored proceduers on a link server instead of the production SQL server. IPCC 4.0