Numbers formating....

JAYESH
Member Posts: 290
Hi Experts...
I created Number Series for Purchase Order.
The No on the Purchase order shows me like 0000000000000001
I want to format this No. and want to show like 1.
Is there any property by setting this its converts..
Thanks in Advance..
And Wishing you a Very Happy New Year..
Thankx...
I created Number Series for Purchase Order.
The No on the Purchase order shows me like 0000000000000001
I want to format this No. and want to show like 1.
Is there any property by setting this its converts..
Thanks in Advance..
And Wishing you a Very Happy New Year..
Thankx...
JAYESH PATEL
0
Comments
-
Remember it's called Number Series but they are really type CODE not integer.
"I want to show Like"........ Show Where? in a report on the form?
How about converting it to text & removing all the leading zero's.
-for a report
I guess your prepared to make a lot of PO's
0000000000000001 to 9999999999999999
15 zeros brings you into the Quadrillion zone0 -
Ok..but my question is
It is possible to conver ?
from 00000000001 to 1 ??JAYESH PATEL0 -
ThanxJAYESH PATEL0
-
JAYESH wrote:Ok..but my question is
It is possible to convert ?
from 00000000001 to 1 ??
Take a look at the EVALUATE function. It's what you're looking for.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
EVALUATE(VarInteger,"Purchase Header"."No.");
Trivia note: Even if you enter a new po every second it will take you 31,645,570 years to use up all your po numbers.
Give or take0 -
If you want to maintain the data as a CODE or TEXT look into the DELCHR function.0
-
jreynolds wrote:If you want to maintain the data as a CODE or TEXT look into the DELCHR function.
newstr := delchr('010101010101','=','0');
....not really good....
you must delete only useless zeroes...you have to read the code char by char (from left to right obviously) deleting zeroes until you find a character <> '0'...
at this point if you want to mantain the same fieldtype is easier to evaluate and reformat the code....0 -
Use
newstr := delchr('010101010101','<','0');
and it will be better... ;-)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
- 320 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