Calculation builder in adhoc tool application

Hello All,
I have problems with calculartion builder tool in adhoc tool sample. Firstly it displays all measures from catalog even though my presentation uses only some of them. How can I filter the list ? Can anybody can provide me with a code snippet for that. Right now code looks as follows:
// Create our CalcBuilder
QueryContext qc = (QueryContext) m_analyzer.getActiveWorksheet().getActiveDataview().getDataSource();
MetadataManager mdm = m_connection.getMetadataManager();
// CalcBuilderStepStorage does everything for creating a new Calc
// and adding it to the MeatadataManager
CalcBuilderStepStorage calcBuilderStepStorage =
new CalcBuilderStepStorage(null, /*component*/
null, /*mdObject*/
qc, /*queryContext*/
mdm/*metadataManager*/);
// Invoke the CalcBuilder -- if the user press the OK button to create
// a new calc the calcBuliderStepStorage will do all the work for saving
// and making the calc appear in the Query Builder.
MDMeasure mdMeasure = (MDMeasure) calcBuilderStepStorage.invoke();
Secondly for some options (like Index) in case of some measures the list of dimensions is incomplete, but I hope it is connected with first problem, because the list is incorrect only for the selected presentation. After that the connection crashes and application is not usable.
Thanks in advance for any suggestions

The answer is:
CalcBuilderStepStorage calcBuilderStepStorage =
new CalcBuilderStepStorage(null, /*component*/
null, /*mdObject*/
qc, /*queryContext*/
mdm/*metadataManager*/);
calcBuilderStepStorage.setQueryFilter((Query)qc);
MDMeasure mdMeasure = (MDMeasure) calcBuilderStepStorage.invoke();

