<?xml version="1.0" encoding="utf-16"?><customize><COR_CUSTOM_FIELD U_RuleName="BUP:10174:Make Drop-down Combo-box Mandatory" U_Type="0" U_Action="0" U_Warning=" " U_WarningText="" U_WarningBox=" " U_WarningStatus=" " U_Active="Y" U_FormTypeBasis="" U_ItemUIDBasis="" U_ColumnBasis="" U_FormType="134" U_ItemUID="178" U_Column="7" U_EventType="10" U_Before="Y" U_Mode="-2" U_Refresh=" " U_EasyFunctionRule="" U_ErrorBox=" " U_ErrorStatus=" " U_Creator="1" U_LastModified="7/26/2012 3:35:05 PM" U_LastModifiedBy="1" U_Permission=""><U_Expression>/****** General Information *****Creator: coresystems software USA, buwiCreate Date: 2012 07 10 ***** StartConfDesc *****Make combobox mandatory***** EndConfDesc ***** ***** Updates *****YYYY-MM-DD, name: Update Comment*/string ruleName = pVal.RuleInfo.RuleName.ToString();string errorMessage = "Error in [Optimizer Rule] '" + ruleName + "'";SAPbouiCOM.Form AFORM = customize.B1Connector.GetB1Connector().Application.Forms.ActiveForm;try {	SAPbouiCOM.Matrix oMatrix = (SAPbouiCOM.Matrix) AFORM.Items.Item("178").Specific;	SAPbouiCOM.ComboBox	oCBox = (SAPbouiCOM.ComboBox) oMatrix.GetCellSpecific("7", 1);	if (oCBox.Value.Trim() == "")	{		StatusBar.WriteError("The State Field is Mandatory, please select a state");		return false;	}	 } catch (System.Exception ex){	MessageBox.Show(errorMessage + ": \n" + ex.Message, "OK");	StatusBar.WriteError(errorMessage + ": " + ex.Message);	Debug.WriteMessage(errorMessage + ": " + ex.Message, Debug.DebugLevel.Exception);	return false;}return true;</U_Expression></COR_CUSTOM_FIELD></customize>