
03-17-2010 04:10 AM
Hi all,
I want to add the account manager field(column) to the opportunity grid of whats new page. I am able to add additional fields but except accountmanagerid, regionalmanagerid, divisional managerid. I have tried adding column in the following way
<asp:TemplateField HeaderText="<%$ resources: accmgrname_lz %>" SortExpression="Account.AccountManagerid">
<itemtemplate>
<SalesLogix
lxUserControl runat="server" ID="u1" DisplayMode="AsText" LookupResultValue='<%# Eval("Account.AccountManagerid") %>' />
</itemtemplate>
</asp:TemplateField>
I am getting the below error for that
DataBinding: 'AccountProxy244f641dc93e450fad2fdf9c557ff81d' does not contain a property with the name 'AccountManagerid'.
Actions:
http://localhost:3333/SlxClient/WhatsNew.aspx DataBinding: 'AccountProxy244f641dc93e450fad2fdf9c557ff81d' does not contain a property with the name 'AccountManagerid'. at System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) at System.Web.UI.DataBinder.Eval(Object container, String[] expressionParts) at System.Web.UI.DataBinder.Eval(Object container, String expression) at System.Web.UI.TemplateControl.Eval(String expression) at ASP.smartparts_whatsnew_opportunitieswhatsnew_ascx
Please kindly suggest any ideas/clues on this
But if try the same for any other field i am not getting any error (like the below e.g)
<asp:TemplateField HeaderText="<%$ resources: accmgrname_lz %>" SortExpression="CreateUser">
<itemtemplate>
<SalesLogix
lxUserControl runat="server" ID="u1" DisplayMode="AsText" LookupResultValue='<%# Eval("CreateUser") %>' />
</itemtemplate>
</asp:TemplateField>
Regards
Jack
Solved! Go to Solution.
03-18-2010 04:03 AM
I have got solution to this problem.
If we need to add the account manager column to the opportunity grid in whats new page we need to paste the following few lines of code in the columns tag of the whats page
<asp:TemplateField HeaderText="<%$ resources: accmgrname_lz %>" SortExpression="Account.AccountManager">
<itemtemplate>
<SalesLogix
lxUserControl runat="server" ID="u1" DisplayMode="AsText" LookupResultValue='<%# Eval("Account.AccountManager") %>' />
</itemtemplate>
</asp:TemplateField>
Note: In .resx file we need to write one more tag for account manager header text to use that in .aspx file (which is specifed in red color)
Regards
Jack
06-22-2011 09:05 AM
06-28-2011 05:38 AM