if (window.isc == undefined || window.isc.DataSource == undefined){  alert("Can't load DataSources - SmartClient runtime not loaded");}isc.DataSource.create({
    restrictPublisher:"false",
    allowAdvancedCriteria:true,
    xpaths:"TYPEUSERSTRING~replace(getType(./location),'Host','Machine')",
    linkedDataMethods:"         LOCATIONNAME|getLocation-getName;         SERIALNUMBER|getLocation-getSerialNumber;         TYPE|getLocation-getType;         LOCATIONLASTSEEN|getLocation-getLastSeen-getTime;         STOPDATE|getSubscriptionTimeLimitState-getStopDate-getTime;         LASTREFRESHDATE|getSubscriptionTimeLimitState-getLastRefreshDate-getTime;         CREATIONDATE|getCreationDate;         LOCATIONSTATUS|getLocation-getStatus-getUserString;         STATUS|getStatus-getUserString;         HASACTIVERESETSTATUSES|hasActiveResetStatus;         LOCATIONCREATIONDATE|getLocation-getCreationDate-getTime",
    mappedBeanClass:"com.paceap.eden.jpa.main.Activation",
    mappedEnumClasses:"STATUS|com.paceap.eden.jpa.enums.ActivationStatus",
    ID:"activation_DS_HibernateORM",
    dropExtraFields:true,
    fields:[
        {
            name:"PKID",
            hidden:true,
            type:"integer",
            primaryKey:true
        },
        {
            name:"STATUS",
            title:"Status",
            type:"text",
            canEdit:false
        },
        {
            name:"LOCATIONNAME",
            title:"Location Name",
            type:"text",
            canEdit:false
        },
        {
            name:"SERIALNUMBER",
            title:"Serial Number",
            type:"text",
            canEdit:false
        },
        {
            name:"TYPE",
            title:"Type",
            type:"text",
            canEdit:false
        },
        {
            name:"TYPEUSERSTRING",
            title:"Type",
            type:"text",
            canEdit:false
        },
        {
            name:"LOCATIONLASTSEEN",
            title:"Location Last Seen",
            type:"datetime",
            canEdit:false
        },
        {
            name:"STOPDATE",
            title:"Stop Date",
            type:"datetime",
            canEdit:false
        },
        {
            name:"LASTREFRESHDATE",
            title:"Last Refresh Date",
            type:"datetime",
            canEdit:false
        },
        {
            name:"CREATIONDATE",
            title:"Creation Date",
            type:"datetime",
            canEdit:false
        },
        {
            name:"LOCATIONSTATUS",
            title:"Location Status",
            type:"text",
            canEdit:false
        },
        {
            name:"LOCATIONCREATIONDATE",
            title:"Location Creation Date",
            type:"datetime",
            canEdit:false
        },
        {
            name:"auth.pkid",
            hidden:true,
            type:"integer"
        },
        {
            name:"HASACTIVERESETSTATUSES",
            type:"boolean",
            canEdit:false
        }
    ]
})
