Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, June 30, 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: Referring to fields on smart parts
Adrian Jones
Posts: 8
 
Referring to fields on smart partsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 May 10 8:35 AM
Hi

Can anyone please help me with how to refer to fields on smart parts within a main form?
Basically what I'm trying to achieve is, on the insert opportunity form, I need to check that the products and contacts smart parts have values within them before I allow the user to create the new opportunity. I'm looking at the form in Visual studio to customise the form 'on save' property but can't see how to check the smart parts.

Thanks

Ade
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Referring to fields on smart partsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 May 10 10:08 AM
Hi,

You would check the entity property values as opposed to values on other smartparts. So for instance you want to check if they have a product, something like:

Sage.Entity.Interfaces.IOpportunity opp = (Sage.Entity.Interfaces.IOpportunity)this.BindingSource.Current;

if(opp.Propducts.Count < 1)
{
//They havent added a product, so exit save function: show a message or whatever..
return;
}

You can wrap these in validation business rules and call them if you do not want to edit the Save method directly...

Thanks,

Nick
[Reply][Quote]
Adrian Jones
Posts: 8
 
Re: Referring to fields on smart partsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 May 10 10:39 AM
Cheers Nick, it worked a treat.

We'd seemed to try similar ways...but not with the same success

Thanks

Ade
[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/30/2025 10:09:40 AM