number, inherited from the other component format

Hey guys,.


I have a box of text ADF, where a user can enter a daily amount (decimal number). Then I get an output text, below, where I want to show a quantity time avarage. I put the value of the output with EL expression area {bindings.dailyValue.inputValue / 24}. Daily value text box has activated AutoSubmit and box of output a partial text defined as trigger area.
I put convertNumber to each of these components with reason #. #, located some fraction max figures, and I am sure that only Integer property is set to false.

When the user enters 123, the outputText should show 5.125 (123/24), however, it shows 5 only. When the user enters 123,01, the outputText should show 5.1254166666, but watch 5.13. It seems that the real format, the number of decimal digits, is somehow inherited the textInput.
You have an idea on how is this possible and how to prevent?
I use JDeveloper 11.1.1.3.

Thank you very much!

I suspect that the data type of your 'dailyValue' attribute is BigDecimal and this is the origin of the problem. When you perform an operation in division EL on a BigDecimal value, then the scale of the result depends on the scale of the operands (e.g. the value of the BigDecimal 123 on a scale 0, so the scale of the result is 0, the scale of the BigDecimal 123,01 value is 2, so the scale of the result is 2, etc.). This is how the BigDecimal objects perform a division (look at the Javadoc of the BigDecimal class for details). If you change the data type of the attribute 'dailyValue' duplicate, you should not have this problem.

A better way is to perform the calculation in a managed bean (where you can control the precision of the result) instead of making the division directly in the EL expression.

Dimitar

Tags: Java

