WEBI Substraction of two classes in query filter

Please tell me how could i implement the following query in the WEBI rich client query filter.
and ( one."/BIC/ZORIG_DAT" - one.me_itmvalf ) < 364
AND ( abs(one."/BIC/ZINV_VAL") - abs(one."/BIC/ZSD_AFYV") > 1 )

First, you should know that there is a set of updateXXX() methods in Java 2.0. So, when you have the correct row of the resultSet in hand you can use:
updateString(3,"Hello world!")method to update the field in the column 3 to a String with value "Hello world!". This is just an example of course.
To make this example complete see this:
// assume you have the right row from the resultSet in hand.
// assume rs is your resultSet
int foo = rs.getInt(1);
foo += foo*0.05;
// and other calculations here
rs.updateInt(1,foo);
rs.updateRow(); // This line is here so as to make the changes
                // permanent.
                // No need to mention that you cannot change primary
                // keys...Second, I think I've given you a very clear example of what you can do. And since this is a Java assignment you don't want to be spoon-feeded, do you? :)
Hope this helped.
afotoglidis

Similar Messages

  • Error when using "inlist operator" in the query filter of Webi 3.1

    Hi,
    We are currently in the process of migrating Deski to webi (BOXI 3.1).
    The problem is, Deski is using the "inlist" operator which is working fine but after migrating to webi the inlist operator in the query filter is throwing the below error,
    *Error Message :*
    A database error occured. The database error text is: ORA-00907: missing right parenthesis. (WIS 10901)
    Appreciate your assistance on this.
    Thanks !
    Regards,
    Perialt

    Karthik ,
    Yes I am seeing an additional paranthesis in Webi SQL query.
    For example plz consider the product table below,
    SELECT
    Product.ID,
    Product.Name
    FROM Product
    WHERE
    Product.Name IN ( @Prompt('4) Name:','C','Product\Name-M',multi,free)  )
    As a work around in Custom SQL, If I remove the paranthesis the below query is running fine in webi
    SELECT
    Product.ID,
    Product.Name
    FROM Product
    WHERE
      Product.Name IN  @Prompt('4) Name:','C','Product\Name-M',multi,free) 
    But I want a permanent solution.

  • How can I use a variable in webi query filter

    I created a webi report using the fiscal year/month(period) field as a filter to show a window of 18 periods.  The report works just as requested using a between filter on fiscal period with prompts for both the start and ending periods.  Now I'd like to calculate the start period based on what was entered in the prompt for the ending period (e.g. enter 201106 for the TO prompt on the between statement and have the FROM statement filled in as 201001.)  I can create variables in the report to display both the user response to the ending period prompt and the calculated starting period, but I cannot figure out how to incorporate that calculated starting date into the FROM side of the between query filter.
    Any suggestions? 
    Thanks,
    Doug
    Sorry I got my froms and to's mixed up in the first draft. Edited by: Doug Roswold on Mar 4, 2011 6:27 PM

    Let me understand what you want to do.  You don't want to use two prompts, just one, insn't it?
    I mean, instead of:
    Filter area:
    Date between "From prompt" to "To Prompt"
    You want something like:.
    Filter area:
    Date between Variable  to "To Prompt"
    if I'm not wrong that's not possible to achieve in Webi Query  Panel.
    Can you modify your universe? The only way to achieve it is modifying your universe, creating your formula in the universe and assigning it to an object, so you can use this new object in your filter area like this:
    Date between MyUniverseObject  to "To Prompt"
    Edited by: PadawanGirl on Mar 4, 2011 8:15 PM

  • Dimension in WebI query filter needs to show Key and Description

    Hi,
    We have two requirements that we can't get them done:
    1. We are building webi report based on Bex universes and we need to show the key and description of an object in the query filter of the report. Does this have to be set in the Bex variable or in the universe?
    2. filter the LOV related to a specific dimension that is used in the query filter as prompt. The idea is to show a filtered list in the promp LOV of the dimension used in the query filter of the report. Does this have to be set in the Bex query or in the universe? If it is in the Bex Query, where exactly?
    Our system is the following:
    - BOE XI 3.1 SP2
    - SAP NW 4.0
    I await your answers. Thanks in advance.
    xtian

    Hi
    1. We are building webi report based on Bex universes and we need to show the key and description of an object in the query filter of the report. Does this have to be set in the Bex variable or in the universe?
    >> you can easily achieve that by creating a variable in the BEX query - that will return as a LoV with key and description assuming you have key and description in BW for the InfoObject.
    2. filter the LOV related to a specific dimension that is used in the query filter as prompt. The idea is to show a filtered list in the promp LOV of the dimension used in the query filter of the report. Does this have to be set in the Bex query or in the universe? If it is in the Bex Query, where exactly?
    >> so like filter Country = US in the filter and then prompt only for customers in the US ? if so that is not possible right now.
    Ingo

  • Filter Information for two parameters in Query Designer

    Hi Gurus !!
    I have a problem for filter information for two parameters in Query Designer,
    the first parameter correspond a Ejercise-Period, the second parameter correspond
    a Compensation Date of document, both parmeters must have date less than or equal to
    to the parameter date input for screen (mm.aaaa).
    Internally the Report must filter countable information for Countable Date <= Parameter Input and
    Compensation Date of document <= Parameter Input.
    If i assign two filter parameter in Query Designer, not could realise this.
    Exist any simple form to realise this ??
    Wait for yours responses.
    Thank You.

    Hi shanthi bhaskar,
    Thanks a lot for your answer.
    I have one doubt about it:  with this solution that you propoused the user will be able to select the values for plant?.
    I mean, the user make the selection of the value for Zone, then he wants to see the in plan´s variable the values that corresponds with this Zone for make a new selection of plan.
    What happens if I need this dependency also in another variable like time variable?
    Thanks  a lot

  • Rich Client Query Filter Pane question

    I've browsed through various forums without finding an answer to my problem. I'm frustrated and hope someone else has been there/done that and can offer a suggestion to ease my pain.
    We're using BOXI 3.0, and my question is specifically about deciphering/maintaining the contents of the query filter pane in InfoView and/or Web Intelligence Rich Client.
    We have some complicated reports with numerous optional prompts. We realize this is not optimal, but need to maintain this reports until we can replace them.
    The filter panes are very complicated, since there are so many prompts, ANDs, and ORs and nested statements.
    Is there a way to see which universe component a query filter field is connected to? In the query results pane (on top), I can click on a field and it's source is highlighted in the universe tree view on the left. That doesn't happen when you click a field in the query filter pane.
    Is there some way I've not found yet, or is this an enhancement request for BOE? Thanks in advance.

    I guess this an enhancement request for BOE because I've never seen an option like that.  And I really wish that option existed.
    The only way I could think of to solve this problem is renaming all the objects of your universe.  This way you may know what class any object is related to when using the query filter panel.
    For example: You have 3 classes in the universe: Users, Quotes, Invoices.  Rename them with a prefix, let's say:
    U-Users
    Q-Quotes
    I-Invoices
    Then all the objects belonging to Users must be renamed with the U- prefix:
    U-User name
    U-User id
    And the same applies for the other classes objects:
    Q-Quotes:
        Q-quote id
        Q-User id
         Q-Amount
    I-Invoices:
       I-Invoice id
       I-Quote id
       I-Amount
    So if in one query filter panel you have a filter using the object Quote id, you'll see if this Quote id comes from Quotes or Invoices, because of the prefix Q- or I-.
    I don't know if it is a good practice but I hope it helps.
    Regards,
    Erika Atencio Harris
    Edited by: PadawanGirl on Jan 19, 2011 10:10 PM

  • Query filter vs report filter

    Hi,
    when running queries in webi, on a universe that is based on a BW BEx query, we often see a problem when trying to at dimensions in to the query filter pane. This often lead to columns switching place and/or report just showing the technical ID, not text. If we do the same filtering in the report filter pane after the query has run, there is no issue.
    When running a query on a universe based on a BEx query, my understanding is that a filter on a dimension (blue object), will be applied after the BEx query has delivered it's result to BO, and then BO/Webi should only keep the records fitting the filter. Why would this obscure the report result? Anybody else had issues with this?
    The users are used to adding filters to the query, and not adding filters in the report afterwards, and they are expecting this to work...
    Regards,
    Øystein

    Hi,
    To apply filters at two levels:
    The query definition u2013 this is the data defined on the Query tab, retrieved from the data source, and returned to the  report.
    The data displayed in the report u2013 this is a subset of the query definition data that you want to display in a specific version of the report
    Filters you apply to the query definition are called query filters. You use query filters to reduce the amount of data retrieved from the data source. Query filters decrease the time it takes to run the report and ensure that only the data relevant to the report users is saved.
    Filters you apply to the data displayed in the report are called report filters. Once the report is generated, you or other users can apply report filters to restrict the values displayed in the report table or chart. The values hidden by the report filters are still saved with in  the microcube. You can modify the report filters to display different values in the report or remove the report filters to display all the values retrieved from the data source.
    Tip
    Filtering the query minimizes the size of reports, reduces the time it takes to refresh report data, and ensures that the data the documents contain is relevant to users consulting the reports. Individual users can then filter the displayed report values by applying the report filters relevant to their specific business focus.
    All the Best,
    Madhu...

  • InfoView - Query Filter for date variable of previous week

    I am trying to automate the process to generate a report for the previous week's data.  Right now I just prompt the user to enter in the start & end date/times, but I would like to somehow automate the date filtering using a Query Filter.
    In particular, the report will be generated every Thursday at 12:35 PM, and it needs to filter only the date field between the date's of the previous Thursday @ 1:31 PM, and the current Thursday @ 12:30 PM.
    I know there is a way to do this using an offset or something like that, but I'm a bit of a newbie to InfoView....so any help is greatly appreciated.  Sorry if the explanation is confusing.
    Thanks so much,
    Nick

    Hi,
    You can create two objects on universe level or first database level then add in the universe based the sysdate.
    Then go to  webi  query and  replace the prompt value by these objects and from next time when ever user refresh this report will run  without any prompt.Same thing in the scheduled report.
    Thanks,
    Amit

  • WEB BASED MAPPING APPLICATION TO DEVELOP QUERY UTILITY USING MAPVIEWER

    Dear Sir,
    please any one can answer me as soon as possible its very urgent
    WEB BASED MAPPING APPLICATION TO DEVELOP QUERY UTILITY USING MAPVIEWER
    I     As oracle mapviewer Chapter 8 (Oracle Maps) says generating our own Web based mapping application we are trying to generate our own maps for our own data contains in our layers like example boundary lines and roads and etc. and we are following complete example as described in Oracle Mapviewer Document Chapter 8.
    Before this step we tried with demo data downloaded from OTN mvdemo. And we downloaded latest demo today itself from the OTN and imported into our database schema called mvdemo. And we copied all three jar files mvclient and mvconnection and mvpalette into our jdeveloper .
    II.     We created a jsp to execute the following code from oracle mapviewer chapter 8 documents
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/customizable" prefix="cust"%>
    <%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/jwcache.tld"
    prefix="jwcache"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/fileaccess.tld"
    prefix="fileaccess"%>
    <%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/jesitaglib.tld"
    prefix="JESI"%>
    <f:view>
    <html>
    <head>
    <META http-equiv="Content-Type" content="text/html" charset=UTF-8>
    <TITLE>A sample Oracle Maps Application</TITLE>
    <script language="Javascript" src="jslib/loadscript.js"></script>
    <script language=javascript>
    var themebasedfoi=null
    function on_load_mapview()
    var baseURL = " http://localhost:8888/mapviewer/omserver";
    // Create an MVMapView instance to display the map
    var mapview = new MVMapView(document.getElementById("map"), baseURL);
    // Add a base map layer as background
    mapview.addBaseMapLayer(new MVBaseMap("mvdemo.demo_map"));
    // Add a theme-based FOI layer to display customers on the map
    themebasedfoi = new MVThemeBasedFOI('themebasedfoi1','mvdemo.customers');
    themebasedfoi.setBringToTopOnMouseOver(true);
    mapview.addThemeBasedFOI(themebasedfoi);
    // Set the initial map center and zoom level
    mapview.setCenter(MVSdoGeometry.createPoint(-122.45,37.7706,8307));
    mapview.setZoomLevel(4);
    // Add a navigation panel on the right side of the map
    mapview.addNavigationPanel('east');
    // Add a scale bar
    mapview.addScaleBar();
    // Display the map.
    mapview.display();
    function setLayerVisible(checkBox){
    // Show the theme-based FOI layer if the check box is checked and
    // hide the theme-based FOI layer otherwise.
    if(checkBox.checked)
    themebasedfoi.setVisible(true) ;
    else
    themebasedfoi.setVisible(false);
    </script>
    </head>
    <body onload= javascript:on_load_mapview() >
    <h2> A sample Oracle Maps Application</h2>
    <INPUT TYPE="checkbox" onclick="setLayerVisible(this)" checked/>Show customers
    <div id="map" style="width: 600px; height: 500px"></div>
    </body>
    </html>
    </f:view>
    <!--
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <title>mapPage</title>
    </head>
    <body><h:form binding="#{backing_mapPage.form1}" id="form1"></h:form></body>
    </html>
    -->
    <%-- oracle-jdev-comment:auto-binding-backing-bean-name:backing_mapPage--%>
    III.     When we run this jsp it’s giving us following Two errors
    1     Error:     ‘MVMapView’ is undefined
         Code:     0
         URL:     http://192.168.100.149:8988/MapViewerApp-WebProj-context-root/faces/mapPage.jsp
    2     Error:     ‘themebasedfoi’ is null or not an object
         Code:     0
         URL:     http://192.168.100.149:8988/MapViewerApp-WebProj-context-root/faces/mapPage.jsp
    Please let us know what could be problem as soon as possible. Very urgent
    Please let us know where we can find Mapviewer AJAX API’s for Jdeveloper Extention
    Thanks
    Kabeer

    I currently use parameters, and they are passed from the form to the report. Report is then generated based on a function returning ‘strongly typed’ cursor. The ‘strongly typed’ cursor in my case returns a record consisting of an orderly collection of fields.
    This collection of fields is returned by another function that relies on the IF … THEN logic.
    However, the number of IF ... THEN statements is quite large (currently 64 covering all possible combinations of 6 parameters available in the form).
    I would like to avoid the large number of IF … THEN statements, and hope that there is a way of passing a string to a query, where the Dynamic SQL would in Select close and Where close reflect parameters passed by the form.
    In addition to this I would like to avoid creating and populating a table or a view dedicated to the report, because this may lead to a conflict in case of multiple users concurrently generating reports with different choice of parameters.
    Edited by: user6883574 on May 28, 2009 9:16 PM

  • Adding a list in Service Mananger Query Filter

    In this post:
    http://www.concurrency.com/blog/service-manager-request-query-result-filtering/
    " The trick was to setup the simple list to include no initial results, which provided very fast form load and quick search
    result return speeds. "
    They have a list or a prompt in their query filter. Is there a site anywhere that explains what this is, or where to do this? I'm absolutely baffled and searching provides no documentation but sky-high level overviews. 

    Lets say you want to filter users based on department. You'll end up with two questions in your service offiering
    Department to search in. refresh the next question after changing this value.
    User.
    the first question contains a simple list (see the table at
    This Blog Post for more details on that)
    [null]
    LegitDepartment1
    LegitDepartment2
    LegitDepartment3
    ETC...
    the second question is your actual query result question. The Criteria on this is going to compare the user's department to the results of the first question. >when the form loads, it going to run the following query:
    System.User where Department = [Null]
    Since there are no users with a null department, this result will be empty and return immediately. 
    Then, the user goes down, hits the right department, and then hits refresh on the second question and gets the correct users, clicks the right one, and goes on with their life. 

  • List of values in an universe or webi rep based in a bex query

    Hi ¡
    I need to create a list of values in an universe or webi rep based in a bex query, this  LOV  should be included in a formula used to filter our values when we run we webi rep.
    Any clue will be apreciated
    thanks

    Hi,
    which version of BOBJ are you using?
    Regards,
    Stratos

  • Bex Query Filter Page in BSP - Urgent Please...

    I have seen many threads about Bex query in BSP, but can any one tell me how can i display the default Bex Query Filter page in BSP.
    I created a query in Bex Query Designer and added few filters and when i execute i get a popup where i can enter the input values for which the report would be generated, can i get the same functionality or similar functionality if i have the same Bex query in BSP.
    Also apart from the filters specified in the Bex, all the columns displayed in the report appears in the filter section how can get the same functionality BSP.
    Note: I do not want to use Bex Web Application Designer
    Please tell me the steps for the same.
    Atleast please give me the steps at a high level. Please...

    Hi,
    1.  Create a CKF, inside the CKF window create a new Formula Variable --> Right click in left side window on var and say create new Variable
    2.  Create new variable of replacement path type and reference Characteristic as the TO DATE value which you want to be max.
    3.  Now drag this new created var to CKF and save.
    4. Now create condition with follwoing deatils:
    Key Figure              Operator     Value
    Max Date(CKF)       TOP N          1
    Save and execute your query. This will give you max value for the To Date field.
    Hope it works .
    Regards
    Raj Rai

  • Use Yesterday as variable for Query Filter

    Post Author: rrburton
    CA Forum: WebIntelligence Reporting
    I want to have a query filter that refers to the previous day.  In regular SQL I would use something like "= trunc(sysdate)-1".  I don't see any option for doing it this way in web intelligence, the closest it comes is selecting object and then assigning the Beginning of Last Week item from the System Date table.  What am I missing?

    Post Author: rrburton
    CA Forum: WebIntelligence Reporting
    Nevermind - I figured it out just now.  It isn't very intuitive.  In the Objects and Variables dialog in the SystemDate table there are a bunch of items like 1 day, 2 days, etc. and you select one of those and then in the code it looks like:
    WHERE   PKG_NTD_CONV.TO_ORCL_DATE(TROUBLE_TICKET_ARCHIVE.CREATE_DATE)  =  ( sysdate )-1
    It should say something like 1 day ago, 2 days ago, etc.

  • "Select All" option in Multiselect Query Filter

    Hi,
    Is there a way to select all values in a multiselect filter option in a query. currently i have created a variable or a mandatory filter which allows me to select all values one by one and then move it to right side, but its very painful option in certain cases where in i need to select all values. Is there a way where in one can select all values with a single click in Query Filter in Web Analyzer.
    Thanks
    Akila. R

    Hi,
    You can give range values in the Query designer.
    You can include variable selection where user can enter the selections with their own selections.
    Let us know if you still have any issues.
    Reg
    Pra

  • Passing Mutivalue Constant Query Filter is not working

    Hi All,
    I am using Webi4.0.On the Query panel when I try to pass multiple values to a constant filter it does not work.For example if I try to apply State filter in my Query and if I select Constant as its type and type A,B then Webi takes only A in the query and not B.
    I know it a simple task but however it is not working.
    Any help on this will be appreciated.
    Thanks in advance.

    Hi Riddhi,
    Can you pls put scrrenshot how you are passing multiple value to filter.
    ~Anuj

Maybe you are looking for

  • Runtime error when trying to use Thinkvantage system updater

    I get a runtime error when trying to use the Thinkvantage system updater.Have tried it numerous times and this is the exact message: "Runtime error! Program:C:\Program Files\Lenovo\System Update\tvsu.exe This application has requested the Runtime to

  • How to project the activity of ipad in tv

    Is there any application to connect the ipad to the tv without using apple tv, without cables, using DLNA but not only for watching videos, to see the exactly the same you see in the ipad? The same that you get when  connect  pc with one projector bu

  • How to do LDAP authentication in OC4J instance?

    Need to configure third party LDAP authentication for an application deployed in OC4J instance. How to configure this?

  • How to convert from ifs date format to sql based dates

    I want to write a sql query using dates, to search an ifs database. Ifs stores dates as numbers created using the java.util.Date class. These dates are accurate to seconds. PLSQL uses a different format. What I need is a PLSQL function that converts

  • Security for Internal WLAN

    I'm trying to figure out the best way to set up authentication on my WLAN for my internal users. I want to use certificates but I'm not exactly sure what layer 2, layer 3 and AAA settings I need to configure for certificates. If I do certificate auth