Subform fields uneditable

ishcatto
Member Posts: 7
We have a subform where we turn on/off the Editable property of the fields on the subform via a command button [CurrForm.ExtItemSubForm.FORM.SetModStatusTrigCode(TRUE)] ...but only checkbox fields turn on/off, not the text fields. Is there a way to turn on/off the Editable property of these text fields on the subform via a command button.
Thanks,
Peter
Thanks,
Peter
Peter
0
Comments
-
Well, this sounds a bit strange, because it should work already as you describe that you have programmed it.
What is the exact code that you have put in the SetModStatusTrigCode function?0 -
The following is the trigger code that is on the subform itself.
SetModStatusTrigCode(VAR RALocalModifyRecordBoolean : Boolean)
//RA:: Modification Date: 09/29/2005 :: Intent: Modify Card :: Creation Date: 09/13/2005 :: BEGIN
RAModifyRecordBoolean := RALocalModifyRecordBoolean;
CurrForm.EDITABLE(RAModifyRecordBoolean);
//RA:: Modification Date: 09/29/2005 :: Intent: Modify Card :: Creation Date: 09/13/2005 :: END
Remember, this is the code in the subform.
Thanks and regards,
PeterPeter0 -
Well, this is strange. If I put this code in a CRONUS database Sales Order Subform and call it from the Sales Order form, it works perfectly, like it should.
Could you do me a favour and try this also on a non-modified standard Navision form like the sales order.
If this also works for you, you can work out the differences between the forms.0 -
Mark,
We used the Sales Order form format to create our form. We know that this works for a subform that is a tabular form. It also works, as stated, on checkbox fields. We seem to have problems when we put text fields in the form.
Regards,
PeterPeter0 -
Check the properties of the text fields and make sure that they're not set to editable=false or enabled=false.0
-
Ok, so your subform is not a tabular form, this is not a common thing :?
Like CtrlShiftF11 sayd, the default value should be editable then, check the properties on the subform.
If you want by default to be the textfields not-editable you can program this in the OnOpenForm.0 -
Guys....my oops :oops: :roll: ....the color for the text fields were not changing each time we turned on/off the editable property of the form...and we thought it never gave us the capability to change information...but we can edit these fields.
Sorry to trouble you...I do appreciate your time.
Kindest regards,
PeterPeter0 -
Never mind. Most important is that the problem is solved0
-
This problem with colors is common. If you set default editable to no, background color will be stll gray. Buf if you change default to yes, and change it with code in OnOpen to no, all will be OK...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