Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Creating hot links – PB Docs 2022 – PowerBuilder Library

Creating hot links – PB Docs 2022

Creating hot links

Some OLE servers support property change notifications. This means
that when a property is about to be changed and again after it has been
changed, the server notifies the client, passing information about the
change. These messages trigger the events PropertyRequestEdit and
PropertyChanged.

PropertyRequestEdit event

When a property is about to change, PowerBuilder triggers the
PropertyRequestEdit event. In that event’s script you can:

  • Find out the name of the property being changed by looking at
    the PropertyName argument.

  • Obtain the old property value and save it

    The property still has its old value, so you can use the
    standard syntax to access the value.

  • Cancel the change by changing the value of the CancelChange
    argument to TRUE

PropertyChanged event

When a property has changed, PowerBuilder triggers the
PropertyChanged event. In that event’s script, you can:

  • Find out the name of the property being changed by looking at
    the PropertyName argument

  • Obtain the new property value

    The value has already changed, so you cannot cancel the
    change.

Using the PropertyName
argument

Because the PropertyName argument is a string, you cannot use it
in dot notation to get the value of the property:

Instead, use CHOOSE CASE or IF statements for the property names
that need special handling.

For example, in the PropertyChanged event, this code checks for
three specific properties and gets their new value when they are the
property that changed. The value is assigned to a variable of the
appropriate datatype:

If a larger change
occurred

In some cases the value of the PropertyName argument is an empty
string (“”). This means a more general change has occurred — for
example, a change that affects several properties.

If notification is not
supported

If the OLE server does not support property change notification,
then the PropertyRequestEdit and PropertyChanged events are never
triggered, and scripts you write for them will not run. Check your OLE
server documentation to see if notification is supported.

If notifications are not supported and your application needs to
know about a new property value, you might write your own function that
checks the property periodically.

For more information about the PropertyRequestEdit and
PropertyChanged events, see the section called “PropertyRequestEdit” in PowerScript Reference and the section called “PropertyChanged” in PowerScript Reference.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x