NetTalk Central

Author Topic: Pause button on report window  (Read 2792 times)

LSlowick

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
Pause button on report window
« on: November 04, 2014, 06:35:20 AM »
For testing purposes my report has a window that pops up when run in stand alone mode and as expected when called from Nettalk the embeds are in place to skip or not display that window

My question is... It looks like the nettalk codes does a post(event:accepted,?Pause) but it seems like the code in the accepted embed never actually executes.

I had some code to in that pause accepted embed to do some validation of the parameters and get some other report data.

Is the pause accepted button code not supposed to execute when called from Nettalk?

If so, should that pre-report processing code be duplicated somewhere else and what is the best embed to put that type of thing in?

Thanks
Lee




Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Pause button on report window
« Reply #1 on: November 05, 2014, 05:50:51 AM »
Hi Lee,

I would expect a
post(event:accepted,?Pause)
to trigger a "clock" on the Pause button - which in turn will then execute the code under the button.

However the embed code does not run when the post(event:accepted,?Pause) command happens, it happens later when that specific event is handled by the handler.

So I guess it will happen well after the code in the INIT method.

Maybe this is the source of your confusion?

cheers
Bruce

LSlowick

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
Re: Pause button on report window
« Reply #2 on: November 07, 2014, 09:15:10 AM »
Yes, my mistake. I had the code on the wrong embed. For some reason I thought I put it on the Pause button but instead had it on the field control itself.

Sometimes you look at things and only see what want. :)

Thanks