Creating a simple calculator

Hi all. I realize this might fall into the dumb question category, but I can't find any tutorials or walkthroughs on it.
I want to make a simple calculator. The user inputs the variables and that changes the values displayed.
I have all of the formulas as a table in Excel. I imported the data source (Excel), created a gallery and connected the various input and text boxes to the corresponding column labels in Excel.
But when you change the values in the text input box the other fields don't change. It's almost like Siena forgot the formulas and is just displaying the text.
Any help or directions to a tutorial would be greatly appreciated.
Thanks!

Hi,
When importing data from Excel, Siena retains the values not the initial formula. So you will need to create these formula using Siena expressions.
As a simple example, let's assume you want to add the values of two input visuals and display the result in a lablel, the text expression of that label would be:
label: InputText1!Text+InputText2!Text
Olivier

Similar Messages

  • How to create a simple calculated measure ?

    Hello,
    I'm having difficulties creating a very simple calculated measure within OBIEE administrator. Let's say I have a dimension "product" with attribute "product price" and a measure "sales count". I'm trying to define in the "Business Model" layer the calculated measure "total sales". In order to do that I defined it as as a Logical Column with expression "product price" * "sales count".
    However OBIEE doesn't compute what I'm expecting, it does in fact a cartesian product of the products and the grand total sales, which doesn't make sense. To alleviate that I tried to define the measure as associated to the Product level, then I get the computations right but the sales by product are not summed into a grand total.
    Anyway this seems like a very basic thing to do but I've not been able to find any documentation about it; the internal "Help" documentation is extremely limited. Is there another source of documentation that I'm not aware of ?
    Thanks for your help,
    Chris

    Hi there again,
    I'm coming back to you regarding the calculated measure above. As advised, I defined it using physical columns and am - almost - able to get the correct results. However I notice that the measure is not correctly aggregated over the "product" dimension. More specifically what happens is that the products are organized into a level-based hierarchy; only the leaf elements have an attibute "price"; the upper nodes in the hierarchy group different products together with different prices.
    The "total price" measure for such a node should be the sum of "product price" * "sales count" for all underneath nodes in the hierarchy, which is the way it is done for instance in AWM. However with the measure defined as above, I only get NULL values for upper nodes, due to the fact that "product price" is NULL for those levels and thus yields a NULL result.
    I've tried to circumvent the problem by associating the measure to the leaf level of the "product" hierarchy in the Properties -> Levels tab, however this doesn't seem to do what I want, it only forces the computation to happen at the lowest level of the hierarchy. What I would like is for the measure to aggregate to upper levels just as it would were it defined directly in AWM.
    Do you know how to do that ?
    Thanks for your help!
    Chris

  • Basic help with Flash v10 (creating a simple calculator)

    I have Adobe CS4 Pro with Flash v10.  I'm trying to create a simple, basic calculator that adds 2 numbers.  I followed the tutorial at http://layersmagazine.com/flash-design-calculator.html.  At first, I was unable to assign variables to any objects, but got that cleared up by selecting ActionScript 2.0 (was set to 3.0).  At this point, the calculator accepts the two numbers, but when I select the "add" button with the associated code as shown in the tutorial, nothing happens.  Does anyone have a suggestion as to what I might be doing wrong?  Thanks.

    This is all the code there is:
    on(release) {
    total = Number(firstnumber)+Number(secondnumber);
    There's really not an error--I just don't get any output.  I've created two 'Input Text' boxes, and on the properties tab for each I have defined the "Variable:" field as either 'Number(firstnumber)' or 'Number(secondnumber)'.  I've also created a 'Dynamic Text' box and defined the "Variable:" field as 'Number(total)'.
    Note:  the example I was following did not specify to include the 'Number()' function in the "Variable:" fields.  However, when I don't, and I run 'Test Movie', the 3 boxes are automatically filled with "_level0.firstnumber", "_level0.secondnumber" and "_level0.total".  When I type 2 numbers in to the 2 'Input Text' boxes, and then select my button that has the above code associated with it, I get "NaN" in the output ('Dynamic Text') box.
    Thanks again for your help!

  • Simple calculations in Universe not working for XI 3.0

    Simple calculations in Universe using key figures are not working in XI 3.0(without any Fix Pack)
    Below is the steps I followed.
    1. Using key figure [Jan] I am trying to round the values by deviding it by 1000.
    <EXPRESSION>@Select([Jan])/1000</EXPRESSION>
    This gives me a null cell value.
    2. I tried addition then
    <EXPRESSION>@Select([Jan])+1000</EXPRESSION> result was all the cell values changed to 1000.
    3. Finally without calculation I tried
    <EXPRESSION>@Select[Jan]</EXPRESSION> this also resulted null value
    But without EXPRESSION tag if I try @Select[Jan] it works fine.
    Am I missing anything in above expressions.
    As of now I am creating variable in report to incorporate the rounding.
    Thanks
    Raghu

    It was my mistake while writing the question. Path I have used is correct one only @Select(Key Figures/.
    If i use the above alone, I am able to se the data. But if I use in betwen <EXPRESSION> then it gives null value.
    Note: Pls dont confuse with flower bracket i used it just to avoid coverting it to a html link and also the backslash it was not showing in preview
    I have followed that pdf and created calculation in universe.
    Edited by: Raghavendra Barekere on Feb 6, 2009 6:42 AM

  • Need help with starting a simple calculator

    I have this simple calculator I just started on, and I'm having just a few problems. First of all, I don't know how to append text to a textfield. Maybe I would have to create a string buffere or something. Then, when the user clicks one of the buttons, the compiler goes crazy, and nothing is displayed.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Calculator extends JFrame implements ActionListener
         JButton[] btnNums;
         JButton btnBack;
         JButton btnClear;
         JButton btnCalculate;
         String[] strNames;
         JTextField txtDisplay;
         public Calculator()
              Container content = getContentPane();
              setSize(210,250);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              /*  construct a JPanel and the textfield that
               *  will show the inputed values and outputed
               *  results
              JPanel jpDisplay = new JPanel();
              jpDisplay.setLayout(new BorderLayout());
              txtDisplay = new JTextField(15);
              txtDisplay.setHorizontalAlignment(JTextField.RIGHT);
              jpDisplay.add(txtDisplay);
              /*  contstruct a JPanel that will contain a back
               *  button and a clear button.
              JPanel jpRow2 = new JPanel();
              btnBack = new JButton("Backspace");
              btnClear = new JButton("Clear");
              btnClear.addActionListener(this);
              jpRow2.add(btnBack);
              jpRow2.add(btnClear);
              /*  construct a string array with all the names of the
               *  buttons, then in a for loop create the new buttons
               *  and add their name and an actionListener to them.
              String[] strNames = {"7","8", "9","/", "4", "5", "6","*", "1", "2", "3","+", "0", "+/-", ".", "-"};
              btnNums = new JButton[16];
              JPanel jpButtons = new JPanel();
              jpButtons.setLayout(new GridLayout(4,4));
                for (int i = 0; i < 16; i++)
                     btnNums[i] = new JButton(strNames);
                   btnNums[i].addActionListener(this);
                   jpButtons.add(btnNums[i]);
              /* construct the final JPanel and add a
              * calculate button to it.
              JPanel jpLastRow = new JPanel();
              btnCalculate = new JButton("Calculate");
              btnCalculate.addActionListener(this);
              jpLastRow.add(btnCalculate);
              /* set the contentPane and create the layout
              * add the panels to the container
              setContentPane(content);
              setLayout(new FlowLayout());
              setResizable(false);
              content.add(jpDisplay, BorderLayout.NORTH);
              content.add(jpRow2);
              content.add(jpButtons);
              content.add(jpLastRow);
              setTitle("Mini Calculator");
              setVisible(true);
         public void actionPerformed(ActionEvent ae)
              for (int i =0; i < 16; i++)
                   if (ae.getSource() == btnNums[i])
                        txtDisplay.setText(strNames[i]);
         public static void main(String[] args)
              Calculator calc = new Calculator();

    First of all, I don't
    know how to append text to a textfield.
    textField.setText( textField.getText() + TEXT_YOU_WANT_TO_APPEND );
    Then,
    when the user clicks one of the buttons, the compiler
    goes crazy, and nothing is displayed.No, the compiler doesn't go crazy, the compiler has done it's job by then. However, you do get a NullPointerException, and the stacktrace tells you that the problem is on the following line:
    txtDisplay.setText(strNames);
    It turns out that strNames is null. I leave it to you to find out why. ;-)

  • Simple Calculations in BPS Web

    Hi,
    I am using the BPS web layouts (ALV Grid not the Excel Web Component). I would like to add a couple of very simple calculations (difference of columns/percentages etc). Is it possible to do this without using the Excel OWC ?
    Thanks
    Shailesh

    Hi
    the simplier way to achieve yor result is to use FOx formula to calculate your results at runtime .
    You should create a formula function and add FOX code to it .
    Check this link for examples
    http://help.sap.com/saphelp_nw04/helpdata/en/d3/8057f830a911d4b2be0050dadfb23f/frameset.htm
    Hope it helps
    Andr

  • Simple Calculations - Any Samples out there?

    I've created a simple form with inputs for Cost & Profit. I added two fields for Percent Profit and Price but want those to be calculated from the Cost and Profit entries. The calculation is simple and would be a no brainer in Excel, but I can't figure it out using the Help file alone.
    Percent Profit = Profit / Cost
    Price = Profit + Cost
    I'm sure I can get it if I could see some examples of simple forms that do calculations. Or even a detailed walk through would be nice. The Help file would be so much more "helpfl" if it showed a few pictures on where some of these functions are hidden. lol...
    Thanks.

    Thanks Zero. I'd like to see an example of this. What it sounds like is I bind a name to each field I want to use in the calculation.
    1. So under the "Binding" tab I enter a name for each object who's value is used or calculated.
    2. Then in the object I want calculated I set its value type to "Calculated-Read Only."
    3. Now I'm lost... where do I enter the formula? I tried entering "ProfitPercent.rawvalue = Profit.rawvalue / TotalCost.rawvalue;" in the "Default Binding" but that gave me an error "failed to generate...see log tab/" I love that... now I can't find the log tab.
    It took me hours just to find the Object tab....heh heh.
    My email address is Jim19596 "at" hotmail.com.
    My next question will be "How do I export the data from the form into an Excel spreadsheet row?"

  • Simple calculations of two columns (addition, subtraction, ...)

    Hi,
    I'm a job starter and working with Oralce Discoverer 10gR2 for the first time. I want to create a simple report. So I imported a view that looks like this:
    create or replace view v_report_inventories_bc_group as
    select a.the_date,
    a.entity,
    sum(a.histor_statutory_value) as histor_statutory_value
    from t_r2_facts a
    group by a.entity, a.the_date
    now I've generated a cross tab that looks like this:
    31.12.07 31.01.08 29.02.08 31.03.08
    group 100 200 300 400
    company1 70 150 200 300
    company2 30 50 100 100
    The problem is to show the simple difference between the last to months. Furthermore there are other calculations...
    How should I achieve this?
    Any advice would be very appreciate!
    Regards,
    Steffen

    Hi,
    If I'm understanding your question correctly...
    When you brought this view into the Admin Edition it should have asked you if you wanted to use the Default Date Hierarchy. Assuming you did there should be a value called the_date Month under the items in this folder within Desktop/Plus. You would want to add that item in to the top portion of your crosstab and it will then break out the data by month.
    To Subtract Column A from Column B you would create a calculation. The below link has a section called "How to create calculations" which should be of assistance.
    Thanks,
    Jeff
    http://download.oracle.com/docs/html/B13915_04/calculations.htm#i1012748
    Message was edited by:
    Jeff Hohman

  • Creating a simple spreadsheet

    Hello,
    I am trying to create a simple ledger with column A the date, B is description, C is production, D is Sales and E is inventory. I selected the E cell and put $E=$C-$D in the entry bar. When I clicked the √ to confirm it nothing happens. I hit enter and the formula appears below the E. Can't get it to calculate Only reaction I can coax out of it is when I hit auto sum and get a message "This operation requires a range with empty cells included at the end of the range. The results will be placed it the empty cells." Except for the formula on E1 that column is blank, figured the results would show up there.
    Sorry if my terminology is wrong anywhere or that this is a really simple function. This is really kicking my butt, can't figure it out. Would really appreciate help.
    Thanks in advance
    2 GHz PowerPC G5   Mac OS X (10.4.8)  

    Yvan writes:E1 inventory
    E2 =C2-D2
    E3 =C3-D3
    E4 =C4-D4
    F2 =F1+C2-D2
    F3 =F2+C3-D3
    F4 =F3+C4-D4
    I'm not sure that column F is really useful because summing object1 and object2 is meaningless.
    Like Yvan, I don't see the use of column F, assuming that the items described in lines 2, 3 and 4 are all different. That would be a classic case of adding Apples and Oranges (and perhaps, Bananas). A spreadsheet to track inventory of more than one kind of item will become somewhat more complicated, and any description of that should probably wait until the simple 'one category' version is completed and understood.
    If the items are all the same (ie if every line reports the production and sale of Apples), then column E reports the net change in inventory for that item on that day rather than the actal inventory. Column F, using the formula supplied by Yvan, reports the current total inventory for the same date. An alternate formula would be 'previous day's inventory' + 'today's net change':
    F2 =F1+E2
    F3 =F2+E3
    F4 =F3+E4
    Bill writes:Just tried using the Insert Function, ABS several ways including clicking on columns C, D and E and entering values or formulas with no luck.
    I'm not sure what you're saying here, Bill. The ABS(number) function, if that's what you're referring to, isn't useful for purposes of inventory calculations.
    ABS(number) in simplest terms, strips the + or - sign from a number and returns a positive value. The number may be the value contained in a cell, the result of a calculation, or the value returned by another function.
    Examples:
    5-3 = 2
    3-5 = -2
    ABS(5-3) = 2
    ABS(3-5) = 2
    OR, if cell A1 contains 5 and cell B1 contains 3
    A1-B1 = 2
    B1-A1 = -2
    ABS(A1-B1) = 2
    ABS(B1-A1) = 2
    Regards,
    Barry

  • Error while creating a simple trigger in Oracle8i Lite

    Hi,
    I have Oracle8i Lite release 4.0.
    I want to create a simple trigger on 8i Lite.
    first I created .java file and got the .class file after successful compilation.
    The .class file is sitting in my local C:\ drive.
    I have a table having only two columns in 8i Lite and the structure is
    TABLE : SP
    ACC_NO NUMBER,
    ACC_DESC VARCHAR2(20)
    Then I issued the command :
    SQL> ALTER TABLE SP ATTACH JAVA SOURCE "JournalInst" in '.';
    After that getting the following error :
    alter table sp attach java source "JournalInst" in '.'
    ERROR at line 1:
    OCA-30021: error preparing/executing SQL statement
    [POL-8028] error in calling a java method
    Following is the cause/action for the error code :
    POL-8028 Error in calling a Java method
    Cause: Most commonly refers to a problem when converting between Java and Oracle Lite datatypes.
    Action: Check the calling parameters.
    I can't understand where I am wrong ?
    Could anybody help me out ?
    Here is my source code of .java file
    import java.lang.*;
    import java.sql.*;
    class JournalInst {
    public void INSERT_JOURNAL(Connection conn, double AccNo, String AccDesc)
    System.out.println("Record Inserted for :"+AccNo +" "+AccDesc);
    Thanks in advance for solutions.
    Sarada
    null

    I just started with 8i Lite, but as far as I know 8i Lite does not support PL/SQL code.
    So you have to write your triggers and stored procedures in Java.
    Ciao

  • Error while creating a simple function, procedure or triger in Oracle8i Lite

    Hi,
    I have Oracle8i Lite release 4.0.
    While creating a simple proceudre/function/trigger on the database, it's throwing the following error:
    create or replace function test return number is
    ERROR at line 1:
    OCA-30021: error preparing/executing SQL statement
    [POL-5228] syntax error
    Here is my sample code.
    create or replace function test return number is
    begin
    return 0;
    end;
    Tried to create the same function in the user SYSTEM too but got the same error message.
    Thanks in advance for the soluton.
    null

    I just started with 8i Lite, but as far as I know 8i Lite does not support PL/SQL code.
    So you have to write your triggers and stored procedures in Java.
    Ciao

  • Can't create a "simple" group/course - and no upload

    Hi all,
    I'm quite new to this task of managing iTunesU for my institution (ICTP, www.ictp.it), and we just got admitted to the iTunesU platform since few days, so please bear with my poor experience (but I'm carefully reading the guides provided by Apple).
    Now... I've had no problem in creating/editing a few test pages/groups/courses, but I'm not able at all to create a "simple" group course, the edit menu only lead me to the two options: "smart" and "feed". And I cannot find the tool menu item to do the "Upload and Manage Files" (I guess it doesn't appear because there are no simple groups, the only ones that can accept manual uploads, am I right?).
    Just to explain better: of course I'll eventually implement a transfer script to upload our videos (I'm working on re-encoding some thousands hours of lectures...), but for now I would like to make some preliminary tests, and upload manually a few videos. What am I doing wrong?
    Is it possible that maybe our approval is still pending, and I'm not allowed to upload anything? But I can edit the site (but not publish it).
    I tried both interfaces, the iTunes.app native and the web one (the "iTunesU Public Site Management" on phobos.apple.com):
    the former is more complete but is missing upload option and "simple" group course creation, while the latter gives me only tools to edit the graphic appearance of the main page (banner, styles, etc...).
    thank you for any help, it will be appreciated very much!
    Carlo,
    Trieste (Italy)

    I think I've found the answer by myself in this thread:
    https://discussions.apple.com/thread/2018158?threadID=2018158&tstart=0
    Unfortunately, it's not the answer I was hoping for... apparently the option to store contents in Apple's servers isn't available anymore for newcomers to iTunesU.
    Now I have to manage a way to do local storage and RSS feeds, new challenge!
    Hope this may help others,
    Carlo.

  • I am trying to create a simple animated gif in Photoshop. I've set up my frames and want to use the tween to make the transitions less jerky. When I tween between frame 1 and frame 2 the object in frame two goes out of position, appearing in a different p

    I am trying to create a simple animated gif in Photoshop. I've set up my frames and want to use the tween to make the transitions less jerky. When I tween between frame 1 and frame 2 the object in frame two goes out of position, appearing in a different place than where it is on frame 2. Confused!

    Hi Melissa - thanks for your interest. Here's the first frame, the second frame and the tween frame. I don't understand why the tween is changing the position of the object in frame 2, was expecting it to just fade from one frame to the next.

  • Creating a rate calculator [was: how do i create this?]

    I want to create a rate calculator on a website with 2 input fields: calling from and calling to.  Here is what i've got:
    CALLING FROM table:
    COUNTRY     $/MIN
    Africa            0.10
    Europe          0.20
    Asia              0.30
    CALLING TO table:
    COUNTRY     $/MIN
    Africa           0.20
    Europe         0.30
    Asia             0.50
    USA             0.10
    Basically to get the rate $/min the CALLING FROM selected country and the CALLING TO selected country will be added together i.e calling from africa to USA would be $0.20/min (0.10 + 0.10).
    - How do i create the database for this? (in access)
    - How do i then create the rate calculator in a webpage? (asp/php)???
    I would really appreciate anyone who will be able to help me in this.
    Thank you very much.
    Natalie
    [Subject line edited by moderator to indicate nature of question]

    Create a database table with 3 columns
    Country
    ToRate
    FromRate
    Populate these values as appropriate.
    Create two drop down menus on your page; FromRate and ToRate.  Populate these with the values (Display value and rate) from the table.
    Then, you could either:
    1) Submit the form to a server side script that adds and displays the values
    2) Use Javascript to add and display the values

  • Is There A Way To Create A Simple File/Folder Tree...

    Hi,
    Please forgive me if this has already been covered but I have searched and found no answer...
    I am trying to create a web page to run on my local network, through iweb and apache, and have got everything I need working except this. I aim to be able to access my work files (masses of word documents and power-points) through the website but I can see no obvious way of doing this through iweb (short of adding individual hyperlinks to each file). Is there a tool or process I can use to create a simple folder tree in html that I can add to my site that lists all my files and allows my to "save target as" in windows (our college techie is still devoted to windows) ?
    Thanks in advance for any help...
    KP

    If you wanted to send a video as an mms from a mobile phone, the best option for exporting would be 3G in the quicktime export menu ( File > Export and it's in the drop down list).
    Keep it short and small and you shouldn't have any probs. There are some miserly operators out there who block MMSs bigger than 100K

Maybe you are looking for

  • SSO For Jabber 10.5

    Hi, Has anyone Configured SSO for Jabber successfully with CUCM 10.5 Version. I am getting following error after Exchanging Meta Data with ADFS Server. Can anyone suggest further troubleshooting steps. Of if there is any detailed guide for SSO with j

  • New Document Type Creation Problem

    Dear All, We create a New Document Type FR-Vendor Fright Charges through OBA7, i given no range also, when iam testing the through F-43 system showing the earror massage "Assign an accounting transaction variant to the document type specified" Where

  • Every email I have sent in the past two years just reappeared in my sent box and I can't delete them. Why?

    Every email I have ever sent just showed up in my sent box.  I can't delete them.  What's up?

  • Faulty Component

    Hello. I created two custom compoents for a small project. One of them is "OddRectangle", and is no more than the title suggests, just a rectangle with some special functionality. This one, when inserted in the main application works just fine. Howev

  • Add a button after each node of my tree

    Hi ! I would like to add a button after each node of my tree. I think I have to create a new TreeCelleRenderer but I really don't know how to make it. Can someone help me and give me an idea (or an example !) about the code. When I click the button,