When using CustomExpressionBuilder add a property that make the expression/criteria columns read only
Arrrggh :) This doesn't quite work but I though I would post it anyway as it might provoke a thought
In conjunction with my other two requests about editing SQL output columns with QT and exposing a cell reference in CustomExpressionBuilder so you know exactly which cell the ellipsis was clicked on.
Both of these requests could be 'avoided' if when using the CustomExpressionBuilder the Expression, Criteria and Or cells were all made 'read-only'
By that I mean you can click the ellipsis to launch a custom dialog to do what you like in, even provide a free type text box if one wishes but when the text is returned to the cell, if it is read only, You then know when the user next clicks on the ellipsis the OldExpression value will be as you set it i.e. they can't change it, the custom dialog is in total control
It doesn't get around one really needs to store some metadata to save having to 'reverse engineer' the OldExpression string to populate the custom dialog ..... but at least you would be in control of what you were reverse engineering
Thanks for listening !
Thanks for all your help and feedback on this
I would say the QT output columns is a separate issue although it might depend on what the solution is
For 'me' I think the easiest solution would be to have a string property that can be set/get in the CustomExpressionBuilder event
It could be called something like UserDefinedInfo or whatever
'You' would store this info against the Expression/Crirteria/Or cell and obviously 'you' are in control of whenever rows/columns are deleted.
For 'me' to be able to store this info against a cell as 'we' can now see I would need quite allot of index/references and events added to the control to keep everything synchronized ... which seems like a lot of work on both sides! :)
I still think there is a good case when using CustomExpressionBuilder that the Expression/Criteria/Or cells become read-only from the editing point of view ? If one really wants to one can always add a simple text fileld to a custom dialog to allow the user to free type criteria in as this would give the developer much more control
Let me know what you think and thanks again for the excellent communication!