You need to sign in to do that
Don't have an account?
MacLean
Mass Update Opportunities App: Custom Fields
I want to add new fields(columns) to this. i can do that, but I get crzy JS errors when i do.
----------------
Example:
columns = [ // 'AccountId', 'Name','Sites','StageName','CloseDate', 'Amount', 'Id'
{ name:'Account',sfname:'AccountId', comparator: nameCompare ,
width: 128, readonly:true, formatter: turbo.grid.format.link },
{ name:'Name', comparator: nameCompare ,
width: 188, readonly:true , formatter: turbo.grid.format.link } ,
{ name:'Sites', sfname:'Sites', comparator: nameCompare ,
width: 188, readonly:true , formatter: turbo.grid.format.link } ,
[ turbo.grid.columns.sfenumerated, { name:'Stage', sfname:'stagename', comparator: stageCompare, width: 125,
options: getOptionsArray(bean,'stagename'), values: getOptionsArray(bean,'stagename') } ],
{ name:'Close Date', sfname:'CloseDate', comparator: dateCompare ,
width: 75, align: 'left', formatter: turbo.grid.format.dateonly, editor: turbo.grid.edit.dateonly },
{ name:'Amount', sfname:'Amount' ,
width: 86, align: 'right', digits: 4, formatter: turbo.grid.format.sfmoney, editor: turbo.grid.edit.decimal}
,{ name:'Id', formatter:null }
];
---------------------------
I added the custom field 'Sites' to this. But i get this error message each time:
"Exception thrown, but not caught"
----------------
Example:
columns = [ // 'AccountId', 'Name','Sites','StageName','CloseDate', 'Amount', 'Id'
{ name:'Account',sfname:'AccountId', comparator: nameCompare ,
width: 128, readonly:true, formatter: turbo.grid.format.link },
{ name:'Name', comparator: nameCompare ,
width: 188, readonly:true , formatter: turbo.grid.format.link } ,
{ name:'Sites', sfname:'Sites', comparator: nameCompare ,
width: 188, readonly:true , formatter: turbo.grid.format.link } ,
[ turbo.grid.columns.sfenumerated, { name:'Stage', sfname:'stagename', comparator: stageCompare, width: 125,
options: getOptionsArray(bean,'stagename'), values: getOptionsArray(bean,'stagename') } ],
{ name:'Close Date', sfname:'CloseDate', comparator: dateCompare ,
width: 75, align: 'left', formatter: turbo.grid.format.dateonly, editor: turbo.grid.edit.dateonly },
{ name:'Amount', sfname:'Amount' ,
width: 86, align: 'right', digits: 4, formatter: turbo.grid.format.sfmoney, editor: turbo.grid.edit.decimal}
,{ name:'Id', formatter:null }
];
---------------------------
I added the custom field 'Sites' to this. But i get this error message each time:
"Exception thrown, but not caught"
Mac,
You need to put the API field name like this:
Example, I have a custom field call Forecast Group. the API field name is Forecast_Grou__c
You have to place the API name in the column definition array list, then
columns = [ // 'AccountId', 'Name','API field name goes here','StageName','CloseDate', 'Amount', 'Id'
{ name:'Sites', sfname:'API field name goes here', comparator: nameCompare ,
width: 188, readonly:true , formatter: turbo.grid.format.link } ,
Hope this helps
This may seem like a simple question, but how do I access the 'column definition array list'?
Is it one of the pages in the app?
Thanks very much
spohnranch,
You need to edit the S-Control named "Update_Opportunities" in the "Mass Update Opportunities" package. Once you've got that open in your editor, you'll see what Andy's message indicated.
Cheers,
-Philip