On page exit event not working

Hello,

We are attempting to log the any change in variables which someone might change on a page in Citect 2018 R2. We are using a function to do this (if an example is required let me know). The function executes correctly when we enter the page, but for some reason it doesn't log the variables when we exit the page. The reason we are trying to do both is to log the values before and after someone accesses the page. Also, We have migrated the project from Citect 7.3 to Citect 2018 R2. 

Parents
  • All tags displayed on a page will be unsubscribed when you leave the page. You can verify tis using Page Table CsaToPsi.subs in the main kernel window. It looks like the runtime tears down the subscribed tags first and then raise Page Exit event.

    You should consider using TagRead() Cicode function to get values of those tags displayed on this page. So your Page Exit function should call a task to perform these TagRead() because this function is a blocking function.

    Hope this would help.

Reply
  • All tags displayed on a page will be unsubscribed when you leave the page. You can verify tis using Page Table CsaToPsi.subs in the main kernel window. It looks like the runtime tears down the subscribed tags first and then raise Page Exit event.

    You should consider using TagRead() Cicode function to get values of those tags displayed on this page. So your Page Exit function should call a task to perform these TagRead() because this function is a blocking function.

    Hope this would help.

Children
No Data