show message

Hi to nav experts,

In customer card We have a field last modified date. I know about this field purpose.

Suppose i have permission to modify any field. I changed customer name . After that

i want to get some message like this( with field name)

“You changed customer name”.

suppose if i change state "you changed customer state"like this.

I cheked in that table on modify and on delete triggers. I tried some code.

But it is not working.

Throw some light about this issue…

thanks

It will be a hard work but you can make it on OnModify Trigger.

For example:

IF Rec.Name <> xRec.Name THEN
MESSAGE(‘Name Changed’);

The correct code is

IF Rec.Name <> xRec.Name THEN
MESSAGE(‘%1 Changed’, Rec.FIELDCAPTION(Name));[;)]

Thank U Annifur,

I wrote this code In on modify trigger. But the problem is when try to close the form it is showing the message.

But what should i need when i changed some name and press enter then it has toshow message

Please check u r code , u can find where it is showing.

please throw some help

thanks and regards

If you put the code in the onmodify trigger the message shows up when you leave the record, either by scrolling to another record or by closing the form. If you put the code in the onvalidate trigger of the field, the message shows up when you leave the field. //Pelle