10-18-2010 05:03 AM
10-22-2010 05:40 AM
10-22-2010 06:12 AM
10-25-2010 10:50 AM
var itemdata = aspectMenu.submenu.itemdata;
for (var i=0, j=this.options.visible.length; i<j; i++){
var prop = this.options.visible[i];
var splitProp = prop.id.split(":");
for (var k=0, m=this.options.formFields.length; k<m; k++){
var formProp = this.options.formFields[k];
var splitFormProp = formProp.id.split(":");
if(splitProp[0] == splitFormProp[0]){
itemdata.push(
{
text: $html(prop.title),
submenu: { id: "applications",
itemdata: [{text:$html(formProp.title), value:formProp.id}]
}
});
}
}
}
10-28-2010 02:46 AM
var itemdata = aspectMenu.submenu.itemdata;
var itemdataField = fieldsMenu.submenu.itemdata;
itemdataField = []; //I had to clear this Arrays so it will store new data
for (var i=0, j=this.options.visible.length; i<j; i++){
var prop = this.options.visible[i];
var splitProp = prop.id.split(":");
itemdataField = [];
for (var k=0, m=this.options.formFields.length; k<m; k++){ //this loop adds fields to the ItemdataField Array
var formProp = this.options.formFields[k];
var splitFormProp = formProp.id.split(":");
if(splitProp[0] == splitFormProp[0]){
itemdataField.push(
{
text:this.msg((formProp.title)),
value:formProp.id
});
}
}
//Then I push the values of that array to an aspect based on the i counter of the first loop.
itemdata.push(
{
text:$html(prop.title),
submenu: { id: "_field"+i,
itemdata: [itemdataField]
}
});
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.