1. Arcady Abramov
  2. PowerBuilder
  3. Monday, 18 November 2019 06:53 AM UTC

Hello, Team

We work with VSS on PB2017 and sometimes we have issues with PBGs not containing some PBL objects. Once the objects are not in the PBG, then it is no longer synchronized via ORCA script (but somehow still synched with PB IDE).

 

Can someone please help me to work it out?

We have a 1GB project, with 90 PBLs and 1700 objects. It is impossible to keep track of everything manually. Is it possible to regenerate the PBG file, so it will include all the objects in the respective library?

Thank you

Arcady

René Ullrich Accepted Answer Pending Moderation
  1. Monday, 18 November 2019 07:00 AM UTC
  2. PowerBuilder
  3. # 1

Hi Arcady,

I don't know a native way in the IDE to do that.

I would write a small application that reads the library entries and writes the PBDs. Use the function LibraryDirectory or LibraryDirectoryEx to get the library entries.

HTH,

René

 

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 18 November 2019 14:31 PM UTC
  2. PowerBuilder
  3. # 2

We also are (still) on VSS until our next release will start. Ren'es answer is great, but what I would do:

- first make sure that a certain object is not in the pbG file, because someone else has removed the object from source control !!

- run an analyze repair on the VSS server, make sure no one is connected. 

- make a copy of your local folder, just in case.

- delete your local PBG file

- refresh and do getlatest to see if the pbg file is automatically retrieved from the server

- if not fixed, then do an "Add to Source control" on the target with right mouse click. It might tell you that the object is already present and might adapt your local PBG file.

If nothing of that works, I guess another possibility is to edit the pbg files directly.

 

It might also be achieved by temporarily switching to another source control (or NONE). Then when connection back to VSS, you might be prompted (after a pb ide restart) with something like "you changed sourcecontrol" do you want to delete pbg files?".

Comment
There are no comments made yet.
Phil Wallingford Accepted Answer Pending Moderation
  1. Tuesday, 19 November 2019 19:51 PM UTC
  2. PowerBuilder
  3. # 3

PowerGen has a function to do create PBGs from a working application.

Comment
There are no comments made yet.
Michael Kramer Accepted Answer Pending Moderation
  1. Tuesday, 19 November 2019 20:17 PM UTC
  2. PowerBuilder
  3. # 4

I have several utility apps lying around that do PBL => PBG and other practical tasks.

Working on too many things simultaneously it will probably be weekend before I have to clean up the code; test; and then upload.

Maybe someone else already has working code ready for upload?
I happily accept the sprint loss if you upload before me.

 

HTH /Michael

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.