Input Mask in Navision

Flashtn
Member Posts: 68
Hi all,
How can I create an input mask in Navision ? Can I use Format propriety for a field in a form ?
Thanks in advance.
How can I create an input mask in Navision ? Can I use Format propriety for a field in a form ?
Thanks in advance.
0
Comments
-
Would you provide a little more detail? Is this a new field you created, an existing field? What do you wish to use masking for?0
-
Youd could use something like this:
Record.FILTERGROUP(1);
Record.SETFILTER(fieldToBeMasked, filterMask);
Record.FILTERGROUP(0);
It is quite restrictive, though... Depends on what you're trying to mask."Simplicity is the ultimate sophistication."
Leonardo DaVinci0 -
I would musk the serial number of items. Because of item variety in our inventoru, there is many formats for serial numbers. So, I would oblige each user to enter the right serial numbers.0
-
1. Declare Tmp -> Local TEMPORARY Record variable. same type as Rec
2. Add this code to the following table triggers:
On Insert & On ModifyTmp := Rec; Tmp.FILTERGROUP(1); Tmp.SETFILTER(Code, '??'); //allows only 2 chars in "Code" field Tmp.FILTERGROUP(0); Tmp.INSERT; IF Tmp.COUNT = 0 THEN ERROR ('insert correct format');
"Simplicity is the ultimate sophistication."
Leonardo DaVinci0 -
IF the field is not within the primary key, add that code to the OnValidate FIELD OR OnModify TABLE.
For primary key field: OnInsert & OnRename"Simplicity is the ultimate sophistication."
Leonardo DaVinci0
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