How Can I Link to the Account Mainview From a Grid in SalesLogix?

Question: I need to link to the Account Mainview from a grid in SalesLogix.  I have the ID from a grid:

string id = grdAccounts.DataKeys[rowIndex].Value.ToString();

Where do I go from here?

Answer: Response.Redirect(“~/Account.aspx?entityid=” + id);

Or, use a PageLink Column on your Grid:

<Columns>


<asp:TemplateField HeaderTextAccount” SortExpression=”Account” >
<itemtemplate>
<SalesLogix:PageLink runat=”server”
NavigateUrl=”Account”
EntityId='<%# DataBinder.Eval(“Id”) %>’
Text='<%# DataBinder.Eval(“Account”) %>’
LinkType=”EntityAlias”>
</SalesLogix:PageLink>
</itemtemplate>
</asp:TemplateField>
</Columns>

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) news and product updates!

You have Successfully Subscribed!