1. Haihong Yang
  2. PowerBuilder
  3. Wednesday, 23 June 2021 14:27 PM UTC

Hi,

We used to use TFS as source control and PowerGen to build project. We plan to move the code to Azure Devops with Git repository. I wrote ORCA script to build the project. After I merge code from one branch to another, the PBL file is not merged, but the file under ws_objects folder merged. In the PowerBuilder IDE I can use "Refresh" from Menu to update PBL so that it will be in sync with the file. But if I use PowerShell script to do automatic build, how do I call "Refresh" in the script so that PBL will have changed code in it? The ORCA script use PBL to create PBD file.

 

Regards

 

Haihong    

Haihong Yang Accepted Answer Pending Moderation
  1. Friday, 25 June 2021 18:11 PM UTC
  2. PowerBuilder
  3. # 1

Chris,

Thank you for your response. The command you provide me is a Scc command. But if I use Scc  command to build,

I got following error

        Orca error in 'scc get connect properties'. Result Code -23.

       Unable to read SCC connect properties

       An error occurred reading the Windows registry entry.

I am using  PowerBuilder 2019 R3. Do you know what cause this issue?

 

Regards

Haihong   

Comment
  1. Chris Pollach @Appeon
  2. Friday, 25 June 2021 18:49 PM UTC
This sounds like a new ORCAScript issue vs your original PBL refresh question?
  1. Helpful
  1. Haihong Yang
  2. Friday, 25 June 2021 18:57 PM UTC
I always get error when I use Scc command to build. So I avoid it. But I have problem refreshing the pbls after merge. The command you provided to me only applied to the Scc command. But I cannot us it.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 25 June 2021 19:41 PM UTC
Interesting .. however, I was talking about a complete way to refresh of your PBL's from your SCM repository. After that you can use ORCAScript to complete compile process or invoke the new PBC external compiler to complete the compile step. Your choice.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 23 June 2021 19:18 PM UTC
  2. PowerBuilder
  3. # 2

Hi Haihong  ;

   Yes, in OCAScript try (for example) ...

scc set target "<YourTargetName>.pbt" "refresh_all  importonly"

Regards ... Chris

 

Comment
  1. Haihong Yang
  2. Tuesday, 20 July 2021 16:03 PM UTC
Hi, Chris,

I tried using that parameter. It did not refresh the pbl. And I run the application after build. The change is not there. Here is my ORCAScript set

scc connect offline

scc set target "C:\Users\YangH\source\grnshld.pbt" "refresh_all importonly"

scc refresh target full
  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 20 July 2021 16:12 PM UTC
Thanks for trying that suggestion! However, since that did not work, I would now suggest opening a Support Ticket for this issue so that Appeon can look into this problem deeper.
  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.