fiogf49gjkf0d I thought this would be simple but evidently I'm missing something. In the OpportunityProducts form I'm trying to disable the grid "grdOppProducts" based on the status of the opportunity. I've got a form onload action setup that checks the opportunity status but when I check the form object there is no reference for the grdOppProducts grid. I was thinking I would be able to dynamically set the read only condition to true but since I can't reference the grid not sure how to reference the read only property?
#region Usings using System; using Sage.Entity.Interfaces; using Sage.Form.Interfaces; using Sage.SalesLogix.API; #endregion Usings
namespace Sage.BusinessRules.CodeSnippets { public static partial class OpportunityProductsEventHandlers { public static void OnLoad1Step( IOpportunityProducts form, EventArgs args) /* * Date: 9/27/12 * Programmer: Brannon Buchanan * Descr: Disabled quotation data when quote type is a quote */ { IOpportunity opportunity = (IOpportunity) form.CurrentEntity; if(opportunity.Status=="Quotation") { form.<no reference for grdOppProducts??> } } } } |