SmartClient_90_PowerEdition
All browsers
The save button on the hilite editor is not working after saving a hilite and then trying to remove it.
Repro steps:
1. Load test case
2. Enter the following hilite: Number of Inspections greater than 66, background yellow
3. Click Save button. Observe hilites editor closes.
4. Open hilite editor with the command gridObject.editHilites()
5. Remove the hilite rule from step 2.
6. Click Save button. Observe nothing happens.
I just checked a previous version (SmartClient_SNAPSHOT_v90d_2013-05-23) and this was not an issue.
All browsers
The save button on the hilite editor is not working after saving a hilite and then trying to remove it.
Repro steps:
1. Load test case
2. Enter the following hilite: Number of Inspections greater than 66, background yellow
3. Click Save button. Observe hilites editor closes.
4. Open hilite editor with the command gridObject.editHilites()
5. Remove the hilite rule from step 2.
6. Click Save button. Observe nothing happens.
I just checked a previous version (SmartClient_SNAPSHOT_v90d_2013-05-23) and this was not an issue.
Code:
<!DOCTYPE html>
<html>
<head>
<title >SNTQ-2167</title>
<script type="text/javascript" >
var isomorphicDir="http://localhost:8080/isomorphic/";
</script>
<script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/development/ISC_Core.js"></script>
<script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/development/ISC_Foundation.js"></script>
<script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/development/ISC_Containers.js"></script>
<script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/development/ISC_Grids.js"></script>
<script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/development/ISC_Forms.js"></script>
<script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/development/ISC_DataBinding.js"></script>
<script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/development/ISC_Drawing.js"></script>
<script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/development/ISC_PluginBridges.js"></script>
<script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/development/ISC_Charts.js"></script>
<script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/development/ISC_Tools.js"></script>
<script type="text/javascript" SRC="http://localhost:8080/isomorphic/skins/EnterpriseBlue/load_skin.js"></script>
</head>
<body>
<script type="text/javascript">
var data = [
{inspectorID:12345, region:"United States", state:"Pennsylvania", city:"Butler", inspections:206,observations:913,lastInspectionDate:Date.parseServerDate(2012,8,14),index:52.6, inspectionType: {id:123, name:"type1"},bodyPartAffectedCodeList:["KNEE", "HEAD"]},
{inspectorID:67890, region:"United States", state:"Pennsylvania", city:"Pittsburgh", inspections:66,observations:0,lastInspectionDate:Date.parseServerDate(2013,1,3),index:75.3, inspectionType: {id:123, name:"type1"},bodyPartAffectedCodeList:["KNEE", "HEAD"]},
{inspectorID:88776, region:"United States", state:"Pennsylvania", city:"-Pittsburgh", inspections:66,observations:67,lastInspectionDate:Date.parseServerDate(2012,7,9),index:75.3, inspectionType: {id:123, name:"type1"},bodyPartAffectedCodeList:["KNEE", "HEAD"]},
{inspectorID:44556, region:"United States", state:"Pennsylvania", city:"'New Kensington", inspections:206,observations:0,lastInspectionDate:Date.parseServerDate(2013,1,4),index:52.6, inspectionType: {id:123, name:"type1"},bodyPartAffectedCodeList:["KNEE", "HEAD"]},
{inspectorID:12345, region:"United States", state:"Pennsylvania", city:"Cleveland", inspections:206,observations:913,lastInspectionDate:Date.parseServerDate(2011,5,5),index:52.6, inspectionType: {id:123, name:"type1"}},
{inspectorID:67890, region:"United States", state:"Pennsylvania", city:"-Toronto", inspections:66,observations:0,lastInspectionDate:Date.parseServerDate(2011,5,5),index:75.3, inspectionType: {id:123, name:"type1"},bodyPartAffectedCodeList:["KNEE", "HEAD"]},
{inspectorID:88776, region:"United States", state:"Pennsylvania", city:"Oakdale", inspections:66,observations:67,lastInspectionDate:Date.parseServerDate(2012,5,5),index:75.3, inspectionType: {id:123, name:"type1"},bodyPartAffectedCodeList:["KNEE", "HEAD"]}
];
</script>
</head>
<body>
<script type="text/javascript">
isc.DataSource.create({
ID: "ds",
fields: [
{name:"inspectorID", title:"Inspector ID", type:"integer" },
{name:"inspections", type:"integer", title:"Number of Inspections"},
{name:"static", type:"text", title:"Really Long Static Field Title"},
{name:"region", type:"text", title:"Region/Country"},
{name:"state", type:"text", title:"State"},
{name:"city", type:"text", title:"City/Municipality"},
{name:"observations", title:"# Observations"},
{name:"lastInspectionDate", type:"date", title:"Last Inspection"},
{unknownType:true,type:"java.util.List",name:"bodyPartAffectedCodeList"}
],
cacheData:data,
clientOnly: true
});
var gridObject = isc.ListGrid.create({
dataSource: ds,
dataFetchMode : "local",
autoFetchData: true,
clientOnly: true,
width : "100%",
align : "center",
autoFitData : "vertical",
alternateRecordStyles : true,
canAddFormulaFields : true,
canAddSummaryFields : true,
canGroupBy : true,
canReorderFields : true,
showGroupSummary : true,
groupByMaxRecords : 100,
useAdvancedFieldPicker : true,
advancedFieldPickerThreshold : 5
});
gridObject.editHilites();
</script>
</body>
</html>