views:

48

answers:

2

Are there any .net controls (hopefully WPF) to enter queries based on application rule engine (or language definition)? Something like SQL with intellisense or Jira advanced filter?

In other words i would like to allow a user to enter something like this into a text area

(type='apple' and color='green' and quantity>10) or (type='tomato' and color<>'red')

and the application would suggest a next valid token like intellisense.

A: 

You could look at using the (standalone) rules engine from Workflow Foundation: http://footheory.com/blogs/bennie/archive/2007/05/10/alternative-applications-for-the-wf-rule-engine.aspx

Rob Fonseca-Ensor
+1  A: 

I haven't used it myself, but LINQPad uses Actipro SyntaxEditor, which would at least be worth looking at.

Jon Skeet
Looks promising. Obviously it does A LOT more than i need but i wonder if it will do 90% of what i want or 100%. Will give it a try. Thanks for the link.
Vitalik