Edit Cell Numeric Attributes may show strange default values

Those values look a bit surprising... I did not type them myself... It happens if you change the data type let's say from unsigned char to double...
But it's not a meaningless number: if you now type -1e1000 as a new minimum value, CVI 'corrects' it to -9.2E+18...
It also can behave properly, sometimes, but shouldn't it always?
It behaves better if instead of -1e1000 you first type -100. If you then enter -1e1000 it will correct the number to -1.0E+300
(well, it probably should be E+308...) but I'll better stop here 
Solved!
Go to Solution.

Hi Wolfgang,
When I first open the Edit dialog, the cell's data type is int64 and the range is (-9223372036854775808, 9223372036854775807). Those happen to be the largest possible values that an int64 can hold, and they are probably there because they were coerced down from the default double range (-Inf,+Inf), in a previous editing session.
You then changed the data type to char, which changes the range to (-128,127), which is the coerced range of a char . But the dialog still remembers that your initial preference was (-9223372036854775808, 9223372036854775807), and so, when you then change the data type to double, in that same editing session, it restores this range again, since it is now valid for the new data type. Except that it displays it in scientific notation, since doubles automatically use this notation when the exponent goes above a certain size.
It looks as if you then tried to coerce it back to the largest possible range of a double by typing 1e1000. This is a reasonable assumption on your part, but unfortunately it is a limitation of CVI that it cannot coerce a double entered in scientific notation -- it doesn't recognize 1e1000 as a valid number. Therefore, it keeps whatever value was in the control beforehand. If you had typed 1e308 instead, it would have worked, since that is a valid number. I recognize that it is very inconvenient for you to "guess" what the maximum number might be, so that you can enter it. All I can say is that if you really want to enter the highest possible double value in the max/min controls, you should enter "-Inf" and "+Inf" instead.
Luis
Given what I wrote above, the following shouldn't happen (and I wasn't able to reproduce it): "It behaves better if instead of -1e1000 you first type -100. If you then enter -1e1000 it will correct the number to -1.0E+300". It should leave -100 in the control.

