Solved

report+Navision 5.0

Posted on 2011-09-02
4
899 Views
Last Modified: 2012-05-12
i have created a report in navision.
i have a field of type Decimal but in case the value doesn't have a decimal part i don't want to show the ".00".
1.00 ----> 1
please advise.
0
Comment
Question by:MKItani
  • 2
  • 2
4 Comments
 
LVL 2

Expert Comment

by:adrianakers
ID: 36473055
You will struggle doing this on a field in a Form or on a Page.

If you are doing this as an export in a file for example you could use the format expression.

An example would be;

MESSAGE(FORMAT(1.232423, 15, '<Precision,0:0><Standard Format,0>'));

Above would return '1'

MESSAGE(FORMAT(1.232423, 15, '<Precision,2:6><Standard Format,0>'));

Above would return '1.232423'

You could then put code on the export to identify if you have a whole (integer) or decimal value and use the correct format accordingly...
0
 

Author Comment

by:MKItani
ID: 36477531
T U adrianakers,
i have a lot of experience in .net and crystal report, but i am still new in navision so please take this into consideration.
no i want to do that on the report at design time.
in my report i have a lot of fields and on the one of fields i what to set this special format.

regards,

0
 
LVL 2

Accepted Solution

by:
adrianakers earned 500 total points
ID: 36482740
You can always use a global variable on your report and set it to the associated value. Then just make sure you are showing this variable on the report.

The global variable would be of type Text and then you could use the format expressions mentioned above.
0
 

Author Closing Comment

by:MKItani
ID: 36587118
not what i am looking for
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

On Sep 22nd 2014 Microsoft released Update Rollup 1 for Microsoft Dynamics CRM 2013 Service Pack 1 and back in July Update Rollup 3 was released.  So we now have:   Update Rollup 1Update Rollup 2Update Rollup 3Service Pack 1Update Rollup 1 for S…
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now