RTC Addin - Editable not working

RickDDMS
Member Posts: 11
I've developed a simple addin, so display comments from NAV as a sinlge text field (i.e. notepad inside NAV), so that the comments are combined into a big text sent to the control, and vice versa when changes are made.
However,
I've found that the addins base."Editable" flag is not in sync with NAV.
Digging around i've found that if the field /addin has a source expression which is a field from the source table of the page, the editable flag of the base is in sync.
If the source expression is a Variable is is not, also, when clicking Action > Edit or Action > View the OnEditable trigger does not fire in .NET unless again the source expression is a field from the source table.
What I want is for the control to be readonly with the rest of the page until the user clicks > Actions > Edit.
I can't bind the control to a field as the comment table can have an undefined number of records within it (hence the use of big text).
I've also tried using a Varialbe to control the Editable property of the field in the page but found that the OnEditable trigger doesn't get fired when using page up/page down between records until you move off the record that triggered the change in the editable variable.
EditVar = false;
page down, EditVar set to True > no event
Page down, edit var set to false > event is fired with a editable value of TRUE
page down, edit var is left unchanged > event is fired with an editable value of FALSE
Has anyone else experinces similiar issues?
However,
I've found that the addins base."Editable" flag is not in sync with NAV.
Digging around i've found that if the field /addin has a source expression which is a field from the source table of the page, the editable flag of the base is in sync.
If the source expression is a Variable is is not, also, when clicking Action > Edit or Action > View the OnEditable trigger does not fire in .NET unless again the source expression is a field from the source table.
What I want is for the control to be readonly with the rest of the page until the user clicks > Actions > Edit.
I can't bind the control to a field as the comment table can have an undefined number of records within it (hence the use of big text).
I've also tried using a Varialbe to control the Editable property of the field in the page but found that the OnEditable trigger doesn't get fired when using page up/page down between records until you move off the record that triggered the change in the editable variable.
EditVar = false;
page down, EditVar set to True > no event
Page down, edit var set to false > event is fired with a editable value of TRUE
page down, edit var is left unchanged > event is fired with an editable value of FALSE
Has anyone else experinces similiar issues?
0
Comments
-
Anyone able to help with this issue?0
-
Unfortunately it seems that this is not just a control add-in related issue, but a general issue with any control not bound to a field on a table. Only controls bound to table fields will react to view/edit mode changes of the form.
I've not been able to come up with suitable workaround for your problem, but have logged a product bug on the issue.Best regards,
Thomas Søndergaard Jensen [MSFT]
This posting is provided 'AS IS' with no warranties, and confers no rights.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