Similar Messages

  • Defaulted DFF Context, but Attributes also getting some default Values.

    Hi,
    I extended CO for defaulting DFF, it is working fine. But the problem is Attributes Also getting default Values and when u search for one record those DFF Attribute values are not showing proper data, but table attribute values having correct data only.
    Regards,
    Hanimi.

    hi Pavan,
    i extended CO for getting context value as default, it is defaulting Context as well as Attribute values also after opening the page.But i want to default context value only after opening the page and when i search one record that attribute values data is showing wrong data, but in table attributes having proper data, but in page these values are showing different data.
    I used following code for Defaulting Context In CO. Pls check the code.
    super.processRequest(oapagecontext, oawebbean);
    OAApplicationModule oaapplicationmodule = oapagecontext.getApplicationModule(oawebbean);
    String s = oapagecontext.getParameter("_FORMEVENT");
    if(s == null || s.equals(""))
    s = oapagecontext.getParameter("FlexFormEvent");
    OADescriptiveFlexBean dffBean = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("WorkRequestDesc");
    String organizationId = (String)oapagecontext.getSessionValue("OrgId");
    String contextValue = getContextValue(oapagecontext.getApplicationModule(oawebbean).getOADBTransaction(), organizationId);
    if(contextValue != null)
    dffBean.setFlexContext(oapagecontext, contextValue);
    dffBean.mergeSegmentWithParent(oapagecontext);
    private String getContextValue(OADBTransaction con, String organizationID)
    System.out.println("In WorkRequestDffCO.getContextValue.organizationID" + organizationID);
    String contextValue = null;
    String sql = " SELECT meaning FROM fnd_lookup_values flv, mtl_parameters mp WHERE flv.lookup" +
    "_type = 'NGHA_EAM_WR_LOCATION_CONTEXT' AND flv.ENABLED_FLAG like 'Y' AND mp.or" +
    "ganization_code = flv.lookup_code AND mp.organization_id = "
    + organizationID;
    Statement st = null;
    ResultSet rs = null;
    try
    st = con.createStatement(1);
    rs = st.executeQuery(sql);
    if(rs.next())
    contextValue = rs.getString(1);
    catch(Exception e)
    e.printStackTrace();
    finally
    try
    if(st != null)
    st.close();
    if(rs != null)
    rs.close();
    catch(Exception e)
    e.printStackTrace();
    return contextValue;
    }

  • HOW TO SHOW A DEFAULT VALUE IN AN UPDATABLE TABULAR FORM

    I have an updatable form that has three columns:
    Employee Name (display only)
    Reporting Name (select list)
    Element Type ID (hidden and updatable)
    When the user select a value in the reporting name column it updates the
    element type id with the appropriate value. But when they look at the select list
    it has the select list values as well as the selected value in the list. How do I
    overcome this. My example is setup and ready to be reviewed at http://apex.oracle.com/pls/otn/f?p=32409:1
    Thank you
    Forrest
    p.s. weather in Anchorage Alaska Sunny and 45 degrees!

    Woody,
    I'm a little confused (not uncommon), as I don't understand why you have a hidden column to hold the element_type_id value.
    It looks like you're doing a simple SELECT LIST/LOV that shows the display value and stores the code value. I guess I don't understand why you need the hidden column. Shouldn't the code value end up in the APEX_ITEM array, so you can save it to your table?
    I would think you'd have a hidden value to hold the primary key for your table in one APEX_ITEM array, and the element_type_id column is the second parameter of the APEX_ITEM.SELECT_LIST() call. Then your manual update procedure saves that value to the right record, using the primary key from the hidden column?
    What am I missing here?
    Good luck,
    Stew

  • How do we write the syntax to show the default values in other languages

    Hi, we have siebel ondemand in 3 different languages-Mandarin, English, and Korean.
    We need to sett he default value of SR Status= Open (for English user), Open in Mandarin 进行中(for Mandarin user) and Open in Korean 진행중(for Korean user).
    how do we write the syntax?
    (if we simply put "Open", the there is an error message when Korean user open the service request )
    Thanks, Sab

    Use LookupValue function. It is documented in help file.

  • Does GTC generate default value for Password attribute.??

    I am using GTC as trusted source reconciliation.
    My doubt is if I don’t map the password attribute does it generate default value to the password attribute in user form??
    I have a random password generator in pre-insert, first i tried as below which didn't work later after updating it worked fine.
    IF (password=null)
    Generaterandampassword
    SetPassword= Generaterandampassword
    If i use adapter as above it not generating random password. i see that password as 'temp' to all the users.
    I am thinking gtc generates a value to password filed even if we don't pass any value... am i right?? Please let me know..
    Thanks..
    Edited by: IDMuser19 on Aug 17, 2010 10:30 AM

    Hey,
    See if this helps.......
    http://www.oracle.com/technology/obe/fusion_middleware/im1014/oim/obe12_using_gtc_for_reconciliation/using_the_gtc.htm
    Regards,
    Sunny Ajmera

  • How to show default value selected in combo box...

    Hi,
    I need an help...
    I have a combo box and i want to show the default value(coming from DB) selected on combo box on Page Render.
    Thanks,
    Neha

    Hi,
    Will this help?
    database default value in selectOneChoice
    Set default selected value in a SelectOneChoice
    Regards
    Vishal

  • Default values not showing up in CAT2

    Hi Guys,
    Using tcode CAC1 I have configure to show the default values of Cost Center and Activity type from IT0315. But for some reason I cannot see the default values in CAT2 for any of the PERNR.
    Please let me know what else I am missing.
    Thanks  a lot.
    mini

    Hello,
    Make sure you mark the items you want on Defaults inside CAC1 t-code.
    You have the following options and from where are they taken of:
    - Controlling area -> from IT0001
    - Activity type -> from IT0315
    - Purchase order -> from IT0315
    - Attendance/Absence type -> directly entered in CAC1
    - Master cost center -> from IT0000
    - Sender business process -> from IT0315
    - Service master -> from IT0315
    - Cost center -> from IT0315
    - Wage type -> directly entered in CAC1
    Regards,
    Bentow.

  • Need to show default value in a form

    hi this is azhar..i have a question..
    i have created a form that displays values using a dyanimc lov however i need to show the default value as 'NA' which is one of the values in the lov..plz let me knw ...

    Hello Azhar,
    Just set the "Initial Value" property of the LOV's associated item to "NA".
    Hope this helps.
    Craig...

  • Xcontrol default value

    I've been making my first several XControls and I have an issue that I cannot figure out.
    I have an array in one of my XControls which is supposed to always have 4 elements in it.  The problem is that even if I create the type defs with 4 elements and have it set to the default value, when I drop the XControl in a VI, the array is empty.
    As far as I can tell, everywhere I can think of where the XControl may get its default value has the array of 4 elements set as the default value.  I have attached a small example which illustrates my problem.  The Data is a simple 4 element array of {1,2,3,4}.  The Fascade only displays the Data on a Data Change event.  A pop-up will display whenever a Data Change event occurs.
    My expectation is that I drop the XControl on a VI and get a Data Change Event and the array indicator would show the default value of the Data type, i.e. {1,2,3,4}.  WHat I get is a Data Change Event, and the arry is empty.
    I appreciate any help I can get.
    Message Edited by Matthew Kelton on 03-17-2008 02:54 AM
    Attachments:
    XControl problem.zip ‏38 KB

    Yes, in the init facade VI, you should set this value.
    To detect whether you have a drop, check the previous version cluster, if that is 0.0.0.0 you have an initial drop event.
    Changing the default version of a TD and hoping it is applied to all clients is a bad idea.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Setting default value read from user session, for an LOV in Query component

    I want to set the default value of a field in VO that participates in a named view criteria and thereby in Query component. That field is configured with an LOV by mean of a view accessor. The values are Y and N and the corresponding display strings obtained from view accessor are true and false respectively.
    I am able to set the default value by setting the value of the criteria item corresponding to that field in view criteria. I am setting the value as either Y or N and I am able to corresponding display string as per the view accessor, on the query component when it is rendered.
    I want to read the defauilt value from the ADF BC user session and set it as default value. I tried setting the values as "adf.userSession.userData.usageFlag". Iam ensuring that the attribute usageFlag is set before the view activity that has the query component is invoked. But this is ending up showing no default value in the Query component when rendered.
    Can any one let me know how to go about with this?

    I made up your table since you didn't provide some example, but I'm sure this will give you the picture:
    SQL> var run_type varchar2(1)
    SQL> exec :run_type := 'A'
    PL/SQL procedure successfully completed.
    SQL> create table my_cycles as select level cycle_id
      2                            ,      level cycle_status
      3                            from   dual connect by level <= 5;
    Table created.
    SQL> select cycle_id
      2  from   my_cycles
      3  where  case
      4           when :run_type = 'D' and cycle_status  = 1 then 1
      5           when :run_type != 'D' and cycle_status  in ( 2, 3 ) then 1
      6         end = 1;
      CYCLE_ID
             2
             3
    2 rows selected.
    SQL> exec :run_type := 'D';
    PL/SQL procedure successfully completed.
    SQL> /
      CYCLE_ID
             1
    1 row selected.
    SQL>

  • Personalization and Default values in selection screen variables

    Hi everyone,
    I have certain questions regarding Front end part:-
    1)     Can we have multiple personalizations for a single user in Web templates; I know it is quite possible in BEx using Variants. Is there any such approach or any other solutions regarding it?
    2)     In our project we had a range selection screen customer exit variable on 0CALMONTH, which is showing a default value of 07.2007 to 09.2007, although we have removed the default values from the query variable and also checked the customer exits where it is used, but still it’s showing the value. We can’t delete and recreate the variable as such, as it is used in number of function module. Also these values are also transported to Quality system, where also it’s showing the same value.
    Did anyone face such a situation before?
    Eagerly waiting for a solution.....
    Thanks in advance

    Hi Chiran,
    Please try with following approach for multiple   personalizations for a single user in Web templates.
    While Defining Variable Choose the Option Copy personalization data from variable .
    The Features  of above approach is as follows.
    1)It will personalize variable values for Input Variables for each user.
    2)These values are saved for each variable as well as for user.
    3) At the time of defining variable it will allow us to enter one or more default values.All these values are appear in the variable screen when u execute the query or Web Application.
    So you can see the variable values in web also.Just try with this approach.
    May be it will resove u r issue some extent.
    Regarding u r Second Query Just try with Some tables, all the default values entries were saved in those tables. Delete default values from those entries.
    Thanks & Regards,
    Chandu.

  • Parameter default value doesn't work in Discoverer Desktop 4i

    Hello,
    I have a parameter called 'Organization' in discoverer report.
    I want to set its default value to one organization from the list of values. I edited the parameter
    and selected that value from the list in the Default value field. But,when I run
    the report, it shows the recently used value for that parameter,
    instead of showing the default value.
    I have the same problem with all parametrs in workbooks in Discoverer.
    I am using Discoverer Desktop 4i (4.1.41.05.00).
    Is there anything i can do to make Discoverer show me the default value for the parameter every time i run the workbook?
    Thanks in advance!

    Thanks Rod!
    Unfortunately it seams that seting that p[reference doesn't work for my version of Discoverer.
    That option is introduced with version 4.1.43 and we are using version 4.1.41.05.
    I suppose i can't solve that problem on another way in this version of Discoverer Desktop..?
    Best regards!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Rich text default values not appearing in content entry template

    Hello all,
    Sorry for the repost, but no one seems to have an answer for me in the other forum and I thought I might be able to reach more people here.
    I have created a base text item and would like to include default values in some of the attributes. The problem is the default value I set in the rich text field is not appearing when I try to create an instance of my item type.
    Is this a bug, or am I not doing something right? All of my other attributes show their default values.
    Thanks in advance,
    Jim

    bug 3221058
    Patch 4021971 for 9.0.4.1
    (only available on http://metalink.oracle.com site)
    Patrick.

  • Netui:select default value on top instead of bottom

    Is there anyway that I can change the netui:select tag to show the default value
    on the top of the list instead of the bottom?
    thanks
    kunal

    Kunal--
    If you are binding to a data set (a LinkedHashMap, for example), you can insert the default value
    into the data set in code in the JPF before binding to the select box, but it's not configurable
    when simply setting the defaultValue attribute.
    Apologies for the limitation.
    Eddie
    Kunal Mittal wrote:
    Is there anyway that I can change the netui:select tag to show the default value
    on the top of the list instead of the bottom?
    thanks
    kunal

  • Table editor problem with default value for column

    Hi there,
    I'm trying to use SQL Developer 1.2.1 on Ubuntu 7.10 (though I don't think the OS is relevant) and I'm running into a snag when trying to update table structures. If you go to edit the table to say modify a column name, and that column has a default value set, SQL Developer is encapsulating the value with brackets and quotes. When trying to save the changes, it complains about the default value being 4 chars too many for the column width. An example of this would be a currency code column of varchar2 (3) set with EUR as the default. SQL Developer changes the value to ('EUR') hence the error.
    Is there anyway to prevent this from happening?
    Cheers,
    Chris

    Could you please be more specific? In 1.2.1.32.40 I
    added the column COL1 VARCHAR2(3) with default value
    'EUR'. The data display field refreshed to show the
    default value, so I edited it in a couple of entries
    and comitted the change without problem. Then I
    renamed the column from the "Edit table" popup menu.
    Finally, I renamed the column from the "Rename
    column" popup menu, no problem either.Ah, you are correct. That does work. What I was trying is select tablename in the object browser, then right click on it and select "Edit" from the contextual menu. You are then presented with edit table dialog box. If you then select a column in that box you will see a column properties box. In that section you can change the name, default value, datatype et cetera. Note that your default column value which should just be EUR (or 'EUR' to denote that it's a string) is now ('EUR'). Once you try changing the name to of the column to something else and then click OK, you should then get an error complaining of "Invalid varchar2 default value" with a more specific message of "Default values size 7 is greater than the allowed 3"
    You have provided a work around, and thanks for that, but it would be nice to edit everything in the Edit table dialog box if you're modifying more than one column name. I'm tasked with cleaning up a bit of a messy database, and there are a good deal of columns to be renamed.
    Cheers,
    Chris

Maybe you are looking for

  • XSLT 1.0 current date

    Hi, I had searched on SDN already and tried few codes without success. If somebody had already worked on current date function in XSLT mapping version 1.0, please share it. Thanks in advance, Venkat. PS: links I already referred. http://www.w3.org/TR

  • Mac Mini 2009 - Can't daisy chain two FW800 drives

    I have two FW800 enclosures with 3.5-inch drives and external power. Each one mounts individually when connected to the Mini FW800 port but when I daisy-chain them the second one in the chain doesn't mount and is not seen by disk utility. Those enclo

  • BPM 11g scheduling

    Hi, I have a requirement to execute a BPM 11g process at the first day of each month at 12 midnight. I've been looking into timer start events, but I've been unable to find the proper configuration to get it to work as a scheduler. Could someone plea

  • My computer has no sound :( help?

    I really need some help. My computer has no sound at all. Windows media player, youtube, there just doesn't seem to be any sound. (my volume is not on mute) I also checked that my sound driver is installed and updated but still no audio Thanks in adv

  • Should I use "MANAGESECONDARYTRUNCATIONPOINT " option?

    Hi all, I have installed OGG (Oracle GoldenGate) on SQL Server 2008 R2 hosted on Windows 2008 R2. I found that log file grows quickly and cannot be released after transaction log backup. The spaces issues almost crash the database, I just execute the