1. Sim Joo Pee
  2. PowerServer Web
  3. Wednesday, 9 October 2019 03:16 AM

Hi All,

I had moved my PB application into PowerServer web. And found a few problems:

1) alignment out, on the of_settimer at statusbar,(see attachment) can anyone enlighten me on this issue, how to fix this? Thank you.

2) Understood that classDefinition is unsupported feature in PS web. Most of my classdefinition was defined as Argument Type.(see attachment) I couldnt find a workaround example for this. I am lost, could someone assist me on this?

Thank you in advance

Attachments (1)
Who is viewing this page
Marco Meoni Accepted Answer Pending Moderation
  1. Wednesday, 9 October 2019 19:54 PM
  2. PowerServer Web
  3. # 1
2
Votes
Undo

Hello,

suggested workaround to Classdefinition in PowerServer is create an event - in the object that you want to check - with the same name as the object itself.

For instance, if your class is n_cst_myobj, add an event 

event n_cst_myobj; // PS workaround

end event

and replace ClassDefinition with 

 

If lpo.triggerevent("n_cst_myobj") = 1 Then // lpo is powerobject of type n_cst_myobj

Best,

.m

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 9 October 2019 15:43 PM
  2. PowerServer Web
  3. # 2
0
Votes
Undo

What are you using the ClassDefinition() for?

Maybe it can be "worked around".

 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 9 October 2019 13:57 PM
  2. PowerServer Web
  3. # 3
0
Votes
Undo

Hi Sim;

  Unfortunately, the "ClassDefinition" object class and related functionality in PB is not supported by PowerServer. There are no workarounds. However, you can bullet proof this common code in PB vs PS by the following ...

appeonextfuncs  lo_ps

lo_ps = Create appeonextfuncs

IF lo_ps.of_getClientType() = "PB" THEN

lcd_class = this.ClassDefinition   
li_vars = UpperBound ( lcd_class.VariableList )
For li_v = 1 to li_vars

// etc

ELSE

// Something different

END IF

 

HTH

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.