7/1/2025 12:32:10 PM
|
|
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!
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.
|
|
|
|
Issue with saving a AddEdit form with an Opportunity Product grid on it.
Posted: 30 Sep 09 2:51 PM
|
I have a Custom Entity 'OpportunityJobs' that has a grid on a tab on the Opportunity Screen. On the AddEdit Screen for this entity I have a grid that needs to show the list of 'OpportunityProducts' for the parent opportunity.
When i click on the Add or Edit an exsisting on the Opportunity Job tab everything shows corretly, but when I click on Save or try to close the form I get the following Error "A field or property with the name 'Price' was not found on the selected data source." The actual Column doesn't matter, it will give that error for any of them. It does save the record though. I do not need to actually Save the Opportunity Product Grid. I just need to show it for something I am going to work on after I get this working.
I had to use the following code in the On Load of the Opportunity Job Add Edit screen to open without the above Error message. Do I need to make changes to it so it will no longer give me an error message on save or close?
Sage.Entity.Interfaces.IOpportunity Opportunity = (Sage.Entity.Interfaces.IOpportunity) this.GetParentEntity(); Sage.Platform.Repository.IRepository repository = Sage.Platform.EntityFactory.GetRepository(); Sage.Platform.Repository.IQueryable qry = (Sage.Platform.Repository.IQueryable)repository; Sage.Platform.Repository.IExpressionFactory ef = qry.GetExpressionFactory(); Sage.Platform.Repository.ICriteria criteria = qry.CreateCriteria(); criteria.Add(ef.Eq("Opportunity", Opportunity)); dgOppoProd.DataSource = criteria.List(); dgOppoProd.DataBind();
I am using version 7.5.2
Any help would be greatly appreciated. |
|
|
| |
|
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!
|
|
|
|
|
|
|
|