Hi Guys,
My Client wants a control in the Sales Order Subform F46, which consist in:
If = Item : Editable is set to No for Description
Ii <> Item : Editable is set to Yes for Description.
I've put the code below in Form.OnAfterGetRecord
IF Type=Type::Item THEN
CurrForm.Description.EDITABLE(FALSE)
ELSE
CurrForm.Description.EDITABLE(TRUE);
The problem is that this code take effect only when the current line is insered in the table:
Suppose that the Type of the first line is set to Blank, when we create a second line with a type of Item, this code did not take effect, so obviously the the CurrForm.Description.EDITABLE is set to TRUE (it take the Type value of the previous line)
What's the solution...??
Thanks for your help.
Comments
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
Thanks for your Help
i have checked it it's working fine. put your code in both trigger.