Get all Columns and Records from the View to HTML page RRS feed

  • Question

  • Hello Experts, i want to get the attributes name from the current view and using that i can query the records and put them all to HTML page. please suggest some solution.

    Expecting some quick response.

    Thank you


    Tuesday, March 26, 2013 7:46 AM


  • Hello i did like below to get the attribute Schema name and Display name present in Current view


     var gridBar = document.getElementById('crmGrid');
        var headers = gridBar.getElementsByTagName('TH');  
        for (var i = 0; i < headers.length; i++) {    
            var header = headers[i];
        if (header.fieldname != null) {
            alert(header.innerText);//Display the Display name of attribute

            alert(header.fieldname); // Display the attribute schema name

    Thank you


    Tuesday, March 26, 2013 11:12 AM