Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SmartClient Version: v11 - Not able to format/editHilites date fields in the grid.

    We're upgrading smartclient from 10.1 to 11 and facing issues with "editHilites" functionality. Please find the below details:
    * Issue Description: Not able to highlight date fields.

    * Navigation:
    Open "Edit Highlights" dialog and apply some format on date field and save.
    * Actual result: No hilight in the grid but other data types are working fine.
    * Expected result: data fields also should highlight as configured.

    * SmartClient: SmartClient Version: v11.0p_2017-06-04/PowerEdition Development Only (built 2017-06-04)

    * Browser: Mozilla Netscape 5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

    Attached standalone test case "PSS-3245-Grid-FormatTool-Date.html"

    #2
    let me know how to share test case (html)

    Comment


      #3
      Test Case:
      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/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/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 = "PSS-3245";
         
        // 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", type:"integer", title:"Inspector ID", showIf:"false" }, 
        {name:"inspections", type:"integer", title:"Number of Inspections Total"},
        {name:"observations", type:"integer", title:"# Observations"},
        {name:"region", type:"text", title:"Region/Country"},
        {name:"lastInspectionDate", type:"date", title:"Last Inspection"}
        ],
        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 + ") PowerEdition";
        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>
         
        <!--mstheme--><link rel="stylesheet" type="text/css" id="onetidThemeCSS" href="../../_themes/Lichen/Lich1011-65001.css"><meta name="Microsoft Theme" content="Lichen 1011, default">
        </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 : "50%",
        align : "center",
        autoFitData : "vertical",
        autoFitMaxHeight : 400,
        alternateRecordStyles : true,
        canAddFormulaFields : true,
        canAddSummaryFields : true,
        canGroupBy : true,
        canReorderFields : true,
        showGroupSummary : true,
        groupByMaxRecords : 5,
        useAdvancedFieldPicker: true,
        advancedFieldPickerThreshold: 5,
        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,
        isc.IButton.create({
        title : "Format",
        click : function() {
        grid.editHilites();
        }
        })
        ]
        });
         
        </script>
         
        </body>
         
        </html>

      Comment

      Working...
      X