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 very much.
Quote from above ..... "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"
To be able to do this second part I would need someway of knowing what I am being passed is 'custom' i.e I'm not going to be able to put it through my expression parser to populate my dialog controls, I have to simply place it in a text box as is
Can you think of anyway I could set/get a 'flag' against the cell ?