Namespace Notify Event

Description

In BBj 4.0 and higher, a BBjNamespace event is fired with flag=1 whenever setting the value of a BBjNamespace variable by calling BBjNamespace.setValue(). If the new value of the variable differs from the old value, then an additional event with flag = 2 is fired.

Mandatory/Optional

Mandatory.

Event Mask Bit

None. Event is always visible if a BBjNamespace has been created.

Event Template

context:u(2),code:c(1),id:u(2),flags:u(1),x:u(2),y:u(2)

Field

Description

context

0

code

N

id

115

flags

1 when a value is set, 2 when a value is changed.

x

Use as the NotifyID parameter when calling the NOTICE() function to retrieve the associated notice string.

y

0

 

BBjNamespace Notify String

The following Notify event applies to edit controls:

Code

Notice Template

Event Description

1

 

context:u(2), code:u(1), id:u(2), objtype:i(2), namespace:c(1*), varname:c(1*), oldval:c(1*), newval:c(1*)

When a BBjNamespace variable changes, it generates BBjNamespace Notify Events. Namespace contains the name of the BBjNamespace, varname contains the name of the changed variable, oldval contains a String representation of the old value of the variable and newval contains a String representation of the new value.

2

 

 

See Also

BBjNamespace

NOTICE() Function - Get SYSGUI Notice String

NOTICETPL() Function - Get Notice String Template