Skip to main content
Answer

How to stop showing the message in Universal once its been shown in DEFAULT OR LAYOUT Code group?

  • June 12, 2023
  • 2 replies
  • 79 views

Forum|alt.badge.img

Hi Team,

I have created the control procedure to show the user regarding their work permit expire in LAYOUT and DEFAULT code group (I have tried these two things). Its been showing correctly when the work permit date is not current date, but the problem is its always showing the message even we clicked on other fields too if the date is not current date. 

Can anybody help me to fix this? How can I stop the message once its been executed?

Thanks and Regards,

Prabhu S

Best answer by Anne Buit

Hi Prabhu,

If you only want to show a message when a specific field has been modified by the user, you can use the @cursor_from_col_id variable to check the modified field in the Default logic.

For instance:

if @cursor_from_col_id = 'permit_date' 
and @permit_date is not null
and @permit_date <> getdate()
begin
exec tsf_send_message 'warning_permit_date_not_today', null, 0;
end;

 

This topic has been closed for replies.

2 replies

Anne Buit
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • Answer
  • June 12, 2023

Hi Prabhu,

If you only want to show a message when a specific field has been modified by the user, you can use the @cursor_from_col_id variable to check the modified field in the Default logic.

For instance:

if @cursor_from_col_id = 'permit_date' 
and @permit_date is not null
and @permit_date <> getdate()
begin
exec tsf_send_message 'warning_permit_date_not_today', null, 0;
end;

 


Forum|alt.badge.img
  • Author
  • Rookie
  • June 12, 2023

Thanks Anne Buit, It worked perfectly.