1. Juan Jara
  2. PowerBuilder
  3. Tuesday, 7 November 2023 15:38 PM UTC

Hello,

When doing a create datawindow (dw_1.Create ( ls_dw, ls_error )) the drowpdowndatawindows of 
the columns that are not retrieved because the object does not exist.

With the reports (example with composites), putting the object as psr in the dataobject works
for me, but with the drowdowndw I don't know how to do it.

Any idea?

Thank you in advance,

Juan
Juan Jara Accepted Answer Pending Moderation
  1. Wednesday, 8 November 2023 11:29 AM UTC
  2. PowerBuilder
  3. # 1
Hello Chris.
Thanks for your answer. The problem is that I don't have the dddws in the target. With the composite reports I leave them in the same folder of the executable as psr and
it works fine but with the dddws it doesn't work for me.

Thanks,

Best Regards, Juan
Comment
  1. Juan Jara
  2. Wednesday, 8 November 2023 16:45 PM UTC
Is there a way to add the objects dynamically because I have the definition of the dddw in the database?



Thanks,
  1. Helpful
  1. Ronnie Po
  2. Wednesday, 8 November 2023 17:40 PM UTC
If you have the dddw in the database, then before creating the primary DW, you might try saving the dddw syntax as a temporary text file, then calling LibraryImport() to add the dddw to a PBL that is in the application's search path. In theory that should work.
  1. Helpful
  1. mike S
  2. Wednesday, 8 November 2023 18:12 PM UTC
save to pbl won't work for powerserver, and possibly won't work in future version of PB as pbl elimination will be a new feature.



this is an enhancement request to allow child datawindows to be created from syntax at runtime. This WAS a feature in PS 2020 and prior versions, so it is possible to do, but appeon hasn't implemented it in powerbuilder.



https://www.appeon.com/standardsupport/search/view?id=5533



want this? Then enter you own enhancement request, otherwise they will think only 1 developer would use this feature.

  1. Helpful 1
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 7 November 2023 18:42 PM UTC
  2. PowerBuilder
  3. # 2

Hi Juan;

  That should happen automatically after the Create() command when you then issue a Retrieve() command on the newly created DWO. At that point, all DDDW's should have fired as well & their datum should be populated.

Regards ... Chris

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.