Type of comparison bug?

Hello

My Flex/AS3 application traverses an array and checks the contents. Very simple task so far. Now, if I assign for example
myArray [6] = 0; The following statement returns the value true: if (myArray [6] == "") {...} Although the direct comparison would never be.
Is this a known bug?

Alex

It is not a bug.
You try to compare two values to Boolean return false. That is to say
Boolean (0) = false and Boolean("") = false then false == false returns true.

Try again with the sign of the strict equality: (3 equal signs)
If (myArray [6] = "")

Tags: Flex

Similar Questions

  • In Adobe Acrobat 10.0.0 comparing two pdf files, it automatically locks. Can you please share how to avoid this type of comparison file accidents?

    Hi all

    In Adobe Acrobat 10.0.0 comparing two pdf files, it automatically locks. Can you please share how to avoid this type of comparison file accidents? If anyone with the idea, please share it.

    Hi sathishk15640596,

    Follow this thread to reset the Acrobat preferences:- How to reset preference settings in format Acrobat.

    If you are on Windows OS, open Acrobat, go to the Help menu and repair the installation.

    I would like to know is what happening to the entire document or certain act.

    Please check with another account user as well as to reproduce the problem.

    Kind regards

    Christian

  • Table generated by the system type: behavior or bug WAITED?

    I understand that Oracle, in the execution of a SQL statement, sometimes automatically generates objects SQL not explicitly created by the user. One such example is with table in pipeline defined functions to return a collection type of PL/SQL (as opposed to SQL): in this case, Oracle will automatically create an equivalent SQL collection type for the PL/SQL collection type. All well and good...

    However, here is an example where it would appear that oracle unnecessarily creates a SQL collection type, even when there is an explicit CONVERSION to an already existing SQL collection type. The problem seems to be related to the use of the function of COLLECTION (http://docs.oracle.com/database/121/SQLRF/functions034.htm#SQLRF06304).

    First the test script...

    prompt    -- The database version...
    
    select    *
    from    v$version
    /
    
    prompt    -- Create the test object and collection types...
    
    create or replace type OMyObject
    is object
    (
        a integer
    )
    /
    
    create or replace type NMyObjectTable
    is table of OMyObject
    /
    
    prompt    -- Check that no system-generated table types currently exist...
    
    select    C.COLL_TYPE, C.ELEM_TYPE_MOD, C.ELEM_TYPE_NAME, C.TYPE_NAME, C.UPPER_BOUND
    from    USER_COLL_TYPES c
    where    c.TYPE_NAME like 'SYS%'
    and    c.ELEM_TYPE_NAME = 'OMYOBJECT'
    /
    
    prompt    -- CAST with MULTISET does not create a system-generated table type...
    
    select    cast(multiset(
            select    new OMyObject(level)
            from    DUAL
            connect by
                level <= 10
        ) as NMyObjectTable) myObjects
    from    DUAL
    /
    
    select    C.COLL_TYPE, C.ELEM_TYPE_MOD, C.ELEM_TYPE_NAME, C.TYPE_NAME, C.UPPER_BOUND
    from    USER_COLL_TYPES c
    where    c.TYPE_NAME like 'SYS%'
    and    c.ELEM_TYPE_NAME = 'OMYOBJECT'
    /
    
    prompt    -- COLLECT without a CAST creates a new system-generated table type...
    
    select    collect(value(o)) myObjects
    from    table(cast(multiset(
            select    new OMyObject(level)
            from    DUAL
            connect by
                level <= 10
        ) as NMyObjectTable)) o
    /
    
    select    C.COLL_TYPE, C.ELEM_TYPE_MOD, C.ELEM_TYPE_NAME, C.TYPE_NAME, C.UPPER_BOUND
    from    USER_COLL_TYPES c
    where    c.TYPE_NAME like 'SYS%'
    and    c.ELEM_TYPE_NAME = 'OMYOBJECT'
    /
    
    prompt    -- (Drop the system-generated table type...)
    
    set    feedback off
    
    spool    "temp_drop_table_types.sql"
    
    select    'drop type "' || C.TYPE_NAME || '";'    as "-- Drop statement"
    from    USER_COLL_TYPES c
    where    c.TYPE_NAME like 'SYS%'
    and    c.ELEM_TYPE_NAME = 'OMYOBJECT'
    /
    
    spool    off
    
    set    feedback on
    
    @"temp_drop_table_types.sql"
    
    prompt    -- COLLECT with a CAST also creates a system-generated table type...
    
    select    cast(collect(value(o)) as NMyObjectTable) myObjects
    from    table(cast(multiset(
            select    new OMyObject(level)
            from    DUAL
            connect by
                level <= 10
        ) as NMyObjectTable)) o
    /
    
    select    C.COLL_TYPE, C.ELEM_TYPE_MOD, C.ELEM_TYPE_NAME, C.TYPE_NAME, C.UPPER_BOUND
    from    USER_COLL_TYPES c
    where    c.TYPE_NAME like 'SYS%'
    and    c.ELEM_TYPE_NAME = 'OMYOBJECT'
    /
    
    

    which outputs...

    -The version of database...

    BANNER                                                                               CON_ID

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

    Database Oracle 12 c Enterprise Edition Release 12.1.0.2.0 - 64 bit Production 0

    PL/SQL Release 12.1.0.2.0 - Production 0

    CORE 12.1.0.2.0 Production 0

    AMT for 64-bit Windows: Version 12.1.0.2.0 - Production 0

    NLSRTL Version 12.1.0.2.0 - Production 0

    5 selected lines.

    -Create the test object and collection types.

    Type of creation.

    Type of creation.

    -Check that there is currently no type of system-generated table...

    no selected line.

    -Cast IRON with MULTISET does not create a table generated by the system type...

    MYOBJECTS (A)

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

    NMYOBJECTTABLE (OMYOBJECT (1), OMYOBJECT (2), OMYOBJECT)

    (3), OMYOBJECT (4), OMYOBJECT (5), OMYOBJECT (6), OMYOBJECT

    ((7), OMYOBJECT (8), OMYOBJECT (9), OMYOBJECT (10))

    1 selected line.

    no selected line.

    -At expense LEDGES without a DISTRIBUTION creates a new type of system-generated table...

    MYOBJECTS (A)

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

    SYSTPUBsptM + HT5OlTJUtIcUfgg is (OMYOBJECT (1), OMYOBJEC)

    OMYOBJE, OMYOBJECT (4), (2) T, OMYOBJECT (5), OMYOBJECT (3)

    CT (6), OMYOBJECT (7), OMYOBJECT (8), OMYOBJECT (9), OMYOBJ

    ECT (10))

    1 selected line.

    COLL_TYPE ELEM_TYPE_MOD ELEM_TYPE_NAME TYPE_NAME UPPER_BOUND

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

    TABLE OMYOBJECT SYSTPUBsptM + HT5OlTJUtIcUfgg is

    1 selected line.

    -(Drop the type generated by the system of table...)

    -Drop statement

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

    ' Drop type' SYSTPUBsptM + HT5OlTJUtIcUfgg == ";

    Type fell.

    -At expense LEDGES with a CAST also creates a table generated by the system type...

    MYOBJECTS (A)

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

    NMYOBJECTTABLE (OMYOBJECT (1), OMYOBJECT (2), OMYOBJECT)

    (3), OMYOBJECT (4), OMYOBJECT (5), OMYOBJECT (6), OMYOBJECT

    ((7), OMYOBJECT (8), OMYOBJECT (9), OMYOBJECT (10))

    1 selected line.

    COLL_TYPE ELEM_TYPE_MOD ELEM_TYPE_NAME TYPE_NAME UPPER_BOUND

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

    TABLE OMYOBJECT is SYSTPds/KlYeDTnaiTKLsbcLJpg

    1 selected line.

    This behavior is expected, or should it be considered a bug? Thoughts?

    Gerard

    This known issue and how Oracle offers with him (i.e. the SMON process periodically cleans transitional objects) is described in the Doc ID 1603706.1.

    Gerard

  • Comparison of the time stamp for every day. confusion

    Hi, I am trying to compare two stamps then will create a case structure, as far as simple comparison goes it seems good and easy, but actually I want to compare every day or in other words, I need the lance VI the particular task each day while running at the point which means time will remain fix but the timestamp contstant/control value should change automatically the next day.

    For example if I put on 04/07/2011 13:00... He compares not for April 7, but I need to compare everyday as 8,9, 10... April as vi is running and daily task must run at 13:00 I hope the issue is clear and I'll have some useful suggestions.

    Kuhn

    Hi Kuhn,

    your type of comparison fails on computers and other locale...

    Better to try something like this:

    (German LV: Stunde = hour...)

  • Insert zero (0) in a field of type integer db

    Hello

    With the help of:

    -CF8 (8.0.1.195765)

    -MySQL (5.5.19)

    I'm trying to update digital values in a MySQL database with all the fields are defined in full. The update process is done via a web form.

    If any number other than zero (0) and is entered in the respective form field, the update process is completed as expected. However, if a zero (0) is entered in the field DB is set to a value of null rather then insertion of the value of zero (0).

    I checked to ensure the value of zero (0) is increased from the form and rated as isNumeric. What I'm missing here? Here is the < cfquery > updated the process I use.

    Thanks - Leonard B

    <cfquery name="rsUpdate" datasource="*****">

    Update run_counts Set

    fire = nullif(<cfqueryparam value="#form.fire_count#" cfsqltype="cf_sql_integer">,'')

    , ems_rescue = nullif(<cfqueryparam value="#form.ems_rescue#" cfsqltype="cf_sql_integer">,'')

    , hazardous_conditions = nullif(<cfqueryparam value="#form.hazardous_conditions#" cfsqltype="cf_sql_integer">,'')

    , service_calls = nullif(<cfqueryparam value="#form.service_calls#" cfsqltype="cf_sql_integer">,'')

    , good_intent = nullif(<cfqueryparam value="#form.good_intent#" cfsqltype="cf_sql_integer">,'')

    , false_calls = nullif(<cfqueryparam value="#form.false_calls#" cfsqltype="cf_sql_integer">,'')

    , other = nullif(<cfqueryparam value="#form.other#" cfsqltype="cf_sql_integer">,'')

    , als_runs = nullif(<cfqueryparam value="#form.als_runs#" cfsqltype="cf_sql_integer">,'')

    , bls_runs = nullif(<cfqueryparam value="#form.bls_runs#" cfsqltype="cf_sql_integer">,'')

    </cfquery>

    It sounds like the result of implicit conversion. You compare two different data types: integer, and varchar. MySQL must convert to a single data type for comparison. So it converts the empty string "" to zero: that is, IFNULL (0, 0) where the null result.  However, why not just use attribute null of cfqueryparam?

    That is to say SET false_calls =

    cfsqltype = "cf_sql_integer".

    NULL = "#not len (form.false_calls) #" >

  • Data Modeler - compare models and DDL file

    I was the generation of DDL files by importing data dictionary. In the window to compare the models, the orange triangles with exclamation points show tables that are somehow different in the database and my data model.

    It would be a very useful feature, if she did not notice the type of information that never goes to the database. For example I used the Notes field and the table Types, and comparison feature shows that this information is missing in the database. In other words, it shows the exclamation points in each table, even if I had changed one table in my model.

    Is there a reason to make it work like that? Or is it going to be fixed in the future?

    Therefore the Data Modeler has not noticed that the sequence had changed

    DDL for new sequences is generated only - no. ALTER statements. Yet changes in the database can be merged into a physical model.
    I logged a bug for this.

    Philippe

  • configuration of the plugin simple text report

    I am updating a project of Teststand 4.2 for 2012. The original was a text via a report updated the sequential model and ICB code. I have trying to find current best practices to achieve a similar report.

    I installed the plugin to report simple text example but can find no documentation on how to configure it.

    The example works fine, but the columns have no limits or the measured value and have other items that I didn't need.

    Looking through the code I can see these are defined in the settings of the plugin, but I do not see where in my project to put.

    I'll also have to configure the report header and the name of the file.

    David

    What exactly do you mean by "key values"? Are you referring to the Key property in the NI_SimpleTextReport_CVI.seq?

    In order to get the type of comparison of a numerical limit test, for example, you can use an Expression like this post:

    Locals.ComparisonType = Step.Comp

    This would amount to "FROZEN".

    Regarding the addition of the results of the report, the key values are a string of research compared to a result object. In this case, you can add what you want to log on to the other results of this approach. Then, you can add a new column to the report in the NI_SimpleTextReport_CVI.seq file and the value of the key:

    AdditionalResults ["NameOfAdditonalResult"]

  • Differences in the ResultList after Run vs Single Pass?

    I noticed that if I run MainSequence instead of Single Pass, limits and model are missing in the ResultList. What is the reasoning behind this?

    Is it possible to connect the limits and the same comp after MainSequence run?

    In the end, I would right-click on an individual sous-suite and run it, but this does not seem to record limits and Comp, I need for a data record personalized VI.

    Thanks for any input in advance.

    This happens because the models call Initialize execution Entry Point to ModelSupport.seq. To include in the results and the Type of comparison include in outcome measures during this call of the Execution.AddExtraResult sequence to ensure that these data appear in the result list even if they are not resident in the result property.

    If you copy these steps to your main sequence, it should work.

  • simple question to function test of value chain

    Hey guys,.

    I m just started using teststand.

    My simple question is related to the function "test string value '. What is the difference between the "type of comparison' CASE SENSITIVE and IGNORE CASE? From my point of view are not really meaningful names.

    To avoid simple and stupid questions like that, I tried to use the internal helper function. I'm wrong when I say that the help features are not as good as in labView? I couldn t find any answer to my question... hmmm... How other people handle this situation? (outside of just trying?)

    Thanks for your help

    Hello

    Case SENSITIVE: it will fail if you compare "HELLO" with 'Hello' or 'A' with 'a '.

    IGNORE CASE: this will pass if you compare "HELLO" with 'Hello' or 'A' with 'a '.

    Hope that explains

    Jürgen

  • test limit digital multiple

    Hi all

    I have a question about multiple digital limit test.

    My data source is a table tab1 [].

    I need to compare each item of tab1 [] with the element that is associated with another table tab2 [].

    In other words, I would like to check the weather tab1 [i] > tab2 [i] (for i = 0; i > 32; i ++)

    Simple problem isn't? However, I can't find any effective solution to specify my expression "Low Limit"! ^^

    To be more precise, I would say I want to create different expressions "Low Limit" 32 (Low Limit A = tab2 [0] , low limit B = tab2 [1], etc. would be a bad solution). I would like to create an expression that would be able to handle all of the comparisons. Is this possible?

    Thank you very much for any help!

    I think that the best thing to do in this case would be to use a regular step numerical limit with the parameters of the activated loop. Your data source would be set to something like:

    Locals.tab1 [RunState.LoopIndex]

    And the type of comparison would be GT with the low limit:

    Locals.tab2 [RunState.LoopIndex]

    You can set the parameters of the loop on "Fixed number of loops" stage with 32, or you can use the custom loop type based on a fixed number of loops with the expression of loop while the value to something like:

    RunState.LoopIndex<>

    Hope this helps,

    -Doug

  • Receiver "device memory is low" despite having enough free ram

    Hello

    I develop a blackberry application using a browserfield and a business logic based on java. I just gave birth to a new thread that connects to Memory.getRAMStats () .getFree () every 2 seconds.

    Tests on the Simulator, everything works well, test on a Torch 9800, I just got a warning low memory while the output of my diary shows that at the same moment, the available memory was: bytes 89824400.

    It's more than enough in my opinion, what should I do?

    For me, 89 MB free sounds not too unreasonable for a cautionary spawn. Have you checked to see if the program you have memory leaks? Perhaps the garbage collector cannot erase the memory, the system needs until your application is closed. Do you know how your application uses the RAM? In my understanding of the garbage collector, he'll try and make a call to clear the memory while the system has reached a dangerous level of free memory. So that leads me to believe that you might have some special memory leaks unless this problem is caused by some type of framework bug.

    Scott

  • Cisco ACS with external DB - EAP - TLS

    Hi guys,.

    I understand how the EAP - TLS exchange works (I think), but if I have a client (with or without wire) that uses EAP - TLS with a CBS, I confirm the following.

    Let both users and computer certificates are used:

    1. customer and ACS are with each of the other automatic certificates to ensure they are known to each other. The eap - tls Exchange.

    2A. At any given time and I'm assuming until the successful eap - tls message is sent to the client, the ACS to check if the user name or computer name is in the AD database?

    2B. Wot is the parameter that is checked on the AD database?

    I read here that it can be: http://www.cisco.com/en/US/docs/net_mgmt/cisco_secure_access_control_server_for_windows/4.1/configuration/guide/peap_tls.html#wp999517

    Client certificates

    The client certificates are used to identify with certainty the user in EAP - TLS. They have no role in the construction of the TLS tunnel and are not used for encryption. A positive identification is made by one of three ways:

    CN (or name) comparison-compare CN in the certificate with the user name in the database. More information on this type of comparison is included in the description of the subject field of the certificate.

    Comparison of SAN-compare the San in the certificate with the user name in the database. It is only supported from the ACS 3.2. More information on this type of comparison is included in the description of the field another name of the subject of the certificate.

    Binary comparison - compare the certificate with a binary copy of the certificate stored in the database (only AD and LDAP for that). If you use the binary comparison of certificate, you must store the user certificate in a binary format. Also, for the generic LDAP and Active Directory, the attribute that stores the certificate must be the standard LDAP attribute named "usercertificate".

    3. with the foregoing, if options 1 or 2 are used (CN or SAN comparison), I guess it's just a check between a value out the CERT of the ACS and checked with AD, is that correct? With option 3, GBA exercise a complete comparison of the certificate between what the client and a "cert stored client" on the AD DB?

    Please can someone help me with these points.

    I'm so lost in this kind of things :)) I think.

    Thx a lot and best regards,

    Ken

    TLS only * handle * is complete/successful, but because the user authentication fails.

    CryptoLib.SSLConnection.pvServerInfoCB - process of TLS data: State = SSLv3 client SSL read Exchange of keys A

    CryptoLib.SSLConnection.pvServerInfoCB - process of TLS data: State = SSLv3 read Certificate SSL check

    CryptoLib.SSLConnection.pvServerInfoCB - process of TLS data: SSL = SSLv3 read state completed A

    CryptoLib.SSLConnection.pvServerInfoCB - process of TLS data: State = SSLv3 write change cipher spec A SSL

    CryptoLib.SSLConnection.pvServerInfoCB - process of TLS data: SSL = SSLv3 write finished State has

    CryptoLib.SSLConnection.pvServerInfoCB - process of TLS data: State = SSLv3 data embedded SSL

    CryptoLib.SSLConnection.pvServerInfoCB - process of TLS data: State SSL = SSL handshake completed successfully

    EAP: EAP - TLS: handshake succeeded

    EAP: EAP - TLS: authenticated handshake

    EAP: EAP - TLS: CN using the certificate as an authentication identity

    EAP: State EAP: action = authenticate, username = 'Jousset', the user identity is "jousset.

    pvAuthenticateUser: authenticate "jousset" against CSDB

    pvCopySession: assignment session group ID 0.

    pvCheckUnknownUserPolicy: Group of session ID is 0, the call pvAuthenticateUser.

    pvAuthenticateUser: authenticate "jousset' against the Windows database

    External DB [NTAuthenDLL.dll]: Cache of Creating Domain

    External DB [NTAuthenDLL.dll]: Domain for loading Cache

    External DB [NTAuthenDLL.dll]: no UPN Suffixes found

    External DB [NTAuthenDLL.dll]: could not get the domain controller for dwacs.com trust, [error = 1355]

    External DB [NTAuthenDLL.dll]: could not get the domain controller for enigma.com trust, [error = 1355]

    External DB [NTAuthenDLL.dll]: could not get the domain controller for acsteam.com trust, [error = 1355]

    External DB [NTAuthenDLL.dll]: could not get the domain controller for vikram.com trust, [error = 1355]

    External DB [NTAuthenDLL.dll]: domain loaded cache

    External DB [NTAuthenDLL.dll]: could not find the user jousset [0 x 00005012]

    External DB [NTAuthenDLL.dll]: user Jousset is not found

    pvCheckUnknownUserPolicy: assignment session group ID 0.

    Unknown user "jousset" was not authenticated

    If EAP-failure (RADIUS Access-Reject (is sent, no EAP-Success(Radius Access-Accept).))

    And no matter how port will not be allowed to pass traffic unless the NAS device gets an EAP-Success(Radius Accept) for the user.

    HTH

    Kind regards

    Prem

  • Creative cloud often disconnects

    Hello

    We have CC for teams and some of us quite often gets disconnected from the creative cloud.

    After cutting out, he does not remember the username or the password... then type whenever the bug occurs...

    It's really annoying because we use the new CC features like libraries CC for InDesign and Typeset fonts...

    We work on iMacs, thought that it is a dysfunction of WiFi problem - but the internet works fine.

    Any ideas? Anyone?

    We would really appreciate some help!

    Thank you!

    Hello

    Follow please: https://helpx.adobe.com/creative-cloud/kb/signed-out-sign-in-required-error-248.html

    Hope that helps!

    Kind regards

    Sheena

  • The current XML is not valid on the use of the narrative mode external graphics

    Hello

    I always get the following message when embedding amcharts or google maps using narrative view. Once registered, it is not possible in addition to change the narrative view. However, the report works very well, the graphic is displayed, but not editable.

    see you soon,
    Mark



    Error display of the results

    The current XML is not valid with the following errors: Bad xml instance! <? XML version = "1.0"? "" > < xmlns:saw="com.siebel.analytics.web/report/v1.1 saw: report" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" container = "http://www.w3.org/2001/XMLSchema" xmlns:sawx="com.siebel.analytics.web/expression/v1.1" xmlVersion = "200810080" > < saw: criteria xsi: type = "saw: simpleCriteria ' subjectArea ="& quot; QC4Agility & quot; "withinHierarchy ="true"> < saw: columns > < saw: column xsi: type = columnID ' saw: regularColumn" = "c5f655b89c322bce7" > < saw: columnFormula > < sawx:expr xsi: type = "sawx:sqlExpression" > & quot; Sun - RUN & quot;. & quot; RUN the status & quot; < / sawx:expr > < / saw: columnFormula > < / saw: column > < saw: column xsi: type = columnID ' saw: regularColumn "="c9de76acdb49ee65f"> < saw: columnFormula > < sawx:expr xsi: type ="sawx:sqlExpression"> & quot; Fact - req_test_run & quot;. & quot; # REQs & quot; < / sawx:expr > < / saw: columnFormula > < / saw: column > < saw: column xsi: type = columnID ' saw: regularColumn "="c9fe9f1713d290812"> < saw: columnFormula > < sawx:expr xsi: type ="sawx:sqlExpression"> & quot; Fact - req_test_run & quot;. & quot; # TESTs & quot; < / sawx:expr > < / saw: columnFormula > < / saw: column > < / saw: columns > < saw: filter > < sawx:expr xsi: type = "" sawx: logic "op = 'and' > < sawx:expr xsi: type ="sawx:comparison"op ="equal"> < sawx:expr xsi: type ="sawx:sqlExpression"> & quot;" Sun - REQ & quot;. & quot; The target version of REQ & quot; < / sawx:expr > < sawx:expr xsi: type = "xsd: String" > 1.0 < / sawx:expr > < / sawx:expr > < sawx:expr xsi: type = "sawx:comparison" op = "lessOrEqual" > < sawx:expr xsi: type = "sawx:sqlExpression" > & quot; Sun - REQ & quot;. & quot; REQ nCycle & quot; < / sawx:expr > < sawx:expr xsi: type = "sawx:variable" op = "server" > CurrentCycle < / sawx:expr > < / sawx:expr > < sawx:expr xsi: type = "sawx:comparison" op = "not null" > < sawx:expr xsi: type = "sawx:sqlExpression" > & quot; Sun - RUN & quot;. & quot; RUN status & quot; < / sawx:expr > < / sawx:expr > < / sawx:expr > < / saw: filter > < / saw: criteria > < currentView saw: views = '0' > < saw: view xsi: type = "saw: compoundView" name = "compoundView! 1 "> < saw: cvTable > < saw: cvRow > < viewName saw: cvCell ="titleView! 1 "> < saw: displayFormat > < seen: formatSpec / > < / saw: displayFormat > < / saw: cvCell > < / saw: cvRow > < saw: cvRow > < viewName saw: cvCell ="tableView! 1 ' > < saw: displayFormat > < saw: formatSpec / > < / saw: displayFormat > < / saw: cvCell > < / saw: cvRow > < saw: cvRow > < viewName saw: cvCell = "dvtchart!"» 1 "/ > < / saw: cvRow > < seen: cvRow > < viewName saw: cvCell ="narrativeView! " 1 "/ > < / saw: cvRow > < / saw: cvTable > < / saw: view > < saw: view xsi: type =" saw: titleView "name ="titleView! 1 "/ > < saw: view xsi: type =" saw: tableView "name ="tableView! 1 "> < saw: edges > < saw axis: edge = 'page' showColumnHeader = 'true' / > < saw axis: edge ="section"/ > < seen: edge axis ="row"showColumnHeader ="true"> < saw: edgeLayers > < saw: edgeLayer type ="column' columnID = "c5f655b89c322bce7" / > < type of saw: edgeLayer = "column' columnID ="c9de76acdb49ee65f"/ > < type of saw: edgeLayer ="column' columnID = "c9fe9f1713d290812" / > < / saw : edgeLayers > < / saw: edge > < saw axis: edge = "column" / > < / saw: edges > < / saw: view > < saw: view xsi: type = "view: dvtchart" name = "dvtchart".! 1 "> < saw: display type = subtype 'pie' = 'default' renderFormat ="flash"mode ="on line"xAxisLiveScrolling ="false"yAxisLiveScrolling ="false"clientEventEnabled ="false"animateOnDisplay ="true"> < saw: style barStyle = 'default' lineStyle = 'default' scatterStyle = 'default' fillStyle = 'default' bubblePercentSize = '100' effect ="2d"/ > < / saw: display > < saw: canvasFormat height ="330"width ="640"showGradient ="true"> < saw: dataLabels display ="always"label ="nameValue"position ="under"transparentBackground = 'true' valueAs = abbreviation of 'default' ="default"> < vu : textFormat fontSize = "14" / > < saw: dataFormat xsi: type commas = "saw: number" = 'false' negativeType = 'less' minDigits = '0' maxDigits = '0' / > < / saw: dataLabels > < saw: default gridlines = "true" > < saw: horizontal > < saw: visible major = "false" / > < saw: visible minor = 'false' / > < / saw: horizontal > < saw: vertical > < saw: visible major = "false" / > < seen : visible minor = "false" / > < / saw: Portrait > < / saw: grid > < miter saw mode: title = 'auto' > < saw: legend / > < / saw: title > < / saw: canvasFormat > < saw: selections > < saw: Categories > < saw: category > < columnID saw: columnRef = "c5f655b89c322bce7" / > < / saw: category > < / saw: Categories > < saw: measures showMeasureLabelsOnCategory = 'false' > < seen : column measureType = 'pie' > < columnID saw: columnRef = "c9de76acdb49ee65f" / > < / saw: column > < / saw: measures > < saw: seriesGenerators > < saw: seriesGenerator / > < saw: measureLabels / > < / saw: seriesGenerators > < / saw: selections > < position saw: legendFormat = "none" transparentFill = "true" > < saw: textFormat / > < / saw: legendFormat > < saw: seriesFormats > < name of saw : seriesFormatGroup = 'pie' > < seen: seriesFormatRule > < saw: seriesCondition columnID = position 'c5f655b89c322bce7' = '0' > < saw: condition > < sawx:expr xsi: type = "sawx:comparison" op = "equal" > < columnID saw: columnRef = "c5f655b89c322bce7" / > < sawx:expr xsi: type = "xsd: String" > Failed < / sawx:expr > < / sawx:expr > < / saw: condition > < / saw: seriesCondition > < saw : visualFormats > < seen: visualFormat color = "#FF0000" / > < / saw: visualFormats > < / saw: seriesFormatRule > < saw: seriesFormatRule > < columnID saw: seriesCondition = position "c5f655b89c322bce7" = "1" > < saw: condition > < sawx:expr xsi: type = "sawx:comparison" op = "equal" > < columnID saw: columnRef = "c5f655b89c322bce7" / > < sawx:expr xsi: type = "xsd: String" > Passed < / sawx:expr > < / sawx : expr > < / saw: condition > < / saw: seriesCondition > < saw: visualFormats > < saw: visualFormat color = "#B0C060" / > < / saw: visualFormats > < / saw: seriesFormatRule > < / saw: seriesFormatGroup > < / saw: seriesFormats > < / saw: view > < saw: view xsi: type = "saw: narrativeView" name = "narrativeView ! 1 "> < saw: prefix > < saw: legend fmt ="html"> < saw: text / > < / saw: legend > < / saw: prefix > < / saw: view > < / saw: views > < parsererror xmlns ="http://www.w3.org/1999/xhtml"style =" display: block; " white-space: pre; border: 2px solid #c77; padding: 0 1em 1em 0; margin: 1em; background-color: #fdd; color: black "> < h3 > This page contains the following errors: < / h3 > < div style =" do-family: monospace; font-size: 12px "[> error on line 6 in column 430: sequence & #39;]]" & gt; & #39; not allowed in content < / div > < h3 > here is a rendering of the page up to the first error. < / h3 > < / parsererror > < / saw: report > Line: 2, Col: 5482, unknown element "parsererror" Line: 2, Col: 5482, 'style' attribute is not declared for element "parsererror" Line: 3, Col: 98, item "parsererror" is not valid for the content model: ' ((critères, vues, invites, listOptions), segmentOptions)'
    Error details
    Error codes: EIRWWH9E
    Geographical area: saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool, saw.threadpool, saw.threads


    narrative view used for the test:

    Prefix
    < script type = "text/javascript" src = "http://extra.amcharts.com/public/swfobject.js" > < / script >
    < div id = "amcharts_1308229514469" > you need to update your Flash Player < / div >
    < script type = "text/javascript" >
    var so = new SWFObject ("http://extra.amcharts.com/public/ampie.swf", "Oh", "500", "400", "8", "#FFFFFF");
    so.addVariable ("path", "Oh /");
    so.addVariable ("chart_settings", encodeURIComponent ("< parameters > < precision > 0 < /precision > < background > < alpha > 100 < /alpha > < border_alpha > 20 < / border_alpha > < / background > < legend > < align > Center < /aligner > < / legend > < pie > < y > 50% / < y > < start_angle > 0 < / start_angle > < outline_color > FF0000 < / outline_color > < / pie >")) < data_labels > < see the > <! [CDATA [< b > {title}, {percentages} % < /b > ({value})]] > < / show > < max_width > 150 < / max_width > < / data_labels > < label > < lid label = '0' > < text > DIR < / text > < x > 10 / < x > < > 000000 appears < / appears > < text_size > 28 < / text_size > < align > Center < / align > < / label > < lid label =' 1' > < text > S & amp; ((' E < / text > < y > 220 / < y > < appears > FFFFFF < / appears > < text_size > 28 < / text_size > < align > Center < / align > < / label > < / labels > < / settings > '));
    so.addVariable ("chart_data", encodeURIComponent ("< pie >

    * Story *.
    < slice title = 'United States' > 19544 < / slice >

    * Postfix *.
    (("< pie / > '));
    so. Write ("amcharts_1308229514469");
    < /script >

    I think it's a problem with your CDATA section. Remove this small and test again to prove that he is the cause.

    Paul

  • Once again RowFilter: tension between minimal api and usability?

    Hi experts,

    (Yes, I'm still struggling with RowFilters ;-)

    The minimal api I am referring to is comparisonType.greater: she has values before, after, equal, is not based on equality. It is complete because as before equality comparisons can be expressed by a non - logic after.

    An important aspect of usability (as I see it :) is consistency: learn a dialect of lifestyle, model,... and the reuse of the incomparable contexts.) This is the model to use a RowFilter on comparable
    RowFilters.compareFilter(Before, comparisonValue, index);
    Of course, this model cannot be used for comparisons as "composed" comparisons:
    // ease-of-use-version, can't be done
    RowFilters.compareFilter(Before-And-Equal, cv, i);
    
    // instead have to break the habit
    RowFilter after = RowFilters.someFilter(After, cv, i);
    RowFilters.notFilter(after);
    Hmm... now in a frame I could hide the effort two lines behind a factory method
    RowFilters.beforeAndEqualFilter(cv, i);
    Here the type of comparison is sucked out of the parameterlist in the name of the method. For a consistent api, this plant would have to have coverage methods beforeFilter, secondary filter... etc.

    An alternative approach would be to have a new comparisonType.greater (unfortunately, it's an enum - not expandable) with all the combinations and re - implement comparing filters. BTW, it is necessary in any case, it should be applicable to all the comparables.

    Hmm... (incoherent?) infancy, mainly because I really can't decide me ;-) Advice, please?

    Thank you
    Jeanette

    PS: transferred to the forum of SwingX at java.net
    http://forums.Java.NET/Jive/thread.jspa?threadID=153709

    Methods how did you decide to compare? For simplicity I would go with redundancy leaving the developer to decide.

    Filter compareToFilter(ComparisonTypeExt type, Comparable value, int.. columns);
     Filter compareToFilter(ComparisonTypeExt type, Comparator comparator, T value, int.. columns);
    Filter betweenFilter(RangeType type, Comparable from, Comparable to, int.. columns);
     Filter betweenFilter(RangeType type, Comparator comparator, T from, T to, int.. columns);
    Filter containsFilter(Collection values, int... columns);
    
    // maybe better name :) Left out "than" so it's shorter.
    public enum ComparisonTypeExt { LESS, LESS_OR_EQUAL, EQUAL, NOT_EQUAL, GREATER_OR_EQUAL, GREATER }
    // FROM_INCLUSIVE same effect as TO_EXCLUSIVE, etc
    public enum RangeType { ALL_INCLUSIVE, FROM_INCLUSIVE, TO_INCLUSIVE, ALL_EXCLUSIVE, FROM_EXCLUSIVE, TO_EXCLUSIVE }
    

    I think that to choose a default value: all-inclusive seems more natural ("choose a number between 1 and 10"), but inclusive makes more sense for developers (for several beaches: age groups [0-15 > [15-25 > [25-50 > [50 >]]]]) and fits indexed table/list of Java.

    Standard SQL BETWEEN is all included (at least SQL92 one I found first), but implementations may not be (http://www.w3schools.com/sql/sql_between.asp).

Maybe you are looking for