1. Dave O'BILOG
  2. PowerBuilder
  3. Friday, 28 May 2021 08:51 AM UTC

POWERBUILDER IDE 2019

Hi,

It's possible to do nothing in my application  while a datwindow retrieve is not finished ?

 

thanx

Sivaprakash BKR Accepted Answer Pending Moderation
  1. Saturday, 29 May 2021 12:02 PM UTC
  2. PowerBuilder
  3. # 1

Hi,

One solution could be, 

In open event, disable all buttons, readonly all dws.

In retrieve end event, enable all buttons, remove readonly for all dws.

See whether suits your requirement.  

 

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Friday, 28 May 2021 13:21 PM UTC
  2. PowerBuilder
  3. # 2

Hi, Dave - 

PowerBuilder applications are single-threaded by default, so when your app is waiting for a database request to complete, the main (and only) execution thread waits. It is possible to create a special type of non-visual object that can be executed in its own thread, and there can be many of these objects executing simultaneously... but it's a somewhat advanced topic with a non-intuitive implementation and there's very little documentation/tutorial information available, that I know of.

Typically, this feature is used to spin off the execution of long-running tasks, such as a database query or execution of a stored procedure, or to offload the writing and/or reading of files, tasks that commonly tie up the main execution thread that is mainly devoted to managing the app's GUI.

If you're interested in learning more, I suggest you begin by examining the four PB Help topics that begin with "SharedObjectxxxxxx". SharedObjectGet provides some explanation of the capabilities.

Best regards,
John

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.