Refreshing ErrorProviders


Author
Message
Andrew Harper
Andrew Harper
StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)
Group: StrataFrame Users
Posts: 87, Visits: 3.3K
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
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
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?

Edhy Rijo

Andrew Harper
Andrew Harper
StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)
Group: StrataFrame Users
Posts: 87, Visits: 3.3K
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



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search