SmartClient: v10.1p_2016-03-07
This is another minor UI issue dealing with inconsistent behavior between grid components.
REPRO Steps:
=============
1. Load test case
2. Open "Configure Sort" dialog from Number of Inspections column
3. Change column of Sort By to Region/Country
4. Click Copy Level
5. Observe that the copied level column is Region/Country
6. Close sort dialog
7. Open "Configure Grouping" dialog from Number of Inspections column
8. Change column of Group By to Region/Country
9. Click Copy Level
10. Observe that the copied level column is Number of Inspections total (inconsistent with step #5)
Now if the user were to remove focus by say adding a new level, then highlighting the Region/Country Group By row, and then clicking the Copy level button, then the copy column works as expected. So its seems like a minor focus issue.
This is another minor UI issue dealing with inconsistent behavior between grid components.
REPRO Steps:
=============
1. Load test case
2. Open "Configure Sort" dialog from Number of Inspections column
3. Change column of Sort By to Region/Country
4. Click Copy Level
5. Observe that the copied level column is Region/Country
6. Close sort dialog
7. Open "Configure Grouping" dialog from Number of Inspections column
8. Change column of Group By to Region/Country
9. Click Copy Level
10. Observe that the copied level column is Number of Inspections total (inconsistent with step #5)
Now if the user were to remove focus by say adding a new level, then highlighting the Region/Country Group By row, and then clicking the Copy level button, then the copy column works as expected. So its seems like a minor focus issue.
Code:
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
.diagInfo {
font-size: 14px;
font-weight: bold;
padding: 5px;
}
</style>
<script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/modules/ISC_Core.js"></script>
<script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/modules/ISC_Foundation.js"></script>
<script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/modules/ISC_Containers.js"></script>
<script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/modules/ISC_Grids.js"></script>
<script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/modules/ISC_Forms.js"></script>
<script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/modules/ISC_DataBinding.js"></script>
<script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/modules/ISC_Drawing.js"></script>
<script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/modules/ISC_PluginBridges.js"></script>
<script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/modules/ISC_Charts.js"></script>
<script type="text/javascript" SRC="http://localhost:8080/isomorphic/skins/EnterpriseBlue/load_skin.js"></script>
<script type="text/javascript" >
var isomorphicDir="http://localhost:8080/isomorphic/";
// set this to the correct JIRA ticket
var JIRA_TICKET = "SNT-14059";
// test data
var data = [
{inspectorID:12345, region:"Northeast", inspections:206, observations:913,lastInspectionDate:new Date(2012, 8, 13), index:52.6 },
{inspectorID:67890, region:"West", inspections:66, observations:2,lastInspectionDate:new Date(2013, 2,2), index:75.3 },
{inspectorID:54321, region:"Northeast", inspections:4, observations:67,lastInspectionDate:new Date(2013,2,3), index:75.3 },
{inspectorID:09876, region:"South", inspections:24, observations:0,lastInspectionDate:new Date(2012,8,31), index:52.6 }
];
// datasource for the grid
isc.DataSource.create({
ID: "ds",
fields: [
{name:"inspectorID", title:"Inspector ID", type:"integer", showIf:"false" }, // hidden
{name:"inspections", type:"integer", title:"Number of Inspections Total"},
{name:"region", type:"text", title:"Region/Country"},
{name:"index", type:"float", title:"Index"}
],
cacheData:data,
clientOnly: true
});
// once page loads set some diagnostic information, DO NOT CHANGE
isc.Page.setEvent("load", function() {
document.title = JIRA_TICKET + " (SmartClient version " + isc.versionNumber + ")";
var html = [];
html.push("Jira: " + JIRA_TICKET);
html.push("SmartClient: " + isc.versionNumber);
html.push("Browser: " + navigator.appCodeName + " " + navigator.appName + " " + navigator.appVersion);
diagLabel.setContents( html.join("<br>"));
});
</script>
</head>
<body>
<script>
// ===== DO NOT REMOVE =====
var diagLabel = isc.Label.create({
ID: "diagInfo",
width: "100%",
styleName: "diagInfo",
autoFit: true
});
// ===== DO NOT REMOVE =====
// basic grid
var grid = isc.ListGrid.create({
dataSource: ds,
dataFetchMode : "local",
autoFetchData: true,
clientOnly: true,
position: "relative",
width : "100%",
align : "center",
autoFitData : "vertical",
autoFitMaxHeight : 400,
alternateRecordStyles : true,
canGroupBy : true,
showGroupSummary : true,
canMultiGroup: true,
autoDraw: false
});
// the main page layout - place all other components afetr diagLabel
var layout = isc.VLayout.create({
width:"100%",
membersMargin: 20,
members: [
// ===== DO NOT REMOVE diagLabel
diagLabel,
// ===== place anty components here
grid
]
});
</script>
</body>
</html>
Comment