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
Acumatica Report De...
Convert an attribut...
 
Notifications
Clear all

Questions Convert an attribute value to use in a calculation

 
Acumatica Report Designer
Last Post by Coleen McNally 6 years ago
5 Posts
2 Users
1 Reactions
3,627 Views
RSS
Coleen McNally
Posts: 11
 Coleen McNally
Topic starter
March 25, 2020 5:30 pm
(@coleen-mcnally)
Eminent Member
Joined: 6 years ago

I have an attribute on a project that stores a ceiling amount.  The attributes was setup as a Text field. 

In Report Designer I need  a calculation that subtracts the invoice total from the ceiling attribute.  I have the invoice total but I don't know how to convert the attribute to a numeric value to use in the calculation. Example: ceiling attribute - invoice (I have this number).

 

Thanks.


4 Replies
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
May 13, 2020 8:19 pm
(@timrodman)
Famed Member
Joined: 11 years ago

Try wrapping it in the CDec expression, that should be able to convert a Text value to a Decimal value. CInt can convert it to an Integer, but CDec will allow for decimals.


Reply
Coleen McNally
Posts: 11
 Coleen McNally
Topic starter
May 14, 2020 10:41 am
(@coleen-mcnally)
Eminent Member
Joined: 6 years ago

The customer had a dollar symbol so the conversion wouldn't work.  I removed the $ and everything worked!  It would be nice if we could set attributes as a value or numeric type.

Thanks Tim


Reply
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
July 21, 2020 11:11 pm
(@timrodman)
Famed Member
Joined: 11 years ago

You can use the Entry Mask and/or Reg. Exp. fields to do data validation (like numbers only) on an attribute:

image

Reply
Coleen McNally
Posts: 11
 Coleen McNally
Topic starter
July 22, 2020 9:26 am
(@coleen-mcnally)
Eminent Member
Joined: 6 years ago

Thanks Tim - I think in future using the Entry Mask will prevent users from adding any special characters.

I appreciate your suggestion.

 


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
  • 49 Online
  • 2,437 Members
Our newest member: Matt Butler
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.

‹›×

    ‹›×