Change dinamically a formula in the report

I need to change a formula dinamically
So I'm doing this (some try catch omitted but presents), just to try I'm replacing ALL of formulas to string '1';
                    Fields<IFormulaField> formulas = null;
                                             formulas = myRpt.getDataDefinition().getFormulaFields();
IFormulaField formula = null;
                    for (int f = 0; f < formulas.size(); f++)
                              formula = myRpt.getDataDefinition().getFormulaFields().get(f);
                                                            String oldText = formula.getText();
                              String newText = new String("1");
                                                               formula.setText(newText);
But report actually go on using the OLD formula text... Why?

You need to use the FormulaFieldController.modify method.

Similar Messages

  • Change/View formula in the report ?

    Hi SDNer's,
    Is it possible for the user to view the formula used for a calculation in the report ?
    Any close workarounds? What if the user wants even to change the formula from the report ?
    Please share your thoughts.....any inputs wud really help !!
    Envi - Netweaver 7.0, BEx.

    Hi Werner,
    I have seen that feature and that wouldn't really help us. I was looking for a way out for the user to change the formula in the query ( w/o going to query though ), like change A0.68 to A0.75  from report itself.
    Thankyou though !!

  • Changes are not applying to the reports

    hi all
    i have moved the RPD and catalog file to UAT there i got few changes
    i did the changes in DVE and again i moved the changed reports to UAT ,but the report changes are not applied in UAT
    so i again i copied same RPD and catalog to UAT now it is working fine,
    why the changes are not applied to the reports that i have moved to UAT
    is it mandatory to move RPD and catalog to the other environment ??
    Thanks

    Hi,
    if you change even the filters and column names you cant modify only reports and place them in UAT,if you want to cnahge that way there is a tool CAF follow this link how to do that process
    http://debaatobiee.wordpress.com/category/obiee/setup-and-environment/
    If not you need to deploy RPD and catalog into UAT.
    By,
    KK

  • Report Server 10g - unexpected font change on second page of the report

    Hi all,
    I'm having a problem with Oracle Report server 10.1.2.3.0.
    It's sometimes using an unusual font (It think it looks like a Greek one).
    One example would be when a text overflow from page one to the second page it will change from Times New Roman to a "Greek" font and switches from bold to normal font it still happens in the same "Text" type item just on a new page. However when I update the text in the DB to a longer one so it flows through the whole second page to the 3rd page then it's using the correct font again.
    When I open the generated PDF file in a text editor I see an unusual value in one of the font settings "/BaseFont /#53#79#6D#62#6F#6C" when I edit it manually to the value taken from another occurrence of the "BaseFont" in the same file it helps and changes the font to the correct one.
    When I export the report to the PDF from report builder it's always using the correct font.
    The encoded font "/#53#79#6D#62#6F#6C" translates to: "Symbol"
    select CHR(TO_NUMBER('53','xx'))||CHR(TO_NUMBER('79','xx'))||CHR(TO_NUMBER('6D','xx'))||CHR(TO_NUMBER('62','xx'))||CHR(TO_NUMBER('6F','xx'))||CHR(TO_NUMBER('6C','xx')) from dual;
    The correct font is as expected "Times-Roman"
    I noticed that this happens only when HTML code is allowed in the Text/field. When I generate HTML version of the report I see after the page break and new table on the new page the following tag <font face="symbol">.  When I set Web Setting->"Contains HTML Tags" set to NO then font stays the same even after the page break.
    Did anyone experienced something similar?
    Thank you,
    Palo

    We have had this a few times before and there are 2 ways that most likley will fix this.
    If on mac close all adobe apps, do a find for all files with the .lst in their file name. Delete all you .lst files, they are font database files that go corrupt and will regenerate themselves when needed and usually a working copy.
    Close any multiple master fonts you have open in fontbook, and other utility such as Suitcase. Multiple master fonts will have a filename like "Kronos mm", and in the adobe illustrator type >> font menu i believe they have a different icon (possibly a mm) than the others {a(type 1), tt(true type), O (opentype)}
    Your problem is likely the 1st option, as the mm problem usually happens while editing the file, while the other is after you open the file. If you still have the problem, you then may have 2 different fonts sharing the same FOND ID number. Close as many fonts as you can, especially the one that looks like your wrong font.

  • EPMCOPYRANGE displays formulas outside the report on expanding

    Hi Experts,
    I am facing issue with EPMCOPYRANGE function as follows:
    I have an EPMCOPYRANGE function with certain formulas and save comment in Column M, N, O
    When i execute the report this function works fine (Example: it expands for 100 rows with correct calculations)
    When i refresh it again for a lesser data (Example: with data upto 50 rows) the rest of the 50 cells still contains the formula from previous EPM COPYRANGE and i get error as #REF
    Same is the case when i run the report for a period with no data, i can still see the formulas in the cells in column M, N, O
    is there any settings to be maintained for EPMCOPYRANGE function which i am missing?
    Regards,
    Shweta Salpe

    Hi Vadim,
    Here, when i select period 1 and refresh the report the report has 400 rows populated. With Variance ($) and Variance (%) as caluclated members through EPMCOPYRANGE function.
    When i refresh the report for period 2 the report has rows till 327 and the rest of the rows 328 to 400 still contains the formula for variance but since there are no refrence values it shows as #REF.
    When i refresh the report again for period 3 it will have 450 rows and when i go back to period 2 now, the rows 327 to 450 will contain unwanted formula in the variance column.
    Thanks,
    Shweta Salpe

  • How to schedule the webi report based on data changes in the report data

    Hello,
    I want  to schedule a webi report based on data change in a column in the report.
    The scenario is something like below:
    1. If a data of a particular column changes from 2 to 3 than I would like to schedule this report and sent it to users mail box.
    I know how to apply alerts or schedule a report or data tracking for capturing changes in the report but I dont know how to schedule the report only for data changes.
    Anybody done this before.
    Thanks
    Gaurav

    Hi,
    May be these links can help you:
    http://devnet.magicsoftware.com/en/library?book=en/iBOLT/&page=SAP_R_3_Master_Data_Distribution_Defining_Change_Pointers.htm
    SEM-BCS: Load from data stream schedule
    Attribute Change Run

  • Change Requests in the reporting schema?

    Hello,
    Do Change Requests, which I can specify for entities and tables in Data Modeler exist somewhere in the reporting schema? It would be a useful feature as it is quite cumbersome to figure out which entities are part of a change request otherwise.
    Thank you,
    Beatriz.

    Change Requests are exported to the Reporting Schema in the next release of Data Modeler

  • Native Crystal formulas don't work if VB6 is producing the report

    Post Author: pdavis
    CA Forum: Crystal Reports
    I just upgraded from Crystal 6 to Crystal XI (enterprise). (Yeah, OK. I don't rush into things.) About 70 reports apparently converted OK, i.e., they worked when looked at in Crystal design mode. Most have built-in formulas.
    Using VB6 to produce the reports (the reports are NOT embedded into the VB project via the Crystal designer; instead I'm creating a Crystal Reports object), none of the built-in formulas work (altho everything else about them looks fine). I can pass data to any of the built-in formulas (including being able to pass the code that originally constituted the formula) and the report will look fine, but I lose the flexibility to simply distribute new reports if I have to build the reports or their formulas into the project.
    I've scoured every resource I can find and have seen nothing suggesting this is a common occurrence, so I'm assuming it must be something I'm missing, something possibly subtle? Having just migrated, I'm sure there is lots about Crystal XI I don't know yet, but I would be extremely grateful for any help since I'm under deadline. (OS is Win2K server if that matters.) Thanks.

    1. You will find this option beside ? in Add-Ins. In that Settings --> BW Server Connection.
    + Not I didn't find... for example I saw... File.. Edit...view.. Insert... and others exactly like when you enter in excel ... the only difference it's that I saw activated the tool bar for bex analyzer.. on where I saw .. design mode... refresh..etc.+
    2. If you select the field in Free characteristics and restrict it with a variable in query designer mode, you will get that characteristic in variable screen and you can give the selection and you will not get that charcteristic in the output as you have taken that in free characteristic. Only if you do drilldown accross rows for that characteristic, then it will appear.
    If you take that into Rows in query designer mode, then you will get the same for variable selection and as well as in the output without drilldown accross rows. It will be displayed automatically.
    +The clear example is:  I have one free characteristic in report, like 0MATERIAL, this characteristics didn't have any restric value... then the user add 0MATERIAL into report just for see more details... later if the user filter 0MATERIAL with some values and click ok, the column 0MATERIAL dissapear from the report +
    did you have another idea to solve this?¡
    Thank you a lot.
    alice

  • How can i display all the Coloumns (Key Figures) in the Report's same page

    Hi All,
    I am currently working on the BI 7.0 reporting. In the BEx Query Designer report, I am having 13 coloumns (7 Key figures and 6 Formulas) in the report. It is now displaying 10 coloumns in the First page of report. The other 3 coloumns can be seen by clicking on the next page. But the requirement is to see coloumns in the SAME PAGE.
    Are there any settings OR any other thing in the Query Designer, which can enable me to see all the coloumns on SAME page. The users are not interested in scrolling next page for 3 coloumns.
    Appreciates the Quick help/Response, please.
    Regards
    Ramana

    In Web Application Designer, for the properties of your analysis webitem under the Paging category, change parameter 'Number of Data Columns Displayed at Once' (BLOCK_COLUMNS_SIZE) to 0.  This will make all columns show instead of paginating as it is doing now.

  • Curerency conversion for a Formula in the query designer

    Hi
    I have a ' Financial Loss Formula' in the report. I want to convert this 'Financial Loss' into USD Currency at query designer level.
    Source Currency = SAR
    Target Currency = USD
    So how can i do the curerency conversion for a Formula in the query designer.
    pls let me kow
    kumar

    Hi,
    If you define your query conversion in BW then it is easy to do currency conversion through Bex.What you need to do is use calculated key figure instead formula and do a right click select properties there at the currency translation area you ca select defined currency conversion in BW and your target currency.
    /people/rasim.manavoglu/blog/2007/04/30/currency-currency-currency
    Regards.

  • [Trouble] The Report has no tables

    Hi there,
    i have trouble in using Crystal Reports for .NET 2.0.
    I load a CSV file via JetDB Provider as Text database and try to use it as DataSource for my report.
    But it crashes all time, with a error like this "report has no tables".
    Actually i dont really know Crystal Reports well, i got the project from an ex-employment from our Company.
    Of course i readed the PDF documentations "Reporting Off ADO.NET Datasets", "Crystal Reports Guide To ADO.NET", "Connecting the Report Designer Component to a Data Source" but that didnt help me at all.
    So i hope you guys can help me,
    here are the code: http://rafb.net/p/hMon9Z65.html
    with best regards,
    Torsten Sailer

    So if I understand correctly, you are loading data from a CSV file into a DataSet object and passing the DataSet to a report that you have loaded using the ReportDocument object?  Are you using the SetDataSource() method to pass the DataSet to the report?  
    Make sure that the schema of the DataSet isn't changing from when you designed the report.  The report's schema must match the DataSet schema when passing the DataSet to the report. 
    The best way to troubleshoot the issue is when the error occurs, write out the DataSet to an .xml file (with the schema) and then in a simple Windows app, load the same report, and the xml schema/data into a DataSet object (rather than the CSV) and see if the same error occurs.  If it does, open the report in design and do a "Set Database Location" to your xml file and see if it picks up any changes.  If it does, then that might be the reason why it errors....the schemas are not matching and you need you find out why.
    <p>-MJ</p>

  • Changed DSN in connection object but reports still use value from old DSN

    We're running BObj XIr2 SP4 and have both WEBI and DESKI reports. Most of our DESKI reports have two data providers, one from a universe (header/footer info) and one for free-hand SQL (report data). We are testing in preparation to upgrading all our databases to SQL2005 and have created a new DSN which points to a SQL2005 database to be used by our universe and free-hand SQL connections. We modified our existing connections to use the new DSN and to use the SQL2005 database engine. Our WEBI reports are working just fine and are returning data from the SQL2005 database, but on the DESKI reports the header/footer info from the universe is correct but the report data is coming from the "old" SQL2000 server. If we create a new DESKI report and export it, it retrieves data correctly from both data providers, but the existing DESKI reports, which use the same connections, have the same problem. The new DSN exists on the app server and points to the correct database.
    We were hoping that, like the WEBI reports, the changes would be transparent to the reports, but that doesn't seem to be working. Is there something we must do to get the existing DESKI reports to recognize and use the new connection parameters?

    Interesting - So, please let me know if I understand this correctly: If I create a new shared connection using DESKI or Designer on my workstation, it is saved to the server and creates an entry in my local lsi file but doesn't impact the lsi file on the server? If I later modify that connection via DESKI or Designer on my workstation, my local lsi file is changed but the server lsi file is not changed, meaning that any report using that shared connection running through InfoView will not use the new connection parameters but will use the "old" parameters from the server lsi file. If someone then modifies the connection via DESKI or Designer on the server those changes are reflected in the server's lsi file, but if I run a report using that connection via DESKI on my workstation, it will use the parameters from my local lsi file. That would mean that someone could actually delete the connection on the server and I could still run the report in DESKI?
    It also appears that the free-hand SQL reports can't use secured connections so I can't by-pass this issue by using secured connections...
    I'm assuming that secured connections don't work this way since our Universe connections were modified on the workstation and saved and work correctly.

  • PS 2013 - Changing the formula in custom field not reflected in the report columns

    Hi, 
    The company where I work have a Sharepoint environment / EPM 2013 with about seven hundred registered projects. 
    We have a customer demand where it is necessary to change the formula of one of the custom fields of the environment. This field is used in some management reports made ​​in Reporting Services and accessed by the entire board. The report uses as a source
    'MSP_EpmProject_UserView' view. 
    The change in formula was simple, but we found that the change will not be reflected in the reports when the user saves the project in Sharepoint or publish the schedule associated with the Project. 
    I believe this is the expected behavior of the EPM, but I wonder if there is some other way than through the PSI, to publish all environmental projects.  
    Best regards,
    Armando Machado Gonçalves - Sharepoint / EPM 2013

    Hello,
    That is expected, it will not update until the project is open and republished. No automatic way to do this without automating project pro. Publishing all projects via the PSI wont cause the plan to recalculate, the plans will need to be opened.
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Change Preferred Viewing Locale by a paramter field in the report template

    Hello,
    Is there a method that allows to change the Preferred Viewing Locale at the report template level?
    Actually I have some templates for final clients in different countries, and these reports should be generated in Infoview.
    In order to generate reports in different languages, I inserted a parameter {?Language}
    Then for caption/text I used a formula like this
    Select {?Language}
    Case "en_US": .....
    Case "de_CH": .....
    Case "it_IT": .....
    Case "nl_BE": .....
    However this won't work for date axis in charts and number formats.
    So I switched to Preferred Viewing Locale settings, which seemed to be exactly what I wanted cause everything can be changed according to the local settings, except that I need to change the setting every time by selecting View - Preferred Viewing Locale - German - (Germany)... for 20 different reports
    And what's more important is that I cannot change this setting when I launch the template in Infoview. Change in Preferences will impact all the templates while I just need change on one template only.
    I had a look on all the functions available and it seems that ContentLocale function can only display the current setting.
    Is there any solutions?
    Thanks in advance,
    Wenzhao

    Post your question to BOE Admin forums

  • Dynamic changes in the report

    I generated one report in BI 7.0 using the BEx Analyser. But what the user want is to simulate the report in according to the market changes. For example: Suppose fields for the ingredients of a product and the % of amount used to get the profit is there in the report. He wants to try for the various possibilities that he can do to get better profit from his products mentioned in the BEx report. So what he wants is ‘whatever changes he do in the report should reflect the other fields in the report for planning his future composition. How can this be done in the report? Is it possible by using macros? How to use Macros in this case? Can someone please explain this in detail?

    I generated one report using BEx Analyser. In that report price of individual raw materials are there and the total cost for the production of a commodity from that raw materials. After the report generation my client understood that the price of certain raw materials varied. So he wants to change the price of the raw materials manually and get the total cost after the change. This is the requirement.
    What I think is that the formulas used in the  report can be generated to another excel sheet and using macros i can do the calculation and can show the result in the new excel sheet. I dont know whether this idea will work or not as I am unaware of how to generate the formulas to another excel sheet and I am unaware of the macro code. So can anyone help me to solve this issue by explaining in detail and can someone send me some macro codes for example that can give an idea of summation of filed values.

Maybe you are looking for