Integer field format problem
ptijsma
Member Posts: 17
Hello,
One of our customers uses quantities of 10000 and higher but the field in de database is of datatype integer.
No problem because this is what it should be. The only thing is that on the form i want to display it as 10.000 (with the dot for thousand seperator)
I've been searching for a while using the Format property of the textfield, using the format function but had no luck so far.
The best thing would be to have default (display)format with the thousand seperator defined on table level.
Can anyone help me out here ?
Thanks in advance
Peter Tijsma
One of our customers uses quantities of 10000 and higher but the field in de database is of datatype integer.
No problem because this is what it should be. The only thing is that on the form i want to display it as 10.000 (with the dot for thousand seperator)
I've been searching for a while using the Format property of the textfield, using the format function but had no luck so far.
The best thing would be to have default (display)format with the thousand seperator defined on table level.
Can anyone help me out here ?
Thanks in advance
Peter Tijsma
0
Comments
-
What about set Local (Regional) settings in control panel? (separator)0
-
You have ton use the regional and language settings of you operating system to setup the format of your choice.
Regards
Zack0 -
ZackMacKracken wrote:You have ton use the regional and language settings of you operating system to setup the format of your choice.
Regards
Zack
This is all correctly setup on the system (Numbers with thousand seperator) within the Regional Settings
The problem is with the Integer Datatype formatting0 -
What you can try is to define a global (type decimal).
Put the global on the form and fill it with the integer field.
In the properties you should set decimal places 2:0
Hope this helps you0 -
PEzechiels wrote:What you can try is to define a global (type decimal).
Put the global on the form and fill it with the integer field.
In the properties you should set decimal places 2:0
Hope this helps you
Thanks, i'll try that tomorrow.!0 -
in the property SourceExpr fill in the field, followed by: / 1000
(it will show the decimal seperator, but that might be good enough)0 -
What about <Sign><Integer Thousand> in format exression?0
-
-
-
Perhaps you can use this.
In the OnFormat trigger of the textbox create a variable from type decimal.
OnFormat=
VAR
dDecimal@1000000000 : Decimal;
BEGIN
EVALUATE(dDecimal,Text);
Text := FORMAT(dDecimal);
END;
}0 -
Following should work:
Open form in designer and set Format property for TextBox that displays your integer field/global:<Sign><Integer><1000character,.>
I have tested for both sources: an integer table field or an integer global as source.®obi
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯0 -
RobertMo wrote:Following should work:
Open form in designer and set Format property for TextBox that displays your integer field/global:<Sign><Integer><1000character,.>
I have tested for both sources: an integer table field or an integer global as source.
THANK YOU! You saved my live.
This is the best solution yet.
But... I still believe that it should be possible on table level.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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
