Dynamics User Group
Since 1995 - The Microsoft Dynamics Online User Community

show message

rated by 0 users
This post has 4 Replies | 2 Followers

Top 200 Contributor
Posts 98
Points 1,985
Member since 09-07-2007
hansika Posted: 10-07-2007 14:44

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

Top 10 Contributor
Male
Posts 1,407
Points 46,614
Member since 06-05-2005
Moderator

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’);

 

Nuno Maia
  • | Post Points: 20
Top 50 Contributor
Male
Posts 432
Points 3,905
Member since 10-26-2000

Nuno Maia:

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));Wink

  • | Post Points: 20
Top 200 Contributor
Posts 98
Points 1,985
Member since 09-07-2007

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

  • | Post Points: 20
Top 100 Contributor
Male
Posts 166
Points 1,160
Member since 09-26-2000
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
  • | Post Points: 5
Page 1 of 1 (5 items) | RSS


Copyright Dynamics User Group, 1995-2009, all rights reserved. The Dynamics User Group is not affiliated with Microsoft Corporation.