1. Carl Bolduc
  2. PowerServer
  3. Wednesday, 18 October 2023 19:58 PM UTC

We are migrating a project to PowerServer. We still want to be able to compile and deploy the client/server application. There is code in our application that is useful only for the client/server version and we would like to skip it when we are compiling the PowerServer project. Is there a flag that we can use to know the compiling context?

We can implement this ourselves with a global variable but we don't want to reinvent the wheel if something like this already exist.

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 18 October 2023 20:20 PM UTC
  2. PowerServer
  3. # Permalink

Hi Carl;

  Have a look at these new PowerScript commands ...

IsPBApp
IsPowerClientApp
IsPowerServerApp

HTH

Regards .. Chris

Comment
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Wednesday, 18 October 2023 23:23 PM UTC
  2. PowerServer
  3. # 1

You can't skip any code during compiling, but those commands can be used in an if/then during runtime.

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.
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.