AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • In-Person Gatherings
    • Power BI Workshop
    • Podcast
    • Rolodex
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register

— The Forums are now read-only —

— All new activity now takes place here: —

AugForums.com Discord Server
Forums
AUG Forums
Everything Else
DAC Field UI warnin...
 
Notifications
Clear all

Questions DAC Field UI warning indicator behaving like error

 
Everything Else
Last Post by tlanzer 5 years ago
2 Posts
1 Users
1 Reactions
2,185 Views
RSS
tlanzer
Posts: 3
 tlanzer
Topic starter
February 23, 2021 5:47 pm
(@tlanzer)
Active Member
Joined: 5 years ago

I am raising a warning message on a field in its FieldUpdating event handler, but it is displaying and behaving like an error instead of a warning. In other words, red instead of yellow icon, and turns the field value red. Any ideas why it might be behaving like this? Below is the exception being thrown. I have also tried sender.RaiseExceptionHandling, and putting this in the FieldVerifying instead, but it still shows as error.

    throw new PXSetPropertyException(string.Format("Instead of using this description, consider using the existing description: '{0}'", 
closestFound.Key.Description, PXErrorLevel.Warning));

1 Reply
tlanzer
Posts: 3
 tlanzer
Topic starter
February 23, 2021 7:05 pm
(@tlanzer)
Active Member
Joined: 5 years ago

I was able to get it to behave like I want by using PXUIFieldAttribute.SetWarning instead of raising an error. Maybe PXErrorLevel.Warning doesn't actually behave like a warning, not sure.


Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,533 Topics
  • 11 K Posts
  • 54 Online
  • 2,438 Members
Our newest member: Ralph Torres
Latest Post: Nested SubReport Issue
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

By using this website, you agree to our Terms of Use (click here)

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×