I would like a field (let's name it Field B) to change its value once a field on the same form (Field A) is changed.
Field A: Region (Values: USA,Europe,Asia,Africa)
Field B: Section (Values: Sect1,Sect2,Sect3,None)
So, in detailed, when Region field is changed to Africa, the Section field should automatically change to None and becomes uneditable.
Write Code on On Validate Trigger of FieldA which update Field B Accordingly. Create One Global Variable Mark IncludeInDataset to yes and update the variable Accordingly. Use this variable in Editable Property of FieldB
Hope This will Help You.
This is THE most important part of development, If you do not understand (sorry to say) this simple issue, then you should really stop what you are trying to accomplish and participate in some DEV training!!!Sorry, I am aware of that this sounds very rude, BUT understanding the basic stuff of development is mandatory and unless you have participated in training your "life" is going to be very difficult doing this.
Very rude but I got the point. Part of learning too.
If you are working at a Microsoft partner.. then logon to partnersource and watch the basic training videos or search for alternatives on youtube.Honestly.. You can "destroy companies" if you don't know what you are doing... so the part of learning should not be at customer sites....
take a look here to see how to do development in NAVhttps://markbrummel.blog/
There's a lot of video-links.
There are too many people in this industry who have no *** about what they are doing or why! Too many amateurs who are destroying the reputation of our industry! People who think if they can program in VBA, then they can write code in C/Side.
What's the difference you may ask? It's very big, so treat it with respect!
Learning to develop in NAV or BC is just like any other skill or language your are learning. Start with some training, if that's not possible then read some books and nowadays see what is available on YouTube (and that's a lot).
And that's not the same as say we don't want beginners here in the forums, but what you ask in your question is just about the first things you would try to do in any C/AL or AL training course. It's what you should know before you start, like you need to learn crawl, before you walk.
Also Palle is not rude, but like all Danes (I'm one too) then we like to "call a showel a showel", meaning we say things exactly as we see them.
Did you figured this out??