1. Olan Knight
  2. PowerBuilder
  3. Thursday, 2 December 2021 16:28 PM UTC

PowerBuilder 2019R3, b2703
Oracle 12C and PostgreSQL v12
IDE:     Windows 10 64 bit o/s
Runtime: Windows 19 server

   Perhaps the header portion of the Global Variables is fixed and gets overwritten at some schedule known only to PowerBuilder. I moved the declaration from it's current location into the Application object using EDIT and clicking on the Instance Variables tab, then the Global Variables option, then manually entering n_tr   sqlcz. Let's see if it sticks.


   The new global value "n_tr   sqlcz" vanishes from the list of global variables after a full build or a compile. Why is this occurring and how can I set the app to retain the new global variable?


   1. I added a new n_tr value of sqlcz to the global variables using Edit Source. See image.
   2. I do a Full Build, and then a DEPLOY. Everything works.
   3. I do another full Build a day later and the variable sqlcz is no longer listed in the global
      variables; it appears to have been deleted by magic.

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 2 December 2021 16:54 PM UTC
  2. PowerBuilder
  3. # 1

Hi Olan;

  Yes, when you edited the raw App Object source code, you placed the n_tr sqlcz declaration in the wrong place (section).

Regards ... Chris

  1. Chris Pollach @Appeon
  2. Thursday, 2 December 2021 18:47 PM UTC
Yep, that's what the IDE is for. ;-)
  1. Helpful
  1. Arnd Schmidt
  2. Thursday, 2 December 2021 20:24 PM UTC
Ask "OKnight" who already added a global variable of type n_tr more than 15 years ago ;-)

(See comments in attached screenshot)

PowerBuilder destroys the line in the "forward" section when you edit and save the application object using the legal painter.
  1. Helpful
  1. Olan Knight
  2. Thursday, 2 December 2021 23:36 PM UTC
Yup, I figured that out on my own, hence the update. Which worked. :)

Thanks for all the feeback and good info, guys!
  1. Helpful
There are no comments made yet.
  1. Thursday, 2 December 2021 16:50 PM UTC
  2. PowerBuilder
  3. # 2

Hi Olan

That's quite a weird one. All I can think of is that the source is being reverted back somehow. I guess you are using some sort of sorce control, can you verify that the checked in source has the changes? Are you doing a getlatest and somehow overwriting the application object?

I fear that there is some external reason for what you are seeing.

All the best



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.