3.2.0

Having trouble displaying?

Reading the instructions this couldn't be this hard, but I have been working many hours. I believe that it is only displays two rows and one column. Any help would be great.

Thank you

<script>

function init() {
var arryLen = arryDataFlds.length;
arryDataFlds[arryLen] = {contactID:'BK7299',contactType:'Healing Practitioner',title:'Mental Health Therapist',company:'',salut:'',fname:'Candance',lname:'Sinclair',addr1:'24380 N. Sunset Ave.',addr2:'',city:'Cary',state:'IL',zip:'60013',country:'United States',department:'',callNotes:'',notes:'',sState:'IL',sStreet:'24380 N. Sunset Ave.',sCity:'Cary',sZip:'60013',sPhone:'sinclair@mc.net',sCountry:'United States',arryActions: new Array()};

var hObj = arryDataFlds[arryLen];
hObj.arryActions[hObj.arryActions.length] = ['2/7/2005','Letter','sent 2005 catalog','']
hObj.arryActions[hObj.arryActions.length] = ['12/10/2003','Call','Customer Survery Card','']
hObj.arryActions[hObj.arryActions.length] = ['12/10/2003','Call','Customer Survery Card','']

var gridObj = new Active.Controls.Grid;
var gridColumns = ["Action Date", "Action Type", "Action", "Action Status"];

gridObj.setColumnProperty("count", 4);

gridObj.setRowProperty("count", arryDataFlds[recordIndex].arryActions.length);

gridObj.setDataProperty("text",function(i, j){return arryDataFlds[recordIndex].arryActions[i][j]});

gridObj.setColumnProperty("text",function(i){return gridColumns[i]});

document.getElementById("grid").innerHTML = gridObj;
}

</script>

<body onload="init();">

<div id='grid' style='border: 1px solid; width: 100%; height: 100%;'>&nbsp;Hello</div>

</body>
deDogs
September 28,

This topic is archived.

See also:


Back to support forum