1. shoaib siddiqui
  2. PowerServer 2020 or older (Obsolete)
  3. Wednesday, 27 March 2019 18:36 PM UTC

Hello all,

my client/server app works fine, but when converted to Web it is ignoring or has no effects whenever I reference an a variable defined in NVO.

For example: 

I have n_constant that has some  CONSTANT  instance variables in it:

constant string cdir_prequal_prequalify = "PRQ"
constant string cdir_prequal_reinstate = "REI"
constant string cdir_prequal_remove = "RMV"
constant string cdir_prequal_renew = "RNW"

Usage in my window:
n_constant in_constant ( defined as instance variable of window)

then... later in window I have code to use these variables i.e.

dw_detail.SetItem(ll_row, "qualify_code", in_constants.cdir_prequal_prequalify )

Right here at this line, web app skips the whole script and does not do anything, I tried to debug this in PB/Client server mode , it DOES work and shows me the value at run time ("PRQ"). But when I debug this Appeon debugger  the  in_constants is NULL object.

Don't know how Appeon keeps track of Instance variables or objects at run time or something has to do with CONSTANT types.

Thanks.

mike S Accepted Answer Pending Moderation
  1. Wednesday, 27 March 2019 19:46 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

did you create the object?

n_constant in_constant 

in_constant = create n_constant 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 27 March 2019 19:12 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 2

Hi Shaoib;

  Hmmm ... not having any issues in my framework which is laden with "Constant" variables and used in PowerServer Web and Mobile applications  ...

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.