I am trying to implement some automation to allow my users to edit some Entity Custom Data, but when editing the data I would like them to see the current values and that way they can choose if they want to change anything or not.
This is easy enough using the
[?Prompt;;OldValue] syntax, but I also need to use a drop-down selection of values for one particular field. Therefore for this multi select box I thought I would do the following:
Side thought Is there any way to implement the drop-down selection but start with one particular option already selected? Something like
[?Prompt;;Monday|Tuesday|»Wednesday«|Thursday|Friday] Where Wednesday would be selected as the default option?
I set up my rule as you can see in the image below, but I got the error:
DevExpress.Xpf.Editors.TextEditor Threw and exception
A little something from the log…
Top-level Exception Type: System.ArgumentException Message: syntax error Source: DevExpress.Data.v16.2 Stack Trace: at DevExpress.Data.Mask.RegExpParser.yyerror(String message, String expected) at DevExpress.Data.Mask.RegExpParser.yyparse(yyInput yyLex) at DevExpress.Data.Mask.RegExpParser.Parse(TextReader reader, Boolean reverseAutomate, CultureInfo parseCulture) at DevExpress.Data.Mask.RegExpParser.Parse(String regExp, Boolean reverseAutomate, CultureInfo parseCulture) at DevExpress.Data.Mask.RegExpMaskManagerCore..ctor(String regExp, Boolean reverseDfa, Boolean isAutoComplete, Boolean isOptimistic, Boolean showPlaceHolders, Char anySymbolPlaceHolder, CultureInfo managerCultureInfo) at DevExpress.Xpf.Editors.TextInputMaskSettings.CreateDefaultMaskManager() at DevExpress.Xpf.Editors.TextInputMaskSettings.DevExpress.Xpf.Editors.IMaskManagerProvider.CreateNew() at DevExpress.Xpf.Editors.WpfMaskManager.Initialize()
I tried the rule without the “Dive Level” section to the rule and it worked fine, so the underlying concept seems OK, but for some reason it is not happy when I implement this approach with the drop-down list.