Refresh custom fields after update

Hi

I have some custom fields on the Quote Entry form that are bound to UD columns in a linked BAQ to the Project table. ProjectID links the BAQ.

When i load the Quote Entry form, the fields populate and when i change the quote number without reloading the Quote entry form, the fields re-populate if the new quote has a ProjectID saved bit if there is no ProjectID, the fields do not clear. If i click Refresh, they do clear.

I have tried oTrans.Refresh(); but i cant get the fields to clear. What is a typical method to clear these fields on a field change even if the Binding link field is empty?

Thanks

Have you tried

	private void QuoteHed_AfterFieldChange(object sender, DataColumnChangeEventArgs args)
	{
		// ** Argument Properties and Uses **
		// args.Row["FieldName"]
		// args.Column, args.ProposedValue, args.Row
		// Add Event Handler Code
		switch (args.Column.ColumnName)
		{
			case "Column Name": //JellyBeans_c, QuoteNum, PONum, Unicorns_c etcc....
                // Your logic sits here
			    break;
		}
	}

Go Ahead And Try It Give It A Go GIF - Go Ahead And Try It Give It A Go Try It - Discover & Share GIFs