By Andrew Harper - 10/23/2014
Hi,
I have a form to maintain Quotes that uses a combobox to show status values for the Quote. I want to be able to prevent the users from selecting a specific value from the combobox in some circumstances that I cannot control through the CheckRulesOnBusiness object. If I add a broken rule to a business object other than through the CheckRulesOnCurrentRow is there a way for me to refresh the error providers on the form to reflect the broken rules?
I realise I can do this manually via SetErrorProvider but I am looking for a cleaner option. Using SetErrorProvider manually requires that I call ClearErrorProvider() in the BeforeUndo() to clear the manually set error providers.
TIA,
Andy
|
By Edhy Rijo - 10/24/2014
Hi Andrew,
Would it be possible to construct the proper SQL statement to just show the values user can choose from the combobox instead of showing a broken rule?
|
By Andrew Harper - 10/24/2014
Thanks Edhy,
That is what I ended up doing.
I would still like to know though if it is possible to instigate a refresh of the error providers on the form via a call to a Strataframe method.
Best regards,
Andy
|
|