Can we change field propert of a Table or Form at run time.

lakshman
Member Posts: 44
Hi Experts ,
Can we change field property of a table or form at run time.
My Requirement is ,i want to change editable property of some field in some table when i am running some code unit. (not only editable property or enable or minimum value, Maximum value properties). is it possible in Navision please Suggest me.
Thanks & Regards
Lakhsman
Can we change field property of a table or form at run time.
My Requirement is ,i want to change editable property of some field in some table when i am running some code unit. (not only editable property or enable or minimum value, Maximum value properties). is it possible in Navision please Suggest me.
Thanks & Regards
Lakhsman
0
Comments
-
Editable doesn't mean that you can't change the field through code. Your end goal can be accomplished, but not the way you're thinking of going about it.
If you don't want to change the field in your codeunit, then don't write code to assign a new value to it.
If you do want to and want to enforce minimum and maximum values add code to that fields OnValidate trigger or create a custom function to check the allowed range.0 -
balance(LCY) is calculated field, you never change it, you change the data in Customer Ledger Entry and this field is calulated from the data when CALCFIELDS is called.
What is the real problem you want to solve?0 -
Is there any possibility to change the filelds in forms (like Editable and Visible).
Normally we use Currform.name.editable(false);
Is there any way to change the Field Type without using the fieldname
(Currform.name.editable(false).
Thanks & Regards,
Kishore...0 -
If you mean to reffer the control in some dynamic way without hardcoding the control name, no - there is no way by default. You can only create some automation which will help you to set some properties of controls on the form, but there is no way directly from C/AL.0
-
Hi kine,
Can you suggest me how to create Automation for changing field Property Dynamically.
Thanks & Regards
LAKSHMAN0 -
Sorry, I cannot, I am not skilled in this area (for now... :-D)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