BBjJettyContextConfiguration::setDevMode


Description

In BBj 17.0 and higher, this method sets the dev-mode of the BBjJettyContext.

Syntax

Return Value

Method

void

setDevMode(string devmode)

Parameters

Variable

Description

devmode

A String containing dev-mode.

Return Value

None.

Remarks

Setting DevMode in a BBjJettyContext causes code-generation on each request, thus allowing developers to change the page mark-up.

Accepted values are 'true' and 'false.'

Example

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjJettyContextConfiguration root!

api! = BBJAPI()
admin! = api!.getAdmin("admin","admin123")
config! = admin!.getJettyServerConfig()
root! = config!.getRootContextInfo()

root!.setDevMode("true")

condig!.saveConfig()

See Also

BBjAPI

BBjJettyContextConfiguration