fiogf49gjkf0d We have Dependency lookup for Area Category Issue.
Need to check the user's selection on change of this lookup and update another field on the Sales Logix form.
I tried to add new after change event to check the changed property value for area but i do not know how to access the current form object to update another control.
Second approach was to add On Change Code snippet action item below to get cureent value from form but it cannot cast the DependentLookupCollection. It always returns null.
public
static void
dplArea_OnChangeStep( ITicketDetails form, EventArgs args){
Sage.SalesLogix.Web.Controls.DependencyLookup.DependentLookupCollection ctrl = form.dplArea.DependentLookups as
Sage.SalesLogix.Web.Controls.DependencyLookup.DependentLookupCollection;
if (ctrl != null
) {form.txtCarrier.Text = ctrl.ToString();}}
|