Graphique double échelle et calcul dynamique de l'échelle

Merci de votre aide
Bonjour,
J’ai un graphique double échelle
                Echelle A             Minimum 0                        Maximum (Variable Longueur)
                Echelle B             Minimum 0 x Coeff           Maximum (Variable Longueur) x Coeff
Au départ, pour l’échelle B, je calcule les deux bornes ensuite j’utilise ‘Echelle Active des X’ avec le propriété 1 pour sélectionner l’échelle B, puis ‘Xscale.RngStart’ de région’ et ‘Xscale.Maximum’
Par contre, si en cours de route, je modfie la visu de l’échelle graphique 0, ça ne modifie pas l’échelle graphique 1. Normal, je ne fais pas le calcul
Pour synthétiser ma demande, ce que je souhaite c’est que si je modifie l’échelle graphique 0 ou 1, ça modifie la 2ème échelle en conséquence. Je cherche une méthode simple, et ne pas à chaque mesure, aller regarder l’échelle 0, regarder s’il y a eu modif, et vice versa avec l’échelle 1.
J’espère que ma demande est assez explicite.

Je pense que tu aura tes réponses ici :
http://forums.ni.com/t5/Discussions-de-produit-de-NI/Modifier-dynamiquement-les-%C3%A9chelle-d-un-gr...
à +
Dcharala, Ingénieur en instrumentation, pratiquant de LabVIEW 2010 sur Windows XP.