Similar Questions

  • I took the hard drive from the computer and formatted. I plugged it in and it tells me that I need an installation CD.

    * Original title: installation

    I got my a school computer and the computer was still saying he was trying to connect to the school network. I have a TI and computer repair class so I took the hard drive from the computer and formatted I connected again and he told me that I need an installation CD what I do.

    Using an installation DVD / USB drive and install the operating system...

    If you have formatted the drive, erase you everything on it.

  • ViewStack with LinkBar in the other component.

    Hi people.

    I start in Flex, and I have a few questions.

    One of them is the following: How can I implement a ViewStack where buttons navigate through it in the other component?

    Something like this: I have a C1 container. A C1 C2 (the LinkBar) and C3 (the ViewStack). How controls C2 C3?

    I try to use ActionScript and dataprovider. Something like this:

    < mx:Script >

    <! [CDATA]

    [Bindable]

    public var dataP: String;

    []] >

    < / mx:Script >

    <!-...->

    < mx:LinkBar dataProvider = direction "{dataP}" = "vertical" / >

    And my other component (C1), which is called:

    < id for components: C2 = "c2" width = "10%" dataP = "viewStackHome" / >

    < mx:ViewStack id = "viewStackHome" >

    < components: BoxHome id = "boxHome" / > <! - vai pra esse com o home as fica em cima - >

    < components: PainelListaDeContatos id = "painelDeContatos" / > <!-Alexandre of "Meus is"->

    < / mx:ViewStack >

    If I am sendind the ViewStack id before you create it?

    Thank you!

    And ignore my bad English. I'm not very used to write technical things (and I'm not very fluent).

    But it does not work.

    The answer is todo what follows in your Menu.mxml:

    [Bindable] public var myDataProvider:ViewStack;

    --------------------------------------------------------------------------

    http://www.Adobe.com/2006/mxml"xmlns:components ="components.*">
     
        Import mx.containers.ViewStack;

    [Bindable] public var myDataProvider:ViewStack;
    ]]>
     
     


    http://www.Adobe.com/2006/mxml '.
    "xmlns:Components =" * ">
     
     
       
         
       

       
         
       

     

  • missing parenthesis in insertion into separate lines select the table from the other table

    Hello

    could you help me with the following question?

    I have the following tables

    CREATE TABLE table1)

    ID varchar (12),

    col2 varchar (10),

    COL3 varchar (10),

    level varchar (10))

    CREATE TABLE table2)

    Id2 varchar (12)

    A varchar (10),

    B number (1)

    CONSTRAINT PRIMARY KEY PK (ID2, is));

    INSERT INTO table2 (ID2, A, B) SELECT ID, col2

    MAX (CASE WHEN level = "level 1" then 1

    level = 'level 2' then 2

    Level = 3 then 'niveau3') as colIN3)

    FROM table1 GROUP BY ID2, a.;

    the first table have duplicates as follows:

    Id2 COL2 COL3 level

    A1 pepe football level1

    A1 pepe football level2

    A1 pepe football level1

    A1 pepe basket level2

    A1 pepe pingpong level3

    the output should be selected with unique key (ID2, col3) lines and the level must be the greatest.

    Id2 COL2 COL3 level

    A1 pepe football level2

    A1 pepe basket level2

    A1 pepe pingpong level3

    The output of the script tells me the following messages:

    -lack of right parenthesis referring to the max function.

    Thanks adavance.

    Kind regards

    Hello

    Remember the ABC's of the GROUP BY:

    When you use a GROUP BY clause or in an aggregate function, then all in the SELECT clause must be:

    (A) a ggregate function,

    (B) one of the expressions "group By."

    (C) adding to C, or

    (D) something that Depends on the foregoing.  (For example, if you "GROUP BY TRUNC (dt)", you can SELECT "TO_CHAR (TRUNC (dt), 'Mon - DD')").

    To ask him, there are 5 columns in the SELECT clause.  The last one is a function MAX (...); It is an aggregate, is not serious.

    The first 2 columns are also named in the GROUP BY clause, so that they are well.

    The other 2 columns, country and internal_Id do not match any of the above categories.  These 2 columns cause the error.

    There are many ways to avoid this error, each producing different results.  You could

    • remove these 2 columns in the SELECT clause
    • Add these 2 columns in the GROUP BY clause
    • use the aggregation such as MIN, 2-column functions
    • remove the country from the SELECT clause and add internal_id to the GROUP BY clause
    • remove the internal_id from the SELECT clause, and add countries to the GROUP BY clause
    • ...

    What are the results you want?

    Whenever you have a question, please post a small example of data (CREATE TABLE and INSERT statements) for all the tables involved, so people who want to help you can recreate the problem and test their ideas.  Also post the results you want from this data, as well as an explanation of how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

  • Two USB6008 on different hubs - how to tell one from the other

    My PC supports two instruments where each instrument is made of a hub, an acquisition of data USB6008 and an another mfg DAQ. The two hubs connect to two USB ports respective on the PC.

    I have code that traverses the tree of USB and concludes each hub and then searches each device in turn. This allows me to 'pair' two USB devices on a per-hub basis. Even though I have the USB tree info, I don't know the name of the device (e.g. Dev1) of just the info from the USB, so I'm not able to explicitly open the unit. Is it possible, I can open a device based on its USB hub/port location? It seems that all the open calls require the name of the device.

    Thanks for all the ideas.

    Mitch

    Read the serial number of the data acquisition.  You should then be able to find the name.  Perhaps change the names of /dev1 to something more descriptive when you set in MAX.

  • Fade between two pages &amp; MC from the other control.

    Let me see if I can explain it properly. I usually use a motion tween and the alpha channel to fade video clips or rear. What I'm currently doing is a bland page out and the other, but it could be one of the several MCs I have essentially four "pages" for a Web site, including the services, portfolio, about and contact. I have icons in my navigation bar (which will be imported into my XHTML separately, so it can float their depending on the size of the users window). The icons need to navigate between pages and pages should fade in and out (eg. melted in the MC Services when the services icon is clicked and melted out of it and in the MC of portfolio when the user clicks on the icon portfolio). Please keep in mind that the icons and pages are in completely different fichiers.fla/.swf because I could not understand how them float in Flash after several hours of searching around online, but know I can do it easily using div + CSS in XHTML tags.

    If someone could explain how quickly "gotoandplay" a label in a file different .swf (communicate between the NavBar .swf and my main .swf) and fade out of the current MC (regardless of the page the user is currently using) before disappearing into the new page (according to the user clicks on the icon of the tool), I'm sure I could "fill in the blanks" of the rest of the AS3 and Flash I already know. The page must also melted off the page everything that there is currently on when the user click on the Hide button (located on the page in the main .swf file). There are also several sub-pages on each page (which shouldn't be a big problem if I understand the rest of this point).

    I'll use this same concept for almost all of the websites I design & develop in the future and really need to know how to do this for the current site, I'm trying. I would greatly appreciate suggestions on how to accomplish these two things.

    PS Please keep in mind, I'm not an expert in AS3, but am very computer savy and have done my share of programming in the past. I looked around for hours in line to try and fill it without using the forum, but concocted with dead links tutorials and short answers left and right. I hope I don't fall on the same thing here.

    From what I've read so far, I think I can use Tween in ActionScript instead of a motion on the timeline Tween to fade in and out of clips and think that this is the method to use to accomplish what I am trying to do. Correct me if I'm wrong well.

    You can use the LocalConnection class to communicate between different files in the web page.  For more information just Google 'AS3 LocalConnection' or search for it in the help documentation.

    For interpolation, you can use Actionscript.  AS3 has the Tween class integrated, but for control and better performance, most people will recommend you go Third party and use TweenLite (or TweenMax for a tween that is more complex than what you explained).

  • I have CS and CS 2, even if they have been activated on 2 computers, one stopped working the other I formatted and I sold is no longer having access to disable it to use on my new laptop. I do dio?

    Can someone help with this situation?

    Hi rstone,.

    Photoshop CS2 is an obsolete product and the activation server no longer works.

    So you can no longer turn off/turn on this product.

    Please go through this article and install the product error: "Activation Server unavailable". CS2, Acrobat 7, pass a hearing 3

    Serialize using the corresponding serial number (mentioned in the link)

    Concerning

    ~Assani

  • Update lines with the info from the other rows in the same Table.

    I'm trying to update the lines with the information of the same table. The table is loaded with information from a report that runs and there must be a new entry every month, but I would like to bring some of the info from the last month. This statement below works but updates all rows in the new load table and in my test case, I only did a few game only like 5 files need to get updates. It is an example of what I'm trying to do. If I add this (C2. COL_INVC_ID = C1. COL_INVC_ID) until the last "* where *" statement get an invalid identifier for 'C2 '. COL_INVC_ID ". So what I'm doing wrong here? How can I update only the lines where also in recent months run?

    Thanks in advance for any help!

    ------------
    Update OpenIssues OI1
    Together (OI1. NUM, OI1. Status, OI1. Code, OI1. LastModifiedDate) =
    (Select ios2. NUM, ios2. Status, ios2. Code, ios2. LastModifiedDate
    Of OpenIssues ios2
    Where OI2.num = OI1.num and ios2. TableLoadDate = TO_DATE (January 31, 2012 00:00:00 ',' ' the HH24: MI: SS DD/MM/YYYY)
    )
    Where and OI1. TableLoadDate = TO_DATE (February 29, 2012 00:00:00 ',' ' the HH24: MI: SS DD/MM/YYYY)
    ------------


    SQLMe

    As Frank suggested merger is much effective here, go...

      create table  temp
    as(
    select 1 eno, 1 amt , sysdate load_date from dual union all
    select 1 eno, 2 amt , add_months(sysdate,1) load_date from dual union all
    select 2 eno, 1 amt , sysdate load_date from dual union all
    select 2 eno, 2 amt , add_months(sysdate,1) load_date from dual
    );
    
    merge into temp t
    using (select eno, amt, load_date
             from temp
            where trunc(Load_Date) = TO_DATE('05/30/2012', 'MM/DD/YYYY')) s
    on ((s.eno = t.eno) and trunc(t.Load_Date) = TO_DATE('06/30/2012', 'MM/DD/YYYY'))
    when matched then
      update set t.amt = s.amt;
    commit;
    
    select * from temp;
    
  • ComboBox button that inherits from the skin - how to override

    Using Flex Builder 3.

    I've set up a button style in the style sheet so that all the buttons look for more up and down skins.

    The problem is that no matter what I can not do the ComboBox will not use the skins defined for the button.

    Is it possible to replace the skins do not use a skin.  I've implemented a specific style for the ComboBox control, but it takes always the button skins.  I tried both using ComboBox for the descriptor of style and a style specific name as Mazonedelistederoulante and set the style on the drop-down list box in the mxml.

    What is strange, is that literature it does not resemble ComboBox inherits all the styles button.  If it makes no sense at all.

    Any ideas?

    Thank you

    Cindy

    As combobox has a downarrowButton which is a class of button, it will expand the skin that you defined for the button, you can reset it by

    ComboBox
    {
         up-skin: ClassReference("mx.skins.halo.ComboBoxArrowSkin");
        over-skin: ClassReference("mx.skins.halo.ComboBoxArrowSkin");
        down-skin: ClassReference("mx.skins.halo.ComboBoxArrowSkin");
    

    Another way is not to use the CSS type selector, just set a class name to help your skin to custom button and set the class name for each button

  • Financilal reports - display of members from the other members of the Dimension

    Hi all

    We can view the members as a Sun based on the selection of the members in the other Sun... these dim 2 isn't in line/col...


    We hav scenario = real, budget

    If the user selects real, we need to display all the members in time Sun;

    and if the user selects the budget we need to display limited to members;

    How can achieve us.

    Thanks in advance

    Anuradha

    Hi Alexander,.

    Conditional removal works to restrict members to display in the grid-line/grid-column/grid-page

    A single user selection POV can never be limited to a selection on the other userPOV.

    In user POV, you can still see all the members of the scenario and the time dimension, you have access to...

    Maybe if you put your scenario dimension to dimension POV and time user to page and then using the conditional removal you will be able to achieve the same thing.

    I hope this helps.

    Kind regards
    Rahul

  • New ThinkPad T460p just arrived - the product name and serial number missing from the outside of the machine

    This page shows where the product name and serial number should supposed to be on my ThinkPad: https://support.lenovo.com/us/en/find-product-name?cid=EDM_2016_NA_US_PP_SUPPORT_V2&RRID=1014681098&...

    However, any of these are displayed on the outside of my machine anywhere.

    I happen to know the product name and serial number. I was able to find other ways - that is not the issue. As far as I know, these physical labels should have with the machine.

    Was it simply a mistake during Assembly, or Lenovo just stopped putting on these labels? If the first case, is there a way to ask Lenovo send me these labels? If the latter, Lenovo might consider updating the page linked above.

    Any inisight would be duly appreciated.

    Nicholas

    My T460p shows the T460p at the bottom right of the screen and the serial number and the code of the product under the battery. But the T460 is very dark on the corner of the screen, and Seraglio/product numbers appear on the very dark black label under the battery.

  • Links of the CBC in the new page based on a template are inheriting from the previous version of the page

    I have problems with the CBC links when I create a new page from a template DWT. I hope someone can help me. Here's what I did.

    1. I copied an HTML page to a new site that I have created (1 Site) to an existing (Site 2) as well as all the images needed site and the CSS files.
    2. I edited the CBC code so that page copied to Site 2 (New Page) referenced the correct local CSS and image files
    3. I created a template the Page new DWT file in Site 2 but noted that the CBC links were still referencing image and CSS of the Site 1 files, so I edited this new as shown above.
    4. I created a new page, based on the model of TPL, but strangely, the CBC links are again referencing Site 1.

    I don't understand what is happening. DW is clearly still remember the original links and ignores changes.

    Thank you very much in advance for your help.

    Gary

    When I need to come a file from another site, here's what I do.

    Go to Site 1.  Open the file in Design view or Code view.  Turn off Live View.

    Go to Site 2.  File > save as new_filename.html in the root directory of the Site 2.

    DW should invite you to update the links.  Press YES.

    Close the Site 1 file.

    Check the file links 2 Site to ensure that they document.

    Validate code & solve the errors reported.

    When you are completely satisfied with your document, click file > save as template.

    DW will ask you to insert editable regions for content that changes from one page to another.  To do this and save your template.

    Close the model.

    File > new > Site Template Page.

    Press the button create.

    SaveAs index.html (your home page).

    Repeat for other pages of the site.

    Nancy O.

  • After version inherited from the plugin Flash IE, Version 13.0.0.214

    Hi all

    I'm after a copy of the Flash Plugin for IE Version 13.0.0.214 from a client that is running some old software on their server to win 12 R2 RDS. Someone has a link of (understandable) download Adobe keep this old around version.

    Hi RandomHero1992,

    Based on the screenshot, the missing plugin is not for Internet Explorer.  It's for other NPAPI based browsers and Firefox.  Your initial post mentions the Flash Player for IE, which is what I based my answer on.

    The link for the non - IE plugin is available in the link I provided previously.

    Note that these latest versions of browser blocking older versions of Flash Player.

    --

    Husband

  • Style buttons richtexteditor is different from the other buttons

    First of all, I'm pretty new to flex. I was invited to help the style of someone of another flex app (even though I am a person of html/css, not a flex person). I googled around this issue and have not been able to see someone make reference to my particular problem.

    My flex application points to a style sheet where I called the buttons to have a blue background:

    Button {fillColors: #66bada, #04709e, #04709e, #04709e ;}}

    My problem is that some buttons in the richTextEditor (more precisely the "bold", "italic", "underline" and buttons "list bullet") are inheriting that style color blue and I rather be gray.

    I tried something like that in the style sheet to override other styles of button:

    RichTextEditor {}
    buttonStyleName: "RTEButtonStyle";
    }
    . {RTEButtonStyle}
    fillColors: #ffffff, #cccccc, #ffffff #cccccc;
    }

    but that did not. Can someone point me in the right direction? I would like the same, but for inline styles, but not sure how to apply to the RichTextEditor tag. Any help is very appreciated.

    You can do the reverse, that is to apply selector custom buttons, rather than try and substitute them in the TEN:


    http://www.Adobe.com/2006/mxml">

    {.myButton}
    fillColors: #66bada, #04709e, #04709e, #04709e;
    }


    label = "show"!
    />

    Matt Horn
    Flex docs

  • Hi, can export you emails from the other Thunderbird e-mail client?

    Hello

    I am currently using incredimail but unhappy with it. Can I import all my emails from it for Thunderbird? I use the desktop with windows 7.
    Thank you.

    Hello

    Maybe this article will help you:

Maybe you are looking for

  • convert a string to a path

    I want to assign a value to a global variable of the station (type: number) to the local variable (type: number). The problem is, that knowledge straight from the global variable of the station at the time of execution. I have a string like "StationG

  • TAKE PICTURES AND VIDEOS OF GALAXY S3

    someone can kindly guide me through on taking photos, videos and music from my galaxy phone 3 samsaung

  • Blue screen error: Failed Shutdown 0x000000fe

    original title: stop failed! When I try to shut down my computer, he acts like he's going to close, goes to a black screen and then just restarts.  Once it restarts I get a window of Windows error asking if I would look online for a solution.  When I

  • Unknown message to decrypt to avoid losing files

    Original title: decrpt I got a message saying had a decrption so that I would not lose important files is it safe? Moved from Internet Explorer to the Performance

  • Smartphones blackBerry downgrade my 9860 to previous micro

    How do I down grade it by some micro-editions. The reason for this is that I've updated through the blackberry desktop. But Blackberry is not any emulators debugging to go with the latest version... Phone: 7,0 Bundle 2406 (v7.0.0.585) Highest debuggi