Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, July 1, 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: Issue with saving a AddEdit form with an Opportunity Product grid on it.
Ronnie Martin
Posts: 26
 
Issue with saving a AddEdit form with an Opportunity Product grid on it.Your last visit to this thread was on 1/1/1970 12:00:00 AM
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.
[Reply][Quote]
Ronnie Martin
Posts: 26
 
Re: Issue with populating a grid on an AddEdit FormYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Dec 09 2:49 PM
I have made very little progress on this issue. I edited the issue to better reflect were I am currently at. Any help would be greatly appreciated.
[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): 7/1/2025 1:11:10 PM