Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, June 28, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Urgent Help Needed For New Column Addition in Association Grid SLX web 7.5.2 Grid
mark
Posts: 70
 
Urgent Help Needed For New Column Addition in Association Grid SLX web 7.5.2 Grid Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Apr 11 11:49 AM

 


 


I need help urgently


 


 


I have added new column in association table called “AssociationSource”.


 


 I want to show this column in the grid. I have added the data bound column to the Association.ascx page. But I am confused how can we add a new column to the Association Grid Data source.


 


 


 


Basically data source is taking a from business rule.


 


The below is the  business rule of the association data source(I have renamed it)


 


public static IList<AccountAssociation> GetAccountAssociations1(IAccount account)


    {


        List<AccountAssociation> list = new List<AccountAssociation>();


        using (ISession session = new SessionScopeWrapper())


        {


            string queryString = "from Association assoc where (assoc.FromId = :AccountId)";


            IQuery query = session.CreateQuery(queryString);


            query.SetAnsiString("AccountId", account.Id.ToString());


            foreach (IAssociation association in query.List<IAssociation>())


            {


                AccountAssociation item = new AccountAssociation(association, account, AssociationDirection.adFoward);


               


                if (item.Account != null)


                {


                    list.Add(item);


                }


            }


            queryString = "from Association assoc where (assoc.ToId = :AccountId)";


            query = session.CreateQuery(queryString);


            query.SetAnsiString("AccountId", account.Id.ToString());


            foreach (IAssociation association3 in query.List<IAssociation>())


            {


                AccountAssociation association4 = new AccountAssociation(association3, account, AssociationDirection.adBackWard);


                if (association4.Account != null)


                {


                    list.Add(association4);


                }


            }


        }


        return list;


    }


 


 


 


I have pasted it in the  assocaiton.ascx.cs page and renamed it and assigned it like below in loadgrid() method


 


 


string accountId = EntityService.EntityID.ToString();


        IAccount account = EntityFactory.GetRepository<IAccount>().FindFirstByProperty("Id", accountId);


        //IList<AccountAssociation> accountAssocList = Sage.SalesLogix.Association.AssociationBusinessRules.GetAccountAssociations(account);


 


        IList<AccountAssociation> accountAssocList = GetAccountAssociations1(account);


 


 


 


 


        AccountAssociations_Grid.DataSource = accountAssocList;


        AccountAssociations_Grid.DataBind();


 


 


 


 


 


It is working fine. But I am not getting how can we add a new column to the exiting method(business rule method). Could you please help.


 


 


It is really important I am struggling with this from last three days


 


 


Thanks in  advance


 


 


Please Kindly Help


 


 


 


 

[Reply][Quote]
Russell Hulsing
Posts: 16
 
Re: Urgent Help Needed For New Column Addition in Association Grid SLX web 7.5.2 Grid Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Apr 11 12:44 PM
fiogf49gjkf0d

The easiest way is through application architect. Select the grid and click on columns in the properties of the grid. A window will open where you can add, remove, format columns.

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/28/2025 9:32:37 PM