Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

__cachedType in dataSource.field

$
0
0
SmartClient Version: v10.0p_2014-10-23/EVAL Deployment (expires 2014.12.22_09.35.28) Licensed to: Isomorphic Software (#ISC_EVAL_NIGHTLY)

Hello, I'm encountering a strange problem with my application.
When refreshing after an update operation on a valuesManager, I get this warning in the developer console:
Code:

10:59:09.473:WARN:SimpleType:SimpleType 'text' defined twice:
    SimpleType.init(Obj{name:text}, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef)
    [a]MathFunction.completeCreation(A=>Obj{name:text}, B=>undef, C=>undef, D=>undef, E=>undef, F=>undef, G=>undef, H=>undef, I=>undef, J=>undef, K=>undef, L=>undef, M=>undef)
    [c]Class.create(A=>Obj{name:text}, B=>undef, C=>undef, D=>undef, E=>undef, F=>undef, G=>undef, H=>undef, I=>undef, J=>undef, K=>undef, L=>undef, M=>undef)

and actually, one of my dataSources, is translated to JS like this, in my jsp:
Code:

isc.DataSource.create({
    allowAdvancedCriteria:true,
    xmlns:"http://www.smartclient.com/schema",
    operationBindings:[
        {
            operationType:"update",
            operationId:"risoluzioneConsensualeTemporanea"
        }
    ],
    serverType:"sql",
    inheritsFrom:"JAS_ACCORDO_ECONOMICO_BASE",
    tableCode:"679afdeadc379665accaa50d006fd558",
    ID:"JAS_ACCORDO_ECONOMICO",
    fields:[
        {
            sqlType:"decimal",
            columnCode:"0f5c51386c0edd837f6ab825b450811e",
            name:"ID_TESSERAMENTO_FK",
            joinType:"outer",
            type:"integer",
            foreignKey:"JAS_TESSERAMENTO.ID_REC"
        },
        {
            __cachedType:isc.SimpleType.create({
                validators:[
                    {
                        max:20,
                        type:"lengthRange"
                    },
                    "isString"
                ],
                name:"text"
            })
,
            sqlType:"varchar",
            hidden:false,
            columnCode:"ad08324e2faaeed21b83e0256c3033be",
            sqlLength:"20",
            name:"VAR_TESSERAMENTO_NUM",
            length:20,
            type:"text",
            canEdit:false,
            includeVia:"ID_TESSERAMENTO_FK"
        }
    ]
})

what's that __cachedType ? Why does it show up?

this is the JAS_ACCORDO_ECONOMICO.ds.xml:
Code:

<!--
 <%@page pageEncoding="UTF-8" contentType="text/xml; charset=UTF-8"%>
 <%@ taglib prefix="fmt" uri="/WEB-INF/fmt.tld" %>
 <fmt:setBundle basename="i18nMessages_${locale}" var="i18n"/>
 -->
<DataSource xmlns="http://www.smartclient.com/schema"
            ID="JAS_ACCORDO_ECONOMICO"
            tableName="JAS_ACCORDO_ECONOMICO"
            schema="DBJAS"
            dbName="dbJas"
            serverType="sql"
            inheritsFrom="JAS_ACCORDO_ECONOMICO_BASE"
        >
        <fields>
        <field foreignKey="JAS_TESSERAMENTO.ID_REC" sqlType="decimal" name="ID_TESSERAMENTO_FK" type="integer" joinType="outer"/>
        <field name="VAR_TESSERAMENTO_NUM" type="text" includeFrom="JAS_TESSERAMENTO.VAR_TESSERAMENTO_NUM" includeVia="ID_TESSERAMENTO_FK"/>
        </fields>
    <operationBindings>
        <operationBinding operationType="update" operationId="risoluzioneConsensualeTemporanea" serverMethod="risoluzioneConsensualeTemporanea">
            <serverObject lookupStyle="new" className="com.juve.jas.trasferimenti.TesseramentoAddOrUpdateDMI"/>
        </operationBinding>
    </operationBindings>
</DataSource>


Viewing all articles
Browse latest Browse all 4756

Trending Articles