How to make a control not editable or not visible!!!!
Hanen
Member Posts: 281
Hello,
I've tried to make my controls not visible or not editable but it didn't work :oops:
Please help!!!!!
I've tried to make my controls not visible or not editable but it didn't work :oops:
IF "VAT Bus. Posting Group" = 'EXONERE' THEN BEGIN CurrPage."Attestation".EDITABLE := TRUE; END ELSE BEGIN CurrPage."Attestation".EDITABLE := FALSE; END;
Please help!!!!!
Regards
Hanen TALBI
Hanen TALBI
0
Comments
-
HI,
it is possible to insert a bool Variable into the property Editable (for actions, fields...etc).
Example:
You want to switch the field with the name "my_field" editable/not editable.
So the first thing is to create a global bool variable (my_field_is_editable) -> screenshot1.
Go into the properties of this variable and set the property "IncludeinDataset" to yes (this is neccessary) -> screenshot2. After this process you are able to use this variable in the Enable- Property Screenshot 3+4.
In CAL code you now have only switch the variable to true/false. The field will be switch to the value of the variable.
Screenshot 1:
Screenshot 2:
Screenshot 3:
Screenshot 4:
hmm welll only 3 attachments possibel?!?
Go to the field--> Properties->Enabled and insert your variable. It is working for the property "visible" also.
i hope it helps, Andy0 -
-
Yeah, almost so good like my explanation


0 -
Thaaaaaaaaaaaaaaaaaaaaaaaanks, it works \:D/Regards
Hanen TALBI0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