Similar Messages

  • Which tools build a web service application

    i am a greenhorn in web services.
    i want to build a the example " <INSTALL>/javaeetutorial5/examples/jaxws/helloservice/"
    This are the steps am following
    -open the cmd prompt;
    -type cd C:\Documents and Settings\Guest\Desktop\francis\sun\tutorials\jwstutorial20\jwstutorial20\examples\jaxws\helloservice
    -type asant build
    i get the message : asant is not recognised as a batch command.................
    i get the problem is that i have not set the classpath, but i need to now what builds the web service application or the directory which has the tool.

    If you want to create web service in java then you can use Apache Soap or Weblogic web services using EJBs.

  • Building online designer tool

    Hi Gurus,
    Just a newby in AIR and Flex environment. I have development
    background in Microsoft Technologies (especially web technologies).
    I am considering AIR environment for building a designer tool
    that should let a user perform the following operations. The basic
    question on hand is "Weather its a right tool/environment to build
    this kind of application". The feature list is:
    1- Should have open (not limiting on height or width) canvas
    as background layer.
    2- User shall be able to upload an image on background layer.
    3- User shall be able to add layers on above background
    layer.
    4- Each layer should let the user add interactive objects
    (custom objects MXML+ Action Scripts + Web Services).
    5- Each layer should be treatable as composite/individual
    entity
    6- Z-indexing of various layers
    7- Show/hide any layer
    8- Transparency for overlapping layer (must be configurable
    for each layer)
    9- Save the complete document with all layers in some format
    (preferably in xml format)
    Any help or direction is highly appreciated.
    Shahzad

    Yes, with a bit of a caveat for #1. The maximum size of a
    bitmap is 2880x2880 pixels (but you could display multiple bitmaps
    in a layer if needed).
    The Flash display list lends itself pretty naturally to a
    layered system (which isn't too surprising since that's essentially
    what the Flash Authoring tool does).There's a good description of
    the display list in the Programming ActionScript chapter of the
    Flex and Flash docs:
    http://livedocs.adobe.com/flex/3/html/05_Display_Programming_01.html

  • How to integrate a flex build in a web application running on jBoss 5.1

    Hi,
    I have two flex builds for a messaging application that I have to integrate with my web application running on Jboss 5.1 . I have tried hot deploying the builds into the default deploy folder of Jboss,but that approach doesn't seem to work(maybe because I may need to make war out of the flex builds). Can someone tell me an approach of how to accomplish this. Can I leverage BLAZEDS for this purpose.
    Thanks
    Rohit Kumar

    Hi,
    Go through Re: Web Dynpro and Smart Forms.
    Regards,
    Satyajit.

  • Problems building a stand alone application with LV 8.6.1.

    I'm having problems building  a stand alone application with LV8.6.1. I'm using a USB- 6008 DAQ and USB-6501 Digital device in the application. I already have an simple executable on the machine so the Run time Engine is already installed.  For the USB DAQ device, I assume I need to include the DAQmx8.8 as one of the installers. When I attempt to build the application, I'm prompted for several disk, one being a distribuition disk 1. I have the installation disk for the developer package. I did not  see a distribuiton disk as one of the installation disks. When I insert disk 1 I get an error that another application is trying to run. Could someone tell me which installers I need to include and where do I find the "distributor" disk.
    Thank you,

    are you building installer for the first time on this PC?...It usually asks for the drivers CDs and some toolkits if required.
    you just need to use drivers CDs (comes with LabVIEW) from which you installed on this PC. If you have ever upgraded drivers, then you have to use the latest CDs only.......
    another issue may be ...when u insert the driver disk, it has autorun, it will launch drivers installation wizard....close that and then try to build distribution......... 
    Message Edited by Anil Reddy on 09-25-2009 01:22 PM
    Anil Punnam
    CLD
    LV 2012, TestStand 4.2..........

  • Report builder error after applying sql server 2008R2 SP3 when click on report builder gives error like 'Application validation did not succeed. Unable to continue.

    Hi All,
    I applied SQL server 2008 R2 SP3 recently but report builder doesn't work since then
    When click on report builder gives error like 'Application validation did not succeed. Unable to continue.
    and when I try to see details the error summary like following:
    +File, Microsfot.ReportingServices.ComponentLibrary.Controls.dll, has a different computed hash than specified in manifest.
    this is urgent.
    Please reply me asap.
    thanks a lot in advance.
    Regards,
    Nik
    Regards, Naman

    Hi nikp11,
    According to your description, you recently updated SQL Server 2008 R2 to SP3, Report Builder doesn’t work since then the error occurs: "Application validation did not succeed. Unable to continue".
    This is an known issue in SSRS 2008 R2 SP3 that Microsoft has published an article addressing this issue. It is not planning to release a fix for this issue. But we could implement one of the following workarounds:
    Install and run Report Builder 3.0 of SQL Server 2008 R2 RTM.
    Install and run Report Builder of SQL Server 2014.
    Uninstall Service Pack 3 then uninstall Service Pack 2 and then reinstall Service Pack 3.
    Reference:
    Report Builder of SQL Server 2008 R2 Service Pack 3 does not launch
    Thank you for your understanding.
    Best Regards,
    Wendy Fu

  • Warning when building a web dynpro application

    Hi,
    Am getting the following warning when trying to build a web dynpro applications( DTR perspective - FPM application).
    Kind     Status     Priority     Description     Resource     In Folder     Location
    Warning               [Warning]: Path in Classpath for file SapMetamodelWebdynproContent.zip not found.     DJI_ZPOSMGMT_DZFPManalog.com          
    Warning               [Warning]: Version for file SapMetamodelWebdynproContent.zip not found.     DJI_ZPOSMGMT_DZFPManalog.com          
    Warning               [Warning]: Versions of '_webdynpro_admin.jar' have different prefix.     DJI_ZPOSMGMT_DZFPManalog.com          
    Warning               [Warning]: Versions of '_webdynpro_clientserver.jar' have different prefix.     DJI_ZPOSMGMT_DZFPManalog.com          
    Warning               [Warning]: Versions of '_webdynpro_model_dynamicrfc.jar' have different prefix.     DJI_ZPOSMGMT_DZFPManalog.com          
    Warning               [Warning]: Versions of '_webdynpro_modelimpl.jar' have different prefix.     DJI_ZPOSMGMT_DZFPManalog.com          
    Warning               [Warning]: Versions of '_webdynpro_progmodel.jar' have different prefix.     DJI_ZPOSMGMT_DZFPManalog.com          
    Warning               [Warning]: Versions of '_webdynpro_runtime_designtime_coupling_api.jar' have different prefix.     DJI_ZPOSMGMT_DZFPManalog.com          
    Warning               [Warning]: Versions of '_webdynpro_runtime_designtime_coupling.jar' have different prefix.     DJI_ZPOSMGMT_DZFPManalog.com          
    Warning               [Warning]: Versions of '_webdynpro_runtime_repository_pmr.jar' have different prefix.     DJI_ZPOSMGMT_DZFPManalog.com          
    Warning               [Warning]: Versions of '_webdynpro_runtime_repository.jar' have different prefix.     DJI_ZPOSMGMT_DZFPManalog.com          
    Warning               [Warning]: Versions of '_webdynpro_services.jar' have different prefix.     DJI_ZPOSMGMT_DZFPManalog.com          
    Info               TextView DefaultTextView: UIElement does not have a label     CcposView.wdview     
    I am trying to build the apllication.
    Does a warnning stop the web dynpro appliucation from been "build". If the applciation is built. Where can I get the .EAR file on my local machine. I want to pass the .EAR to the basis team for them to deploy.
    Does warning message prevent from getting the .EAR files from been generated???
    Please advise
    regadrs
    Sam

    Hi Sam,
    Have you a DC inside the JDI (Track)? - then it could be that you have an older Version from the files that you check-in into your Track - SAP_JEE.sca , SAP_BUILDT.
    If you have an older version of this files in your DC you must check-in this files again from the new Patchlevel and sync the DS's of your project!
    Carsten

  • Consuming toPDFA and isPDFA methods in DOCConverterService in Flex Builder 3.0 AIR Application

    Hi All,
    Does anyone have sample code how to consume and use the Docconverter service from Adobe Livecycle 8.2 ES in Flex Builder 3.0 AIR Application. I want to consume both the methods 1) toPDFA and 2) isPDFA methods to convert a PDF to PDFA and to check the compliance after conversion. If any one could help me in this, would be very grateful.
    Thanks in advance
    Umashanker.K

    I think the problem you are experiencing is this one:
    http://subclipse.tigris.org/issues/show_bug.cgi?id=511
    You probably have Subclipse 1.2.4 installed, which is the
    latest official release. But the new release based on Subversion
    1.5 has been in development for over a year. It will be version
    1.4.0 and probably released next week when Subversion 1.5 is
    released.

  • Building and Deploying Java applications in different platform (OS)

    Hi all,
    We currently have a J2EE based web services application that is built (compiled) and deployed on Windows 2000 Advanced server. But in future, we will be using WIndows 2000 server for development only and HP-UX for production.
    So, we are planning on executing the build (compilation) of our application on Windows 2000 server and deploy the same binaries (WAR) on HP-UX also. So, I wanted to know anyone has faced issues in the past by deploying an application on a different platform than the one on which it was compiled. Is it recommended by SUN to compile and build Java applications on the same platform on which the application is deployed.
    Note that in my case, the JVM versions between Windows server and HP-UX would be the same. But the JVM for Windows server has been provided by Sun and the JVM for HP-UX has been provided by HP-UX.
    Your inputs are greatly appreciated.

    Well, it's all Java, right? So what's the problem? Since the JVM for HP-UX isn't made by Sun, so there could be compatibility problems, but I would expect that would be minimal if a problem at all. But you can't know unless you run it.
    I don't know about building on the different systems. Java's supposed to be write once, run anywhere.... The byte code should be compatible no matter what. I've never heard of Sun saying "compile it on each platform". If the HP JVM isn't going to like bytecode compiled on Windows or another OS, then something isn't kosher with someone's JVM or compiler.

  • Get message "Choose Cinema Tools application"

    I tried for the first time to use cinema tools in my Final Cut Pro 7.0.3, but i dident find the application. My application folder in finder its totaly empty. I see some cinematools.fcpres files with NTSC and PAL in the Final Cut folder but its not some install files. Can i in somehow download just cinemma tools and get it in to my Final Cut program or how should il do? I have a work in progress and i need this application to get it done. So when i mark an clip an choose open in cinema tools i get the message "Choose cinema tools application".
    Please help me!
    Thanks / Gabriel

    But i havent the dvd, my question is if i can download Cinema Tools from apples homesite and put it in the folder application? Or if i download cinema tools where should i put it?
    I dont knnow why it dident start when i installed it from the begning

  • Report builder in Web Tools

    Does anyone know where I can find documentation on the Report Builder in Web Tools?
    I've already looked at the documentation and e-learning but they do not seem to cover this topic.
    Regards,
    Douglas

    In this post here:
    [Re: How  to find out list of users who has logged into webtools|Re: How  to find out list of users who has logged into webtools]
    I give an example of creating a report to see who has logged in.
    Creating reports usually follows this methodology:
    1) Enter in your query on the queries tab and give the section a name
    2) On the Template screen, make sure the "section name =" tag matches up with one of your queries.
    3) To display variables in your template you can use CAST in your SQL query and then it will be available as %%CastVariable%% or you can also use column titles in the same way %%ColumnName%%
    4) The rest of the formatting is in standard HTML
    Hope this helps some, I'll keep looking for good examples.

  • Is JSF fitted to build a multi-views application?

    Hello,
    I'm looking for technologies to build a new Web application and investigating JSF, but I need experienced advices to make my mind if JSF is fitted with this type of application.
    This application will use a MVC model, but instead of a simple HTML view, it'll have multiple views. The majority of these will be HTML pages, but not only. A view can be selected on a request parameter or client detection, or even on the application setup.
    The multiple views are used mainly for:
    - localization when the languages supported have an impact on the layout of the page.
    - customization of the application by customers, when light solutions based on CSS or parameterization is not enough.
    - support for different clients, probably based on user agent detection.
    At first, I thought going the classical path, with servlets or Struts with a XSLT filter, but this solution suffers of:
    - XSL is not simple, and finding Web designers fluent with this technology is hard.
    - Why reinvent the wheel with servlets when MVC framework have matured (I particularly like JSF actions workflow)?
    With the planned number of different views, frequently changing or adding new onews, what I seems to need is JSF with views defined as templates, something like incorporating Tapestry and Cocoon ideas. But from what I've read on JSF, it seems to me to be too much HTML oriented (just look at the structure of the tags or the use of JSP pages), even if I can develop other RenderKits.
    Do you think JSF could be adapted for this kind of application? Do you have any technologies advices?

    With no response to my question, what should I conclude:
    - No one has developped such multi-views applications...
    - No one has gained enough experience with JSF to answer...
    - This question is already answered in a FAQ somwhere...
    - This is not the correct way to support strong localization of a Web application. You won't dare answer such a basic question...
    - Your management doesn't allow you to share your experience with JSF...
    - {Pick a randow excuse and copy it there}

  • Build and Deployment Tools

    Hi All,
    Are there automated build and deployment tools available? are there any recommendations?
    Thanks
    Sravz

    user11138361 wrote:
    Is there one which does both
    1. Automatic Build
    2. Automatic DeploymentYes, lots of them. Search for 'Continuous Integration' tools. We use Jenkins in our shop.

  • How to automatically generate a build file of the application from command-line

    Hi All
    How can we automatically generate a build file of the application from command-line (as opposed to using Jdev IDE to click to generate a build.xml) ?
    Thanks

    User, which jdev version do you use?
    I don't think you can do this. You can only create an ant build.xml from the project inside jdev.
    You can use ojdeploy to build the project.  This is the only method which will also make the necessary changes to the descriptors.
    Timo

  • How can build a bar code application ?

    Hello All!
    I am new in form 6i and Oracle 8i. My question is that how can i build a simple bar code reader application. Please write some code if anybody have or give the reference to study to build the bar code applications.
    Thanks in Advance.
    Ather

    It depends on the bar code reader you have - most wil have some sort of interface like DLL and Forms would integrate with that...so its not really a Forms issue - its more dependant on you barcode reader
    Regards
    Grant Ronald

Maybe you are looking for

  • Easy way to add members in hyperion reports that flow through levels

    All, I am creating a new report that I want it to flow through the generations properly without setting up each member and the children of that member manually. I would like to see the following: Level 3 member level 2 member level 1 level 2 member l

  • Media Encoder CC rendering adjustment layer seperately

    I just bought a new Mac Pro with all the goodies there were available and now want to use it as the central Mac for exporting Premiere Pro sequences. We work from a central server which has all the projects on it. Our different co-workers here sit be

  • VEIWING ATTACHMENTS ON THE NOKIA E61

    Does anyone know why my E61 comes up with a message "Unknown Format" when I want to open up attachments e.g. jpegs or pdf's . When I had my Blackberry they opened up with no problems. please answer because I'm going mad!!!!

  • My iMessage is not using my number.

    So i got an ipad but its not using my number on imessag. Instead it's using my mom's number and i've tried changeing it but my number doesnt show up in the option of recievers and i've found out it's the same on my Mac. My number works fine on my pho

  • How can I make a back-up with the MAC OS X disc on external data?

    Hello guys! I have a problem, my MacBook does not turn on, so to save some of the data I have to make a back-up. For this I bought an external drive to put the data on. With the disc MAC OS X I tried recovering the data, but this does not work. When