1. Mark Lundell
  2. PowerServer 2020 or older (Obsolete)
  3. Monday, 23 March 2020 20:07 PM UTC

Is this a bug or my lack of knowledge?

 

In my application I have a command button to insert lines into a datawindow which displays different tables depending on the dataobject.  For some tables clicking the button opens a response window for more extensive editing (different tables open different response windows).  It works just fine for most of the response windows. However if the response window contains a custom ole object, the clicked insert button vanishes when the response window opens.  I added Messageboxes to display the button properties.  The properties of the button say it is visible and in the same location.  It’s just not visible or clickable.

 

After trying posts and yields and etc …… I finally made it work.  I added a hidden button and put the focus on that hidden button before I posted the “Clicked’ event to the button.  However this only works once.  Click it a second time and the original button disappears again.

 

The custom ole object is the Microsoft Web Browser object.

 

This is a PB12.1 app converted to PB2017 R3 and being converted to PowerServer.

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 24 March 2020 16:47 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

Can you make a sample app to illustrate what you mean?

Comment
There are no comments made yet.
Mark Lundell Accepted Answer Pending Moderation
  1. Tuesday, 24 March 2020 13:57 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 2

The window that contains the ole object works as desired when open.  Its just the disappearing button that's the issue.

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 23 March 2020 20:54 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 3

Hi Mark;

   FYI: Visual OLE objects (controls) are not supported in PS Web appications ... only non-visual OLE objects.

Suggestion: use the iNET Object to open another tab page for a given URL

Regards ... Chris

Comment
  1. Miguel Leeuwe
  2. Wednesday, 25 March 2020 14:59 PM UTC
Hmm, I tested with PB2017 R3 and whichever version of powerserver comes with that.
  1. Helpful
  1. Miguel Leeuwe
  2. Wednesday, 25 March 2020 14:59 PM UTC
Should we report this as a bug then? PS2020 beta?
  1. Helpful
  1. Chris Pollach @Appeon
  2. Wednesday, 25 March 2020 15:11 PM UTC
Hi Miguel ... its not a bug, but might certainly be considered a good enhancement request. However, I think that we should encourage Engineering (just my $0.02) to support the new Web Browser control that we will see in the new PB 2019 R2 release coming out soon - but, maybe in the next PS2020 revision. Thoughts?

BTW: I have now tested the IE Web Control in Opera, Chrome, FF, and Edge with PS2020 beta plug-ins and the Apps all crash with some sort of non-graceful completion (in some way, shape or form). IE is the worst case as the crash also completely takes out IE as well.

Note: It might work in IE if you have MS-Windows "Registry" setting TabGrowth set to > 0 as that would then force IE to execute in 32bit mode. That might get the IE Web Control to work as its also a 32bit control. However, with the TabGrowth set to 0 (its normal default), IE will then run in 64 bit mode and that could be why I am seeing the GPF around the 32 IE control.

Regards ... Chris
  1. Helpful
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.