Editing a Line in a Line form

shibily
Member Posts: 89
Hai All,
Is it possible to make a particular line non editable?
My program shoul work as follows :
If X is '' then the line should be editable.
If X <> '' then that particular line only should be non editable and the rest of the lines in that line form should be editable.
Any help would be apprciated............
Is it possible to make a particular line non editable?
My program shoul work as follows :
If X is '' then the line should be editable.
If X <> '' then that particular line only should be non editable and the rest of the lines in that line form should be editable.
Any help would be apprciated............
0
Comments
-
Here an example:
Form - OnAfterGetCurrRecord() CurrForm.editable(x = ''); //Note that x should be dependent on the CurrentRec
RegardsDo you make it right, it works too!0 -
garak wrote:Here an example:
Form - OnAfterGetCurrRecord() CurrForm.editable(x = ''); //Note that x should be dependent on the CurrentRec
Regards
After including this particular code in the Form - OnAfterGetCurrRecord(),
the whole lines in the list form has become non editable....
What could be the issue??0 -
Try the same in OnAfterGetRecord.
Yes it makes the whole form uneditable but that should be OK with OnAfterGetRecord: if you are on the record that triggers it, you can't edit that, and you couldn't edit anything else either as you are always editing the current line. And if you are on a record that doesn't trigger it, that makes the whole form editable but that shouldn't be a problem as you can only edit the current record anyway.0 -
Hi, all!
For example you have something like this:Form - OnAfterGetCurrRecord() CurrForm.EDITABLE(ID > 100);
- this means that all lines in your table which has value greater than 100 become editable
In my point of view, in your situation you havent lines which meets the conditions, so thea are noneditable.
And you must select properties editable - YES for control.0 -
and what for a value has "X" ?
Do you set this global or on the Rec?Do you make it right, it works too!0 -
.0
-
and all Lines are not editeble? Also if you click into the line?
Other question: The propertie EDITABLE of the form / Fields is <true> ?Do you make it right, it works too!0 -
Hi, Garak
Yes, all lines in the table which don't meets the conditions not editable.
The propertie EDITABLE of the form / Fields is <true>,
but if you set it to <false> anyway the lines will be noteditable0
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