1. Raymond Longoria
  2. PowerBuilder
  3. Thursday, 17 June 2021 00:26 AM UTC

I upgraded an application from PB 8.0 to 2019 R3. There are two dw's in the scenario. The first dw does the retrieve and the second dw uses an Importstring to pull in the data from the first one:

dw_second.importString(dw_first.describe("datawindow.data"))

No errors are returned on the import but the presentation of the second dw has the controls on top of each other (screenshot attached). It works fine in PB 8.0

Any help would be appreciated!

Attachments (1)
Accepted Answer
John Fauss Accepted Answer Pending Moderation
  1. Thursday, 17 June 2021 13:19 PM UTC
  2. PowerBuilder
  3. # Permalink

Since you are currently performing a Describe("DataWindow.Data") followed by ImportString, I can assume the column specifications in the two DataWindow objects are the same? If so, you could try using RowsCopy. Depending on what the second DW is being used for, maybe ShareData would be a workable alternative.

Best regards,
John

Comment
  1. Raymond Longoria
  2. Friday, 18 June 2021 18:57 PM UTC
John,

The Rowscopy worked! Thanks!
  1. Helpful
  1. John Fauss
  2. Friday, 18 June 2021 23:03 PM UTC
That's terrific news, Raymond! Thanks for the update.
  1. Helpful
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Thursday, 17 June 2021 05:58 AM UTC
  2. PowerBuilder
  3. # 1

You could try different things:

  • dw_second.SetRedraw(FALSE) before the import and dw_second.SetRedraw(TRUE) after the import
  • dw_second.GroupCalc() after the import

Hope that one of it helps.

René

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 17 June 2021 16:54 PM UTC
Hi René ... Yes, A GroupCalc() command may be required after any DW Import, Copy, Direct Buffer update, etc. That has always been a requirement in order to get the DWO to "redraw" it's work area 100%. The Retrieve() does that for you BTW.

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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.