Similar Messages

  • Modifier dynamiquement les échelle d'un graph et si possible faire une double échelle pour l'axe x et y

    Bonjour,
    j'ai un tableau de données représentant un signal. Dans mon exemple joint, il sagit d'un signal carré.
    Dans mon cas, ce tableau fait 2508 points.
    Le graph actuelle que j'ai, affiche en x l'indice du point, donc de 0 à 2508, et en y les valeurs dans le tableau.
    ceci me convient presque, sauf qu'a partir d'une variable d'entrée sur mon schéma, je souhaite initialiser le tableau avec x à 3000 points.
    alors je pourrais le faire dans les propriétés du graph et ne plus y toucher, sauf que dans mon programme cette variable d'entrée peut avoir par exmple les valeurs 1000, 3000, 6000, etc...
    Cette variable se trouve dans un menu déroulant
    je pense qu'il faut créer un noeud de propriété pour ce graphique, je ne trouve pas quoi choisir.
    Dans le cas où ça fonctionne, est il possible d'avoir un double axe x. 1 avec le nombre de points, et un second axe qui correspondrait à un temps, c'est à dire le numéro du point multiplié par une constante temps. ?
    Merci d'avance.
    Je travaille sous Labview 2010sp1 avec l'ensemble des toolkits et j'ai sauvegardé le fichier en version 8.5
    je mets en fichier joint un vi avec le tableau des données, le grah.
    Résolu !
    Accéder à la solution.
    Pièces jointes :
    graph - double échelle.vi ‏14 KB

    Bonjour,
    Le plus simple est de cliquer avec le bouton droit sur l'étiquette de l'échelle déja présente (ici "Temps") et de faire "Dupliquer l'échelle". Ceci créera une deuxième échelle pour l'axe des X.
    Cordialement,
    Da Helmut

  • Calculating dynamic values from dropdown lists

    Hi all, here's the noob question of the day
    I'm creating an invoice form in LiveCycle Designer and I'm totally stuck at tax calculations:
    for each product you're able to choose between two tax percentages from a dropdown list and, at the end of the form, I want to show a total amount of each tax.
    product
    qty
    unit price
    vat
    net price
    red shoes pack
    2
    20$
    4%
    40$
    black shoes pack
    1
    25$
    4%
    25$
    white umbrella
    1
    10$
    7%
    10$
    total net price
    75$
    + TAX 4%
    2.60$
    + TAX 7%
    0.70$
    Total
    78.30$
    How can I set the + TAX 4% and + TAX 7% fields to grab their respective product rows?
    Sorry for my bad english.. I hope you get the question!

    You woudl have to look at each row inside of a for loop and then determine if that row had 4% or 7% tax. Then you coudl keep a running total of the tax for you calcultions such that when the for loop ended you would have the 4 and 7% totals calculated.
    Make sense?
    Paul

  • DAX Dynamic Banding | Calculated Member based on Calculated Field

    Good morning,
    I've created a Power Pivot model that measures the blood glucose levels of clinical patients at specific times of the day. The requirement is that this metric, let's call it GlucoseLevel, is always averaged as it wouldn't make sense to sum up the values.
    To meet this first requirement, I set the "Summarize By" property of the GlucoseLevel column to "Average".
    The second requirement is to band the GlucoseLevel values so that groups of people can be measured by this band rather than by the individual measure values. I created a banding table in Excel and then imported it into the Power Pivot model. The banding table
    has three columns (BandName, MinValue and MaxValue) and has the following values:
    VERYLOW: Min Value = 0; Max Value = 3.99
    OK: Min Value = 4; Max Value = 6.99
    WARNING: Min Value = 7; Max Value = 10.99CRITICAL: Min Value = 11; Max Value = 30.00
    It is at this point where I face my challenge. I have a GlucoseLevel measure and I have a banding table. Great. The challenge is: How do I create a calculated, dynamic
    member that will look at my GlucoseLevel measure (at whatever level), do a lookup to my banding table, and then return the "BandName" column from the Banding table at that specific level? So to clarify what I mean by level: I want to be able
    to view the bandings at Year level, or a Month level, or even at a week level. Then depending on what level I am at, my measure should have a Band associated to it.
    I've tried to solve this issue in a couple of ways:
    Attempt 1
    Create a calculated column in my fact table that contains a nested IF statement to manually band my GlucoseLevel values. This works fine if I view my data at the lowest level of granularity, however
    it does not work if I start looking at my data at the day, week, month etc. levels
    Attempt 2
    1.) Create a calculated field (not a calculated column) that averages my GlucoseLevel measure. This is cool because it will average my measure at whatever level I am viewing it at. Let's call
    this field Bob...
    2.) Band my measure Bob by creating another calculated field (called PatientBand). This field uses my banding table (described earlier) in conjunction with my calculated field Bob. This works perfectly, except for one big flaw: Excel sees this banding field
    as a measure, and not as something that I can use as a column / row...
    So my question is: Can I trick Excel into viewing my PatientBand calculated field as an attribute, and not as a measure? And if not, how do I get around this challenge? Here is the DAX formula that I used to create my second calculated field "PatientBand":
    PatientBand:=CALCULATE(
        VALUES (Bandings[BandName]);
        FILTER (
            Bandings; 
            Test[Bob] >= Bandings[MinValue]
         && Test[Bob] <= Bandings[MaxValue]
    Thanks!

    So there are 2 ways that I can think of for doing that.
    1) if you are only using MDX clients like Excel or Reporting services you can create a text based measure that returns the banding name. (Note that this sort of approach does not work at the moment with PowerView as it only displays numeric measures). This
    would effectively let you show a label next to a reading as opposed to moving the reading under a given banding column.
    Banding Name :=
    CALCULATE (
        VALUES ( Bands[BandName] ),
        FILTER (
            Bands,
            [Average of GlucoseReading] >= Bands[BandMin]
                && [Average of GlucoseReading] <= Bands[BandMax]
                && NOT ( ISBLANK ( [Average of GlucoseReading] ) )
    2) This next approach will show the results exactly as you had them in your sample screenshots. It just takes a slight bending of the DAX. I'm using a SUMX here, not because I want to sum anything, but because the "X" version of SUMX basically loops over
    every row in the specified table and sums the expression in the second parameter. I have setup the second parameter so that it only returns a single value for the average if it is in the appropriate banding. 
    Banded Average:=IF (
        HASONEVALUE ( Bands[BandName] ),
        SUMX(
            'Bands',
            IF (
                NOT ( ISBLANK ( [Average of GlucoseReading] ) )
                    && [Average of GlucoseReading] >= MIN ( Bands[BandMin] )
                    && [Average of GlucoseReading] <= MIN ( Bands[BandMax] ),
                AVERAGE(Readings[GlucoseReading]),
                BLANK()
    ,AVERAGE(Readings[GlucoseReading])
    http://darren.gosbell.com - please mark correct answers

  • Date Based Dynamic Member Calculation Performance (MTD, YTD, PeriodsToDate)

    I'm working on an SSAS 2012 cube and I have defined several dynamic calculations based on a Date (MTD, YTD, TD, Thru Previous Month, etc.).
    The cube has a well defined Date dimension and I have set up a DYNAMIC calculated set in the cube as shown below.
    CREATE DYNAMIC SET CURRENTCUBE.[Latest Date]
    AS TAIL(EXISTS([Payment Date].[Calendar Date].[Date].Members,[Payment Date].[Calendar Date].CURRENTMEMBER,"Claim Payment"));
    ... and here is an example of one of my calculations.
    CREATE MEMBER CURRENTCUBE.[Measures].[Face Amount Paid MTD]
    AS SUM(MTD([Latest Date].ITEM(0).ITEM(0)), [Measures].[Face Amount Paid]),
    FORMAT_STRING = "$#,##0.00;-$#,##0.00",
    //NON_EMPTY_BEHAVIOR = { [Claim Payment Fact Count] },
    VISIBLE = 1 , DISPLAY_FOLDER = 'Face Amount' , ASSOCIATED_MEASURE_GROUP = 'Claim Payment';
    This calculation returns the correct results, but performs horribly.  I've noticed that changing the [Latest Date] set to STATIC, performance greatly improves, but numbers are no longer accurate as they are based on the Tail of the Claim Payment measure
    group without considering the filtered dates.  This is because the date is evaluated at process time, but needs to be based on users date selection to be accurate.  Therefore, STATIC does not appear to be an option.  Is there a better way to
    perform this calculation dynamically based on the filtered or unfiltered date dimension?

    Typically I would just do YTD/MTD/etc off the date the user has selected.  It seems like you want to do it based on the last date with data within the range they have selected.  Why not just give the user what they are asking for?
    In other words, why not
    YTD([Payment Date].[Calendar Date].currentmember)

  • Calculating Average dynamically in BW Report

    Hello experts,
    I need to create a report where in I need to display month wise billing qty along with the average qty,
    here 'billing qty' is a key figure and "avgqty" should be calculated dynamically.
    The formula for avgqty is :
    "average qty" = ("beginning qty" + "n" stock at month's end)/(n+1) where n is the monthly duration that the user gives in the selection.
    ex: if the user put from "01/2006" to "03/2006" in the selection screen for the  Calendar Year/Month  then  here n becomes 2, so:
    "avgqty" = (total qty for jan + total qty for feb + total qty for mar )/(2+1)
    Can some please let me know the procedure on how to pass this "n" value to the formula that I need to use for my "avgqty" calculation.  
    Thanks & Regds

    Hi Murali,
    i assuming You have your Month variable (MONTH)( user/entry).
    First create 1 Customer Exit variable (CUMMONTH)with interval value. Go to CMOD and write this code.
    DATA: L_S_RANGE TYPE RSR_S_RANGESID.
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
    CASE I_VNAM.
    WHEN 'CUMMONTH'.
    IF I_STEP = 2.
    "after the popup
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'MONTH'.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = LOC_VAR_RANGE-LOW."low value = input L_S_RANGE-HIGH = LOC_VAR_RANGE-HIGH. "high value = input L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'.
    APPEND L_S_RANGE TO E_T_RANGE.
    EXIT.
    ENDLOOP.
    ENDIF.
    ENDCASE.
    Now create a selection which have this variable CUMMONTH.( so that you get the summation of total qty from jan to qty of mar)
    Now, come to your (n+1) part.
    Create a formula variable (FUMMONTH)again customer exit having single value.
    write this code. (not full code ..try in your system)
    char l(1),
    char h(1).
    CASE I_VNAM.
    WHEN 'FUMMONTH'.
    IF I_STEP = 2.
    "after the popup
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'MONTH'.
    CLEAR L_S_RANGE.
    lm = LOC_VAR_RANGE-LOW+4(2)."low value = input month
    hm = LOC_VAR_RANGE-HIGH+4(2). "high value = input month
    ly = LOC_VAR_RANGE-LOW(4)."low value = input year
    hy = LOC_VAR_RANGE-HIGH(4). "high value = input year
    'write logic
    'for if user enter from 2005(ly) to 2006(hy)..
    ' subtract h-l and give it L_S_RANGE-LOW
    L_S_RANGE-LOW = subtract
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE TO E_T_RANGE.
    EXIT.
    ENDLOOP.
    ENDIF.
    ENDCASE.
    after this..
    Make a Formula named Avg Qty
    =NODIV((That selection)(name of formula variable +1))
    Hope i m clear.
    Regards,
    San!
    Message was edited by: San!

  • Dynamic Safety stock calculation based on Future Requirements

    Dear All PP experts
    Our company wants to calculate the Dynamic Safety stock based on requirements in future period. Based on Standard SAP, it calculates dynamic stock based on current period only. So is there any way to do that. We are using MRP type PD.

    Use MRP type VM(Automatic reorder point plng) for Dynamic safety stock calculation.
    Also you can use coverage profile calculating dynamic safety stock.
    Use Tcode OMIA to define the coverage profile.
    For example if you  have defined a minimum range of coverage of 3 days, a maximum range of coverage
    of 7 days and a target range of coverage of 5 days.
    The system calculates the following:
    Minimum stock level = 3 x 15 pieces = 45 pieces
    Maximum stock level = 7 x 15 pieces = 105 pieces
    Target stock level = 5 x 15 pieces = 75 pieces
    The available quantity is 40 pieces and is therefore less than the minimum stock level. Therefore, the system creates a procurement proposal for 35 pieces (= target stock level 75 pieces u2013 actual quantity of 40 pieces) during the planning run.
    Regards
    S.Senthil

  • SSRS - Expression to color column value dynamically in Matrix

    Hi ,
    I have a matrix which looks like :
    The <<Expr>> value can be 1 /0 /"-" .
    The Expr value is being calculated dynamically.
    The data set query I am using has a column called due_days.
    In the color expression of the <<Exp>> box I am using the expression as :
    =IIf(Fields!Due_Days.Value>14  and Fields!Notes_Count.Value>0,"Blue",(Iif(Sum(Fields!Notes_Count.Value)=0 ,"Red","Black")))
    My requirement is if the Due_Days column value is >14 then I need to highlight the value as blue else black and if value is 0 then red. When I use the above query it is just highlighting the color blue for 1st column only. Eg: 4th row . Due days for month
    of Oct and Nov is > 14 but it shows blue only for month of oct.
    How can i resolve the issue?

    In select query i have 5 columns:
    Due days(Which is difference between 2 dates) ,
    Notes count (Which is just a count of notes  entered or not having value 0/1  and value '-' if another column CRD is greater than the matrix month and year.)Eg: below date 11/12/2014 is greater than Oct 2014 hence Oct 2014 should have "-"
    Month Name , Year , Month Nbr (last 6 months which I cross joined with the table to get counts for each month)
    The matrix has year and last 6 month  as column groups
    Color coding should be if notes count is 0 then red  ,if notes count is 1 and due_days> 14 then blue else black . When i try to use expression for color as i mentioned above, it colors only 1st colum.eg:  2nd row
    Nov 2014 is blue but for jan 2014 also it should show blue as due days>14 .
    Is there any way i can do that ??
    Eg: data set returns value as :
    Due Days        CRD                              Month         
    Month_Nbr    Year   Notes _Count
    5             2014-11-28 00:00:00.000    December          12         2014       
    0
    5               2014-11-28 00:00:00.000    February           2         2015        
    0
    5             2014-11-28 00:00:00.000    January              1           2015      
    0
    5            2014-11-28 00:00:00.000    November          11          2014       1
    5            2014-11-28 00:00:00.000    October              10          2014        0
    5            2014-11-28 00:00:00.000    September          9           2014         0
    Matrix is of the form :
                  YEAR
                  MONTH
    CRD        Notes_count

  • How to dynamically display in Image Field with external pic source

    Hi Guys,
    I have the following scenario:
    I need to have a form that needs to display an x amount of images on the same page area.  I have not found any documention with regards to creating an undisclosed number of Image Field elements, so I am experimenting with using a Table to display entries of type Image Field.
    I do not know at design time which pictures will be shown in this table.  This needs to be calculated dynamically when an Incident Number is supplied to the Java WebDynpro application that uses Adobe LiveCycle Designer (Dont worry about this).
    Now, first of all: Is it possible to use the URL of images that are OUTSIDE the form structure?  In other words, usually one would imbed the image in the forms structure, but because I do not know this image's URL at design time I need to pass it dynamically?  Please comment!
    Also, what is the FormCalc syntax for accessing a field in the "Data View" view at the left side of the designer?  For example, If i want to access the following part in the "Data View"view, what syntax should I be entering in the script editor:
    I would like to access this value as I would like to append it to the end of this statement so that I can get the value dynamically:
    this.value.#image.href=  ???????

    You cannot change the url of the image on the fly for security reasons.
    In your case you have to use the dynamic image fields in the xdp form, encode the external  images with base64 encoding to be a string, populate with those strings the xml and render  your template with this xml.
    Here: http://eslifeline.wordpress.com/2008/09/05/inserting-image-in-a-xdp/#comments you have a good example by Girish Bedekar for such a process.
    Yan.

  • Dynamic Columns with dynamic header colspans

    Hi All,
    Our project requires creation of dynamic data table at runtime. Following are the requirements.
    1.The number of columns and column headers should be dynamic. Basically the column headers are the Month names.
    2.Some or All of the above displayed months can be further split into 3 columns based on further values selected by the user. The months to be split into 3 columns will be identified only at runtime based on some calculations. When this happens, that particular month header should span 3 columns and an additional header for the 3 split columns have to be displayed. Check the screen shot below.
    ----------------------------------------------------------------------------------|-------------|
    Year: 2008 | Year: 2009 |
    ----------------------------------------------------------------------------------|-------------|
    |Current Month | | |
    -------------------------------------|--------------|-----------------------------|-------------|
    Sep | Oct | Nov | Dec | Year Total| Jan |
    ------------------|------------------|--------------|-----------------|-----------|-------------|
    | | |2008 |2009 |Total| | |
    ------------------|------------------|--------------|-----|-----|-----|-----------|-------------|
    Old |New |Total|Old |New |Total | | | | | | |
    Value|Value | |Value|Value| | | | | | | |
    -----|------|-----|-----|-----|------|--------------|-----|-----|-----|-----------|-------------|
    xx | xx | xx | xx | xx | xx | xx | xx | xx | xx | xx | xx |
    -------------------------------------------------------------------------------------------------Points to be noted:
    1.The colspan for the Year header is dynamic based on the months displayed for the previous, current, next year.
    2.The &lsquo;Current Month&rsquo; header is dynamic based on the month selected in the drop-down.
    3.The colspan for the month is dynamic based on whether it is displaying single column or 3 columns
    4.The header for the 3-column split is dynamic based on which are the months to be displayed with 3-column split.
    5. Irrespective of the month selected, DEC is always split into 3 columns.
    Is this achievable in JSF? Please let me know if anyone has worked on a similar requirement.
    Thanks and Regards,
    Anitha.

    Hi charishma/Raymond,
    Thanks for your response.
    charishma,
    I checked the link you provided and the code in that page. For me it looks like the colspan and rowspan are set by the user. Can it be done dynamically? I am still not in the development phase. I am still evaluating the possibilities. So it would be great if you can tell me if my requirements will be met with rich faces.
    Raymond,
    I am still in the evalution phase of whether this requirement is possible or not?
    In short, my requirement is to display columns dynamically. Based on certain conditions, each of the column can be further split to 3 more columns with 3 sub-headers below the main header. There are 4-5 rows of headers available for which the colspan has to be calculated dynamically depending on the total number of columns.
    The columns should be editable. i.e., the columns contain textboxes where the user can enter data. Again, the editable columns and non-editable columns are determined at run-time based on certain calculations.
    Is this possible? If not, i need reasoning as to why it is not acheivable.
    If it is not at all posible then the client is ready to compromise on the editing part. That is, data entry can be in a pop-up whereas, the the datatable should just display the data dynamically so as to print it for a report.
    Please let me know the possibility of this requirement.
    Thanks and Regards,
    Anitha.

  • Calculation issue on attribute dimension

    The issue that I'm facing with is as below. I have two pass calc on some of the measures in the outline. Since I'm not doing any calculation on the attribute dimension, when I drill down using this dimension it pops up an error message
    "Two-pass calc skipped on member [X] in attribute calc"
    Please advise on how to resolve this.
    Thr formula has @CURRMBR. The DBAG says that If a member formula contains a run-time dependent function associated with an attribute member name, and the member with the formula is tagged as two-pass, calculation skips the member and issues a warning message.
    It also says that Two-pass calculation member property is unavailable for attribute dimensions.
    So does it mean that every two pass calc member is skipped?
    I'm a bit confused.. how does it work?
    Is there a resolution for my issue? Please confirm if there is a way to get this two pass calc done for the formula with @CURRMBR.
    Thanks.
    null
    .

    Hello,
    I will give it a try:
    << I assume you have the two-pass calc member on the accounts dimension and the associated dimension of the attribute dimension is not the accounts dimension either. >>
    Attribute dimensios are calculated dynamically. They provide a different view on the members of the associated dimension which they belong to. There are 5 different calculation functions in the rollup of the members on the base dimension (sum, min, max, count, average).
    So this is within the associated dimension (sparse) which is linked to the attribute dimension (virtual).
    The accounts dimension is always involved in displaying figures. The attribute calculation e.g. sum is done last. So the dynamic calculations have to be done first. This message is likely a warning message that the value displayed is not the result of the two-pass calculation, but from the attribute calculation.
    You might review the storage setting of the member. Often the @currmbr is also not necessary in the formula when considering the calculation order of the members.
    Hope this helps a bit.
    Regards,
    Philip Hulsebosch
    www.trexco.nl

  • How do you convert this String into a double?

    Hi, in this code I want to convert String arg into a double. I'm trying to do this so that I can convert some string into a double in this calculator that I'm making. Here is the code:
    public class par {
    public static void main(String[] args) {
    String str = "351";
    double arg = new double(str); // should convert the string into a double
         System.out.println(arg);
         System.out.println(str);
    I keep getting errors in line 4, if any of you could help me out here I'll be thankful, i'm kinda new to java and my search for java's equivalent of alof() (its a function in C libraries that converts char[] into a double)lead me to this.
    Tony L.

    Use the Following:
    String num = "123.2";
    double d = Double.parseDouble(num);

  • Mapping measures in a cube vs Calculated Measure

    I have a fact table as
    Fact_Table_
    Sales Product_ID Special_Product_Flag
    Special_Product_Flag is a y/n flag
    and a Dimension_ table as
    Product_ID Product_Name
    I want to have 2 measures in the cube
    1. Product_Sales
    In the cube I specify the mapping for this measure as Fact_Table.Sales
    2. Special_Product_Sales
    in the cube I specify an olap expression in the mapping as
         case
         when Fact_Table.Special_Product_Flag = 'Y' then Fact_Table.Sales else 0 end
    Now is the measure      Special_Product_Sales treated as a calculated measure ?

    Here are definitions of base versus calculated measures.
    <li> A base measure is a measure that has associated physical storage in the AW. This physical storage is populated using some kind of load step, which may use either SQL or OLAP DML. The measure may then be aggregated according to the aggregation rules of the cube. The value of a base measure for any given cell in the cube may be stored or may be calculated dynamically depending on the "precomputation" rules of the cube.
    <li> A calculated measure is one that has no physical storage in the AW. The values of a calculated measure are always calculated dynamically regardless of the precomputation rules of the cube.
    Your case is clearly a base measure because you are physically loading data into the AW. The fact that you use a case expression in the mapping does not change the fact that is takes up physical storage nor the fact that it can be aggregated. It is the ability to aggregate the data that makes this a useful feature. In your case you will be able to aggregate special_product_sales up the product hierarchy so that its value for 'ALL_PRODUCTS' will be
    select sum(sales)
    from fact_table
    where Special_Product_Flag = 'Y'The value of sales for 'ALL_PRODUCTS', by contrast, would be
    select sum(sales)
    from fact_tableAs a side note it may be better to define your mapping using NULL instead of 0.
    case
    when Fact_Table.Special_Product_Flag = 'Y'
    then Fact_Table.Sales
    else null
    end

  • HELP: String to double conversion?

    Hello,
    I want to convert a String to a double, and then use this double for a calculation. The conversion seems to be ok, but I get an error with the calculation... Please HELP!
    A part of my code:
    double angle;
    Double converted_angle;
    angle=jTextField2.getText();
    converted_angle= Double.valueOf(angle);
    double theta = cos(Math.PI/180*converted_angle);
    ERROR: "operator * cannot be applied to double,java.lang.Double"
    Thanks in advance.

    This is happening because you want to multiply a Double object, instead of a double value. Do this:
    Double converted_angle; should be double converted_angle;
    converted_angle= Double.valueOf(angle); should be changed to converted_angle = Double.parseDouble(angle);
    angle should probably be a String.
    check this link for your options:
    http://java.sun.com/j2se/1.4/docs/api/java/lang/Double.html

  • Dynamic calcs for HFM

    Hi,
    Kindly guide me how to create Dynamic calculation in HFM. I used calculation manager to create simple dynamic calcs when I open my data grid the dynamic account does not populate the values.
    see my script which I copied from calculation manager. Any documents or steps to use dynamic calcs is highly appreciated. (Note: I need to calculate qtr and ytd values at all level based on formula and does not want to roll up e.g for Jan = 10/100, feb = 20/100, for qtr 30/100 and for ytd 30/100).
    0001 Sub pricerul(bLog)
    0002 HS.StartTimer 1,"Rule", "Dynamic","pricerul",""
    0003 HS.StartTimer 0,"Component", "Dynamic","pricetst",""
    0004 ' Component Name = pricetst
    0005 HS.Exp "A#OilPrice = A#OilRev/A#OilProd"
    0006
    0007 HS.Exp "A#OilPerDay = A#OilProd/A#PeriodDays"
    0008
    0009 HS.Exp "A#OilProdpd = A#OilProd"
    0010 HS.EndTimer 0
    0011 HS.EndTimer 1
    0012 End Sub
    0013
    0014
    Best Regards,
    Khalid
    [email protected]

    Hi Kalid,
    You only can calculate dynamic accounts in a sub dynamic ().
    HFM adminstator documentation stands that :
    "Dynamic Calculation
    Dynamic rules enable you to define formulas to dynamically calculate accounts. You can
    dynamically calculate Base accounts only. You cannot use Dynamic rules on Parent accounts.
    Use these guidelines for writing dynamic calculation rules:
    The right side of the equation must reference the same Scenario/Year/Entity combination. This
    means you cannot reference prior year amounts in your calculations.
    Only dynamic accounts are valid on the left side of the equation.
    Dynamic accounts cannot be used on the right side of the equation.
    Only Account and View are valid on the left side of the equation.
    If View is not specified, the calculation executes for YTD and Periodic. If View is specified, the
    calculation is executed only for the specified view.
    HS.View.PeriodNumber is the only HS statement that can be used in a HS.Dynamic calculation.
    All statements in the Sub Dynamic section are executed sequentially."
    The complete documentation is available on Oracle website : http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/hfm_admin.pdf
    Hope it will be usefull.
    Best regards,
    Lionel.

Maybe you are looking for

  • USE OF GIF FILE

    Hai, i create one form and calling gif file in it but when i run it no gif animination is working is anyway to call gif with animination.

  • App Store Error Download

    when I try to install from App Store it give me message that my account is disable like video Download idownloader Please help me

  • Electrical Engineer with LabVIEW Experience - Needed Immediatel​y - Windsor, CO

    National Analytics, Inc. is looking for a talented and motivated Electrical Engineer with a proven electronic hardware design and development background to complement our team of system integration experts. Experience with RF and DC power supplies or

  • How to connect the local database of Pesonal Oracle From FormBuilder of develope 2000

    I installed developer 2000 with personal Oracle in win95. I opened Oracle Form builder and click connect submenu of File. It prompts for user name, password and Database. I added scott/tiger for user name and password and I do not know what I should

  • Services in maintenance or offline mode

    Hi, when I try to open console of solaris 10 on SF V240, it shows maintenance mode and asks for root password. I log in as root but then I do not know what to do, It also shows message on cosole, console-service not running .. Where as users are able