1. Neil Almond
  2. PowerServer
  3. Thursday, 29 August 2024 19:31 PM UTC

Using PowerBuilder 2022 R3 for PowerServer application.  Trying to change the syntax for one of the child objects using suggested workaround code.

DataWindowChild dwc_report
l_rtn = dw_composite.GetChild("dw_report ", dwc_report)
ls_dwsyntax = dw_1.Describe("DataWindow.Syntax")
dwc_report.dynamic create (ls_dwsyntax, error_create)

Receiving an error during execution - Error - 65 - Dynamic function not found.  Created a datawindow that was not composite to verify the syntax was correct.  Any input would be appreciated.

Neil Almond Accepted Answer Pending Moderation
  1. Tuesday, 3 September 2024 11:27 AM UTC
  2. PowerServer
  3. # 1

Thanks for the responses and the clarification.

Comment
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Friday, 30 August 2024 11:29 AM UTC
  2. PowerServer
  3. # 2

That functionality was only in PS 2020 and prior.   (that is why it required the dynamic keyword)

appeon never added that feature back into core PB and hence it is not part of the current powerserver.  You need to put in an enhancement/bug report to request that they bring back that feature.  If enough people request it, then maybe they will go find that code and put it in core PB.

 

 

 

Comment
There are no comments made yet.
David Xiong @Appeon Accepted Answer Pending Moderation
  1. Friday, 30 August 2024 07:48 AM UTC
  2. PowerServer
  3. # 3

Hi Neil,

 

The DataWindowChild object does not provide a Create method. This method is not supported in either PB Native App or PowerServer App.

 

Regards, 

David

Comment
  1. mike S
  2. Friday, 30 August 2024 11:23 AM UTC
"not supported in either PB Native App or PowerServer App."

*ANYMORE



PowerServer 2020 and prior did support it.
  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Thursday, 29 August 2024 22:07 PM UTC
  2. PowerServer
  3. # 4

Hi, Neil -

*** Edited as noted below ***

If I were troubleshooting this issue, I would place the extracted syntax (the variable ls_dwsyntax) and copy it into the Windows Clipboard via the PowerScript Clipboard(string) function, then manually paste into a text editor so that I could carefully inspect the syntax to verify that it is correct. There may be something hinky going on with the syntax extraction of a child DataWindow.

If the child DataWindow is reasonably complex, then I would also test with a simpler child DataWindow to see if that makes any difference in the results.

Addendum:

I do not see in PB Help or Object Browser where the DataWindowChild object supports the Create method.

Best regards, John

Comment
  1. Arnd Schmidt
  2. Friday, 30 August 2024 23:49 PM UTC
Correct.. just the good old Modfiy().
  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.