Decimal Variable in Report Footer RTC
Troubles_In_Paradise
Member Posts: 588
Hi Guys!
I know that when we speak about Report in RTC it is not easy to find a solution, but I try to ask anyway
.
I'm trying to create a Customization of the Sales Shipment taking standard report as example. All works except one thing in the footer. I created a textbox in the body and I placed all the fields I want to show in the footer. Example:
All works. The problem appears when I try to insert a Decimal calculated Variable in the footer. It seems like the function SetData doesn't work properly because if I render the textbox with SetData visible it show "#Error".
This happens with all decimal calculated variable I tried.
I'm wondering if someone has already faced a problem like this and could help me.
Thx in advance and sorry for the long post.
I know that when we speak about Report in RTC it is not easy to find a solution, but I try to ask anyway
I'm trying to create a Customization of the Sales Shipment taking standard report as example. All works except one thing in the footer. I created a textbox in the body and I placed all the fields I want to show in the footer. Example:
=Fields!Item_Exterior_AppearanceCaption.Value + Chr(177) + Fields!TXTItemExterior.Value + Chr(177) + Fields!Shipping_AgentCaption.Value + Chr(177) + ...With a textbox in the footer I call the function SetData
=Code.SetData(ReportItems!HdrGroup4.Value,4)And after that in each control in the footer I call the function GetData.
All works. The problem appears when I try to insert a Decimal calculated Variable in the footer. It seems like the function SetData doesn't work properly because if I render the textbox with SetData visible it show "#Error".
This happens with all decimal calculated variable I tried.
I'm wondering if someone has already faced a problem like this and could help me.
Thx in advance and sorry for the long post.
~Rik~
It works as expected... More or Less...
It works as expected... More or Less...
0
Answers
-
try to convert the decimal value to string
.... + Str(Fields!Decimal.Value) + ....-Mihail- [MCTS]0 -
mihail_kolev wrote:try to convert the decimal value to string
.... + Str(Fields!Decimal.Value) + ....
Thx Mihail this solves my problem. :thumbsup:
Many thx!~Rik~
It works as expected... More or Less...0 -
I try to use Str but it doesn't work to convert decimal to string. Why?0
-
You can try alsomaya-chan wrote:I try to use Str but it doesn't work to convert decimal to string. Why?Cstr(Fields!YourFields.Value)
Ps. rember to convert all decimal fields.~Rik~
It works as expected... More or Less...0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 322 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions