NetTalk Central

Author Topic: Text progress as it happens  (Read 2903 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Text progress as it happens
« on: June 09, 2014, 01:37:16 AM »

Hi,

I have a display field with text in it and I would like to update this field as some of my code is executing.
Like a progress control, except with text not a percentage.

One of 2 options
1) On a form I have a button executing some server side code and would like to update a display field on the form as things are happening.
2) Call new form and part of the INIT is the progressive process and updating of the text and once the form is completely generated, then the result is shown.

Seems as if using sendpacket and a netwebsource procedure could work, but not quite sure of exactly how or what best practice would be.

thanks

Johan


eg.

loc:info = 'started A'
do some_process_a

loc:info = 'started B'
do some_process_a

loc:info = 'started C'
do some_process_a

loc:info = 'started D'
do some_process_a

loc:info = 'all done'











Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Text progress as it happens
« Reply #1 on: June 09, 2014, 10:47:15 PM »
Hi Johan,

>> Like a progress control, except with text not a percentage.

Progress controls are not trivial, so turning a "Display" into a progress is likely outside your skillset right now.

However you _may_ be able to refresh a Display field when the progress updates - I haven't tried this, but experiment with Reset fields and so on...

cheers
Bruce

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: Text progress as it happens
« Reply #2 on: June 10, 2014, 02:06:19 AM »


Hi Bruce

thanks for the reply.

I did try the reset with no effect, but will play with this a bit more.


thanks

Johan