Community
Showing results for 
Search instead for 
Do you mean 
Reply

Custom Entity using DevExpress controls (Act! v17)

Accepted Solution Solved
Astute Commentator
Posts: 18
Country: USA
Accepted Solution

Custom Entity using DevExpress controls (Act! v17)

Hi

 

I am using the SDK to display custom entity values via data binding to to grid.

 

If I use the standard .Net grid these display fine however I want to use a DevExpress grid but this gives me the following error:

 

MutableEntityMetaDataAurgumentException

 

not a valid alias for a column

 

Parameter name: fullName

 

I am using the following code for data binding (which does work for the .Net grid)

 

                    if (currentContact != null)
                    {
                        // Get the CustomSubEntityManager our custom sub entity. 
                        CustomSubEntityManager<Act.Framework.CustomEntities.CustomSubEntity> manager =
                            this.actApplication.ActFramework.CustomEntities.GetSubEntityManager<Act.Framework.CustomEntities.CustomSubEntity>(definition.ENTITY_NAME);

                        if (manager != null)
                        {
                            // Get all custom sub entities that belong to the current primary entity.
                            CustomEntityList<Act.Framework.CustomEntities.CustomSubEntity> customSubEntities = null;

                            if ((parentEntity & ParentEntity.Contacts) == ParentEntity.Contacts)
                                customSubEntities = manager.GetCustomSubEntities(currentContact, null);
                            else if ((parentEntity & ParentEntity.Groups) == ParentEntity.Groups)
                                customSubEntities = manager.GetCustomSubEntities(currentGroup, null);
                            else if ((parentEntity & ParentEntity.Companies) == ParentEntity.Companies)
                                customSubEntities = manager.GetCustomSubEntities(currentCompany, null);


                            if (customSubEntities != null)
                            {
                                this.bindingSource1.DataSource = customSubEntities;
                                this.grid.DataSource = this.bindingSource1;
                            }
                        }
                    }

 

Has anyone used DevExpress controls before like this?

 

Thanks.

 

 


Accepted Solutions
Solution
Accepted by topic author techno
‎11-03-2015 08:44 AM
Administrator
Posts: 221
Country: United States

Re: Custom Entity using DevExpress controls (Act! v17)

C1.FlexGrid is the component.

View solution in original post


All Replies
Bronze Super Contributor
Posts: 1,231
Country: USA

Re: Custom Entity using DevExpress controls (Act! v17)

I went down that path for a while many years back. Never got DevExpress.Grid to work with the ACt entity classes.

 

ACT blamed it on DevExpress.

 

DevExpress support could not look into the error since I could not send them ACT code.

 

Catch 22

 

 

 

-- Jim Durkin

 

Astute Commentator
Posts: 18
Country: USA

Re: Custom Entity using DevExpress controls (Act! v17)

Okay Jim, thanks for the reply....onto plan B then!!!

 

 

Bronze Super Contributor
Posts: 1,231
Country: USA

Re: Custom Entity using DevExpress controls (Act! v17)

You may want to look at CompenetOne (C1) controls. I think its what act uses in the list views.

 

Or maybe one of the developers/SDK support can chime in here.

 

-- Jim Durkin

Solution
Accepted by topic author techno
‎11-03-2015 08:44 AM
Administrator
Posts: 221
Country: United States

Re: Custom Entity using DevExpress controls (Act! v17)

C1.FlexGrid is the component.