1. John Raghanti
  2. PowerServer 2020 or older (Obsolete)
  3. Tuesday, 12 November 2019 14:28 PM UTC

Hello. I am new to PowerServer, tasked with trying to see how much work is involved with taking our large PB2019 project and making it available via the web.

I've got a non-visual object (nvo_security) that I'm having trouble calling. It's instantiated as a global variable in the application. Whenever I call a function on it, nothing happens.

For example, in my menu, I call: g_security.uf_open_item(al_id)

I put a messagebox as the first thing in the function, but it never fires off. The analysis report doesn't contain any information about the nvo_security object.

Any ideas?

Also, sub-question: How to get images to show that are contained in the PBRs?

 

Thanks!

Accepted Answer
mike S Accepted Answer Pending Moderation
  1. Tuesday, 12 November 2019 14:40 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # Permalink

put a messagebox PRIOR to calling your nvo function (outside your nvo) to see where it stops/skips your code.  and put one after that function call as well.  that will identify where exactly the problem is.

is that global autoinstantiated, or do you create it?

 

images:

in the powerserver toolkit, go to configuration, additional files, image files to have them load

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 13 November 2019 19:27 PM UTC
Better yet ... just use the PowerServer Web "Debugger"! ;-)
  1. Helpful
There are no comments made yet.
John Raghanti Accepted Answer Pending Moderation
  1. Tuesday, 12 November 2019 15:07 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

Ah, heck! Thanks for suggesting the auto instantiate. I accidentally included the create inside of the statement: 

If AppeonGetClientType() = "PB" Then

Once I put it outside, everything started working! I appreciate you making me look.

 

For the images, we have multiple folders that we include in PBRs. I have the main folder where the project is listed under Deploy Image Files, and I have Include Subfolders checked. Is the usage the same as how we use PBR images?

Bitmaps\newlogin.bmp

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.