RE: Codeunit to modify page fields
Yes indeed - i could use a field to change it with - actually i have that field already, when it changes to <> '' i must trigger something - basically i can't see how to do that on the PageExtension page - so far seems like ionly have access to the fields from that page.
So if i could make a Trigger when that record changes, i could then set the property of 3 other fields....
But so far i can't get the Trigger to work lige i expect - and also when i do like this:
Modify(TestField)
{
trigger OnValidate()
If TestField <> '' Then Begin
rec.TestField2.Editable = False;
End;
Seems like i don't get allowed to edit another field inside the TestField.... Also i can't get my "OnValidate" Trigger to run - if i test with a message... Basically i need a trigger when a field is changed on the page - that can do events on the fields :)
The Post yzhums posted, is almost what i want - but can't figure out to change as i want :)