The following features have been added to PowerBuilder to include support for installable cloud apps:
-
A system function IsPowerServerApp is added to check if the current application is an installable cloud application deployed using PowerServer.
-
The SystemError event is enhanced to return errors that are specific to the installable cloud application or PowerServer license.
-
The Application object has added the following new functions in order to support OAuth 2.0 authorization server for installable cloud apps:
-
An option "Begin session by code" is added to the Application painter's Properties view.
This option is not selected by default; which means the session is automatically created when the application starts. If this option is selected, then the session will not be automatically created; it will be created only when the BeginSession function is executed. Normally you may want to create a session using BeginSession after you have obtained the access token, so that the session can include the access token.
-
An option "During compilation, report unsupported PowerScript features for PowerServer deployment" is added to the Application painter's Properties view.
If this option is selected, the PowerScript features that are unsupported by the PowerServer Web APIs will be detected and reported during the deployment process.
-
The Application object provides a function (GetSessionID) for getting the session ID of the current application client.
-
The PowerServer C# solution provides interfaces (LoadAll & KillByID) for getting all user sessions and killing the specified session. For more details, see Get/Kill user sessions.
-
The DBParm CacheName property is enhanced to specify the database connection cache used by the installable cloud app.
-
The DBParm CacheGroup property is added for specifying the cache group to be used by the installable cloud app.
-
The DBParm ProcedureInTransaction property is added for specifying whether to start the transaction when executing a stored procedure for the installable cloud app.
-
PowerServer 2021 supports the following database parameters: CacheGroup, CacheName, DelimitIdentifier, DisableBind (static DW retrieve), TrimSpaces, TimeStamp (Oracle), BindSPInput (Oracle, SQLServer), and ProcedureInTransaction.