Skip to content

Commit

Permalink
Always added condition value to fetchxml, if editable Fixed #692
Browse files Browse the repository at this point in the history
  • Loading branch information
rappen committed Apr 15, 2022
1 parent a424f67 commit 2d011a1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions FetchXmlBuilder/Controls/conditionControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,16 @@ protected override ControlValidationResult ValidateControl(Control control)
return base.ValidateControl(control);
}

protected override Dictionary<string, string> GetAttributesCollection()
{
var result = base.GetAttributesCollection();
if (!result.ContainsKey("value") && cmbValue.Enabled && cmbValue.DropDownStyle == ComboBoxStyle.Simple)
{
result.Add("value", "");
}
return result;
}

#endregion Protected Methods

#region Private Methods
Expand Down Expand Up @@ -625,6 +635,7 @@ public override MetadataBase Metadata()
}
return base.Metadata();
}

public override void Focus()
{
cmbAttribute.Focus();
Expand Down

0 comments on commit 2d011a1

Please sign in to comment.