dataport format int

yacineCHERMAK
Member Posts: 13
Hello,
I would like to create a dataport to export an order.
I would like to export fields quantity on 7 positions with zero on a left: example:
if the quantity is equal to 5 then 0000005
if the quantity is equal to 350 then 0000350
could you give me the function has to use
Thank you in advance
I would like to create a dataport to export an order.
I would like to export fields quantity on 7 positions with zero on a left: example:
if the quantity is equal to 5 then 0000005
if the quantity is equal to 350 then 0000350
could you give me the function has to use
Thank you in advance
NOVICE IN NAVISION 4.0
0
Comments
-
Definitely possible using the standard FORMAT function. Let me try and find the right syntax for you and post it here in a few minutes.Kind regards,
Jan Hoek
Product Developer
Mprise Products B.V.0 -
In the table 288 "Vendor bank account", you have the function PrePadString() it does exactly what you need.
-- Alejandro --0 -
FORMAT(350, 0, '<Integer,7><Filler Character,0>');Kind regards,
Jan Hoek
Product Developer
Mprise Products B.V.0 -
Hello yacineCHERMAK,
As u said that you would like to create a dataport to export order. Tell me one thing that what do you mean by exporting order ? do u mean export header and line both. If u r doing this then tell me how r u doing it ? b'coz I have the same requirement. It's urgent.
Thanks & Regards
Ashish0 -
As Mentioned by Jhoek, put the following Codes in the Format Property of the Quantity DataPort field of your Dataport :
<Integer,7><Filler Character,0>
Note however that if you want to import the Data Exported by using your dataport into Excel, ands you want to maintain the Exported Format, you will have to make sure that you format the Number Accordingly, else, all the Leading Zero's will disappear since the values will be seen as Integer or will be formated using "General" format in Excel.Sunday, Godwin G0 -
thanks for your helpNOVICE IN NAVISION 4.00
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