Skip to main content
Solved

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


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;

 

View original
Did this topic help you find an answer to your question?
This topic has been closed for replies.

2 replies

Anne Buit
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • 653 replies
  • 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
  • 4 replies
  • June 12, 2023

Thanks Anne Buit, It worked perfectly.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings