Property to set hex/binary/decimal format at run time?

Hi, I'd like to allow my user to choose between hex/binary/decimal formats in his number input. I'm happy to do the radio button stuff and the code to "hear" what he wants, but I can't find a property of my variable which selects the format at run-time - there is of course the "Format & Precision..." which I can get at by right mouse click BEFORE running, so I know it's likely to be available at run-time. Any suggestions welcome. Thanks, Richard.

It's not necessary to use property node because you can use the builtin
property of the indicator.
Click the rigth mouse button over the indicator and select show radix.
On the left side of the indicator appear radix that you can push to choose
between hex, binary, octal and decimal.
Bye
Golzio
"R" ha scritto nel messaggio
news:[email protected]..
> Hi, I'd like to allow my user to choose between hex/binary/decimal
> formats in his number input. I'm happy to do the radio button stuff
> and the code to "hear" what he wants, but I can't find a property of
> my variable which selects the format at run-time - there is of course
> the "Format & Precision..." which I can get at by right mouse click
> BEFORE run
ning, so I know it's likely to be available at run-time. Any
> suggestions welcome. Thanks, Richard.

Similar Messages

  • LabVIEW 2009 3D Plot has no Loose Fit property and Axis AutoScale does not function at run time ?

    I cannot find a Loose Fit property for the new 3D plots (waterfall, ribbon) in LV 2009.  As a result, my data range of 1402 to 1407 ends up on a Z axis range of 1400 to 1500 and looks like a flat line.
    The Z Active Axis properties Range Maximum and Range Minimum can be used to set the range but the Z Axis Autoscale property had to be changed to False using either the front panel Plot Properties at edit time or using the Range Auto Scale property at run time on the block diagram.  It could not be changed at run time by popping up on either the plot border or on the Color Palette.
    In edit mode, R-clicking on the Color Palette's AutoScale Z did not make that property toggle or stick and did not change its function.
    At run time, there are two AutoScale Z selections shown.  One along with the X and Y scales and another by itselfat the bottom.  Again, clicking the one that is part of the X and Y axis did not make its setting stick and did not have an effect.  What does happen though is that the other AutoScale Z shown at the bottom of the Color Pallete popup does toggle its state.  But clicking on the AutoScale Z shown at the bottom does not toggle its state.
    The grey border region of the plot area contains at run time, popup setting for X,Y and Z AutoScale that likewise have no effect.
    Or am I missingsomething ?
    Message Edited by SteveP on 08-15-2009 07:55 PM
    Attachments:
    LV 2009 3D Plot Axis Autoscale.vi ‏18 KB

    Steve,
    you should be able to successfully change the scales based on the min and max values as long as you explicitly turn off autoscale. In your program, I just right-clicked the  Range Auto Scale property selected "change to write", then made a control so that I could set the value myself. Clean up the broken wires, and the program runs like it's supposed to - resetting it's scale range: 
    is this the result you wanted? 
    Misha

  • How to set App Module Config parameters at run time?

    Hi,
    I am using jdev 11.1.1.3 and developed a Fusion Web Application application.
    Before moving the code to production I want to have a stress testing where I should be able to set the application module configuration parameters at run time.
    So I would like to know what are the options are there to achieve this instead of setting the same in design time.
    Any help would be appreciated.
    ~Abhijit

    AT SELECTION-SCREEN OUTPUT.
      PERFORM radio_hide_options.
    FORM radio_hide_options .
    IF rad =  ' '.
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'RT1'.
              screen-input = '0'.
              MODIFY SCREEN.
            WHEN 'RT2'.
              screen-input = '0'.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ELSEIF rad = 'X'.
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'RT1'.
              screen-input = '1'.
              MODIFY SCREEN.
            WHEN 'RT2'.
              screen-input = '1'.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ENDIF.
    endform.

  • Decoding binary decimal format

    Each row represents a number. The first row corresponds to a value of 1, the second row corresponds to a value of 2, etc.
    There is obviously a pattern, but sometimes the numbers seem very strange. I'm trying to decode how the numbers are being stored.
    00111111111 1 0000000000000000000000000000000000000000000000000000000000000000000000000000
    01000000000 0 0000000000000000000000000000000000000000000000000000000000000000000000000000
    01000000000 0 1000000000000000000000000000000000000000000000000000000000000000000000000000
    00111111110 100 00000000000000000000000000000000000000000000000000000000000000000000000000
    01000000000 101 00000000000000000000000000000000000000000000000000000000000000000000000000
    01000000000 110 00000000000000000000000000000000000000000000000000000000000000000000000000
    01000000000 111 00000000000000000000000000000000000000000000000000000000000000000000000000
    01000000001 0000 0000000000000000000000000000000000000000000000000000000000000000000000000
    01000000001 0001 0000000000000000000000000000000000000000000000000000000000000000000000000
    01000000001 0010 0000000000000000000000000000000000000000000000000000000000000000000000000
    01000000001 0011 0000000000000000000000000000000000000000000000000000000000000000000000000
    01000000001 0100 0000000000000000000000000000000000000000000000000000000000000000000000000
    01000000001 0101 0000000000000000000000000000000000000000000000000000000000000000000000000
    01000000001 0110 0000000000000000000000000000000000000000000000000000000000000000000000000
    01000000001 0111 0000000000000000000000000000000000000000000000000000000000000000000000000
    01000000001 10000 000000000000000000000000000000000000000000000000000000000000000000000000
    00111111101 01110 000111100001111000011110000111100001111000011110000000000000000000000000
    01000000001 10010 000000000000000000000000000000000000000000000000000000000000000000000000
    01000000001 10011 000000000000000000000000000000000000000000000000000000000000000000000000
    01000000001 10100 000000000000000000000000000000000000000000000000000000000000000000000000
    01000000001 10101 000000000000000000000000000000000000000000000000000000000000000000000000
    01000000001 10110 000000000000000000000000000000000000000000000000000000000000000000000000
    01000000001 10111 000000000000000000000000000000000000000000000000000000000000000000000000
    01000000001 11000 000000000000000000000000000000000000000000000000000000000000000000000000
    01000000001 11001 000000000000000000000000000000000000000000000000000000000000000000000000
    01000000001 11010 000000000000000000000000000000000000000000000000000000000000000000000000
    01000000001 11011 000000000000000000000000000000000000000000000000000000000000000000000000
    01000000001 11100 000000000000000000000000000000000000000000000000000000000000000000000000
    00111111101 00001 101001111011100101100001000110100111101110010110000000000000000000000000
    01000000001 11110 000000000000000000000000000000000000000000000000000000000000000000000000
    01000000001 11111 000000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 00000 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 00001 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 00010 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 00011 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 00100 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 00101 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 00110 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 00111 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 01000 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 01001 00000000000000000000000000000000000000000000000000000000000000000000000
    001111111 0 01 10000 11000011000011000011000011000011000011000011000000000000000000000000000
    010000000 1 00 01011 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 01100 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 01101 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 01110 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 01111 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 10000 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 10001 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 10010 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 10011 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 10100 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 10101 00000000000000000000000000000000000000000000000000000000000000000000000
    001111111 0 01 00101 11101101000010010111101101000010010111101101000000000000000000000000000
    010000000 1 00 10111 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 11000 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 11001 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 11010 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 11011 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 11100 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 11101 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 11110 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 00 11111 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 01 00000 00000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 01 000001 0000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 01 000010 0000000000000000000000000000000000000000000000000000000000000000000000
    001111111 0 00 111010 0100010011000110101011111100001011011101100111000000000000000000000000
    010000000 1 01 000100 0000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 01 000101 0000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 01 000110 0000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 01 000111 0000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 01 001000 0000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 01 001001 0000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 01 001010 0000000000000000000000000000000000000000000000000000000000000000000000
    010000000 1 01 001011 0000000000000000000000000000000000000000000000000000000000000000000000

    I can't explain the occasional entries that start with 00111111
    However the rest seem to fall into the following format
    Strip off the first 12 bits
    if the high order 2 bits are 00 then you have the pattern that I can't explain
    if on the other hand the top 2 are 01, then the remaining 10 bits is and indicator of where the high bit in the original number is. Call that number that you got from the remaining 10 bits X. Because X tells you where the high order bit is, it tells you what power of 2 you must start with in reassembling the int, and it also tells you how many bits you must read out of the remaining bits to complete the number
    Your final number will be 2^(X+1) + (next (X+1) bits from the data stream)
    so for numbers between 2 and 3, high order bit is 2^1 so X will be 0 and you need to read (0+1) aditional bits i.e. you need to read the one other bit that follows the high order bit.
    for numbers between 4 and 7 high order bit is 2^2 so X is 1 and you will need to read (1+1) additional bits which are the two following the high order bit.
    It is easier to see if you put the spaces in the right place.
    FF XXXXXXXXXX bits-after-most-significant-bit
    00 1111111111 0000000000000000000000000000000000000000000000000000000000000000000000000000 1
    01 0000000000 0 000000000000000000000000000000000000000000000000000000000000000000000000000 2
    01 0000000000 1 000000000000000000000000000000000000000000000000000000000000000000000000000 3
    00 1111111101 00 00000000000000000000000000000000000000000000000000000000000000000000000000 4
    01 0000000001 01 00000000000000000000000000000000000000000000000000000000000000000000000000 5
    01 0000000001 10 00000000000000000000000000000000000000000000000000000000000000000000000000 6
    01 0000000001 11 00000000000000000000000000000000000000000000000000000000000000000000000000 7
    01 0000000010 000 0000000000000000000000000000000000000000000000000000000000000000000000000 8
    01 0000000010 001 0000000000000000000000000000000000000000000000000000000000000000000000000 9
    01 0000000010 010 0000000000000000000000000000000000000000000000000000000000000000000000000 10
    01 0000000010 011 0000000000000000000000000000000000000000000000000000000000000000000000000 11
    01 0000000010 100 0000000000000000000000000000000000000000000000000000000000000000000000000 12
    01 0000000010 101 0000000000000000000000000000000000000000000000000000000000000000000000000 13
    01 0000000010 110 0000000000000000000000000000000000000000000000000000000000000000000000000 14
    01 0000000010 111 0000000000000000000000000000000000000000000000000000000000000000000000000 15
    01 0000000011 0000 000000000000000000000000000000000000000000000000000000000000000000000000 16
    00 1111111010 1110 000111100001111000011110000111100001111000011110000000000000000000000000 17
    01 0000000011 0010 000000000000000000000000000000000000000000000000000000000000000000000000 18
    01 0000000011 0011 000000000000000000000000000000000000000000000000000000000000000000000000 19
    01 0000000011 0100 000000000000000000000000000000000000000000000000000000000000000000000000 20
    01 0000000011 0101 000000000000000000000000000000000000000000000000000000000000000000000000 21
    01 0000000011 0110 000000000000000000000000000000000000000000000000000000000000000000000000 22
    01 0000000011 0111 000000000000000000000000000000000000000000000000000000000000000000000000 23
    01 0000000011 1000 000000000000000000000000000000000000000000000000000000000000000000000000 24
    01 0000000011 1001 000000000000000000000000000000000000000000000000000000000000000000000000 25
    01 0000000011 1010 000000000000000000000000000000000000000000000000000000000000000000000000 26
    01 0000000011 1011 000000000000000000000000000000000000000000000000000000000000000000000000 27
    01 0000000011 1100 000000000000000000000000000000000000000000000000000000000000000000000000 28
    00 1111111010 0001 101001111011100101100001000110100111101110010110000000000000000000000000 29
    01 0000000011 1110 000000000000000000000000000000000000000000000000000000000000000000000000 30
    01 0000000011 1111 000000000000000000000000000000000000000000000000000000000000000000000000 31
    01 0000000100 00000 00000000000000000000000000000000000000000000000000000000000000000000000 32                                                            
    01 0000000100 00001 00000000000000000000000000000000000000000000000000000000000000000000000
    01 0000000100 00010 00000000000000000000000000000000000000000000000000000000000000000000000
    01 0000000100 00011 00000000000000000000000000000000000000000000000000000000000000000000000
    01 0000000100 00100 00000000000000000000000000000000000000000000000000000000000000000000000

  • Decimal format to 2 decimal places ????

    Hello Everyone,
    I have created a web dynpro application which to display a report depending on the data given by the BAPI. But there is some issue with the numeric data returned by the BAPI.
    For ex - if the BAPI returns 5.00 the value is displayed in the report as 5.
    I want uniform decimal values till 2 decimal places. For example 5 shd come as 5.00, 2.1 shd come as 2.10 etc.
    I searched SDN abt this, and found many threads relating to this.
    I tried using decimal format, creating a simple dictinary type, but using all this what happens is the value basically changes to a string format, this implies that the value is displayed in the table as "left-aligned".
    Where- as we need the decimal numeric values to be right-aligned.
    Any thoughts how to achieve this.
    Please correct me if I have missed out on anything.
    Thanks,
    Samta

    Hi,
    From wat i understood.. u have a attribute coming from BAPI.. which you want to display with two decimal places,,
    In this case.. assuming it is coming with 2 decimal places from the backend..  create a value node.. inside the node which contains the output data. set its carinality to 1..1 .. create a value attribute of type big decimal in it.. or probably string.. if there is an issue in displaying BigDecimal directly..
    map this new attribute to the necessary column in the table..
    BigDecimal value = new BigDecimal("the actual value in string or long").setScale(2);
    assign this to the value attribute created..
    (If alignment is the problem.. set the column 's textview property halign to right.. and layout as block or paragraph.. )
    Regards
    Bharathwaj
    Message was edited by:
            Bharathwaj R

  • How do I convert an 8 bit serial data string I have received (say 01110101) into decimal format??

    I am having a hard time finding a function that will help me convert an 8 bit serial data string I have received (say 01110101) into decimal format.

    When you have your front panel displayed, you should a whole palette of controls that you can place on the front panel. If the palette is not displayed, thne just right click on your mouse and it should appear. The upper left most set of controls on the palette is Numeric. Go there and select Numeric Indicator to display a numeric output. On the diagram, you can also right click the output 1 and select Create>Indicator. The format string is %b (as in boy) for a binary string. As I said, this should be the value for the format string input. You can right click on the Scan From String and select Edit Scan String. This will bring up a dialog box in which you pick what you want to do (Scan Number) and how you want to do it (Scan Binary Integer
    It sounds like you really need to take a course in LabVIEW programming. There are are links here to NI classes and some on-line tutorials.

  • [Execute SQL Task] Error: Executing the query "DECLARE_@XMLA nvarchar(3000) ,__@DateSerial nvarch..." failed with the following error: "Incorrect syntax near '-'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly,

    Hi
    DECLARE @XMLA nvarchar(3000)
    , @DateSerial nvarchar(35);
    -- Change date to format YYYYMMDDHHMMSS
    SET @DateSerial = CAST(GETDATE() AS DATE);
    --SELECT @DateSerial
    Set @XMLA = 
    N' <Batch xmlns="http://schemas.microsoft.com/analysis services/2003/engine">
     <ErrorConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2"
    xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200"
    xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200">
    <KeyErrorLimit>-1</KeyErrorLimit>
    <KeyNotFound>IgnoreError</KeyNotFound>
    <NullKeyNotAllowed>IgnoreError</NullKeyNotAllowed>
     </ErrorConfiguration>
     <Parallel>
    <Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2"
    xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200"
    xmlns:ddl300="http://schemas.microsoft.com/analysisservices/2011/engine/300" xmlns:ddl300_300="http://schemas.microsoft.com/analysisservices/2011/engine/300/300">
     <Object>
     <DatabaseID>MultidimensionalProject5</DatabaseID>
     <CubeID>giri</CubeID>
     <MeasureGroupID>Fact Internet Sales</MeasureGroupID>
     </Object>
     <Type>ProcessFull</Type>
     <WriteBackTableCreation>UseExisting</WriteBackTableCreation>
     </Process>
      </Parallel>
    </Batch>';
    EXEC (@XMLA) At SHALL-PCAdventureWorksDw ;
     iam executive the    query when iam getting below error.
      [Execute SQL Task] Error: Executing the query "DECLARE
    @XMLA nvarchar(3000)
    , @DateSerial nvarch..." failed with the following error: "Incorrect syntax near '-'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set
    correctly, or connection not established correctly. 
     how to solve this error;
     please help me

    What are you trying to do? What sort of data source is  SHALL-PCAdventureWorksDw?
    When you use EXEC() AT, I would execpt to see an SQL string to be passed to EXEC(), but you are passing an XML string????
    If you explain why you think this would work in the first place, maybe we can help you.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • XML binary storage format impairs schema validation?

    I'm using Oracle 11g R1 on Windows Server 2003. I successfully registered schemas and created tables and indexes in the new binary storage format. However, when trying to load data, I'm running into problems. Schema validation behaves as if not the full feature set of XML Schema mysteriously isn't supported anymore.
    There is probably more but at least wildcard elements (xs:any) and element references (xs:element ref="STH") are simply ignored in the schema definition and data is rejected even when it conforms to the schema.
    Is there any solution for this or am I out of luck? I wanted to go back to CLOB storage as used in a previous installation but I'm running into problems when registering the schema. It complains about an empty SQL name although I don't have any defined. I'm pretty weirded out by all this.
    I created the schema and table in a straightforward way:
    begin
      dbms_xmlschema.registeruri(
        schemaurl => 'http://www.xxxhello.com/archive_tsd.xsd',
        schemadocuri => '/public/user/archive_tsd.xsd',
        gentypes => FALSE,
        options => DBMS_XMLSCHEMA.REGISTER_BINARYXML
    end;
    CREATE TABLE archive OF xmltype XMLTYPE STORE AS binary xml XMLSCHEMA
    "http://www.xxxhello.com/archive_tsd.xsd" ELEMENT "CompleteDocument";
    create index idx_lastmodified_archive on archive t
    (extractvalue(VALUE(t),'/CompleteDocument/DocContent/LastModified'));Because of xs:any or element references is ignored, I get errors like
    LSX-00213: only 0 occurrences of particle "REFDELEM", minimum is 1.
    Thanks for your help.

    The schema is very large (>200kb). Where should I upload it or can I send it to you? I'm bit concerned about confidentiality of company data. However, the instance is not valid yet. I'm in the process of modifying the schema to match all instances, but it breaks on places that should be already okay. No, I didn't use SchemaValidate ever.
    But I've made an example where at least xs:any doesn't work. Element references work, though.
    Sample schema:
    <?xml version = "1.0" encoding = "UTF-8"?>
    <xs:schema
      xmlns:tsd = "http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition"
      xmlns:xs = "http://www.w3.org/2001/XMLSchema">
      <xs:annotation>
        <xs:appinfo>
          <tsd:schemaInfo name = "sbreak">
            <tsd:collection name = "sbreak"></tsd:collection>
            <tsd:doctype name = "CompleteDocument">
              <tsd:logical>
                <tsd:content>open</tsd:content>
                <tsd:systemGeneratedIdentity reuse = "false"></tsd:systemGeneratedIdentity>
              </tsd:logical>
            </tsd:doctype>
            <tsd:adminInfo>
              <tsd:server>4.4.1.1</tsd:server>
              <tsd:modified>2007-07-03T16:00:46.484+02:00</tsd:modified>
              <tsd:created>2007-07-03T15:29:04.968+02:00</tsd:created>
              <tsd:version>TSD4.4</tsd:version>
            </tsd:adminInfo>
          </tsd:schemaInfo>
        </xs:appinfo>
      </xs:annotation>
      <xs:element name = "CompleteDocument">
        <xs:complexType>
          <xs:choice minOccurs = "0" maxOccurs = "unbounded">
            <xs:element name = "ComplexNormal">
              <xs:complexType>
                <xs:choice minOccurs = "0" maxOccurs = "unbounded">
                  <xs:element name = "NormalElem1" type = "xs:string"></xs:element>
                  <xs:element name = "NormalElem2" type = "xs:string"></xs:element>
                </xs:choice>
              </xs:complexType>
            </xs:element>
            <xs:element name = "ComplexAny">
              <xs:complexType>
                <xs:choice minOccurs = "0" maxOccurs = "unbounded">
                  <xs:any minOccurs = "0" maxOccurs = "unbounded"></xs:any>
                </xs:choice>
              </xs:complexType>
            </xs:element>
            <xs:element name = "ComplexRef">
              <xs:complexType>
                <xs:choice minOccurs = "0" maxOccurs = "unbounded">
                  <xs:element ref = "RefdElem"></xs:element>
                </xs:choice>
              </xs:complexType>
            </xs:element>
            <xs:element name = "LastModified" type = "xs:string"></xs:element>
          </xs:choice>
        </xs:complexType>
      </xs:element>
      <xs:element name = "RefdElem">
        <xs:complexType>
          <xs:choice minOccurs = "0" maxOccurs = "unbounded">
            <xs:element name = "Elem1" type = "xs:string"></xs:element>
            <xs:element name = "Elem2" type = "xs:string"></xs:element>
          </xs:choice>
        </xs:complexType>
      </xs:element>
    </xs:schema>Sample instance:
    <?xml version="1.0" encoding="UTF-8" ?>
    <CompleteDocument>
         <ComplexNormal>
              <NormalElem1>Test1</NormalElem1>
              <NormalElem2>Test2</NormalElem2>
         </ComplexNormal>
         <ComplexAny>
              <AnyElem>Test3</AnyElem>
         </ComplexAny>
         <ComplexRef>
              <RefdElem>
                   <Elem1>Test4</Elem1>
                   <Elem2>Test5</Elem2>
              </RefdElem>
         </ComplexRef>
    </CompleteDocument>Log of what I did. First I confirmed, that I could enter the instance using clob storage:
    SQL> begin
      2    dbms_xmlschema.registeruri(
      3      schemaurl => 'http://www.xxxhello.com/sbreak_tsd.xsd',
      4      schemadocuri => '/public/sbreak_tsd.xsd'
      5    );
      6  end;
      7  /
    PL/SQL-Prozedur erfolgreich abgeschlossen.
    SQL> CREATE TABLE sbreak OF xmltype XMLTYPE STORE AS clob XMLSCHEMA
    "http://www.xxxhello.com/sbreak_tsd.xsd" ELEMENT "CompleteDocument";
    Tabelle wurde erstellt.
    SQL> create index idx_lastmodified_sbreak on sbreak t (extractvalue(VALUE(t),
    '/CompleteDocument/LastModified'));
    Index wurde erstellt.
    SQL> insert into sbreak values(xmltype(bfilename('DATA', 'sbreak/sbreakinstance.xml'),
    NLS_CHARSET_ID('AL32UTF8')));
    1 Zeile wurde erstellt.Then I deleted table and schema again:
    SQL> drop index idx_lastmodified_sbreak;
    Index wurde gelöscht.
    SQL> drop table sbreak;
    Tabelle wurde gelöscht.
    SQL> begin
      2    dbms_xmlschema.deleteschema(
      3      schemaurl => 'http://www.xxxhello.com/sbreak_tsd.xsd'
      4     ,delete_option => dbms_xmlschema.delete_cascade_force
      5    );
      6  end;
      7  /
    PL/SQL-Prozedur erfolgreich abgeschlossen.After that I created schema and table with binary XML storage and tried to insert the same instance again:
    SQL> begin
      2    dbms_xmlschema.registeruri(
      3      schemaurl => 'http://www.xxxhello.com/sbreak_tsd.xsd',
      4      schemadocuri => '/public/sbreak_tsd.xsd',
      5      gentypes => FALSE,
      6      options => DBMS_XMLSCHEMA.REGISTER_BINARYXML
      7    );
      8  end;
      9  /
    PL/SQL-Prozedur erfolgreich abgeschlossen.
    SQL> CREATE TABLE sbreak OF xmltype XMLTYPE STORE AS binary xml XMLSCHEMA
    "http://www.xxxhello.com/sbreak_tsd.xsd" ELEMENT "CompleteDocument";
    Tabelle wurde erstellt.
    SQL> create index idx_lastmodified_sbreak on sbreak t (extractvalue(VALUE(t),
    '/CompleteDocument/LastModified'));
    Index wurde erstellt.
    SQL> insert into sbreak values(xmltype(bfilename('DATA', 'sbreak/sbreakinstance.xml'),
    NLS_CHARSET_ID('AL32UTF8')));
    insert into sbreak values(xmltype(bfilename('DATA', 'sbreak/sbreakinstance.xml'),
    NLS_CHARSET_ID('AL32UTF8')))
    FEHLER in Zeile 1:
    ORA-31011: XML-Parsing nicht erfolgreich
    ORA-19202: Fehler bei XML-Verarbeitung
    LSX-00021: undefined element "AnyElem"
    aufgetretenSorry about the non-english text, but I think it can be guessed easily what's going on. Next I'll try a modifed schema without the tsd namespace added by the schema editor I use (the original large schema has been migrated from the Tamino XML database).

  • Use of comma decimal format in % Breakdowns

    Hello,
    We have global users who would like to enter their decimal values for % Formulation and/or Ranges on the %Breakdowns in the comma decimal format (i.e. 9,99).  This does not seem possible regardless of free text language.  I just wanted to confirm that this was the case.
    Thanks,
    Drew

    Dear Kai,
    Thank you for your reply.
    I read the note and found that if I change my browser language to EN,
    everything works fine.
    However, if I change back my browser language to Chinese,
    the decimal seperator becomes comma.
    In the note 1064448, it said it's related to country settings.
    And the note gave a XML code to set the language to EN.
    But...if I put this code to my WAD XHTML,
    does that mean my chart's related settings, like axis label,
    would also change to English format?
    (Because when I change my browser language to EN, the chart's axis label and some other description also change to EN.)
    Is there any way that I can set the log on language Chinese should use decimal seperator "." instead of ","?

  • Currency decimal format

    Hi,
    I wanted to know if there is any table which stores the currency format for decimal places. for e.g some currencies use a period to indicate the decimal place while some use a comma.
    if the amount is 127.54
    in USD it will be 127.54
    in FRF it will be 127,54
    Is there any table which stores this information as to which currencies use comma and which use period.
    Thanks,
    Prasy

    I think the decimal format is controlled by the user setting not the currency being output. For example:
    REPORT ztest LINE-SIZE 80 MESSAGE-ID 00.
    DATA: amt TYPE bseg-dmbtr VALUE '123.45'.
    WRITE: /001 amt CURRENCY 'FRF'.
    gives output for me as:
    123.45
    Rob

  • Change decimal format to time format ie 1.5 to 1:30

    Hi I need to create a field such that when you enter a value in decimal format it gets converted to time format.
    Eg change 1.5 to 1.3 ..... Can any one help cheers.... any light on how to do this would be much appreciated.

    create table num_to_time (seq number, val number, dtvl date);
    insert into num_to_time
    select 1 seq, 1.5 val, null dtvl from dual
    union all
    select 2, 2.25, null from dual;
    commit;
    create or replace procedure p_numtotime is
    v_seq num_to_time.seq%type;
    v_val num_to_time.val%type;
    v_date num_to_time.dtvl%type;
    cursor c1 is select * from num_to_time;
    begin
    open c1;
    loop
    fetch c1 into v_seq,v_val,v_date;
    exit when c1%notfound;
    update num_to_time set
    dtvl = to_date(to_char(trunc(sysdate)) ||
    ' 0'||trunc(v_val)||':'||to_char(mod(v_val,trunc(v_val))*60)||':00',
    'dd/mm/yyyy hh24:mi:ss')
    where seq = v_seq;
    end loop;
    commit;
    close c1;
    end;
    exec p_numtotime;
    drop table num_to_time;
    drop procedure p_numtotime;

  • How do I tranform a string that was strored in binary/hex in SQL back to hex/binary to store it in another location

    I have a local database where the password is stored as binary for security.  I do not want the original.  I need to be able to restore a person's password if they don't login for a long time (two onths or more...the system deletes their password). 
    If I store the binary/hex password by name, I should be able restore the hex/binary to the table and they can login.  How do I convert the string back to a hex value to set into the tble again ?

    I have a local database where the password is stored as binary for security. 
    That's not secure, never store passwords, use (store) only hash (+salt) values for compare:
    http://en.wikipedia.org/wiki/Cryptographic_hash_function
    http://en.wikipedia.org/wiki/Salt_(cryptography)
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Key figure Date in Decimal format

    Hi all,
       I have a key figure 0CPR_ACFR_K  (Date) which is in Decimal format.
       Data in PSA for the particular field was like this '07102008'
       but after that it is changing to 7327.98  that is in decimal format.
       But i dont want this to happen ie. it should not get converted to Decimal or
       i want to convert the decimal value again to the equivalent date.
       pls help in this.

    Hi  jean liker,
    It will get converted due to its properties. If you want to use this particular object as keyfigure, you can create a variable with processing type replacement path and use. Its better to maintain as char.
    [Replacement Path: Replacement with a Characteristic Value|http://help.sap.com/saphelp_nw04/helpdata/en/03/6ba03cc24efd1de10000000a114084/frameset.htm]
    Hope it Helps
    Srini

  • Loading the data from a packed decimal format file using a sql*loader.

    Hi ,
    In one of the project i'm working here i have to load the data into oracle table from a file using a Sql*loader but the problem is the data file is in the packed decimal format so please let me know if there is any way to do this....I search a lot regarding this ..If anybody faced such type of problem ,then let me the steps to solve this.
    Thanks in advance ,
    Narasingarao.

    declare
    f utl_file.file_type;
    s1 varchar2(200);
    s2 varchar2(200);
    s3 varchar2(200);
    c number := 0;
    begin
    f := utl_file.fopen('TRY','sample1.txt','R');
    utl_file.get_line(f,s1);
    utl_file.get_line(f,s2);
    utl_file.get_line(f,s3);
    insert into sampletable (a,b,c) values (s1,s2,s3);
    c := c + 1;
    utl_file.fclose(f);
    exception
    when NO_DATA_FOUND then
    if utl_file.is_open(f) then utl_file.fclose(f); ens if;
    dbms_output.put_line('No. of rows inserted : ' || c);
    end;SY.

  • Convert a String to Decimal Format in European format

    Hi Experts,
    I am having a string as a context type for a input field, where the user can enter the Price, I need to convert the same into European format "###.###,00", I am using this below code to convert the string to decimal format
    User will enter the input as 10 as it needs to be converted into 10,00. Also, 1000 which has to be converted as 1.000,00
    String Str1 = wdContext.currentvn_temptable.getVa_TempUnitPrice();
    Locale mylocale  = Locale.GERMAN;
    String pattern="###.###,00";                    
    NumberFormat nf = NumberFormat.getNumberInstance(mylocale);
    DecimalFormat df = (DecimalFormat)nf;
    df.applyPattern(pattern);
    String output = df.format(Str1);
    wdComponentAPI.getMessageManager().reportSuccess("Unit Price" + " " + pattern + " " + output);
    When I execute the above code, i am getting an error called "Malformed Pattern ###.###,00"
    Please let me know, how to convert a String to Quantity in European format
    Thanks & Regards,
    Palani

    Hello!
    Try to change your pattern to this one 
    Locale mylocale  = Locale.GERMAN;
    String pattern = "#,#00.00";                    
    NumberFormat nf = NumberFormat.getNumberInstance(mylocale);
    DecimalFormat df = (DecimalFormat)nf;
    df.applyPattern(pattern);
    String output = df.format(1111111.222);
    Pattern has an influence on number of digits between separators, but you have to use ',' for grouping and '.' for decimal. Character values for separators correspond to your Locale object.
    Thanks, Mikhail

Maybe you are looking for

  • How to create a drill down in crosstab?

    Hi All,   I have created a crosstab in CRXI repoprt. Now I'm trying to create a drill down in it. The crosstab is very simple. Data in table is as: SUBJECT   DATE    YIELD PCT Browser   04/11    78.90 Radio     04/13    90.00 HTTP      04/22    89.09

  • Dataguard in oracle standard edition ?

    I am using Oracle 10.2.0.4 standard edition database. how to check / query can i use dataguard feature in my oracle database. Is there any docs having to expalin more detail? Rgds,

  • Auto price master update(vk11) from Z Report values

    Hello all, My requirement is, I have developed a Z Costing report. From there my material price will be calculated on monthly basis.Same price i have to update in Pricing master under one fixed condition type. When ever i run the Z report the price f

  • Play last frame in frame label in reverse?

    Yesterday Kglad gave me the following : nextTX.onRelease = function (){ var nextFrameLabelNum:Number = (1+Math.round(thTX._currentframe/27))%10; thTX.gotoAndPlay("next "+nextFrameLabelNum); prevTX.onRelease = function() {     var nextFrameLabelNum:Nu

  • Synchronous versus Asynchronous Ajax calls

    Hello Apex gurus, I have a page which uses synchronous Ajax and seems that once in a while the browser freezes. I suppose this happens when the server takes a little longer to respond. I read this article: http://www.oreillynet.com/xml/blog/2007/01/d