Option Field Values

sbhattbng
Member Posts: 1
Hi Folks -
A small help needed here. I have a option field called Contractor type which has option values ,Supplier,Retailer,Warehouse,In house.
When I add this field to a page I just want to show the option values of ,Supplier,Warehouse but not retailer. I tried removing the option values on the page and just put ,Supplier,Warehouse and it does show only these 2 option but when I select Warehouse on the page it selects Warehouse but in the table it stores it as Retailer. Any help is truly appreciated.
Thanks
RJ.
A small help needed here. I have a option field called Contractor type which has option values ,Supplier,Retailer,Warehouse,In house.
When I add this field to a page I just want to show the option values of ,Supplier,Warehouse but not retailer. I tried removing the option values on the page and just put ,Supplier,Warehouse and it does show only these 2 option but when I select Warehouse on the page it selects Warehouse but in the table it stores it as Retailer. Any help is truly appreciated.
Thanks
RJ.
0
Answers
-
Is it really an Option field or is it an ENUM?
If it is an option field, you can use the optioncaption property in the page as follows:
Let's imagine the field in the table is like this:
field(50000; OptionExample; Option)
{
DataClassification = CustomerContent;
Caption = 'Example';
OptionMembers = " ",OptionA,OptionB,OptionC;
}
In the page, you can do this to hide the OptionB value:
field(Example; Rec.OptionExample)
{
ApplicationArea = All;
OptionCaption = " ",OptionA,,OptionC;
}
Notice tha the OptionB in the field disappears, but do not remove the comma (,)
if it is not an option and it is an enum, just use in the page the property ValuesAllowed = " ",OptionA,OptionC;
I hope this is helpful for you0
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